@ptcwebops/ptcw-design 3.9.4 → 3.9.6
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/icon-asset.cjs.entry.js +53 -0
- package/dist/cjs/list-item.cjs.entry.js +46 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/max-width-container_5.cjs.entry.js +332 -0
- package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-card_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +25 -19
- package/dist/cjs/ptc-link.cjs.entry.js +91 -0
- package/dist/cjs/ptc-nav-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-office-location-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-add-on-card.cjs.entry.js +28 -0
- package/dist/cjs/ptc-pricing-add-on-section.cjs.entry.js +50 -0
- package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +382 -0
- package/dist/cjs/ptc-readmore.cjs.entry.js +93 -0
- package/dist/cjs/ptc-showcase-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-spacer.cjs.entry.js +38 -0
- package/dist/cjs/ptc-tooltip.cjs.entry.js +107 -0
- package/dist/cjs/ptc-value-led-layout.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-prop-card.cjs.entry.js +1 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +6 -0
- package/dist/collection/components/ptc-button/ptc-button.js +23 -1
- package/dist/collection/components/ptc-card/ptc-card.css +18 -0
- package/dist/collection/components/ptc-close-icon/ptc-close-icon.css +1 -0
- package/dist/collection/components/ptc-nav-card/ptc-nav-card.css +4 -0
- package/dist/collection/components/ptc-office-location-card/ptc-office-location-card.css +1 -0
- package/dist/collection/components/ptc-showcase-card/ptc-showcase-card.css +1 -0
- package/dist/collection/components/ptc-value-led-layout/ptc-value-led-layout.css +1 -0
- package/dist/collection/components/ptc-value-prop-card/ptc-value-prop-card.css +2 -2
- package/dist/collection/utils/elq-lib.js +25 -19
- package/dist/custom-elements/index.js +38 -28
- package/dist/esm/academic-form-test.entry.js +1 -1
- package/dist/esm/author-listing-example.entry.js +1 -1
- package/dist/esm/bundle-example.entry.js +1 -1
- package/dist/esm/bundle-jumbotron-example.entry.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/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/icon-asset.entry.js +49 -0
- package/dist/esm/{index-3309fc22.js → index-abb9f744.js} +1 -1
- package/dist/esm/innovator-toggle-container.entry.js +1 -1
- package/dist/esm/list-item.entry.js +42 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/max-width-container_5.entry.js +324 -0
- package/dist/esm/most-popular-news.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/news-search-result.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-accordion.entry.js +1 -1
- package/dist/esm/ptc-announcement.entry.js +1 -1
- package/dist/esm/ptc-back-to-top.entry.js +1 -1
- package/dist/esm/ptc-background-video.entry.js +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-breadcrumb_2.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 +2 -2
- 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 +2 -2
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-container.entry.js +1 -1
- package/dist/esm/ptc-data-lookup.entry.js +26 -20
- 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 +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.entry.js +1 -1
- package/dist/esm/ptc-form-checkbox_3.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-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 +1 -1
- package/dist/esm/ptc-link.entry.js +87 -0
- package/dist/esm/ptc-list.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/ptc-nav-link.entry.js +1 -1
- package/dist/esm/ptc-nav-pills.entry.js +1 -1
- package/dist/esm/ptc-nav-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 +2 -2
- package/dist/esm/ptc-office-locations.entry.js +1 -1
- package/dist/esm/ptc-overlay.entry.js +1 -1
- package/dist/esm/ptc-pagenation.entry.js +1 -1
- package/dist/esm/ptc-picture.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-preloader-section.entry.js +1 -1
- package/dist/esm/ptc-previous-url.entry.js +1 -1
- package/dist/esm/ptc-pricing-add-on-card.entry.js +24 -0
- package/dist/esm/ptc-pricing-add-on-section.entry.js +46 -0
- package/dist/esm/ptc-pricing-block.entry.js +1 -1
- package/dist/esm/ptc-pricing-packaging-table.entry.js +378 -0
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptc-product-card.entry.js +1 -1
- package/dist/esm/ptc-product-category.entry.js +1 -1
- package/dist/esm/ptc-product-dropdown.entry.js +1 -1
- package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
- package/dist/esm/ptc-product-list.entry.js +1 -1
- package/dist/esm/ptc-product-sidebar.entry.js +1 -1
- package/dist/esm/ptc-progress-bar.entry.js +1 -1
- package/dist/esm/ptc-quote.entry.js +1 -1
- package/dist/esm/ptc-readmore-char.entry.js +1 -1
- package/dist/esm/ptc-readmore.entry.js +89 -0
- 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-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 +2 -2
- package/dist/esm/ptc-skeleton.entry.js +1 -1
- package/dist/esm/ptc-slit-card.entry.js +1 -1
- package/dist/esm/ptc-spacer.entry.js +34 -0
- package/dist/esm/ptc-span.entry.js +1 -1
- package/dist/esm/ptc-square-card.entry.js +1 -1
- package/dist/esm/ptc-sticky-icons.entry.js +1 -1
- package/dist/esm/ptc-sticky-section.entry.js +1 -1
- package/dist/esm/ptc-sticky-title.entry.js +1 -1
- package/dist/esm/ptc-subnav-card.entry.js +1 -1
- package/dist/esm/ptc-subnav.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-theater-video-modal.entry.js +1 -1
- package/dist/esm/ptc-tooltip.entry.js +103 -0
- package/dist/esm/ptc-two-column-media.entry.js +1 -1
- package/dist/esm/ptc-value-led-card.entry.js +1 -1
- package/dist/esm/ptc-value-led-content-highlight.entry.js +1 -1
- package/dist/esm/ptc-value-led-content.entry.js +1 -1
- package/dist/esm/ptc-value-led-intro.entry.js +1 -1
- package/dist/esm/ptc-value-led-layout.entry.js +2 -2
- package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
- package/dist/esm/ptc-value-prop-card.entry.js +2 -2
- 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/tab-content.entry.js +1 -1
- package/dist/esm/tab-header.entry.js +1 -1
- package/dist/ptcw-design/{p-9e0fd244.js → p-0226ece0.js} +1 -1
- package/dist/ptcw-design/{p-e0a37c10.entry.js → p-026dbe68.entry.js} +1 -1
- package/dist/ptcw-design/{p-2c877fb9.entry.js → p-0311ceb2.entry.js} +1 -1
- package/dist/ptcw-design/p-03698164.entry.js +1 -0
- package/dist/ptcw-design/{p-51b6b420.entry.js → p-06ec3a76.entry.js} +1 -1
- package/dist/ptcw-design/{p-acf282f7.entry.js → p-08beb0ab.entry.js} +1 -1
- package/dist/ptcw-design/{p-207855ea.entry.js → p-0b9ac7cf.entry.js} +1 -1
- package/dist/ptcw-design/{p-4bdd8e95.entry.js → p-0be388fc.entry.js} +1 -1
- package/dist/ptcw-design/{p-7621fd18.entry.js → p-10ee3772.entry.js} +1 -1
- package/dist/ptcw-design/{p-8ba615c2.entry.js → p-12d3e601.entry.js} +1 -1
- package/dist/ptcw-design/{p-b94d99f5.entry.js → p-14bc4ffe.entry.js} +1 -1
- package/dist/ptcw-design/{p-054912ed.entry.js → p-17d4b8be.entry.js} +1 -1
- package/dist/ptcw-design/{p-03ca130e.entry.js → p-1ee3dc05.entry.js} +1 -1
- package/dist/ptcw-design/p-227df298.entry.js +1 -0
- package/dist/ptcw-design/{p-59633fe2.entry.js → p-290c1c76.entry.js} +1 -1
- package/dist/ptcw-design/p-2d1a0b56.entry.js +1 -0
- package/dist/ptcw-design/{p-4dafb772.entry.js → p-2d223899.entry.js} +1 -1
- package/dist/ptcw-design/{p-e4b4e5fc.entry.js → p-2ebc621f.entry.js} +1 -1
- package/dist/ptcw-design/{p-ce9f7592.entry.js → p-2fde11cf.entry.js} +1 -1
- package/dist/ptcw-design/{p-c5ddb505.entry.js → p-305f897c.entry.js} +1 -1
- package/dist/ptcw-design/{p-e202c50a.entry.js → p-32b61c0c.entry.js} +1 -1
- package/dist/ptcw-design/{p-5407c0c0.entry.js → p-3459ce75.entry.js} +1 -1
- package/dist/ptcw-design/{p-020f66f1.entry.js → p-36604862.entry.js} +1 -1
- package/dist/ptcw-design/{p-42c50034.entry.js → p-3760236d.entry.js} +1 -1
- package/dist/ptcw-design/p-38baf163.entry.js +1 -0
- package/dist/ptcw-design/{p-de157f09.entry.js → p-3ad691c2.entry.js} +1 -1
- package/dist/ptcw-design/{p-8875b669.entry.js → p-3c56139c.entry.js} +1 -1
- package/dist/ptcw-design/{p-cdafd0be.entry.js → p-3fa8c043.entry.js} +1 -1
- package/dist/ptcw-design/{p-7e5dd25c.entry.js → p-404c847a.entry.js} +1 -1
- package/dist/ptcw-design/{p-965ea4cf.entry.js → p-42944d66.entry.js} +1 -1
- package/dist/ptcw-design/{p-1dde0467.entry.js → p-4655bc27.entry.js} +1 -1
- package/dist/ptcw-design/p-465d7bce.entry.js +1 -0
- package/dist/ptcw-design/{p-af0e69ac.entry.js → p-479f36f0.entry.js} +1 -1
- package/dist/ptcw-design/{p-2d65dfcf.entry.js → p-4aeb9a7b.entry.js} +1 -1
- package/dist/ptcw-design/{p-d9056a49.entry.js → p-4af7a016.entry.js} +1 -1
- package/dist/ptcw-design/{p-b1f64951.entry.js → p-4f7140ea.entry.js} +1 -1
- package/dist/ptcw-design/{p-5e8a4cd8.entry.js → p-51cc6129.entry.js} +1 -1
- package/dist/ptcw-design/p-51f387a0.entry.js +1 -0
- package/dist/ptcw-design/{p-ac5bc788.entry.js → p-547229d0.entry.js} +1 -1
- package/dist/ptcw-design/{p-b8f9e9b4.entry.js → p-5680c8e9.entry.js} +1 -1
- package/dist/ptcw-design/{p-353fbbb5.entry.js → p-58312012.entry.js} +1 -1
- package/dist/ptcw-design/{p-96ff713c.entry.js → p-5860b07d.entry.js} +1 -1
- package/dist/ptcw-design/{p-29ff7857.entry.js → p-5d82cdaa.entry.js} +1 -1
- package/dist/ptcw-design/{p-6bdb7900.entry.js → p-5fb6dbe5.entry.js} +1 -1
- package/dist/ptcw-design/{p-fd2b7ff0.entry.js → p-622c768f.entry.js} +1 -1
- package/dist/ptcw-design/{p-3d1851a4.entry.js → p-64466623.entry.js} +1 -1
- package/dist/ptcw-design/{p-b65c7a66.entry.js → p-65d6be32.entry.js} +1 -1
- package/dist/ptcw-design/{p-5f39f3f1.entry.js → p-66c2c3a3.entry.js} +1 -1
- package/dist/ptcw-design/{p-fa1b3b95.entry.js → p-671f1e11.entry.js} +1 -1
- package/dist/ptcw-design/p-6a62362d.entry.js +1 -0
- package/dist/ptcw-design/{p-22887237.entry.js → p-6c002d42.entry.js} +1 -1
- package/dist/ptcw-design/p-70edb5f4.entry.js +1 -0
- package/dist/ptcw-design/p-71d5aa69.entry.js +1 -0
- package/dist/ptcw-design/{p-371d7474.entry.js → p-731cd57d.entry.js} +1 -1
- package/dist/ptcw-design/{p-6344d3a2.entry.js → p-7328af64.entry.js} +1 -1
- package/dist/ptcw-design/{p-4a5bdc6a.entry.js → p-77e477ff.entry.js} +1 -1
- package/dist/ptcw-design/{p-c1a3d271.entry.js → p-79516f04.entry.js} +1 -1
- package/dist/ptcw-design/{p-a90c79c0.entry.js → p-7b225938.entry.js} +1 -1
- package/dist/ptcw-design/{p-5f137f3f.entry.js → p-7c218213.entry.js} +1 -1
- package/dist/ptcw-design/{p-238e7d54.entry.js → p-7d8a978c.entry.js} +1 -1
- package/dist/ptcw-design/{p-993adcc2.entry.js → p-7fc3edca.entry.js} +1 -1
- package/dist/ptcw-design/{p-a7e3d3b2.entry.js → p-7ffefba9.entry.js} +1 -1
- package/dist/ptcw-design/{p-5883f603.entry.js → p-84692a5f.entry.js} +1 -1
- package/dist/ptcw-design/p-85485428.entry.js +1 -0
- package/dist/ptcw-design/{p-6d90575f.entry.js → p-8cbc12e6.entry.js} +1 -1
- package/dist/ptcw-design/{p-ff392584.entry.js → p-8d1710d5.entry.js} +1 -1
- package/dist/ptcw-design/p-8d2e4cc7.entry.js +1 -0
- package/dist/ptcw-design/p-8dcdb48d.entry.js +1 -0
- package/dist/ptcw-design/p-91991667.entry.js +1 -0
- package/dist/ptcw-design/{p-fde4ca9c.entry.js → p-95955ed3.entry.js} +1 -1
- package/dist/ptcw-design/{p-f378b843.entry.js → p-9896f967.entry.js} +1 -1
- package/dist/ptcw-design/p-9c0d26df.entry.js +1 -0
- package/dist/ptcw-design/p-9f0379c7.entry.js +1 -0
- package/dist/ptcw-design/{p-2daf7fbe.entry.js → p-9fa2a419.entry.js} +1 -1
- package/dist/ptcw-design/p-a0380839.entry.js +1 -0
- package/dist/ptcw-design/{p-764a0229.entry.js → p-a120b60a.entry.js} +1 -1
- package/dist/ptcw-design/{p-e786003c.entry.js → p-a67b3072.entry.js} +1 -1
- package/dist/ptcw-design/p-a698e82b.entry.js +1 -0
- package/dist/ptcw-design/{p-90758751.entry.js → p-a8d92a3b.entry.js} +1 -1
- package/dist/ptcw-design/{p-423b590f.entry.js → p-a99adbbb.entry.js} +1 -1
- package/dist/ptcw-design/p-ab22665e.entry.js +1 -0
- package/dist/ptcw-design/{p-9d13225e.entry.js → p-ab300826.entry.js} +1 -1
- package/dist/ptcw-design/{p-94466d17.entry.js → p-ac7ca899.entry.js} +1 -1
- package/dist/ptcw-design/{p-3bbfda70.entry.js → p-ad472068.entry.js} +1 -1
- package/dist/ptcw-design/{p-3e43113a.entry.js → p-b27ab783.entry.js} +1 -1
- package/dist/ptcw-design/{p-ead74368.entry.js → p-b35f3f21.entry.js} +1 -1
- package/dist/ptcw-design/{p-e99379c4.entry.js → p-b7154ac6.entry.js} +1 -1
- package/dist/ptcw-design/{p-66b1fc5e.entry.js → p-b9036669.entry.js} +1 -1
- package/dist/ptcw-design/{p-1904359b.entry.js → p-b90455f9.entry.js} +1 -1
- package/dist/ptcw-design/{p-23d48cfc.entry.js → p-bc5c72c6.entry.js} +1 -1
- package/dist/ptcw-design/p-bcedf2d6.entry.js +1 -0
- package/dist/ptcw-design/{p-e9506045.entry.js → p-bd7c3586.entry.js} +1 -1
- package/dist/ptcw-design/p-be29d609.entry.js +1 -0
- package/dist/ptcw-design/p-c152b9e3.entry.js +1 -0
- package/dist/ptcw-design/{p-17a8b8e3.entry.js → p-c17a2f3c.entry.js} +1 -1
- package/dist/ptcw-design/{p-96dbabd9.entry.js → p-c5a80410.entry.js} +1 -1
- package/dist/ptcw-design/{p-71788f6d.entry.js → p-c7d46065.entry.js} +1 -1
- package/dist/ptcw-design/p-c95b2603.entry.js +1 -0
- package/dist/ptcw-design/{p-4d9bbf31.entry.js → p-ca8fa3f3.entry.js} +1 -1
- package/dist/ptcw-design/{p-6430ad2e.entry.js → p-cc61eec9.entry.js} +1 -1
- package/dist/ptcw-design/{p-99d44b9b.entry.js → p-cdd46a55.entry.js} +1 -1
- package/dist/ptcw-design/{p-bee9c818.entry.js → p-d2889bb8.entry.js} +1 -1
- package/dist/ptcw-design/{p-362d54d2.entry.js → p-d2eb622e.entry.js} +1 -1
- package/dist/ptcw-design/{p-4e237216.entry.js → p-d37f1d5a.entry.js} +1 -1
- package/dist/ptcw-design/{p-6a3d3888.entry.js → p-d6e4a67d.entry.js} +1 -1
- package/dist/ptcw-design/{p-baaedc25.entry.js → p-d6f1ebbe.entry.js} +1 -1
- package/dist/ptcw-design/p-d75e8fec.entry.js +1 -0
- package/dist/ptcw-design/{p-ecf0f7d4.entry.js → p-dd73e3af.entry.js} +1 -1
- package/dist/ptcw-design/p-dfaa4e99.entry.js +1 -0
- package/dist/ptcw-design/p-e0f04920.entry.js +1 -0
- package/dist/ptcw-design/{p-54708a83.entry.js → p-e19ec1fb.entry.js} +1 -1
- package/dist/ptcw-design/{p-9e0bca7a.entry.js → p-e262f5d8.entry.js} +1 -1
- package/dist/ptcw-design/p-e2df28c0.entry.js +1 -0
- package/dist/ptcw-design/{p-b1d77d16.entry.js → p-e48be26e.entry.js} +1 -1
- package/dist/ptcw-design/p-e73c7698.entry.js +1 -0
- package/dist/ptcw-design/{p-96af9e48.entry.js → p-ea51e7c2.entry.js} +1 -1
- package/dist/ptcw-design/{p-261afbc1.entry.js → p-ea8bdc99.entry.js} +1 -1
- package/dist/ptcw-design/{p-a60d6a4c.entry.js → p-eb9d6227.entry.js} +1 -1
- package/dist/ptcw-design/{p-8594e32b.entry.js → p-ebe80b3e.entry.js} +1 -1
- package/dist/ptcw-design/{p-25fbc2d0.entry.js → p-ed4b9aab.entry.js} +1 -1
- package/dist/ptcw-design/{p-24144029.entry.js → p-f04fd09a.entry.js} +1 -1
- package/dist/ptcw-design/{p-f90c075c.entry.js → p-f078ec7d.entry.js} +1 -1
- package/dist/ptcw-design/{p-2675f0fe.entry.js → p-f9e8439f.entry.js} +1 -1
- package/dist/ptcw-design/{p-44e1cc6e.entry.js → p-fdd9d7de.entry.js} +1 -1
- package/dist/ptcw-design/{p-9e3c7de6.entry.js → p-fe077ba0.entry.js} +1 -1
- package/dist/ptcw-design/{p-d060593a.entry.js → p-ff682ea1.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-button/ptc-button.d.ts +4 -0
- package/dist/types/components.d.ts +10 -2
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/icon-asset_12.cjs.entry.js +0 -1063
- package/dist/cjs/max-width-container.cjs.entry.js +0 -54
- package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +0 -56
- package/dist/esm/icon-asset_12.entry.js +0 -1048
- package/dist/esm/max-width-container.entry.js +0 -50
- package/dist/esm/ptc-text-copy-with-background.entry.js +0 -52
- package/dist/ptcw-design/p-0076bd4d.entry.js +0 -1
- package/dist/ptcw-design/p-02c5454e.entry.js +0 -1
- package/dist/ptcw-design/p-16e0673e.entry.js +0 -1
- package/dist/ptcw-design/p-197d3724.entry.js +0 -1
- package/dist/ptcw-design/p-39d018d6.entry.js +0 -1
- package/dist/ptcw-design/p-4ae0e239.entry.js +0 -1
- package/dist/ptcw-design/p-5150c774.entry.js +0 -1
- package/dist/ptcw-design/p-58b1b9a7.entry.js +0 -1
- package/dist/ptcw-design/p-854c9f75.entry.js +0 -1
- package/dist/ptcw-design/p-85f20e16.entry.js +0 -1
- package/dist/ptcw-design/p-8d44305a.entry.js +0 -1
- package/dist/ptcw-design/p-a32bb7c3.entry.js +0 -1
- package/dist/ptcw-design/p-a6a66ea0.entry.js +0 -1
- package/dist/ptcw-design/p-ac37629c.entry.js +0 -1
- package/dist/ptcw-design/p-b581f151.entry.js +0 -1
- package/dist/ptcw-design/p-d5d4a714.entry.js +0 -1
- package/dist/ptcw-design/p-d624c8ca.entry.js +0 -1
- package/dist/ptcw-design/p-dee85258.entry.js +0 -1
- package/dist/ptcw-design/p-df4be90f.entry.js +0 -1
- package/dist/ptcw-design/p-fe4fdc57.entry.js +0 -1
|
@@ -1,1063 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-4b85b38a.js');
|
|
6
|
-
const utils = require('./utils-03d92070.js');
|
|
7
|
-
|
|
8
|
-
const iconAssetCss = ".svg-inline--fa.sc-icon-asset,svg.sc-icon-asset:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa.sc-icon-asset{display:inline-block;font-size:inherit;height:1em;vertical-align:-.125em}.svg-inline--fa.fa-lg.sc-icon-asset{vertical-align:-.225em}.svg-inline--fa.fa-w-1.sc-icon-asset{width:.0625em}.svg-inline--fa.fa-w-2.sc-icon-asset{width:.125em}.svg-inline--fa.fa-w-3.sc-icon-asset{width:.1875em}.svg-inline--fa.fa-w-4.sc-icon-asset{width:.25em}.svg-inline--fa.fa-w-5.sc-icon-asset{width:.3125em}.svg-inline--fa.fa-w-6.sc-icon-asset{width:.375em}.svg-inline--fa.fa-w-7.sc-icon-asset{width:.4375em}.svg-inline--fa.fa-w-8.sc-icon-asset{width:.5em}.svg-inline--fa.fa-w-9.sc-icon-asset{width:.5625em}.svg-inline--fa.fa-w-10.sc-icon-asset{width:.625em}.svg-inline--fa.fa-w-11.sc-icon-asset{width:.6875em}.svg-inline--fa.fa-w-12.sc-icon-asset{width:.75em}.svg-inline--fa.fa-w-13.sc-icon-asset{width:.8125em}.svg-inline--fa.fa-w-14.sc-icon-asset{width:.875em}.svg-inline--fa.fa-w-15.sc-icon-asset{width:.9375em}.svg-inline--fa.fa-w-16.sc-icon-asset{width:1em}.svg-inline--fa.fa-w-17.sc-icon-asset{width:1.0625em}.svg-inline--fa.fa-w-18.sc-icon-asset{width:1.125em}.svg-inline--fa.fa-w-19.sc-icon-asset{width:1.1875em}.svg-inline--fa.fa-w-20.sc-icon-asset{width:1.25em}.svg-inline--fa.fa-pull-left.sc-icon-asset{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right.sc-icon-asset{margin-left:.3em;width:auto}.svg-inline--fa.fa-border.sc-icon-asset{height:1.5em}.svg-inline--fa.fa-li.sc-icon-asset{width:2em}.svg-inline--fa.fa-fw.sc-icon-asset{width:1.25em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers.sc-icon-asset{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset,.fa-layers-text.sc-icon-asset{display:inline-block;position:absolute;text-align:center}.fa-layers-text.sc-icon-asset{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset{background-color:#ff253a;border-radius:1em;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;height:1.5em;line-height:1;max-width:5em;min-width:1.5em;overflow:hidden;padding:.25em;right:0;text-overflow:ellipsis;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right.sc-icon-asset{bottom:0;right:0;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left.sc-icon-asset{bottom:0;left:0;right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right.sc-icon-asset{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left.sc-icon-asset{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg.sc-icon-asset{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs.sc-icon-asset{font-size:.75em}.fa-sm.sc-icon-asset{font-size:.875em}.fa-1x.sc-icon-asset{font-size:1em}.fa-2x.sc-icon-asset{font-size:2em}.fa-3x.sc-icon-asset{font-size:3em}.fa-4x.sc-icon-asset{font-size:4em}.fa-5x.sc-icon-asset{font-size:5em}.fa-6x.sc-icon-asset{font-size:6em}.fa-7x.sc-icon-asset{font-size:7em}.fa-8x.sc-icon-asset{font-size:8em}.fa-9x.sc-icon-asset{font-size:9em}.fa-10x.sc-icon-asset{font-size:10em}.fa-fw.sc-icon-asset{text-align:center;width:1.25em}.fa-ul.sc-icon-asset{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul.sc-icon-asset>li.sc-icon-asset{position:relative}.fa-li.sc-icon-asset{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border.sc-icon-asset{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left.sc-icon-asset{float:left}.fa-pull-right.sc-icon-asset{float:right}.fa.fa-pull-left.sc-icon-asset,.fab.fa-pull-left.sc-icon-asset,.fal.fa-pull-left.sc-icon-asset,.far.fa-pull-left.sc-icon-asset,.fas.fa-pull-left.sc-icon-asset{margin-right:.3em}.fa.fa-pull-right.sc-icon-asset,.fab.fa-pull-right.sc-icon-asset,.fal.fa-pull-right.sc-icon-asset,.far.fa-pull-right.sc-icon-asset,.fas.fa-pull-right.sc-icon-asset{margin-left:.3em}.fa-spin.sc-icon-asset{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse.sc-icon-asset{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical.sc-icon-asset{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset,.fa-flip-vertical.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\"}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset{-webkit-transform:scale(-1);transform:scale(-1)}.sc-icon-asset:root .fa-flip-both.sc-icon-asset,.sc-icon-asset:root .fa-flip-horizontal.sc-icon-asset,.sc-icon-asset:root .fa-flip-vertical.sc-icon-asset,.sc-icon-asset:root .fa-rotate-90.sc-icon-asset,.sc-icon-asset:root .fa-rotate-180.sc-icon-asset,.sc-icon-asset:root .fa-rotate-270.sc-icon-asset{-webkit-filter:none;filter:none}.fa-stack.sc-icon-asset{display:inline-block;height:2em;position:relative;width:2.5em}.fa-stack-1x.sc-icon-asset,.fa-stack-2x.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x.sc-icon-asset{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x.sc-icon-asset{height:2em;width:2.5em}.fa-inverse.sc-icon-asset{color:#fff}.sr-only.sc-icon-asset{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable.sc-icon-asset:active,.sr-only-focusable.sc-icon-asset:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.svg-inline--fa.sc-icon-asset .fa-primary.sc-icon-asset{fill:var(--fa-primary-color,currentColor);opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset{fill:var(--fa-secondary-color,currentColor)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset,.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-primary.sc-icon-asset{opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-secondary.sc-icon-asset{opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-primary.sc-icon-asset,.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-secondary.sc-icon-asset{fill:#000}.fad.fa-inverse.sc-icon-asset{color:#fff}h1.sc-icon-asset,h2.sc-icon-asset,h3.sc-icon-asset,h4.sc-icon-asset,h5.sc-icon-asset,h6.sc-icon-asset,p.sc-icon-asset,ul.sc-icon-asset,li.sc-icon-asset,ptc-subnav.sc-icon-asset,ptc-tab-list.sc-icon-asset,ptc-link.sc-icon-asset,ptc-square-card.sc-icon-asset{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-icon-asset,h2.sc-icon-asset,h3.sc-icon-asset,h4.sc-icon-asset,h5.sc-icon-asset,h6.sc-icon-asset,p.sc-icon-asset,ul.sc-icon-asset,li.sc-icon-asset,ptc-subnav.sc-icon-asset,ptc-tab-list.sc-icon-asset,ptc-link.sc-icon-asset,ptc-square-card.sc-icon-asset{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}}icon-asset.sc-icon-asset{vertical-align:middle}svg.sc-icon-asset{transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}svg.micro.sc-icon-asset{width:calc(var(--ptc-font-size-x-small) / 2);height:calc(var(--ptc-font-size-x-small) / 2)}svg.xxx-small.sc-icon-asset{width:var(--ptc-font-size-xxx-small);height:var(--ptc-font-size-xxx-small)}svg.xx-small.sc-icon-asset{width:var(--ptc-font-size-xx-small);height:var(--ptc-font-size-xx-small)}svg.x-small.sc-icon-asset{width:var(--ptc-font-size-x-small);height:var(--ptc-font-size-x-small)}svg.small.sc-icon-asset{width:var(--ptc-font-size-small);height:var(--ptc-font-size-small)}svg.medium.sc-icon-asset{width:var(--ptc-font-size-medium);height:var(--ptc-font-size-medium)}svg.large.sc-icon-asset{width:var(--ptc-font-size-large);height:var(--ptc-font-size-large)}svg.x-large.sc-icon-asset{width:var(--ptc-font-size-x-large);height:var(--ptc-font-size-x-large)}svg.xx-large.sc-icon-asset{width:var(--ptc-font-size-xx-large);height:var(--ptc-font-size-xx-large)}svg.xxx-large.sc-icon-asset{width:var(--ptc-font-size-xxx-large);height:var(--ptc-font-size-xxx-large)}svg.xxxx-large.sc-icon-asset{width:var(--ptc-font-size-xxxx-large);height:var(--ptc-font-size-xxxx-large)}svg.white.sc-icon-asset{fill:var(--color-white)}svg.white.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.white.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.white.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-white)}svg.black.sc-icon-asset{fill:var(--color-black)}svg.black.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.black.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.black.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-black)}svg.ptc-green.sc-icon-asset{fill:var(--color-green-07)}svg.ptc-green.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.ptc-green.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.ptc-green.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-green-07)}svg.gray.sc-icon-asset{fill:var(--color-gray-06)}svg.gray.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.gray.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.gray.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-06)}svg.light-gray.sc-icon-asset{fill:var(--color-gray-05)}svg.light-gray.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.light-gray.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.light-gray.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-05)}svg.primary-gray.sc-icon-asset{fill:var(--color-gray-10)}svg.inherit.sc-icon-asset{fill:inherit}svg.inherit.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:inherit}";
|
|
9
|
-
|
|
10
|
-
const IconAsset = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
this.regularSprite = index.getAssetPath('./media/regular.svg');
|
|
14
|
-
this.solidSprite = index.getAssetPath('./media/solid.svg');
|
|
15
|
-
this.brandSprite = index.getAssetPath('./media/brands.svg');
|
|
16
|
-
this.ptcSprite = index.getAssetPath('./media/designer.svg');
|
|
17
|
-
this.name = undefined;
|
|
18
|
-
this.size = 'xx-small';
|
|
19
|
-
this.type = 'regular';
|
|
20
|
-
this.spin = '';
|
|
21
|
-
this.pulse = '';
|
|
22
|
-
this.color = 'default';
|
|
23
|
-
this.isMobileSelect = undefined;
|
|
24
|
-
this.injectedStyle = undefined;
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
const classMap = this.getCssClassMap();
|
|
28
|
-
if (this.type == 'brands') {
|
|
29
|
-
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.brandSprite}#${this.name}` }))));
|
|
30
|
-
}
|
|
31
|
-
else if (this.type == 'solid') {
|
|
32
|
-
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.solidSprite}#${this.name}` }))));
|
|
33
|
-
}
|
|
34
|
-
else if (this.type == 'ptc') {
|
|
35
|
-
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.ptcSprite}#${this.name}` }))));
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.regularSprite}#${this.name}` }))));
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
getCssClassMap() {
|
|
42
|
-
return {
|
|
43
|
-
[this.size]: true,
|
|
44
|
-
[this.spin]: true,
|
|
45
|
-
[this.pulse]: true,
|
|
46
|
-
[this.color]: true,
|
|
47
|
-
['ismobileselect']: this.isMobileSelect ? true : false
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
static get assetsDirs() { return ["media"]; }
|
|
51
|
-
};
|
|
52
|
-
IconAsset.style = iconAssetCss;
|
|
53
|
-
|
|
54
|
-
const listItemCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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(.list-primary){display:block}:host(.flush-before) li::before{content:\"\" !important}:host(.breadcrumb){display:inline-block}:host(.breadcrumb) li{position:relative;display:inline-block;color:var(--color-white);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-xxx-small);line-height:var(--ptc-line-height-densest);display:flex;align-items:baseline}:host(.breadcrumb) li::before{content:\"/\";top:0;left:0;margin-left:2px}:host(.breadcrumb) li a.item-link{color:var(--color-white);font-weight:var(--ptc-font-weight-bold) !important;font-size:var(--ptc-font-size-xxx-small) !important;line-height:var(--ptc-line-height-densest);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:2px;text-decoration-thickness:1px;outline:none;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.breadcrumb) li a.item-link:hover{text-decoration:underline;text-decoration-color:var(--color-green-07);outline:none}:host(.breadcrumb-center) li{display:inline}:host(.list-green){display:block;margin-bottom:16px}:host(.list-green) li a{font-size:var(--ptc-font-size-xx-small);color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:1.5px;text-decoration-color:var(--color-green-04);font-weight:var(--ptc-font-weight-bold);transition:color var(--ptc-transition-medium) var(--ptc-ease-inout);line-height:var(--ptc-line-height-p);text-underline-offset:4px}:host(.list-green) li a:hover{color:var(--color-green-04)}:host(:not(.flush-before)) li::before{margin-right:2px}:host(.list-footer) li{display:inline-block;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-regular);font-style:normal;font-stretch:normal;line-height:var(--ptc-line-height-denser);letter-spacing:normal;color:var(--color-white);margin:0 0.5rem}:host(.list-footer) li a{color:var(--color-white-grey);border-bottom:1px solid transparent;display:inline-block;text-decoration:none}:host(.list-footer) li a:hover,:host(.list-footer) li a:focus,:host(.list-footer) li a:active{text-decoration:none;border-bottom:1px solid var(--color-green-06);color:var(--color-white-grey);transition:border var(--ptc-ease-inout) var(--ptc-transition-medium)}:host(.list-footer) li a:focus{outline:3px solid var(--color-blue-07);outline-offset:2px;border-radius:var(--ptc-border-radius-standard);text-decoration:none;border-color:transparent !important}:host(.white) li{color:var(--color-white)}:host(.white) li a.item-link{color:var(--color-white)}:host(.light-gray) li{color:var(--color-gray-01)}:host(.light-gray) li a.item-link{color:var(--color-gray-01)}:host(.primary-gray) li{color:var(--color-gray-10)}:host(.primary-gray) li a.item-link{color:var(--color-gray-10)}:host(.list-underline) li{color:var(--color-gray-10);list-style:none;text-decoration:underline 1px solid;text-underline-offset:2px;line-height:var(--ptc-line-height-p)}:host(.list-underline) li a{display:inline-block;padding:4px 0}:host(.list-underline) li a.item-link{color:var(--color-gray-10)}:host li .has-before-home-icon{display:block}@media only screen and (min-width: 480px){:host li .has-before-home-icon{display:none}}";
|
|
55
|
-
|
|
56
|
-
const ListItem = class {
|
|
57
|
-
constructor(hostRef) {
|
|
58
|
-
index.registerInstance(this, hostRef);
|
|
59
|
-
this.listType = 'list-primary';
|
|
60
|
-
this.linkHref = undefined;
|
|
61
|
-
this.flushBefore = false;
|
|
62
|
-
this.linkTarget = '_self';
|
|
63
|
-
this.hasBeforeHomeIcon = false;
|
|
64
|
-
this.color = undefined;
|
|
65
|
-
this.styles = undefined;
|
|
66
|
-
this.ariaLabel = '';
|
|
67
|
-
}
|
|
68
|
-
render() {
|
|
69
|
-
const classMap = this.getCssClassMap();
|
|
70
|
-
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("li", null, this.linkHref ? (index.h("a", Object.assign({ class: "item-link", target: this.linkTarget }, (this.linkHref ? { href: this.linkHref } : {}), (this.ariaLabel !== '' ? { 'aria-label': this.ariaLabel } : {})), index.h("slot", null))) : (index.h("slot", null)))));
|
|
71
|
-
}
|
|
72
|
-
getCssClassMap() {
|
|
73
|
-
let bcEnable = false;
|
|
74
|
-
if (this.hostElement && this.hostElement.parentElement) {
|
|
75
|
-
try {
|
|
76
|
-
bcEnable = (this.hostElement.parentElement.classList.contains('center') && this.hostElement.parentElement.tagName === 'PTC-BREADCRUMB');
|
|
77
|
-
}
|
|
78
|
-
catch (err) {
|
|
79
|
-
console.log(err);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
[this.listType]: true,
|
|
84
|
-
['flush-before']: this.flushBefore ? true : false,
|
|
85
|
-
[this.color]: !!this.color ? true : false,
|
|
86
|
-
['breadcrumb-center']: bcEnable
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
get hostElement() { return index.getElement(this); }
|
|
90
|
-
};
|
|
91
|
-
ListItem.style = listItemCss;
|
|
92
|
-
|
|
93
|
-
const ptcButtonCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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}}button.disabled{pointer-events:none;opacity:0.6}button{background-color:var(--color-gray-10);display:inline-block;border-style:solid;border-width:1px;white-space:normal;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;padding:9.4px 17.5px;border-radius:var(--ptc-border-radius-standard)}button.reveal-down .content{transition:opacity var(--ptc-transition-medium) var(--ptc-ease-out);opacity:0;font-size:var(--ptc-font-size-xx-small)}button.reveal-down .icon-wrapper{position:relative;display:flex;align-items:center;justify-content:center;align-content:center;height:16px}button.reveal-down .icon-wrapper .icon{transition:top var(--ptc-transition-fast) var(--ptc-ease-out);position:absolute;display:inline-block;top:-12px}button:hover.reveal-down .content{opacity:1}button:hover.reveal-down .icon-wrapper .icon{top:4px}button.animation-right ::slotted([slot=slot-after-text]),button.animation-right ::slotted([slot=slot-before-text]),button.animation-down ::slotted([slot=slot-after-text]),button.animation-down ::slotted([slot=slot-before-text]){transition:transform var(--ptc-transition-medium) var(--ptc-ease-inout);position:relative;display:inline-block}button:hover.animation-right ::slotted([slot=slot-after-text]),button:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}button:hover.animation-down ::slotted([slot=slot-after-text]),button:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}button span{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:bold;line-height:var(--ptc-line-height-densest)}button.left{text-align:left}button.right{text-align:right}button.center{text-align:center}.icon-left ::slotted([slot=slot-before-text]){margin-right:var(--ptc-element-spacing-01)}.icon-right ::slotted([slot=slot-after-text]){margin-left:var(--ptc-element-spacing-01)}.blackgrey{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-gray-10);background-image:linear-gradient(285deg, var(--color-gray-10) 155%, var(--color-gray-07) 62%)}.blackgrey:hover{box-shadow:var(--ptc-shadow-x-large)}.blackgrey span{color:var(--color-white)}.turtlegreen{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-green-07);background-image:linear-gradient(285deg, var(--color-green-07) 155%, var(--color-green-07) 62%)}.turtlegreen:hover{box-shadow:var(--ptc-shadow-x-large)}.turtlegreen span{color:var(--color-white)}.offwhite{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-gray-10);background-image:linear-gradient(to right, var(--color-white), var(--color-gray-02), var(--color-gray-01))}.offwhite:hover{box-shadow:var(--ptc-shadow-x-large)}.offwhite span{color:var(--color-gray-10)}.legacy-green{margin-left:10px;padding:10px 20px;margin-bottom:var(--ptc-element-spacing-01);margin-top:var(--ptc-element-spacing-01);box-shadow:var(--ptc-shadow-large);border:solid 2.5px var(--color-green-08);background-image:linear-gradient(to right, var(--color-green-06), var(--color-green-08))}.legacy-green:after{position:absolute;content:\"\";top:-1px;left:0;bottom:0;right:0;width:100%;height:103%;background-image:linear-gradient(to right, var(--color-green-08), var(--color-green-06));opacity:0;transition:opacity var(--ptc-transition-x-slow) var(--ptc-ease-inout);border-radius:2px}.legacy-green:hover{box-shadow:var(--ptc-shadow-x-large)}.legacy-green:hover span{color:var(--color-white)}.legacy-green:hover:after{opacity:1}.legacy-green span{font-family:var(--ptc-font-secondary-latin);color:var(--color-white);z-index:100;position:relative;text-transform:uppercase;font-weight:var(--ptc-font-weight-bold);letter-spacing:var(--ptc-letter-spacing-normal);font-size:var(--ptc-font-size-x-small)}@media only screen and (min-width: 768px){.legacy-green span{font-size:var(--ptc-font-size-small);letter-spacing:var(--ptc-letter-spacing-loose)}}.legacy-green icon-asset{display:inline}a{border-style:solid;border-width:1px;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding:9.4px 17.5px;border-radius:var(--ptc-border-radius-standard);display:inline-block;position:relative}a.animation-right ::slotted([slot=slot-after-text]),a.animation-right ::slotted([slot=slot-before-text]),a.animation-down ::slotted([slot=slot-after-text]),a.animation-down ::slotted([slot=slot-before-text]){transition:all var(--ptc-ease-inout) var(--ptc-transition-medium);position:relative;display:inline-block;margin-left:5px}a:hover.animation-right ::slotted([slot=slot-after-text]),a:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}a:hover.animation-down ::slotted([slot=slot-after-text]),a:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}a.left{text-align:left}a.right{text-align:right}a.center{text-align:center}.nav{font-family:var(--ptc-font-latin);background-color:var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);border:1px solid var(--color-white);border-bottom-style:solid;border-bottom-width:1px;box-sizing:border-box;color:var(--color-white);display:inline-block;font-size:var(--ptc-font-size-xx-small);font-stretch:100%;font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-loose);list-style:none;padding:3px var(--ptc-element-spacing-04);position:relative;text-align:center;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;transition:background-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.nav:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}.nav:hover{background-color:var(--color-gray-12)}.ptc-primary,.ptc-quaternary,.ptc-secondary,.ptc-tertiary,.icon-toggle{padding:var(--ptc-font-size-xx-small) var(--ptc-font-size-medium);transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium);line-height:20px}.ptc-primary.disabled,.ptc-quaternary.disabled,.ptc-secondary.disabled,.ptc-tertiary.disabled,.icon-toggle.disabled{pointer-events:none;border-color:var(--color-gray-03);background:var(--color-gray-02)}.ptc-primary.disabled span,.ptc-quaternary.disabled span,.ptc-secondary.disabled span,.ptc-tertiary.disabled span,.icon-toggle.disabled span{color:var(--color-gray-03)}.ptc-primary.disabled ::slotted([slot=slot-after-text]),.ptc-quaternary.disabled ::slotted([slot=slot-after-text]),.ptc-secondary.disabled ::slotted([slot=slot-after-text]),.ptc-tertiary.disabled ::slotted([slot=slot-after-text]),.icon-toggle.disabled ::slotted([slot=slot-after-text]){fill:var(--color-gray-03) !important}.ptc-primary:focus,.ptc-quaternary:focus,.ptc-secondary:focus,.ptc-tertiary:focus,.icon-toggle:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}.ptc-primary span,.ptc-quaternary span,.ptc-secondary span,.ptc-tertiary span,.icon-toggle span{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-densest);letter-spacing:normal}.ptc-primary.small,.ptc-quaternary.small,.ptc-secondary.small,.ptc-tertiary.small,.icon-toggle.small{padding:var(--ptc-element-spacing-03) var(--ptc-element-spacing-04)}.ptc-primary.small span,.ptc-quaternary.small span,.ptc-secondary.small span,.ptc-tertiary.small span,.icon-toggle.small span{font-size:var(--ptc-font-size-xx-small)}.ptc-primary.medium,.ptc-quaternary.medium,.ptc-secondary.medium,.ptc-tertiary.medium,.icon-toggle.medium{padding:14px 20px}.ptc-primary.medium span,.ptc-quaternary.medium span,.ptc-secondary.medium span,.ptc-tertiary.medium span,.icon-toggle.medium span{font-size:var(--ptc-font-size-small)}.ptc-primary.large,.ptc-quaternary.large,.ptc-secondary.large,.ptc-tertiary.large,.icon-toggle.large{padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06)}.ptc-primary.large span,.ptc-quaternary.large span,.ptc-secondary.large span,.ptc-tertiary.large span,.icon-toggle.large span{font-size:var(--ptc-font-size-large)}.ptc-primary{background:var(--color-gray-12);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-primary:hover{background-color:var(--color-gray-10)}.ptc-primary:active{background-color:var(--color-black)}.ptc-primary span{color:var(--color-white)}.ptc-primary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-secondary{background:var(--color-gray-12);border:2px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-standard)}.ptc-secondary:hover{background-color:var(--color-gray-10)}.ptc-secondary:active{background-color:var(--color-black)}.ptc-secondary span{color:var(--color-white)}.ptc-secondary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-tertiary{background:var(--color-white);border:2px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard)}.ptc-tertiary:hover{background-color:var(--color-gray-02)}.ptc-tertiary:active{background-color:var(--color-gray-03)}.ptc-tertiary span{color:var(--color-gray-10)}.ptc-tertiary ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.ptc-quaternary{background:var(--color-green-07);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-quaternary:hover{background-color:var(--color-green-08)}.ptc-quaternary:active{background-color:var(--color-green-09)}.ptc-quaternary span{color:var(--color-white)}.ptc-quaternary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.icon-toggle{background:var(--color-white);border:1px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);padding:0;height:2.125rem;width:2.125rem;box-shadow:var(--ptc-shadow-medium)}.icon-toggle:hover{background-color:var(--color-gray-02)}.icon-toggle:active{background-color:var(--color-gray-03)}.icon-toggle.active{background-color:var(--color-gray-04)}.icon-toggle.active:hover{background-color:var(--color-gray-05)}.icon-toggle.active:active{background-color:var(--color-gray-03)}.icon-toggle:focus{outline:2px solid var(--color-blue-07);outline-offset:1px}.icon-toggle span{color:var(--color-gray-10);padding:0}.icon-toggle ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.icon-toggle ::slotted(icon-asset){display:block;margin:auto;height:18px;width:18px}.clear-search{border:none;padding:0px;line-height:var(----ptc-line-height-densest);background-color:transparent}.clear-search:hover{text-decoration:underline;text-decoration-color:var(--color-white)}.clear-search span{color:var(--color-white);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-x-small);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}";
|
|
94
|
-
|
|
95
|
-
const PtcButton = class {
|
|
96
|
-
constructor(hostRef) {
|
|
97
|
-
index.registerInstance(this, hostRef);
|
|
98
|
-
this.clickEvent = index.createEvent(this, "clickEvent", 7);
|
|
99
|
-
this.disabled = false;
|
|
100
|
-
this.active = false;
|
|
101
|
-
this.type = 'button';
|
|
102
|
-
this.color = 'ptc-primary';
|
|
103
|
-
this.iconAnimation = '';
|
|
104
|
-
this.iconPosition = 'icon-right';
|
|
105
|
-
this.linkHref = undefined;
|
|
106
|
-
this.linkTitle = undefined;
|
|
107
|
-
this.target = '_self';
|
|
108
|
-
this.rel = undefined;
|
|
109
|
-
this.tabNav = 0;
|
|
110
|
-
this.styles = undefined;
|
|
111
|
-
this.textAlign = undefined;
|
|
112
|
-
this.size = undefined;
|
|
113
|
-
this.buttonTitle = undefined;
|
|
114
|
-
this.ariaLabel = '';
|
|
115
|
-
this.seoCompatibilityMode = false;
|
|
116
|
-
}
|
|
117
|
-
clickEventHandler() {
|
|
118
|
-
this.clickEvent.emit();
|
|
119
|
-
}
|
|
120
|
-
seoCompRender() {
|
|
121
|
-
const classMap = this.getCssClassMap();
|
|
122
|
-
const Tag = !!this.linkHref ? 'a' : 'button';
|
|
123
|
-
const [TagType, firstChild] = utils.getSeoTagType(this.el, Tag);
|
|
124
|
-
const html = firstChild && firstChild.innerHTML;
|
|
125
|
-
if (this.el == firstChild) {
|
|
126
|
-
this.el.innerHTML = '';
|
|
127
|
-
}
|
|
128
|
-
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h(TagType, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.linkHref ? { title: this.linkTitle ? this.linkTitle : this.linkHref } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 }), { title: this.buttonTitle }, (this.ariaLabel !== '' ? { ariaLabel: this.ariaLabel } : {})), index.h("span", { innerHTML: html }, index.h("slot", { name: "slot-before-text" }), index.h("slot", { name: "slot-after-text" })))));
|
|
129
|
-
}
|
|
130
|
-
standardRender() {
|
|
131
|
-
const classMap = this.getCssClassMap();
|
|
132
|
-
const Tag = !!this.linkHref ? 'a' : 'button';
|
|
133
|
-
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h(Tag, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.linkHref ? { title: this.linkTitle ? this.linkTitle : this.linkHref } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 }), { title: this.buttonTitle }, (this.ariaLabel !== '' ? { ariaLabel: this.ariaLabel } : {})), this.iconAnimation == 'reveal-down' ?
|
|
134
|
-
index.h("span", null, index.h("div", { class: "content" }, index.h("slot", null)), index.h("div", { class: "icon-wrapper" }, index.h("div", { class: "icon" }, index.h("slot", { name: "slot-after-text" })))) :
|
|
135
|
-
index.h("span", null, index.h("slot", { name: "slot-before-text" }), index.h("slot", null), index.h("slot", { name: "slot-after-text" })))));
|
|
136
|
-
}
|
|
137
|
-
render() {
|
|
138
|
-
if (this.seoCompatibilityMode) {
|
|
139
|
-
return this.seoCompRender();
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
return this.standardRender();
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
getCssClassMap() {
|
|
146
|
-
return {
|
|
147
|
-
[this.color]: true,
|
|
148
|
-
[this.iconAnimation]: true,
|
|
149
|
-
[this.iconPosition]: true,
|
|
150
|
-
['disabled']: this.disabled ? true : false,
|
|
151
|
-
['active']: this.active ? true : false,
|
|
152
|
-
[this.textAlign]: true,
|
|
153
|
-
[this.size]: true
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
get el() { return index.getElement(this); }
|
|
157
|
-
};
|
|
158
|
-
PtcButton.style = ptcButtonCss;
|
|
159
|
-
|
|
160
|
-
const ptcLinkCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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}.disabled{pointer-events:none;cursor:default;text-decoration:none}.ptc-link{display:inline-block;color:var(--color-gray-10);font-weight:var(--ptc-font-weight-extrabold);position:relative;line-height:var(--ptc-line-height-densest);outline:none;text-decoration:none;transition:color var(--ptc-transition-fast) var(--ptc-ease-inout)}.simple{text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--color-green-06);text-decoration-thickness:2px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.simple:hover{color:var(--color-green-06);transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.global{font-style:var(--ptc-letter-spacing-normal);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-x-small);text-decoration-line:underline;color:var(--color-hyperlink);transition:color var(--ptc-transition-medium) var(--ptc-ease-out)}.global:visited{color:var(--color-blue-10)}.global:active,.global:visited:active{color:var(--color-blue-09)}.global:hover,.global:visited:hover{color:var(--color-blue-08)}.global.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}.product-link{font-weight:var(--ptc-font-weight-extrabold);text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--color-green-06);text-decoration-thickness:2px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.product-link:hover{color:var(--color-green-06);transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.underline{border-bottom:2px solid var(--color-green-06)}.underline:hover{color:#00890B;border-bottom:2px solid #00890B}.small{font-size:var(--ptc-font-size-xx-small)}.medium{font-size:var(--ptc-font-size-x-small)}.medium-large{font-size:var(--ptc-font-size-small)}.large{font-size:var(--ptc-font-size-medium)}.nav-title:focus,.nav-title-link:focus,.nav-card-link:focus,.primary-nav-link:focus,.secondary-nav-link:focus,.footer-nav-link:focus,.copyright-link:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}.nav-title{box-sizing:border-box;color:var(--color-white);display:inline-block;font-size:var(--ptc-font-size-x-small);font-stretch:100%;font-weight:var(--ptc-font-weight-extrabold);letter-spacing:var(--ptc-letter-spacing-normal);line-height:var(--ptc-line-height-dense);list-style:none;margin-bottom:var(--ptc-element-spacing-02);text-align:left}.primary-nav-link{background-color:transparent;box-sizing:border-box;color:var(--color-gray-01);display:inline-block;font-size:var(--ptc-font-size-x-small);font-stretch:100%;font-weight:var(--ptc-font-weight-extrabold);letter-spacing:var(--ptc-letter-spacing-normal);line-height:var(--ptc-line-height-dense);list-style:none;margin:var(--ptc-element-spacing-01) var(--ptc-element-spacing-03);padding:var(--ptc-element-spacing-02) var(--ptc-element-spacing-06);position:relative;text-decoration:none;transition:background-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.primary-nav-link:hover{border-radius:var(--ptc-border-radius-standard);background-color:var(--color-gray-12);text-decoration:none;outline:none}.nav-title-link{background-color:transparent;box-sizing:border-box;color:var(--color-white);font-size:var(--ptc-font-size-xxx-small);font-stretch:100%;font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-densest);list-style:none;text-align:left;text-decoration-color:var(--color-white);text-decoration:none;transition:border-color var(--ptc-transition-medium) var(--ptc-ease-inout);border-bottom:1.5px solid transparent;display:inline-block}.nav-title-link:hover{color:var(--color-white);border-bottom:1.5px solid var(--color-green-06)}.nav-card-link{background-color:transparent;box-sizing:border-box;color:var(--color-white);font-stretch:100%;font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-densest);list-style:none;text-align:left;text-decoration:none;text-decoration-color:var(--color-white);transition:border-color var(--ptc-transition-medium) var(--ptc-ease-inout);display:inline-block;font-size:var(--ptc-font-size-small)}@media only screen and (min-width: 1200px){.nav-card-link{font-size:var(--ptc-font-size-xxx-small)}}.nav-card-link:hover{color:var(--color-white);text-decoration:underline var(--color-green-06) solid 1px;text-underline-offset:2px}.secondary-nav-link{display:inline-block;background-color:transparent;box-sizing:border-box;color:var(--color-white);font-size:var(--ptc-font-size-xxx-small);font-stretch:100%;font-style:normal;font-weight:var(--ptc-font-weight-semibold);letter-spacing:var(--ptc-letter-spacing-normal);line-height:var(--ptc-line-height-densest);list-style:none;margin-bottom:var(--ptc-element-spacing-03);text-align:left;text-decoration:none;transition:border-color var(--ptc-transition-medium) var(--ptc-ease-inout);border-bottom:1.5px solid transparent;white-space:nowrap}.secondary-nav-link:hover{color:var(--color-white);border-bottom:1.5px solid var(--color-green-06);border-radius:0;text-decoration:none}.footer-nav-link{color:var(--color-white);transition:border var(--ptc-transition-medium) var(--ptc-ease-inout), color var(--ptc-transition-medium) var(--ptc-ease-inout);border-bottom:1px solid transparent;outline:none;text-decoration:none;font-weight:var(--ptc-font-weight-semibold);letter-spacing:var(--ptc-letter-spacing-normal);line-height:var(--ptc-line-height-densest);text-align:left;font-size:var(--ptc-font-size-x-small)}.footer-nav-link:hover{outline:none;text-decoration:none;border-bottom:0.1rem solid var(--color-green-06);color:var(--color-green-06)}.copyright-link{color:var(--color-white);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-normal);line-height:var(--ptc-line-height-loose);display:inline-block}.d-green-underline{color:var(--color-white);font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-densest);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)}.d-green-underline:hover{color:var(--color-green-06)}.d-white-underline{color:var(--color-white);font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-densest);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-white);text-underline-offset:5px}.link-area-cover-parent{position:static}.link-area-cover-parent::after{content:\"\";position:absolute;width:100%;height:100%;inset:0;z-index:2}.standard-link,.blog-link{font-weight:800;line-height:1;display:flex;align-items:center;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)}.standard-link:hover,.blog-link:hover{color:var(--color-green-06)}.w-thin{font-weight:var(--ptc-font-weight-thin)}.w-regular{font-weight:var(--ptc-font-weight-regular)}.w-medium{font-weight:var(--ptc-font-weight-medium)}.w-semibold{font-weight:var(--ptc-font-weight-semibold)}.w-bold{font-weight:var(--ptc-font-weight-bold)}.w-extrabold{font-weight:var(--ptc-font-weight-extrabold)}.w-black{font-weight:var(--ptc-font-weight-black)}.utility-nav-link{background-color:transparent;box-sizing:border-box;color:var(--color-gray-13);font-stretch:100%;font-weight:var(--ptc-font-weight-semibold);line-height:var(--ptc-line-height-densest);list-style:none;text-align:left;text-decoration:none;text-decoration-color:var(--color-green-06);transition:border-color var(--ptc-transition-medium) var(--ptc-ease-inout);display:inline-block;font-size:var(--ptc-font-size-x-small)}.utility-nav-link:hover{text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--color-green-06);text-decoration-thickness:2px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}";
|
|
161
|
-
|
|
162
|
-
const PtcLink = class {
|
|
163
|
-
constructor(hostRef) {
|
|
164
|
-
index.registerInstance(this, hostRef);
|
|
165
|
-
this.disabled = false;
|
|
166
|
-
this.external = false;
|
|
167
|
-
this.href = undefined;
|
|
168
|
-
this.target = '_self';
|
|
169
|
-
this.linkTitle = undefined;
|
|
170
|
-
this.theme = 'simple';
|
|
171
|
-
this.fontSize = 'medium';
|
|
172
|
-
this.fontWeight = undefined;
|
|
173
|
-
this.linkArea = undefined;
|
|
174
|
-
this.seoCompatibilityMode = false;
|
|
175
|
-
this.styles = undefined;
|
|
176
|
-
}
|
|
177
|
-
seoCompRender() {
|
|
178
|
-
const classMap = this.getCssClassMap();
|
|
179
|
-
const [TagType, firstChild] = utils.getSeoTagType(this.el, "a");
|
|
180
|
-
const html = firstChild && firstChild.innerHTML;
|
|
181
|
-
if (this.el == firstChild) {
|
|
182
|
-
this.el.innerHTML = '';
|
|
183
|
-
}
|
|
184
|
-
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h(TagType, { class: classMap, innerHTML: html, href: this.href, target: this.external ? '_blank' : this.target, title: this.linkTitle }, index.h("slot", null))));
|
|
185
|
-
}
|
|
186
|
-
standardRender() {
|
|
187
|
-
const classMap = this.getCssClassMap();
|
|
188
|
-
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("a", { class: classMap, href: this.href, target: this.external ? '_blank' : this.target, title: this.linkTitle }, index.h("slot", null))));
|
|
189
|
-
}
|
|
190
|
-
// render() {
|
|
191
|
-
// const classMap = this.getCssClassMap();
|
|
192
|
-
// return (
|
|
193
|
-
// <Host>
|
|
194
|
-
// {this.styles && <style>{this.styles}</style>}
|
|
195
|
-
// <a class={classMap} href={this.href} target={this.external ? '_blank' : this.target} title={this.linkTitle}>
|
|
196
|
-
// <slot></slot>
|
|
197
|
-
// </a>
|
|
198
|
-
// </Host>
|
|
199
|
-
// );
|
|
200
|
-
// }
|
|
201
|
-
render() {
|
|
202
|
-
if (this.seoCompatibilityMode) {
|
|
203
|
-
return this.seoCompRender();
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
return this.standardRender();
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
getCssClassMap() {
|
|
210
|
-
const classOptions = [
|
|
211
|
-
'simple',
|
|
212
|
-
'underline',
|
|
213
|
-
'nav-title',
|
|
214
|
-
'primary-nav-link',
|
|
215
|
-
'nav-title-link',
|
|
216
|
-
'nav-card-link',
|
|
217
|
-
'secondary-nav-link',
|
|
218
|
-
'footer-nav-link',
|
|
219
|
-
'copyright-link',
|
|
220
|
-
'product-link',
|
|
221
|
-
'd-green-underline',
|
|
222
|
-
'd-white-underline',
|
|
223
|
-
'global',
|
|
224
|
-
'utility-nav-link'
|
|
225
|
-
];
|
|
226
|
-
let mainClass = this.theme;
|
|
227
|
-
if (classOptions.indexOf(mainClass) < 0) {
|
|
228
|
-
mainClass = 'simple'; // fallback to simple class if theme is unavailable
|
|
229
|
-
}
|
|
230
|
-
return {
|
|
231
|
-
['ptc-link']: true,
|
|
232
|
-
[mainClass]: true,
|
|
233
|
-
['disabled']: this.disabled,
|
|
234
|
-
[this.fontSize]: true,
|
|
235
|
-
[this.linkArea]: this.linkArea ? true : false,
|
|
236
|
-
[this.fontWeight]: this.fontWeight ? true : false,
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
get el() { return index.getElement(this); }
|
|
240
|
-
};
|
|
241
|
-
PtcLink.style = ptcLinkCss;
|
|
242
|
-
|
|
243
|
-
const ptcParaCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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{position:relative;z-index:1}:host(.white){color:var(--color-white)}:host(.z-1){z-index:1}:host(.z-2){z-index:2}:host(.z-3){z-index:3}:host(.z-99){z-index:99}:host(.z-999){z-index:999}:host(.z-auto){z-index:auto}p.default{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}p.main{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10)}p.primary-grey{color:var(--color-gray-10)}p.gray-darker{color:var(--color-gray-11)}p.white{color:var(--color-white)}p.xxx-small{font-size:var(--ptc-font-size-xxx-small)}p.xx-small{font-size:var(--ptc-font-size-xx-small)}p.x-small{font-size:var(--ptc-font-size-x-small)}p.small{font-size:var(--ptc-font-size-small)}p.medium{font-size:var(--ptc-font-size-medium)}p.large{font-size:var(--ptc-font-size-large)}p.x-large{font-size:var(--ptc-font-size-x-large)}p.xx-large{font-size:var(--ptc-font-size-xx-large)}p.xxx-large{font-size:var(--ptc-font-size-xxx-large)}p.xxxx-large{font-size:var(--ptc-font-size-xxxx-large)}p.htmlquote-para{font-size:var(--ptc-font-size-small)}@media only screen and (min-width: 992px){p.htmlquote-para{font-size:var(--ptc-font-size-large)}}p.w-3{font-weight:var(--ptc-font-weight-thin)}p.w-4{font-weight:var(--ptc-font-weight-regular)}p.w-5{font-weight:var(--ptc-font-weight-medium)}p.w-6{font-weight:var(--ptc-font-weight-semibold)}p.w-7{font-weight:var(--ptc-font-weight-bold)}p.w-8{font-weight:var(--ptc-font-weight-extrabold)}p.w-9{font-weight:var(--ptc-font-weight-black)}p.margin-flush{margin-top:0;margin-bottom:0}p.margin-top-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:0}p.margin-top-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}p.margin-top-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}p.margin-top-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}p.margin-top-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}p.margin-top-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}p.margin-bottom-1{margin-bottom:var(--ptc-element-spacing-01);margin-top:0}p.margin-bottom-2{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}p.margin-bottom-3{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}p.margin-bottom-4{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}p.margin-bottom-5{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}p.margin-bottom-6{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}p.margin-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:var(--ptc-element-spacing-01)}p.margin-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}p.margin-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}p.margin-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}p.margin-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}p.margin-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}p.line-height-densest{line-height:var(--ptc-line-height-densest)}p.line-height-denser{line-height:var(--ptc-line-height-denser)}p.line-height-p{line-height:var(--ptc-line-height-p)}p.line-height-dense{line-height:var(--ptc-line-height-dense)}p.line-height-normal{line-height:var(--ptc-line-height-normal)}p.line-height-loose{line-height:var(--ptc-line-height-loose)}p.line-height-looser{line-height:var(--ptc-line-height-looser)}p.left{text-align:left}p.right{text-align:right}p.center{text-align:center}p.justify{text-align:justify}p.announcement{text-transform:uppercase;font-size:var(--ptc-font-size-small);color:var(--color-gray-07);line-height:var(--ptc-line-height-looser);letter-spacing:var(--ptc-letter-spacing-loose)}p.ellipsis-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word}";
|
|
244
|
-
|
|
245
|
-
const PtcPara = class {
|
|
246
|
-
constructor(hostRef) {
|
|
247
|
-
index.registerInstance(this, hostRef);
|
|
248
|
-
this.fontSize = 'x-small';
|
|
249
|
-
this.fontWeight = 'w-4';
|
|
250
|
-
this.paraStyle = 'default';
|
|
251
|
-
this.paraColor = 'primary-grey';
|
|
252
|
-
this.paraLineH = 'line-height-normal';
|
|
253
|
-
this.paraMargin = undefined;
|
|
254
|
-
this.paraAlign = undefined;
|
|
255
|
-
this.ellipsisLineCutoff = undefined;
|
|
256
|
-
this.paraZIndex = undefined;
|
|
257
|
-
this.styles = undefined;
|
|
258
|
-
this.seoCompatibilityMode = false;
|
|
259
|
-
}
|
|
260
|
-
render() {
|
|
261
|
-
if (this.seoCompatibilityMode) {
|
|
262
|
-
utils.seoSlotReset(this.el);
|
|
263
|
-
}
|
|
264
|
-
return this.standardRender();
|
|
265
|
-
}
|
|
266
|
-
standardRender() {
|
|
267
|
-
const classMap = this.getCssClassMap();
|
|
268
|
-
const colorClass = this.addWhiteClass();
|
|
269
|
-
const cutOff = this.getLineCuttoff();
|
|
270
|
-
return (index.h(index.Host, { class: `${colorClass} ${this.paraZIndex}` }, this.styles && index.h("style", null, this.styles), index.h("p", { class: classMap, part: "part-para", style: cutOff }, index.h("slot", null))));
|
|
271
|
-
}
|
|
272
|
-
getCssClassMap() {
|
|
273
|
-
return {
|
|
274
|
-
[this.fontSize]: true,
|
|
275
|
-
[this.fontWeight]: true,
|
|
276
|
-
[this.paraStyle]: true,
|
|
277
|
-
[this.paraMargin]: !!this.paraMargin ? true : false,
|
|
278
|
-
[this.paraColor]: true,
|
|
279
|
-
[this.paraLineH]: true,
|
|
280
|
-
[this.paraAlign]: !!this.paraAlign ? true : false,
|
|
281
|
-
['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
//WEB-2392
|
|
285
|
-
addWhiteClass() {
|
|
286
|
-
if (this.paraColor == 'white') {
|
|
287
|
-
return {
|
|
288
|
-
[this.paraColor]: true,
|
|
289
|
-
};
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
getLineCuttoff() {
|
|
293
|
-
let result;
|
|
294
|
-
if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
|
|
295
|
-
result = {
|
|
296
|
-
['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
return result;
|
|
300
|
-
}
|
|
301
|
-
get el() { return index.getElement(this); }
|
|
302
|
-
};
|
|
303
|
-
PtcPara.style = ptcParaCss;
|
|
304
|
-
|
|
305
|
-
const ptcPricingAddOnCardCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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;height:99%}.add-on-card{padding:var(--ptc-element-spacing-06);border-top:var(--color-gray-10) solid var(--ptc-element-spacing-01);background-color:white;border-radius:var(--ptc-border-radius-standard);box-shadow:var(--ptc-shadow-x-small);height:100%;box-sizing:border-box;word-break:break-word}";
|
|
306
|
-
|
|
307
|
-
const PtcPricingAddOnCard = class {
|
|
308
|
-
constructor(hostRef) {
|
|
309
|
-
index.registerInstance(this, hostRef);
|
|
310
|
-
this.cardTitle = undefined;
|
|
311
|
-
this.cardPricingText = undefined;
|
|
312
|
-
this.cardCtaHref = null;
|
|
313
|
-
this.cardCtaText = null;
|
|
314
|
-
this.cardCtaTarget = null;
|
|
315
|
-
this.cardDisclaimer = null;
|
|
316
|
-
}
|
|
317
|
-
render() {
|
|
318
|
-
return (index.h(index.Host, null, index.h("div", { class: "add-on-card" }, index.h("ptc-title", { type: "h4", "text-align": "left", "title-size": "medium", upperline: "no-upperline", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7" }, this.cardTitle), index.h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-align": "left", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, index.h("slot", { name: "card-pricing" })), index.h("ptc-spacer", { breakpoint: "small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "large" }), index.h("ptc-para", { "font-size": "x-small", "font-weight": "w-4", "para-align": "left", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, (this.el.querySelector('[slot="card-body"]').innerHTML.toString().length <= 300) ?
|
|
319
|
-
index.h("slot", { name: "card-body" }) :
|
|
320
|
-
index.h("ptc-readmore", { "more-text": "More", "less-text": "Less" }, index.h("slot", { name: "card-body" })), index.h("slot", { name: "card-body" })), this.cardCtaHref && this.cardCtaText && index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: "small", size: "x-large" }), index.h("ptc-spacer", { breakpoint: "small", size: "xx-small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "xx-large" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "xx-small" }), index.h("ptc-button", { type: "link", color: "ptc-tertiary", "link-href": this.cardCtaHref, target: this.cardCtaTarget }, index.h("ptc-tooltip", { "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.cardCtaText, position: "bottom" }))), this.cardDisclaimer && index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: "small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "large" }), index.h("ptc-para", { "font-size": "xx-small", "font-weight": "w-6", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, (this.cardDisclaimer.length <= 150) ? index.h("slot", { name: "card-disclaimer" }) : index.h("ptc-readmore", { "more-text": "More", "less-text": "Less" }, index.h("slot", { name: "card-disclaimer" })))))));
|
|
321
|
-
}
|
|
322
|
-
get el() { return index.getElement(this); }
|
|
323
|
-
};
|
|
324
|
-
PtcPricingAddOnCard.style = ptcPricingAddOnCardCss;
|
|
325
|
-
|
|
326
|
-
const ptcPricingAddOnSectionCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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}";
|
|
327
|
-
|
|
328
|
-
const PtcPricingAddOnSection = class {
|
|
329
|
-
constructor(hostRef) {
|
|
330
|
-
index.registerInstance(this, hostRef);
|
|
331
|
-
this.cardCount = undefined;
|
|
332
|
-
this.cardData = [];
|
|
333
|
-
this.sectionTitle = "";
|
|
334
|
-
}
|
|
335
|
-
componentWillLoad() {
|
|
336
|
-
if (this.cardCount > 8) {
|
|
337
|
-
this.cardCount = 8;
|
|
338
|
-
}
|
|
339
|
-
for (let i = 0; i < this.cardCount; i++) {
|
|
340
|
-
let title = this.el.querySelector(`[slot="card-title-${i + 1}"]`);
|
|
341
|
-
let pricing = this.el.querySelector(`[slot="card-pricing-${i + 1}"]`);
|
|
342
|
-
let cta = this.el.querySelector(`[slot="card-cta-${i + 1}"]`);
|
|
343
|
-
let disclaimer = this.el.querySelector(`[slot="card-disclaimer-${i + 1}"]`);
|
|
344
|
-
let data = {
|
|
345
|
-
title: title === null || title === void 0 ? void 0 : title.innerHTML.toString(),
|
|
346
|
-
pricing: pricing === null || pricing === void 0 ? void 0 : pricing.innerHTML.toString(),
|
|
347
|
-
cta: {
|
|
348
|
-
linkHref: (cta === null || cta === void 0 ? void 0 : cta.getAttribute('href')) || "",
|
|
349
|
-
linkText: (cta === null || cta === void 0 ? void 0 : cta.innerHTML.toString()) || "",
|
|
350
|
-
linkTarget: (cta === null || cta === void 0 ? void 0 : cta.getAttribute('target')) || "_blank",
|
|
351
|
-
},
|
|
352
|
-
disclaimer: (disclaimer === null || disclaimer === void 0 ? void 0 : disclaimer.innerHTML.toString()) || "",
|
|
353
|
-
};
|
|
354
|
-
title === null || title === void 0 ? void 0 : title.remove();
|
|
355
|
-
cta === null || cta === void 0 ? void 0 : cta.remove();
|
|
356
|
-
this.cardData.push(data);
|
|
357
|
-
}
|
|
358
|
-
if (this.cardData.length != this.cardCount) {
|
|
359
|
-
this.cardData = [];
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
render() {
|
|
363
|
-
return (index.h(index.Host, null, index.h("ptc-title", { type: "h3", "text-align": "left", "title-size": "large", upperline: "no-upperline", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7" }, this.sectionTitle), index.h("ptc-spacer", { breakpoint: "small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "large" }), index.h("div", { class: "is-grid has-col-gap-md" }, this.cardData.map((data, ind) => index.h("div", { class: "is-col-12 is-col-6-md is-col-4-lg is-col-3-xl" }, index.h("ptc-pricing-add-on-card", { "card-title": data.title, "card-pricing-text": data.pricing, "card-cta-href": data.cta.linkHref, "card-cta-text": data.cta.linkText, "card-cta-target": data.cta.linkTarget, "card-disclaimer": data.disclaimer }, index.h("span", { slot: "card-pricing" }, index.h("slot", { name: `card-pricing-${ind + 1}` })), index.h("div", { slot: "card-body" }, index.h("slot", { name: `card-body-${ind + 1}` })), index.h("span", { slot: "card-disclaimer" }, index.h("slot", { name: `card-disclaimer-${ind + 1}` }))))))));
|
|
364
|
-
}
|
|
365
|
-
get el() { return index.getElement(this); }
|
|
366
|
-
};
|
|
367
|
-
PtcPricingAddOnSection.style = ptcPricingAddOnSectionCss;
|
|
368
|
-
|
|
369
|
-
const ptcPricingPackagingTableCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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 #pricing-table{position:relative;overflow-wrap:break-word}:host #vertical-scroll-content-clipper.normal{display:none}:host #vertical-scroll-content-clipper.sticky{display:block;z-index:20;position:fixed;top:0;width:100%;height:var(--sticky-stop-at, 50px)}:host #table-container{width:100%;overflow-x:auto;border-radius:var(--ptc-border-radius-standard);box-shadow:var(--ptc-shadow-x-small);position:relative}:host #table-body{width:100%;overflow-x:scroll;position:relative}:host .scroll-button{display:flex;align-items:center;position:absolute;z-index:15;height:100%}:host .scroll-button#previous-scroll-button div{margin-right:var(--ptc-element-spacing-02);border-radius:0px var(--ptc-element-spacing-01) var(--ptc-element-spacing-01) 0px}:host .scroll-button#previous-scroll-button div ptc-para{margin-right:var(--ptc-element-spacing-04)}:host .scroll-button#next-scroll-button{transform:translateX(-100%)}:host .scroll-button#next-scroll-button div{margin-left:var(--ptc-element-spacing-02);border-radius:var(--ptc-element-spacing-01) 0px 0px var(--ptc-element-spacing-01)}:host .scroll-button#next-scroll-button div ptc-para{margin-left:var(--ptc-element-spacing-04)}:host .scroll-button div{display:inline-block;width:fit-content;height:36px;background-color:white;color:black;box-shadow:var(--ptc-shadow-x-medium);display:flex;justify-content:center;align-items:center}:host .scroll-button div icon-asset{display:flex;justify-content:center;align-items:center;width:36px;height:100%}:host .scroll-button div ptc-para{display:none;white-space:nowrap}:host .table-filler-cell{display:none;min-width:var(--filler-cell-width, 0px);max-width:var(--filler-cell-width, 0px);height:100%;box-sizing:content-box;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);border-bottom:1px solid var(--color-gray-02)}:host .table-filler-cell.show{display:table-cell}:host #table-header{display:table-row;background:var(--color-gray-10);color:white;z-index:10}:host #table-header.normal{position:relative}:host #table-header.sticky{position:fixed;top:var(--sticky-stop-at, 50px);border-top-left-radius:var(--ptc-border-radius-standard);border-top-right-radius:var(--ptc-border-radius-standard);overflow-x:hidden;-ms-overflow-style:none;scrollbar-width:none;box-shadow:0 16px 16px -16px grey}:host #table-header.sticky::-webkit-scrollbar{display:none}:host #table-header .table-cell{min-width:var(--cell-width-xxs, 180px);max-width:var(--cell-width-xxs, 180px);box-sizing:content-box;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);border-right:1px solid var(--color-gray-07);text-align:center;display:table-cell;vertical-align:middle}:host #table-header .table-cell.table-last-cell{border-right:none}:host #table-header .table-cell ptc-link a.ptc-link{line-height:var(--ptc-line-height-p)}:host #table-header .table-filler-cell{border-bottom:none;border-left:1px solid var(--color-gray-07)}:host #table-header-placeholder.normal{position:absolute;top:0;display:table-row;opacity:0}:host #table-header-placeholder.sticky{position:relative;display:table-row;opacity:0;overflow-x:hidden;-ms-overflow-style:none;scrollbar-width:none}:host #table-header-placeholder .table-cell{min-width:var(--cell-width-xxs, 180px);max-width:var(--cell-width-xxs, 180px);box-sizing:content-box;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);border-right:1px solid var(--color-gray-07);text-align:center;display:table-cell;vertical-align:middle}:host #table-header-placeholder .table-cell.table-last-cell{border-right:none}:host #table-header-placeholder .table-filler-cell{border-bottom:none;border-left:1px solid var(--color-gray-07)}:host .desktop-header-first-cell{display:table-cell;position:sticky;left:0;z-index:10}:host .mobile-sticky-row-header{display:block;position:sticky;left:0;background-color:var(--color-gray-01);border-bottom:1px solid var(--color-gray-02);padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06)}:host .table-row{display:table-row;background-color:white}:host .table-row .table-cell{min-width:var(--cell-width-xxs, 180px);max-width:var(--cell-width-xxs, 180px);box-sizing:content-box;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);border-right:1px solid var(--color-gray-02);border-bottom:1px solid var(--color-gray-02);text-align:center;display:table-cell;vertical-align:middle}:host .table-row .table-cell.table-last-cell{border-right:none}:host .table-row .table-filler-cell{border-left:1px solid var(--color-gray-02)}:host .table-cta-row{display:table-row;background-color:white}:host .table-cta-row .table-cell{min-width:var(--cell-width-xxs, 180px);max-width:var(--cell-width-xxs, 180px);box-sizing:content-box;padding:var(--ptc-element-spacing-06);border-right:1px solid var(--color-gray-02);border-bottom:1px solid var(--color-gray-02);text-align:center;display:table-cell;vertical-align:middle}:host .table-cta-row .table-cell.table-last-cell{border-right:none}:host .table-cta-row .table-filler-cell{border-left:1px solid var(--color-gray-02)}@media only screen and (min-width: 768px){:host .table-descriptor{max-width:768px;margin:auto}}@media only screen and (min-width: 992px){:host .scroll-button{height:100%;top:0}:host .scroll-button div ptc-para{display:none}:host .scroll-button div:hover{cursor:pointer}:host .scroll-button div:hover ptc-para{display:block}:host .scroll-button#previous-scroll-button{right:0;transform:translateX(100%)}:host #horizontal-scroll-shadow{display:block;position:absolute;top:0;left:0;height:100%;width:var(--ptc-element-spacing-06);background:linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 100%);z-index:1}:host #table-header.sticky{box-shadow:none}:host #table-header .table-cell{min-width:var(--cell-width-md, 225px);max-width:var(--cell-width-md, 225px)}:host #table-header .last-column-tooltip .tooltip{right:4px}:host #table-header-placeholder .table-cell{min-width:var(--cell-width-md, 225px);max-width:var(--cell-width-md, 225px)}:host #table-header-placeholder .last-column-tooltip .tooltip{right:-4px}:host .desktop-sticky-row-header{min-width:var(--desktop-row-header-cell-width-md, 275px);max-width:var(--desktop-row-header-cell-width-md, 275px);box-sizing:content-box;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);border-right:1px solid var(--color-gray-02);border-bottom:1px solid var(--color-gray-02);display:table-cell;vertical-align:middle;position:sticky;left:0;background-color:white;z-index:5}:host .desktop-sticky-row-header.desktop-alternate-row{background-color:var(--color-gray-01)}:host .desktop-header-first-cell{min-width:var(--desktop-row-header-cell-width-md, 275px);max-width:var(--desktop-row-header-cell-width-md, 275px);box-sizing:content-box;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);border-right:1px solid var(--color-gray-07);display:table-cell;vertical-align:middle;position:sticky;left:0;z-index:10;background:var(--color-gray-10)}:host .table-row .table-cell{min-width:var(--cell-width-md, 225px);max-width:var(--cell-width-md, 225px)}:host .table-row.desktop-alternate-row{background-color:var(--color-gray-01)}:host .mobile-sticky-row-header{display:none}:host .table-cta-row{display:table-row}:host .table-cta-row .table-cell{min-width:var(--cell-width-md, 225px);max-width:var(--cell-width-md, 225px)}:host .table-cta-row .last-column-tooltip .tooltip{right:-4px}}";
|
|
370
|
-
|
|
371
|
-
const PtcPricingPackagingTable = class {
|
|
372
|
-
constructor(hostRef) {
|
|
373
|
-
index.registerInstance(this, hostRef);
|
|
374
|
-
this.verticalScrollContentClipperHeightOptions = {
|
|
375
|
-
withSubNav: {
|
|
376
|
-
desktop: 104,
|
|
377
|
-
mobile: 80
|
|
378
|
-
},
|
|
379
|
-
withoutSubNav: {
|
|
380
|
-
desktop: 40,
|
|
381
|
-
mobile: 24
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
|
-
this.handleVerticalScroll = () => {
|
|
385
|
-
let verticalScrollContentClipper = this.el.shadowRoot.querySelector("#vertical-scroll-content-clipper");
|
|
386
|
-
let tableContainer = this.el.shadowRoot.querySelector("#table-container");
|
|
387
|
-
let tableBody = this.el.shadowRoot.querySelector("#table-body");
|
|
388
|
-
let tableHeaderPlaceholder = this.el.shadowRoot.querySelector("#table-header-placeholder");
|
|
389
|
-
let tableHeader = this.el.shadowRoot.querySelector("#table-header");
|
|
390
|
-
const scrollTopPosition = window.scrollY || document.documentElement.scrollTop;
|
|
391
|
-
if (scrollTopPosition < this.lastScrollTop) {
|
|
392
|
-
// Scrolling up
|
|
393
|
-
if (tableHeaderPlaceholder.getBoundingClientRect().top >= this.stickyTopAt) {
|
|
394
|
-
// Unstick header
|
|
395
|
-
this.headerType = "normal";
|
|
396
|
-
tableHeader.style.top = '0px';
|
|
397
|
-
}
|
|
398
|
-
if (this.headerType === "sticky") {
|
|
399
|
-
// Scroll the sticky header out of the window along with the table
|
|
400
|
-
if (tableContainer.getBoundingClientRect().bottom > tableHeader.getBoundingClientRect().bottom) {
|
|
401
|
-
if (tableHeader.getBoundingClientRect().top < this.stickyTopAt) {
|
|
402
|
-
tableHeader.style.top = `${Math.min(tableContainer.getBoundingClientRect().bottom - tableHeader.clientHeight, this.stickyTopAt)}px`;
|
|
403
|
-
verticalScrollContentClipper.style.top = `${(tableHeader.getBoundingClientRect().top - verticalScrollContentClipper.clientHeight)}px`;
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
else if (scrollTopPosition > this.lastScrollTop) {
|
|
409
|
-
// Scrolling down
|
|
410
|
-
if (tableHeaderPlaceholder.getBoundingClientRect().top < this.stickyTopAt) {
|
|
411
|
-
// Stick header
|
|
412
|
-
this.headerType = "sticky";
|
|
413
|
-
tableHeader.style.top = `${this.stickyTopAt}px`;
|
|
414
|
-
tableHeader.style.width = `${tableBody.getBoundingClientRect().width}px`;
|
|
415
|
-
// tableHeader.scrollLeft = tableBody.scrollLeft;
|
|
416
|
-
}
|
|
417
|
-
if (this.headerType === "sticky") {
|
|
418
|
-
// Scroll the sticky header back into view along with the table
|
|
419
|
-
if (tableContainer.getBoundingClientRect().bottom <= tableHeader.getBoundingClientRect().bottom) {
|
|
420
|
-
tableHeader.style.top = `${(tableContainer.getBoundingClientRect().bottom - tableHeader.clientHeight)}px`;
|
|
421
|
-
verticalScrollContentClipper.style.top = `${(tableHeader.getBoundingClientRect().top - verticalScrollContentClipper.clientHeight)}px`;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
this.refreshHorizontalPosition();
|
|
426
|
-
this.lastScrollTop = scrollTopPosition <= 0 ? 0 : scrollTopPosition;
|
|
427
|
-
};
|
|
428
|
-
this.handleHorizontalScroll = () => {
|
|
429
|
-
this.refreshHorizontalPosition();
|
|
430
|
-
this.handleScrollButtonsVisibility();
|
|
431
|
-
};
|
|
432
|
-
this.handleScrollButtonsVisibility = () => {
|
|
433
|
-
let tableBody = this.el.shadowRoot.querySelector("#table-body");
|
|
434
|
-
let previousScrollButton = this.el.shadowRoot.querySelector("#previous-scroll-button");
|
|
435
|
-
let nextScrollButton = this.el.shadowRoot.querySelector("#next-scroll-button");
|
|
436
|
-
let horizontalScrollShadow = this.el.shadowRoot.querySelector("#horizontal-scroll-shadow");
|
|
437
|
-
if (tableBody.scrollLeft === 0) {
|
|
438
|
-
previousScrollButton.style.visibility = 'hidden';
|
|
439
|
-
horizontalScrollShadow.style.visibility = 'hidden';
|
|
440
|
-
}
|
|
441
|
-
else {
|
|
442
|
-
previousScrollButton.style.visibility = 'visible';
|
|
443
|
-
horizontalScrollShadow.style.visibility = 'visible';
|
|
444
|
-
}
|
|
445
|
-
if ([-1, 0, 1].includes(Math.trunc(tableBody.scrollWidth - tableBody.scrollLeft) - Math.trunc(tableBody.getBoundingClientRect().width))) {
|
|
446
|
-
nextScrollButton.style.visibility = 'hidden';
|
|
447
|
-
}
|
|
448
|
-
else {
|
|
449
|
-
nextScrollButton.style.visibility = 'visible';
|
|
450
|
-
}
|
|
451
|
-
};
|
|
452
|
-
this.handleForwardScroll = () => {
|
|
453
|
-
let scrollAdded = 0;
|
|
454
|
-
let tableBody = this.el.shadowRoot.querySelector("#table-body");
|
|
455
|
-
let intervalId = setInterval(() => {
|
|
456
|
-
scrollAdded += this.scrollAmount;
|
|
457
|
-
if ((scrollAdded == this.scrollLimit) || [-1, 0, 1].includes(Math.trunc(tableBody.scrollWidth - tableBody.scrollLeft) - Math.trunc(tableBody.getBoundingClientRect().width))) {
|
|
458
|
-
clearInterval(intervalId);
|
|
459
|
-
}
|
|
460
|
-
tableBody.scrollLeft += scrollAdded;
|
|
461
|
-
}, this.scrollTimeInterval);
|
|
462
|
-
};
|
|
463
|
-
this.handleBackwardScroll = () => {
|
|
464
|
-
let scrollReduced = 0;
|
|
465
|
-
let pricingTable = this.el.shadowRoot.querySelector("#pricing-table");
|
|
466
|
-
let tableBody = this.el.shadowRoot.querySelector("#table-body");
|
|
467
|
-
let intervalId = setInterval(() => {
|
|
468
|
-
scrollReduced += this.scrollAmount;
|
|
469
|
-
if ((scrollReduced == this.scrollLimit) || (pricingTable.getBoundingClientRect().left >= tableBody.getBoundingClientRect().right)) {
|
|
470
|
-
clearInterval(intervalId);
|
|
471
|
-
}
|
|
472
|
-
tableBody.scrollLeft -= scrollReduced;
|
|
473
|
-
}, this.scrollTimeInterval);
|
|
474
|
-
};
|
|
475
|
-
this.setFillerCellWidth = (fillerWidth) => {
|
|
476
|
-
this.el.style.setProperty('--filler-cell-width', `${fillerWidth}px`);
|
|
477
|
-
};
|
|
478
|
-
this.expandTableCells = () => {
|
|
479
|
-
let pricingTable = this.el.shadowRoot.querySelector("#pricing-table");
|
|
480
|
-
let desktopHeaderFirstCell = this.el.shadowRoot.querySelector(".desktop-header-first-cell");
|
|
481
|
-
let emptySpace = pricingTable.getBoundingClientRect().width - desktopHeaderFirstCell.getBoundingClientRect().width;
|
|
482
|
-
let fillerWidth = (emptySpace / this.dataCols);
|
|
483
|
-
if (this.isDesktopView) {
|
|
484
|
-
this.el.style.setProperty('--cell-width-xxs', `${this.cellWidthXXS}px`);
|
|
485
|
-
this.el.style.setProperty('--cell-width-md', `${fillerWidth - this.cellLeftRightPadding}px`);
|
|
486
|
-
}
|
|
487
|
-
else {
|
|
488
|
-
this.el.style.setProperty('--cell-width-xxs', `${fillerWidth - this.cellLeftRightPadding}px`);
|
|
489
|
-
this.el.style.setProperty('--cell-width-md', `${this.cellWidthMD}px`);
|
|
490
|
-
}
|
|
491
|
-
};
|
|
492
|
-
this.handleFillEmptySpace = () => {
|
|
493
|
-
let pricingTable = this.el.shadowRoot.querySelector("#pricing-table");
|
|
494
|
-
let tableHeaderPlaceholder = this.el.shadowRoot.querySelector("#table-header-placeholder");
|
|
495
|
-
if (tableHeaderPlaceholder.getBoundingClientRect().right < pricingTable.getBoundingClientRect().right) {
|
|
496
|
-
this.hasEmptySpace = true;
|
|
497
|
-
this.expandTableCells();
|
|
498
|
-
}
|
|
499
|
-
};
|
|
500
|
-
this.resetWidthVariables = () => {
|
|
501
|
-
this.el.style.setProperty('--cell-width-xxs', `${this.cellWidthXXS}px`);
|
|
502
|
-
this.el.style.setProperty('--cell-width-md', `${this.cellWidthMD}px`);
|
|
503
|
-
};
|
|
504
|
-
this.handleTableReset = () => {
|
|
505
|
-
let verticalScrollContentClipper = this.el.shadowRoot.querySelector("#vertical-scroll-content-clipper");
|
|
506
|
-
let tableHeader = this.el.shadowRoot.querySelector("#table-header");
|
|
507
|
-
let tableBody = this.el.shadowRoot.querySelector("#table-body");
|
|
508
|
-
let nextScrollButton = this.el.shadowRoot.querySelector("#next-scroll-button");
|
|
509
|
-
let desktopHeaderFirstCell = this.el.shadowRoot.querySelector(".desktop-header-first-cell");
|
|
510
|
-
let horizontalScrollShadow = this.el.shadowRoot.querySelector("#horizontal-scroll-shadow");
|
|
511
|
-
this.isDesktopView = (window.innerWidth >= 992);
|
|
512
|
-
this.resetWidthVariables();
|
|
513
|
-
if (this.pageWithSubnav) {
|
|
514
|
-
if (this.isDesktopView) {
|
|
515
|
-
this.stickyTopAt = this.verticalScrollContentClipperHeightOptions["withSubNav"]["desktop"];
|
|
516
|
-
}
|
|
517
|
-
else {
|
|
518
|
-
this.stickyTopAt = this.verticalScrollContentClipperHeightOptions["withSubNav"]["mobile"];
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
else {
|
|
522
|
-
if (this.isDesktopView) {
|
|
523
|
-
this.stickyTopAt = this.verticalScrollContentClipperHeightOptions["withoutSubNav"]["desktop"];
|
|
524
|
-
}
|
|
525
|
-
else {
|
|
526
|
-
this.stickyTopAt = this.verticalScrollContentClipperHeightOptions["withoutSubNav"]["mobile"];
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
this.el.style.setProperty('--sticky-stop-at', `${this.stickyTopAt}px`);
|
|
530
|
-
const bodyBackgroundColor = window.getComputedStyle(document.body, null).getPropertyValue('background-color');
|
|
531
|
-
if (bodyBackgroundColor === ("rgba(0, 0, 0, 0)" )) {
|
|
532
|
-
verticalScrollContentClipper.style.backgroundColor = "white";
|
|
533
|
-
}
|
|
534
|
-
else {
|
|
535
|
-
verticalScrollContentClipper.style.backgroundColor = bodyBackgroundColor;
|
|
536
|
-
}
|
|
537
|
-
verticalScrollContentClipper.style.width = `${tableBody.getBoundingClientRect().width + 20}px`;
|
|
538
|
-
verticalScrollContentClipper.style.transform = `translateX(-10px)`;
|
|
539
|
-
tableHeader.style.width = `${tableBody.getBoundingClientRect().width}px`;
|
|
540
|
-
tableHeader.scrollLeft = tableBody.scrollLeft;
|
|
541
|
-
nextScrollButton.style.left = `${tableBody.getBoundingClientRect().width}px`;
|
|
542
|
-
horizontalScrollShadow.style.left = `${desktopHeaderFirstCell.getBoundingClientRect().width}px`;
|
|
543
|
-
this.handleScrollButtonsVisibility();
|
|
544
|
-
this.handleFillEmptySpace();
|
|
545
|
-
};
|
|
546
|
-
this.preProcessTableDescription = () => {
|
|
547
|
-
let tableDescription = this.el.querySelector('[slot="table-description"]');
|
|
548
|
-
if (tableDescription) {
|
|
549
|
-
this.tableDescription = tableDescription;
|
|
550
|
-
}
|
|
551
|
-
};
|
|
552
|
-
this.preProcessdesktopHeaderFirstCell = () => {
|
|
553
|
-
let desktopHeaderFirstCellSlot = this.el.querySelector('[slot="desktop-header-first-cell"]');
|
|
554
|
-
let desktopHeaderFirstCellText = desktopHeaderFirstCellSlot.innerHTML;
|
|
555
|
-
this.el.insertAdjacentHTML('afterbegin', `<span slot="placeholder-desktop-header-first-cell">${desktopHeaderFirstCellText}</span>`);
|
|
556
|
-
};
|
|
557
|
-
this.preProcessColumnHeaders = () => {
|
|
558
|
-
let columnHeaders = this.el.querySelectorAll('[slot^="column-header"]');
|
|
559
|
-
for (let i = 0; i < this.dataCols; i++) {
|
|
560
|
-
let slotValue = columnHeaders[i].getAttribute('slot');
|
|
561
|
-
let headerText = columnHeaders[i].innerHTML;
|
|
562
|
-
this.el.insertAdjacentHTML('afterbegin', `<span slot="placeholder-${slotValue}">${headerText}</span>`);
|
|
563
|
-
}
|
|
564
|
-
};
|
|
565
|
-
this.preProcessHeaderLinks = () => {
|
|
566
|
-
let headerLink;
|
|
567
|
-
for (let i = 0; i < this.dataCols; i++) {
|
|
568
|
-
headerLink = this.el.querySelector(`[slot^="header-link-${i + 1}"]`);
|
|
569
|
-
if (headerLink) {
|
|
570
|
-
let linkHref = headerLink.getAttribute('href');
|
|
571
|
-
let linkText = headerLink.innerHTML;
|
|
572
|
-
let linkTarget = headerLink.getAttribute('target');
|
|
573
|
-
let linkTitle = headerLink.getAttribute('title');
|
|
574
|
-
this.columnHeaderLinks.push({ linkHref, linkText, linkTarget, linkTitle });
|
|
575
|
-
headerLink.remove();
|
|
576
|
-
}
|
|
577
|
-
else {
|
|
578
|
-
this.columnHeaderLinks.push(null);
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
};
|
|
582
|
-
this.preProcessRowHeaders = () => {
|
|
583
|
-
let rowHeader;
|
|
584
|
-
for (let i = 0; i < this.dataRows; i++) {
|
|
585
|
-
rowHeader = this.el.querySelector(`[slot^="row-header-${i + 1}"]`);
|
|
586
|
-
let tableRowHeaderP = rowHeader.querySelectorAll('.table-row-header-p');
|
|
587
|
-
for (let i = 0; i < tableRowHeaderP.length; i++) {
|
|
588
|
-
let ptcPara = document.createElement('ptc-para');
|
|
589
|
-
ptcPara.setAttribute("font-size", "small");
|
|
590
|
-
ptcPara.setAttribute("font-weight", "w-6");
|
|
591
|
-
ptcPara.setAttribute("para-align", "left");
|
|
592
|
-
ptcPara.setAttribute("para-color", "primary-grey");
|
|
593
|
-
ptcPara.setAttribute("para-line-h", "line-height-p");
|
|
594
|
-
ptcPara.setAttribute("para-margin", "margin-flush");
|
|
595
|
-
ptcPara.innerHTML = tableRowHeaderP[i].innerHTML;
|
|
596
|
-
tableRowHeaderP[i].replaceWith(ptcPara);
|
|
597
|
-
}
|
|
598
|
-
let slotValue = rowHeader.getAttribute('slot');
|
|
599
|
-
let headerContent = rowHeader.innerHTML;
|
|
600
|
-
this.el.insertAdjacentHTML('afterbegin', `<div slot="desktop-${slotValue}">${headerContent}</div><div slot="mobile-${slotValue}">${headerContent}</div>`);
|
|
601
|
-
rowHeader.remove();
|
|
602
|
-
}
|
|
603
|
-
};
|
|
604
|
-
this.preProcessCtaButtons = () => {
|
|
605
|
-
let ctaButton;
|
|
606
|
-
this.showCtaButtonsRow = false;
|
|
607
|
-
for (let i = 0; i < this.dataCols; i++) {
|
|
608
|
-
ctaButton = this.el.querySelector(`[slot^="cta-button-${i + 1}"]`);
|
|
609
|
-
if (ctaButton) {
|
|
610
|
-
let linkHref = ctaButton.getAttribute('href');
|
|
611
|
-
let linkText = ctaButton.innerHTML;
|
|
612
|
-
let linkTarget = ctaButton.getAttribute('target');
|
|
613
|
-
let linkTitle = ctaButton.getAttribute('title');
|
|
614
|
-
this.ctaButtons.push({ linkHref, linkText, linkTarget, linkTitle });
|
|
615
|
-
ctaButton.remove();
|
|
616
|
-
this.showCtaButtonsRow = true;
|
|
617
|
-
}
|
|
618
|
-
else {
|
|
619
|
-
this.ctaButtons.push(null);
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
|
-
this.preProcessDisclaimers = () => {
|
|
624
|
-
let disclaimers = this.el.querySelectorAll('[slot^="disclaimer"]');
|
|
625
|
-
for (let i = 0; i < this.disclaimerCount; i++) {
|
|
626
|
-
this.disclaimers.push(disclaimers[i].innerHTML);
|
|
627
|
-
}
|
|
628
|
-
};
|
|
629
|
-
this.pageWithSubnav = false;
|
|
630
|
-
this.tableTitle = undefined;
|
|
631
|
-
this.tableSubTitle = "";
|
|
632
|
-
this.dataRows = undefined;
|
|
633
|
-
this.dataCols = undefined;
|
|
634
|
-
this.disclaimerCount = 0;
|
|
635
|
-
this.isDesktopView = undefined;
|
|
636
|
-
this.cellWidthXXS = 180;
|
|
637
|
-
this.cellWidthMD = 225;
|
|
638
|
-
this.cellLeftRightPadding = 48;
|
|
639
|
-
this.headerType = "normal";
|
|
640
|
-
this.lastScrollTop = undefined;
|
|
641
|
-
this.scrollTimeInterval = 25;
|
|
642
|
-
this.scrollAmount = 5;
|
|
643
|
-
this.scrollLimit = 50;
|
|
644
|
-
this.stickyTopAt = undefined;
|
|
645
|
-
this.columnHeaderLinks = [];
|
|
646
|
-
this.hasEmptySpace = false;
|
|
647
|
-
this.showFillerCells = false;
|
|
648
|
-
this.showCtaButtonsRow = undefined;
|
|
649
|
-
this.ctaButtons = [];
|
|
650
|
-
this.disclaimers = [];
|
|
651
|
-
this.tableDescription = undefined;
|
|
652
|
-
}
|
|
653
|
-
refreshHorizontalPosition() {
|
|
654
|
-
let refreshCount = 0;
|
|
655
|
-
let tableHeader = this.el.shadowRoot.querySelector("#table-header");
|
|
656
|
-
let tableBody = this.el.shadowRoot.querySelector("#table-body");
|
|
657
|
-
let refresh = () => {
|
|
658
|
-
tableHeader.scrollLeft = tableBody.scrollLeft;
|
|
659
|
-
refreshCount++;
|
|
660
|
-
if (refreshCount < 5) {
|
|
661
|
-
window.requestAnimationFrame(refresh);
|
|
662
|
-
}
|
|
663
|
-
};
|
|
664
|
-
window.requestAnimationFrame(refresh);
|
|
665
|
-
}
|
|
666
|
-
componentWillLoad() {
|
|
667
|
-
this.preProcessTableDescription();
|
|
668
|
-
this.preProcessdesktopHeaderFirstCell();
|
|
669
|
-
this.preProcessColumnHeaders();
|
|
670
|
-
this.preProcessHeaderLinks();
|
|
671
|
-
this.preProcessRowHeaders();
|
|
672
|
-
this.preProcessCtaButtons();
|
|
673
|
-
this.preProcessDisclaimers();
|
|
674
|
-
}
|
|
675
|
-
componentDidLoad() {
|
|
676
|
-
this.handleTableReset();
|
|
677
|
-
window.addEventListener("scroll", () => this.handleVerticalScroll());
|
|
678
|
-
window.addEventListener("resize", () => this.handleTableReset());
|
|
679
|
-
}
|
|
680
|
-
render() {
|
|
681
|
-
const TableTitle = () => {
|
|
682
|
-
return (this.tableTitle && index.h(index.Fragment, null, index.h("div", { class: "table-descriptor" }, index.h("ptc-title", { type: "h2", "text-align": "center", "title-size": "xx-large", upperline: "no-upperline", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-8" }, this.tableTitle)), (this.tableSubTitle)
|
|
683
|
-
? index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: "small", size: "x-small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "small" }))
|
|
684
|
-
: (this.tableDescription)
|
|
685
|
-
? index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))
|
|
686
|
-
: null));
|
|
687
|
-
};
|
|
688
|
-
const TableSubTitle = () => {
|
|
689
|
-
return (this.tableSubTitle && index.h(index.Fragment, null, index.h("div", { class: "table-descriptor" }, index.h("ptc-title", { type: "h3", "text-align": "center", "title-size": "large", upperline: "no-upperline", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7" }, this.tableSubTitle)), index.h("ptc-spacer", { breakpoint: "small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "large" })));
|
|
690
|
-
};
|
|
691
|
-
const TableDescription = () => {
|
|
692
|
-
return (this.tableDescription && index.h(index.Fragment, null, index.h("div", { class: "table-descriptor" }, index.h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-align": "center", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, (this.tableDescription.innerText.length <= 500) ?
|
|
693
|
-
index.h("slot", { name: "table-description" }) :
|
|
694
|
-
index.h("ptc-readmore", { "more-text": "More", "less-text": "Less" }, index.h("slot", { name: "table-description" }))))));
|
|
695
|
-
};
|
|
696
|
-
const TableHeader = () => {
|
|
697
|
-
return index.h("div", { id: "table-header", class: this.headerType, onScroll: () => this.handleHorizontalScroll() }, index.h("div", { class: `desktop-header-first-cell` }, (this.isDesktopView) ?
|
|
698
|
-
index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "left", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, index.h("slot", { name: "desktop-header-first-cell" }))
|
|
699
|
-
: null, index.h("div", { class: "scroll-button", id: "previous-scroll-button" }, index.h("div", { onClick: () => this.handleBackwardScroll() }, index.h("icon-asset", { type: "solid", size: "medium", name: "chevron-left", color: "primary-gray" }), index.h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "justify", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, "More"))), index.h("div", { class: "scroll-button", id: "next-scroll-button" }, index.h("div", { onClick: () => this.handleForwardScroll() }, index.h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "justify", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, "More"), index.h("icon-asset", { type: "solid", size: "medium", name: "chevron-right", color: "primary-gray" })))), ([...Array(this.dataCols).keys()]).map(col => {
|
|
700
|
-
return index.h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-densest", "para-margin": "margin-flush", "para-z-index": "z-1" }, index.h("slot", { name: `column-header-${col + 1}` })), ((this.columnHeaderLinks.length === this.dataCols) && (this.columnHeaderLinks[col])) ? index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: 'small', size: "small" }), index.h("ptc-spacer", { breakpoint: 'x-small', size: "medium" }), index.h("ptc-link", { "font-size": "medium", "font-weight": "w-extrabold", href: `${this.columnHeaderLinks[col].linkHref}`, "link-area": "undefined", target: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}", "link-title": this.columnHeaderLinks[col].linkTitle }, this.isDesktopView ?
|
|
701
|
-
index.h("ptc-tooltip", { class: (col === (this.dataCols - 1)) ? "last-column-tooltip" : "", "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.columnHeaderLinks[col].linkText, position: "top" })
|
|
702
|
-
: this.columnHeaderLinks[col].linkText)) : null);
|
|
703
|
-
}), index.h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` }));
|
|
704
|
-
};
|
|
705
|
-
const TableHeaderPlaceholder = () => {
|
|
706
|
-
return index.h("div", { id: "table-header-placeholder", class: this.headerType }, index.h("div", { class: `desktop-header-first-cell` }, (this.isDesktopView) ?
|
|
707
|
-
index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "left", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, index.h("slot", { name: "placeholder-desktop-header-first-cell" }))
|
|
708
|
-
: null), ([...Array(this.dataCols).keys()]).map(col => {
|
|
709
|
-
return index.h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-densest", "para-margin": "margin-flush", "para-z-index": "z-1" }, index.h("slot", { name: `placeholder-column-header-${col + 1}` })), ((this.columnHeaderLinks.length === this.dataCols) && (this.columnHeaderLinks[col])) ? index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: 'small', size: "small" }), index.h("ptc-spacer", { breakpoint: 'x-small', size: "medium" }), index.h("ptc-link", { "font-size": "medium", "font-weight": "w-extrabold", href: `${this.columnHeaderLinks[col].linkHref}`, "link-area": "undefined", target: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}", "link-title": this.columnHeaderLinks[col].linkTitle }, this.isDesktopView ?
|
|
710
|
-
index.h("ptc-tooltip", { class: (col === (this.dataCols - 1)) ? "last-column-tooltip" : "", "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.columnHeaderLinks[col].linkText, position: "top" })
|
|
711
|
-
: this.columnHeaderLinks[col].linkText)) : null);
|
|
712
|
-
}), index.h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` }));
|
|
713
|
-
};
|
|
714
|
-
const TableDataRows = () => {
|
|
715
|
-
return ([...Array(this.dataRows).keys()]).map(row => {
|
|
716
|
-
return index.h(index.Fragment, null, index.h("div", { class: "mobile-sticky-row-header" }, index.h("slot", { name: `mobile-row-header-${row + 1}` })), index.h("div", { class: `table-row ${(this.isDesktopView && (row % 2 != 0)) ? "desktop-alternate-row" : ""}` }, (this.isDesktopView) ?
|
|
717
|
-
index.h("div", { class: `desktop-sticky-row-header ${(this.isDesktopView && (row % 2 != 0)) ? "desktop-alternate-row" : ""}` }, index.h("slot", { name: `desktop-row-header-${row + 1}` })) : null, ([...Array(this.dataCols).keys()]).map(col => {
|
|
718
|
-
return index.h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, index.h("slot", { name: `cell-r${row + 1}-c${col + 1}` }));
|
|
719
|
-
}), index.h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` })));
|
|
720
|
-
});
|
|
721
|
-
};
|
|
722
|
-
const TableCtaRow = () => {
|
|
723
|
-
return (this.showCtaButtonsRow) ?
|
|
724
|
-
index.h("div", { class: "table-cta-row" }, (this.isDesktopView) ?
|
|
725
|
-
index.h("div", { class: "desktop-sticky-row-header" })
|
|
726
|
-
: null, ([...Array(this.dataCols).keys()]).map(col => {
|
|
727
|
-
return index.h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, (this.ctaButtons[col]) ?
|
|
728
|
-
index.h("ptc-button", { type: "link", color: "ptc-tertiary", "link-href": this.ctaButtons[col].linkHref, target: `${this.ctaButtons[col].linkTarget}`, "link-title": this.ctaButtons[col].linkTitle }, this.isDesktopView ?
|
|
729
|
-
index.h("ptc-tooltip", { class: (col === (this.dataCols - 1)) ? "last-column-tooltip" : "", "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.ctaButtons[col].linkText, position: "top" })
|
|
730
|
-
: this.ctaButtons[col].linkText) : null);
|
|
731
|
-
}), index.h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` })) : null;
|
|
732
|
-
};
|
|
733
|
-
const TableDisclaimers = () => {
|
|
734
|
-
return ((this.disclaimerCount > 0) && index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: "small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "large" }), this.disclaimers.map((_disclaimer, ind) => {
|
|
735
|
-
return index.h(index.Fragment, null, index.h("ptc-para", { "font-size": "xx-small", "font-weight": "w-6", "para-align": "center", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, index.h("slot", { name: `disclaimer-${ind + 1}` })), (ind != (this.disclaimerCount - 1)) ? index.h("ptc-spacer", { size: "xx-small" }) : null);
|
|
736
|
-
})));
|
|
737
|
-
};
|
|
738
|
-
return (index.h(index.Host, null, index.h("div", { id: "pricing-table" }, index.h(TableTitle, null), index.h(TableSubTitle, null), index.h(TableDescription, null), index.h("ptc-spacer", { breakpoint: "small", size: "xx-large" }), index.h("ptc-spacer", { breakpoint: "small", size: "xx-small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "xxx-large" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "xx-small" }), index.h("div", { id: "vertical-scroll-content-clipper", class: this.headerType }), index.h("div", { id: "table-container" }, index.h("div", { id: "horizontal-scroll-shadow" }), index.h("div", { id: "table-body", onScroll: () => this.handleHorizontalScroll() }, index.h(TableHeader, null), index.h(TableHeaderPlaceholder, null), index.h(TableDataRows, null), index.h(TableCtaRow, null))), index.h(TableDisclaimers, null))));
|
|
739
|
-
}
|
|
740
|
-
get el() { return index.getElement(this); }
|
|
741
|
-
};
|
|
742
|
-
PtcPricingPackagingTable.style = ptcPricingPackagingTableCss;
|
|
743
|
-
|
|
744
|
-
const ptcReadmoreCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card{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{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 .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}";
|
|
745
|
-
|
|
746
|
-
const PtcReadmore = class {
|
|
747
|
-
constructor(hostRef) {
|
|
748
|
-
index.registerInstance(this, hostRef);
|
|
749
|
-
this.moreText = 'read more';
|
|
750
|
-
this.lessText = undefined;
|
|
751
|
-
this.readMorePosition = 'right';
|
|
752
|
-
this.display = 'inline';
|
|
753
|
-
this.visibleLines = 'line2';
|
|
754
|
-
this.visibleLinesCustom = undefined;
|
|
755
|
-
this.zIndex = 'z-auto';
|
|
756
|
-
this.checked = false;
|
|
757
|
-
this.size = 'small';
|
|
758
|
-
this.isIcon = false;
|
|
759
|
-
this.color = 'blue';
|
|
760
|
-
}
|
|
761
|
-
async updateReadmoreStatus() {
|
|
762
|
-
setTimeout(() => {
|
|
763
|
-
this.addBtnTruncated();
|
|
764
|
-
}, 100);
|
|
765
|
-
}
|
|
766
|
-
addBtnTruncated() {
|
|
767
|
-
const appRoot = this.el.shadowRoot;
|
|
768
|
-
const ps = appRoot.querySelectorAll('.read-more-text');
|
|
769
|
-
ps.forEach(p => {
|
|
770
|
-
// if (this.visibleCharacters){
|
|
771
|
-
// const truncatedText = p.textContent.slice(0, this.visibleCharacters);
|
|
772
|
-
// p.textContent = truncatedText;
|
|
773
|
-
// }
|
|
774
|
-
p.classList[p.scrollHeight > p.clientHeight ? 'add' : 'remove']('truncated');
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
// Created this function to initialize the truncate function on specific elements like tabs
|
|
778
|
-
enableAddTruncatedClass(element) {
|
|
779
|
-
const allTabHeaders = document.querySelectorAll(element);
|
|
780
|
-
for (const element of Array.from(allTabHeaders)) {
|
|
781
|
-
let tabHeader = element;
|
|
782
|
-
if (tabHeader) {
|
|
783
|
-
tabHeader.addEventListener('click', () => {
|
|
784
|
-
setTimeout(() => {
|
|
785
|
-
this.addBtnTruncated();
|
|
786
|
-
}, 100);
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
componentDidLoad() {
|
|
792
|
-
this.addBtnTruncated();
|
|
793
|
-
document.addEventListener("readystatechange", () => {
|
|
794
|
-
if (document.readyState === "complete") {
|
|
795
|
-
this.addBtnTruncated();
|
|
796
|
-
}
|
|
797
|
-
});
|
|
798
|
-
this.enableAddTruncatedClass('tab-header');
|
|
799
|
-
this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
|
|
800
|
-
}
|
|
801
|
-
// click event handler
|
|
802
|
-
handleClick(event) {
|
|
803
|
-
this.addBtnTruncated();
|
|
804
|
-
// check if the input box is checked
|
|
805
|
-
this.checked = event.target.checked;
|
|
806
|
-
// Getting cta element
|
|
807
|
-
const cta = this.el.shadowRoot.querySelector('.read-more-cta-label');
|
|
808
|
-
// Updating the cta text
|
|
809
|
-
this.checked
|
|
810
|
-
? cta.innerHTML = `<span> ${this.lessText ? this.lessText : ''} </span>`
|
|
811
|
-
: cta.innerHTML = `<span> ${this.moreText ? this.moreText : ''}</span>`;
|
|
812
|
-
this.checked ? cta.classList.add('show-less-cta') : cta.classList.remove('show-less-cta');
|
|
813
|
-
}
|
|
814
|
-
render() {
|
|
815
|
-
const classMap = this.getCssClassMap();
|
|
816
|
-
return (index.h(index.Host, { class: this.display }, index.h("div", { class: classMap }, index.h("input", { type: "checkbox", id: "expanded", onClick: (e) => this.handleClick(e) }), !!this.visibleLines || !!this.visibleLinesCustom ? index.h("p", { class: `read-more-text ${this.visibleLines}`, style: { WebkitLineClamp: `${this.visibleLinesCustom}` } }, index.h("slot", null)) : null, index.h("label", { htmlFor: "expanded", role: "button", class: `${this.zIndex + ' ' + this.readMorePosition} read-more-cta-label` }, index.h("span", null, this.moreText)))));
|
|
817
|
-
}
|
|
818
|
-
getCssClassMap() {
|
|
819
|
-
return {
|
|
820
|
-
['box']: true,
|
|
821
|
-
[this.color]: true,
|
|
822
|
-
[this.size]: true,
|
|
823
|
-
['add-icon']: this.isIcon
|
|
824
|
-
};
|
|
825
|
-
}
|
|
826
|
-
get el() { return index.getElement(this); }
|
|
827
|
-
};
|
|
828
|
-
PtcReadmore.style = ptcReadmoreCss;
|
|
829
|
-
|
|
830
|
-
const ptcSpacerCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.ptc-spacer-horizontal){display:inline-block;height:100% !important}:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.ptc-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.ptc-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.small){width:12px;min-width:12px}}:host(.ptc-spacer-horizontal.medium){height:100%}:host(.ptc-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.large){width:20px;min-width:20px}}:host(.ptc-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.ptc-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.ptc-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.ptc-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.ptc-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.ptc-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.ptc-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.ptc-spacer-vertical.small){height:12px;min-height:12px}}:host(.ptc-spacer-vertical.medium){width:100%}:host(.ptc-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.ptc-spacer-vertical.large){height:20px;min-height:20px}}:host(.ptc-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.ptc-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.ptc-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.ptc-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.ptc-spacer-vertical.space-144){width:100%;height:144px;min-height:144px}:host(.ptc-spacer-vertical.space-120){width:100%;height:120px;min-height:120px}:host(.ptc-spacer-vertical.space-128){width:100%;height:128px;min-height:128px}:host(.ptc-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.ptc-spacer-xx-small){display:block}}:host(.ptc-spacer-x-small){display:none}@media (max-width: 35.99em){:host(.ptc-spacer-x-small){display:block}}:host(.ptc-spacer-small){display:none}@media (min-width: 36em){:host(.ptc-spacer-small){display:block}}:host(.ptc-spacer-medium){display:none}@media (min-width: 48em){:host(.ptc-spacer-medium){display:block}}:host(.ptc-spacer-large){display:none}@media (min-width: 62em){:host(.ptc-spacer-large){display:block}}:host(.ptc-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.ptc-spacer-x-large){display:block}}:host(.ptc-spacer-xx-large){display:none}@media (min-width: 75em){:host(.ptc-spacer-xx-large){display:block}}:host(.ptc-spacer-xxx-large){display:none}@media (min-width: 90em){:host(.ptc-spacer-xxx-large){display:block}}";
|
|
831
|
-
|
|
832
|
-
const PtcSpacer = class {
|
|
833
|
-
constructor(hostRef) {
|
|
834
|
-
index.registerInstance(this, hostRef);
|
|
835
|
-
this.breakpoint = '';
|
|
836
|
-
this.size = 'medium';
|
|
837
|
-
this.direction = 'vertical';
|
|
838
|
-
}
|
|
839
|
-
render() {
|
|
840
|
-
const classMap = this.getCssClassMap();
|
|
841
|
-
return (index.h(index.Host, { class: classMap }));
|
|
842
|
-
}
|
|
843
|
-
getCssClassMap() {
|
|
844
|
-
return {
|
|
845
|
-
[this.size]: true,
|
|
846
|
-
['ptc-spacer-horizontal']: this.direction === 'horizontal',
|
|
847
|
-
['ptc-spacer-vertical']: this.direction === 'vertical',
|
|
848
|
-
['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
|
|
849
|
-
['ptc-spacer-x-small']: this.breakpoint === 'x-small',
|
|
850
|
-
['ptc-spacer-small']: this.breakpoint === 'small',
|
|
851
|
-
['ptc-spacer-medium']: this.breakpoint === 'medium',
|
|
852
|
-
['ptc-spacer-large']: this.breakpoint === 'large',
|
|
853
|
-
['ptc-spacer-x-large']: this.breakpoint === 'x-large',
|
|
854
|
-
['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
|
|
855
|
-
['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
|
|
856
|
-
};
|
|
857
|
-
}
|
|
858
|
-
};
|
|
859
|
-
PtcSpacer.style = ptcSpacerCss;
|
|
860
|
-
|
|
861
|
-
const ptcTitleCss = "h1.sc-ptc-title,h2.sc-ptc-title,h3.sc-ptc-title,h4.sc-ptc-title,h5.sc-ptc-title,h6.sc-ptc-title,p.sc-ptc-title,ul.sc-ptc-title,li.sc-ptc-title,ptc-subnav.sc-ptc-title,ptc-tab-list.sc-ptc-title,ptc-link.sc-ptc-title,ptc-square-card.sc-ptc-title{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-title,h2.sc-ptc-title,h3.sc-ptc-title,h4.sc-ptc-title,h5.sc-ptc-title,h6.sc-ptc-title,p.sc-ptc-title,ul.sc-ptc-title,li.sc-ptc-title,ptc-subnav.sc-ptc-title,ptc-tab-list.sc-ptc-title,ptc-link.sc-ptc-title,ptc-square-card.sc-ptc-title{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}}div.center.sc-ptc-title{text-align:center}div.center.dotted.sc-ptc-title h1.sc-ptc-title::before,div.center.dotted.sc-ptc-title h2.sc-ptc-title::before,div.center.dotted.sc-ptc-title h3.sc-ptc-title::before,div.center.dotted.sc-ptc-title h4.sc-ptc-title::before,div.center.dotted.sc-ptc-title h5.sc-ptc-title::before,div.center.dotted.sc-ptc-title h6.sc-ptc-title::before{left:50%;transform:translateX(-50%)}div.left.sc-ptc-title{text-align:left}div.left.dotted.sc-ptc-title h1.sc-ptc-title::before,div.left.dotted.sc-ptc-title h2.sc-ptc-title::before,div.left.dotted.sc-ptc-title h3.sc-ptc-title::before,div.left.dotted.sc-ptc-title h4.sc-ptc-title::before,div.left.dotted.sc-ptc-title h5.sc-ptc-title::before,div.left.dotted.sc-ptc-title h6.sc-ptc-title::before{left:0%}div.right.sc-ptc-title{text-align:right}div.right.dotted.sc-ptc-title h1.sc-ptc-title::before,div.right.dotted.sc-ptc-title h2.sc-ptc-title::before,div.right.dotted.sc-ptc-title h3.sc-ptc-title::before,div.right.dotted.sc-ptc-title h4.sc-ptc-title::before,div.right.dotted.sc-ptc-title h5.sc-ptc-title::before,div.right.dotted.sc-ptc-title h6.sc-ptc-title::before{right:0%}div.inherit.sc-ptc-title{text-align:inherit}div.dotted.sc-ptc-title h1.sc-ptc-title::before,div.dotted.sc-ptc-title h2.sc-ptc-title::before,div.dotted.sc-ptc-title h3.sc-ptc-title::before,div.dotted.sc-ptc-title h4.sc-ptc-title::before,div.dotted.sc-ptc-title h5.sc-ptc-title::before,div.dotted.sc-ptc-title h6.sc-ptc-title::before{content:\"\";position:absolute;top:-6px;width:30%;display:block;border-top:3px dashed var(--color-green-07)}div.solid.sc-ptc-title h1.sc-ptc-title,div.solid.sc-ptc-title h2.sc-ptc-title,div.solid.sc-ptc-title h3.sc-ptc-title,div.solid.sc-ptc-title h4.sc-ptc-title,div.solid.sc-ptc-title h5.sc-ptc-title,div.solid.sc-ptc-title h6.sc-ptc-title{padding-top:12px}div.solid.sc-ptc-title h1.sc-ptc-title::before,div.solid.sc-ptc-title h2.sc-ptc-title::before,div.solid.sc-ptc-title h3.sc-ptc-title::before,div.solid.sc-ptc-title h4.sc-ptc-title::before,div.solid.sc-ptc-title h5.sc-ptc-title::before,div.solid.sc-ptc-title h6.sc-ptc-title::before{content:\"\";position:absolute;width:100%;height:0.7px;background-color:var(--color-gray-03);opacity:0.9;left:0px;top:0}div.solid.sc-ptc-title h1.sc-ptc-title::after,div.solid.sc-ptc-title h2.sc-ptc-title::after,div.solid.sc-ptc-title h3.sc-ptc-title::after,div.solid.sc-ptc-title h4.sc-ptc-title::after,div.solid.sc-ptc-title h5.sc-ptc-title::after,div.solid.sc-ptc-title h6.sc-ptc-title::after{content:\"\";position:absolute;width:56px;height:2px;background-color:var(--color-green-07);top:-2px;left:0px}div.is-standard.sc-ptc-title h1.sc-ptc-title,div.is-standard.sc-ptc-title h2.sc-ptc-title,div.is-standard.sc-ptc-title h3.sc-ptc-title,div.is-standard.sc-ptc-title h4.sc-ptc-title,div.is-standard.sc-ptc-title h5.sc-ptc-title,div.is-standard.sc-ptc-title h6.sc-ptc-title{display:inline-block;position:relative}div.is-standard.sc-ptc-title h1.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-extrabold);letter-spacing:0px;color:var(--color-gray-10)}@media only screen and (min-width: 768px){div.is-standard.sc-ptc-title h1.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.is-standard.sc-ptc-title h2.sc-ptc-title{font-size:var(--ptc-font-size-x-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-extrabold);color:var(--color-gray-10)}@media only screen and (min-width: 768px){div.is-standard.sc-ptc-title h2.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}}div.is-plm-hub.sc-ptc-title h1.sc-ptc-title,div.is-plm-hub.sc-ptc-title h2.sc-ptc-title,div.is-plm-hub.sc-ptc-title h3.sc-ptc-title,div.is-plm-hub.sc-ptc-title h4.sc-ptc-title,div.is-plm-hub.sc-ptc-title h5.sc-ptc-title,div.is-plm-hub.sc-ptc-title h6.sc-ptc-title{display:inline-block;position:relative;margin-block-start:0em;margin-block-end:0em;margin-inline-start:0px;margin-inline-end:0px;color:var(--color-white) !important}div.margin-flush.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-flush.sc-ptc-title h1.sc-ptc-title,div.margin-flush.sc-ptc-title h2.sc-ptc-title,div.margin-flush.sc-ptc-title h3.sc-ptc-title,div.margin-flush.sc-ptc-title h4.sc-ptc-title,div.margin-flush.sc-ptc-title h5.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-top-2.sc-ptc-title{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}div.margin-top-3.sc-ptc-title{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}div.margin-top-4.sc-ptc-title{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}div.margin-top-5.sc-ptc-title{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}div.margin-top-6.sc-ptc-title{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}div.margin-bottom-2.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}div.margin-bottom-3.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}div.margin-bottom-4.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}div.margin-bottom-5.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}div.margin-bottom-6.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}div.margin-2.sc-ptc-title{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}div.margin-3.sc-ptc-title{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}div.margin-4.sc-ptc-title{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}div.margin-5.sc-ptc-title{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}div.margin-5.sc-ptc-title h4.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-6.sc-ptc-title{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}div.margin-9.sc-ptc-title{margin-top:var(--ptc-element-spacing-09);margin-bottom:var(--ptc-element-spacing-09)}div.green.sc-ptc-title h1.sc-ptc-title,div.green.sc-ptc-title h2.sc-ptc-title,div.green.sc-ptc-title h3.sc-ptc-title,div.green.sc-ptc-title h4.sc-ptc-title,div.green.sc-ptc-title h5.sc-ptc-title,div.green.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-green-07)}div.blue.sc-ptc-title h1.sc-ptc-title,div.blue.sc-ptc-title h2.sc-ptc-title,div.blue.sc-ptc-title h3.sc-ptc-title,div.blue.sc-ptc-title h4.sc-ptc-title,div.blue.sc-ptc-title h5.sc-ptc-title,div.blue.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-blue-07)}div.red.sc-ptc-title h1.sc-ptc-title,div.red.sc-ptc-title h2.sc-ptc-title,div.red.sc-ptc-title h3.sc-ptc-title,div.red.sc-ptc-title h4.sc-ptc-title,div.red.sc-ptc-title h5.sc-ptc-title,div.red.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-red-07)}div.orange.sc-ptc-title h1.sc-ptc-title,div.orange.sc-ptc-title h2.sc-ptc-title,div.orange.sc-ptc-title h3.sc-ptc-title,div.orange.sc-ptc-title h4.sc-ptc-title,div.orange.sc-ptc-title h5.sc-ptc-title,div.orange.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-orange-07)}div.slate-grey.sc-ptc-title h1.sc-ptc-title,div.slate-grey.sc-ptc-title h2.sc-ptc-title,div.slate-grey.sc-ptc-title h3.sc-ptc-title,div.slate-grey.sc-ptc-title h4.sc-ptc-title,div.slate-grey.sc-ptc-title h5.sc-ptc-title,div.slate-grey.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-gray-07)}div.w-3.sc-ptc-title h1.sc-ptc-title,div.w-3.sc-ptc-title h2.sc-ptc-title,div.w-3.sc-ptc-title h3.sc-ptc-title,div.w-3.sc-ptc-title h4.sc-ptc-title,div.w-3.sc-ptc-title h5.sc-ptc-title,div.w-3.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-thin)}div.w-4.sc-ptc-title h1.sc-ptc-title,div.w-4.sc-ptc-title h2.sc-ptc-title,div.w-4.sc-ptc-title h3.sc-ptc-title,div.w-4.sc-ptc-title h4.sc-ptc-title,div.w-4.sc-ptc-title h5.sc-ptc-title,div.w-4.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-regular)}div.w-5.sc-ptc-title h1.sc-ptc-title,div.w-5.sc-ptc-title h2.sc-ptc-title,div.w-5.sc-ptc-title h3.sc-ptc-title,div.w-5.sc-ptc-title h4.sc-ptc-title,div.w-5.sc-ptc-title h5.sc-ptc-title,div.w-5.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-medium)}div.w-6.sc-ptc-title h1.sc-ptc-title,div.w-6.sc-ptc-title h2.sc-ptc-title,div.w-6.sc-ptc-title h3.sc-ptc-title,div.w-6.sc-ptc-title h4.sc-ptc-title,div.w-6.sc-ptc-title h5.sc-ptc-title,div.w-6.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-semibold)}div.w-7.sc-ptc-title h1.sc-ptc-title,div.w-7.sc-ptc-title h2.sc-ptc-title,div.w-7.sc-ptc-title h3.sc-ptc-title,div.w-7.sc-ptc-title h4.sc-ptc-title,div.w-7.sc-ptc-title h5.sc-ptc-title,div.w-7.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-bold)}div.w-8.sc-ptc-title h1.sc-ptc-title,div.w-8.sc-ptc-title h2.sc-ptc-title,div.w-8.sc-ptc-title h3.sc-ptc-title,div.w-8.sc-ptc-title h4.sc-ptc-title,div.w-8.sc-ptc-title h5.sc-ptc-title,div.w-8.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-extrabold)}div.w-9.sc-ptc-title h1.sc-ptc-title,div.w-9.sc-ptc-title h2.sc-ptc-title,div.w-9.sc-ptc-title h3.sc-ptc-title,div.w-9.sc-ptc-title h4.sc-ptc-title,div.w-9.sc-ptc-title h5.sc-ptc-title,div.w-9.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-black)}div.xx-small.sc-ptc-title h1.sc-ptc-title,div.xx-small.sc-ptc-title h2.sc-ptc-title,div.xx-small.sc-ptc-title h3.sc-ptc-title,div.xx-small.sc-ptc-title h4.sc-ptc-title,div.xx-small.sc-ptc-title h5.sc-ptc-title,div.xx-small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-small)}div.x-small.sc-ptc-title h1.sc-ptc-title,div.x-small.sc-ptc-title h2.sc-ptc-title,div.x-small.sc-ptc-title h3.sc-ptc-title,div.x-small.sc-ptc-title h4.sc-ptc-title,div.x-small.sc-ptc-title h5.sc-ptc-title,div.x-small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-x-small)}div.small.sc-ptc-title h1.sc-ptc-title,div.small.sc-ptc-title h2.sc-ptc-title,div.small.sc-ptc-title h3.sc-ptc-title,div.small.sc-ptc-title h4.sc-ptc-title,div.small.sc-ptc-title h5.sc-ptc-title,div.small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-small)}div.medium.sc-ptc-title h1.sc-ptc-title,div.medium.sc-ptc-title h2.sc-ptc-title,div.medium.sc-ptc-title h3.sc-ptc-title,div.medium.sc-ptc-title h4.sc-ptc-title,div.medium.sc-ptc-title h5.sc-ptc-title,div.medium.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-medium)}div.large.sc-ptc-title h1.sc-ptc-title,div.large.sc-ptc-title h2.sc-ptc-title,div.large.sc-ptc-title h3.sc-ptc-title,div.large.sc-ptc-title h4.sc-ptc-title,div.large.sc-ptc-title h5.sc-ptc-title,div.large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-large)}div.large.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-medium)}@media only screen and (min-width: 768px){div.large.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-large)}}div.x-large.sc-ptc-title h1.sc-ptc-title,div.x-large.sc-ptc-title h2.sc-ptc-title,div.x-large.sc-ptc-title h3.sc-ptc-title,div.x-large.sc-ptc-title h4.sc-ptc-title,div.x-large.sc-ptc-title h5.sc-ptc-title,div.x-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-x-large)}div.xx-large.sc-ptc-title h1.sc-ptc-title,div.xx-large.sc-ptc-title h2.sc-ptc-title,div.xx-large.sc-ptc-title h3.sc-ptc-title,div.xx-large.sc-ptc-title h4.sc-ptc-title{font-size:var(--ptc-font-size-x-large)}@media only screen and (min-width: 768px){div.xx-large.sc-ptc-title h1.sc-ptc-title,div.xx-large.sc-ptc-title h2.sc-ptc-title,div.xx-large.sc-ptc-title h3.sc-ptc-title,div.xx-large.sc-ptc-title h4.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}}div.xxx-large.sc-ptc-title h1.sc-ptc-title,div.xxx-large.sc-ptc-title h2.sc-ptc-title,div.xxx-large.sc-ptc-title h3.sc-ptc-title,div.xxx-large.sc-ptc-title h4.sc-ptc-title,div.xxx-large.sc-ptc-title h5.sc-ptc-title,div.xxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}@media only screen and (min-width: 768px){div.xxx-large.sc-ptc-title h1.sc-ptc-title,div.xxx-large.sc-ptc-title h2.sc-ptc-title,div.xxx-large.sc-ptc-title h3.sc-ptc-title,div.xxx-large.sc-ptc-title h4.sc-ptc-title,div.xxx-large.sc-ptc-title h5.sc-ptc-title,div.xxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}}div.xxxx-large.sc-ptc-title h1.sc-ptc-title,div.xxxx-large.sc-ptc-title h2.sc-ptc-title,div.xxxx-large.sc-ptc-title h3.sc-ptc-title,div.xxxx-large.sc-ptc-title h4.sc-ptc-title,div.xxxx-large.sc-ptc-title h5.sc-ptc-title,div.xxxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media only screen and (min-width: 768px){div.xxxx-large.sc-ptc-title h1.sc-ptc-title,div.xxxx-large.sc-ptc-title h2.sc-ptc-title,div.xxxx-large.sc-ptc-title h3.sc-ptc-title,div.xxxx-large.sc-ptc-title h4.sc-ptc-title,div.xxxx-large.sc-ptc-title h5.sc-ptc-title,div.xxxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.xx-large-allbp.sc-ptc-title h1.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h2.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h3.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h4.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h5.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}div.xxxx-large-allbp.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}div.xxxx-large-desktop.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media only screen and (min-width: 992px){div.xxxx-large-desktop.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.xxxx-large-store.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media only screen and (min-width: 992px){div.xxxx-large-store.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.densest.sc-ptc-title h1.sc-ptc-title,div.densest.sc-ptc-title h2.sc-ptc-title,div.densest.sc-ptc-title h3.sc-ptc-title,div.densest.sc-ptc-title h4.sc-ptc-title,div.densest.sc-ptc-title h5.sc-ptc-title,div.densest.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-densest)}div.denser.sc-ptc-title h1.sc-ptc-title,div.denser.sc-ptc-title h2.sc-ptc-title,div.denser.sc-ptc-title h3.sc-ptc-title,div.denser.sc-ptc-title h4.sc-ptc-title,div.denser.sc-ptc-title h5.sc-ptc-title,div.denser.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-denser)}div.dense.sc-ptc-title h1.sc-ptc-title,div.dense.sc-ptc-title h2.sc-ptc-title,div.dense.sc-ptc-title h3.sc-ptc-title,div.dense.sc-ptc-title h4.sc-ptc-title,div.dense.sc-ptc-title h5.sc-ptc-title,div.dense.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-dense)}div.normal.sc-ptc-title h1.sc-ptc-title,div.normal.sc-ptc-title h2.sc-ptc-title,div.normal.sc-ptc-title h3.sc-ptc-title,div.normal.sc-ptc-title h4.sc-ptc-title,div.normal.sc-ptc-title h5.sc-ptc-title,div.normal.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-normal)}div.loose.sc-ptc-title h1.sc-ptc-title,div.loose.sc-ptc-title h2.sc-ptc-title,div.loose.sc-ptc-title h3.sc-ptc-title,div.loose.sc-ptc-title h4.sc-ptc-title,div.loose.sc-ptc-title h5.sc-ptc-title,div.loose.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-loose)}div.looser.sc-ptc-title h1.sc-ptc-title,div.looser.sc-ptc-title h2.sc-ptc-title,div.looser.sc-ptc-title h3.sc-ptc-title,div.looser.sc-ptc-title h4.sc-ptc-title,div.looser.sc-ptc-title h5.sc-ptc-title,div.looser.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-looser)}div.paragraph.sc-ptc-title h1.sc-ptc-title,div.paragraph.sc-ptc-title h2.sc-ptc-title,div.paragraph.sc-ptc-title h3.sc-ptc-title,div.paragraph.sc-ptc-title h4.sc-ptc-title,div.paragraph.sc-ptc-title h5.sc-ptc-title,div.paragraph.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-paragraph)}div.black.sc-ptc-title h1.sc-ptc-title,div.black.sc-ptc-title h2.sc-ptc-title,div.black.sc-ptc-title h3.sc-ptc-title,div.black.sc-ptc-title h4.sc-ptc-title,div.black.sc-ptc-title h5.sc-ptc-title,div.black.sc-ptc-title h6.sc-ptc-title{color:var(--color-black)}div.white.sc-ptc-title h1.sc-ptc-title,div.white.sc-ptc-title h2.sc-ptc-title,div.white.sc-ptc-title h3.sc-ptc-title,div.white.sc-ptc-title h4.sc-ptc-title,div.white.sc-ptc-title h5.sc-ptc-title,div.white.sc-ptc-title h6.sc-ptc-title{color:var(--color-white)}div.gray-1.sc-ptc-title h1.sc-ptc-title,div.gray-1.sc-ptc-title h2.sc-ptc-title,div.gray-1.sc-ptc-title h3.sc-ptc-title,div.gray-1.sc-ptc-title h4.sc-ptc-title,div.gray-1.sc-ptc-title h5.sc-ptc-title,div.gray-1.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-01)}div.gray.sc-ptc-title h1.sc-ptc-title,div.gray.sc-ptc-title h2.sc-ptc-title,div.gray.sc-ptc-title h3.sc-ptc-title,div.gray.sc-ptc-title h4.sc-ptc-title,div.gray.sc-ptc-title h5.sc-ptc-title,div.gray.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-10)}div.gray-darker.sc-ptc-title h1.sc-ptc-title,div.gray-darker.sc-ptc-title h2.sc-ptc-title,div.gray-darker.sc-ptc-title h3.sc-ptc-title,div.gray-darker.sc-ptc-title h4.sc-ptc-title,div.gray-darker.sc-ptc-title h5.sc-ptc-title,div.gray-darker.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-11)}div.ellipsis-boxing.sc-ptc-title h1.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h2.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h3.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h4.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h5.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h6.sc-ptc-title{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;padding-bottom:0}div.block.sc-ptc-title h1.sc-ptc-title,div.block.sc-ptc-title h2.sc-ptc-title,div.block.sc-ptc-title h3.sc-ptc-title,div.block.sc-ptc-title h4.sc-ptc-title,div.block.sc-ptc-title h5.sc-ptc-title,div.block.sc-ptc-title h6.sc-ptc-title{display:block}";
|
|
862
|
-
|
|
863
|
-
const PtcTitle = class {
|
|
864
|
-
constructor(hostRef) {
|
|
865
|
-
index.registerInstance(this, hostRef);
|
|
866
|
-
this.isPlmHub = false;
|
|
867
|
-
this.type = 'h2';
|
|
868
|
-
this.textAlign = undefined;
|
|
869
|
-
this.upperline = 'dotted';
|
|
870
|
-
this.titleShadow = undefined;
|
|
871
|
-
this.titleColor = 'gray';
|
|
872
|
-
this.titleMargin = undefined;
|
|
873
|
-
this.titleWeight = undefined;
|
|
874
|
-
this.titleSize = undefined;
|
|
875
|
-
this.titleHeight = 'densest';
|
|
876
|
-
this.styles = undefined;
|
|
877
|
-
this.ellipsisLineCutoff = undefined;
|
|
878
|
-
this.titleDisplay = 'inline-block';
|
|
879
|
-
this.seoCompatibilityMode = false;
|
|
880
|
-
}
|
|
881
|
-
render() {
|
|
882
|
-
if (this.seoCompatibilityMode) {
|
|
883
|
-
return this.seoCompRender();
|
|
884
|
-
}
|
|
885
|
-
else {
|
|
886
|
-
return this.standardRender();
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
seoCompRender() {
|
|
890
|
-
const classMap = this.getCssClassMap();
|
|
891
|
-
const cutOff = this.getLineCuttoff();
|
|
892
|
-
const [TagType, firstChild] = utils.getSeoTagType(this.el, this.type);
|
|
893
|
-
const html = firstChild && firstChild.innerHTML;
|
|
894
|
-
if (this.el == firstChild) {
|
|
895
|
-
this.el.innerHTML = '';
|
|
896
|
-
}
|
|
897
|
-
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { class: classMap }, index.h(TagType, { innerHTML: html, style: cutOff }))));
|
|
898
|
-
}
|
|
899
|
-
standardRender() {
|
|
900
|
-
const classMap = this.getCssClassMap();
|
|
901
|
-
const cutOff = this.getLineCuttoff();
|
|
902
|
-
let TagType;
|
|
903
|
-
switch (this.type) {
|
|
904
|
-
case 'h1':
|
|
905
|
-
TagType = 'h1';
|
|
906
|
-
break;
|
|
907
|
-
case 'h3':
|
|
908
|
-
TagType = 'h3';
|
|
909
|
-
break;
|
|
910
|
-
case 'h4':
|
|
911
|
-
TagType = 'h4';
|
|
912
|
-
break;
|
|
913
|
-
case 'h5':
|
|
914
|
-
TagType = 'h5';
|
|
915
|
-
break;
|
|
916
|
-
case 'h6':
|
|
917
|
-
TagType = 'h6';
|
|
918
|
-
break;
|
|
919
|
-
default:
|
|
920
|
-
TagType = 'h2';
|
|
921
|
-
}
|
|
922
|
-
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { class: classMap }, index.h(TagType, { style: cutOff }, index.h("slot", null)))));
|
|
923
|
-
}
|
|
924
|
-
getCssClassMap() {
|
|
925
|
-
return {
|
|
926
|
-
[this.textAlign]: !!this.textAlign ? true : false,
|
|
927
|
-
[this.upperline]: true,
|
|
928
|
-
[this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
|
|
929
|
-
[this.titleMargin]: !!this.titleMargin ? true : false,
|
|
930
|
-
[this.titleShadow]: !!this.titleShadow ? true : false,
|
|
931
|
-
[this.titleWeight]: !!this.titleWeight ? true : false,
|
|
932
|
-
[this.titleSize]: !!this.titleSize ? true : false,
|
|
933
|
-
[this.titleHeight]: !!this.titleHeight ? true : false,
|
|
934
|
-
[this.titleColor]: !!this.titleColor ? true : false,
|
|
935
|
-
['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
|
|
936
|
-
[this.titleDisplay]: !!this.titleDisplay ? true : false,
|
|
937
|
-
};
|
|
938
|
-
}
|
|
939
|
-
getLineCuttoff() {
|
|
940
|
-
let result;
|
|
941
|
-
if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
|
|
942
|
-
result = {
|
|
943
|
-
['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
|
|
944
|
-
};
|
|
945
|
-
}
|
|
946
|
-
return result;
|
|
947
|
-
}
|
|
948
|
-
get el() { return index.getElement(this); }
|
|
949
|
-
};
|
|
950
|
-
PtcTitle.style = ptcTitleCss;
|
|
951
|
-
|
|
952
|
-
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{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{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)}.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}";
|
|
953
|
-
|
|
954
|
-
const PtcTooltip = class {
|
|
955
|
-
constructor(hostRef) {
|
|
956
|
-
index.registerInstance(this, hostRef);
|
|
957
|
-
this.textDisplay = 'inline';
|
|
958
|
-
this.maxLength = 45;
|
|
959
|
-
this.textLines = undefined;
|
|
960
|
-
this.description = 'This is a tooltip text placeholder';
|
|
961
|
-
this.zIndex = 'z-auto';
|
|
962
|
-
this.position = 'bottom';
|
|
963
|
-
this.styles = undefined;
|
|
964
|
-
this.mode = 'text-only';
|
|
965
|
-
this.theme = 'standard';
|
|
966
|
-
this.width = 'default';
|
|
967
|
-
this.hideOnMobile = false;
|
|
968
|
-
this.isSmallScreen = undefined;
|
|
969
|
-
this.noOverflow = false;
|
|
970
|
-
}
|
|
971
|
-
addTruncatedClass() {
|
|
972
|
-
const appRoot = this.el;
|
|
973
|
-
const text = appRoot.querySelectorAll('.ellipsis-by-line-boxing');
|
|
974
|
-
text.forEach(t => {
|
|
975
|
-
t.classList[t.scrollHeight > t.clientHeight ? 'add' : 'remove']('truncated');
|
|
976
|
-
});
|
|
977
|
-
}
|
|
978
|
-
windowResize() {
|
|
979
|
-
this.verifiyScreenSize();
|
|
980
|
-
}
|
|
981
|
-
verifiyScreenSize() {
|
|
982
|
-
this.isSmallScreen = window.innerWidth < 768;
|
|
983
|
-
}
|
|
984
|
-
// Created this function to initialize the truncate function on specific elements like tabs
|
|
985
|
-
enableAddTruncatedClass(element) {
|
|
986
|
-
const allTabHeaders = document.querySelectorAll(element);
|
|
987
|
-
for (const element of Array.from(allTabHeaders)) {
|
|
988
|
-
let tabHeader = element;
|
|
989
|
-
if (tabHeader) {
|
|
990
|
-
tabHeader.addEventListener('click', () => {
|
|
991
|
-
setTimeout(() => {
|
|
992
|
-
this.addTruncatedClass();
|
|
993
|
-
}, 100);
|
|
994
|
-
});
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
componentWillLoad() {
|
|
999
|
-
this.verifiyScreenSize();
|
|
1000
|
-
}
|
|
1001
|
-
componentDidLoad() {
|
|
1002
|
-
//this.addTruncatedClass();
|
|
1003
|
-
setTimeout(() => {
|
|
1004
|
-
this.addTruncatedClass();
|
|
1005
|
-
}, 1000);
|
|
1006
|
-
this.enableAddTruncatedClass('tab-header');
|
|
1007
|
-
this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
|
|
1008
|
-
this.enableAddTruncatedClass('ptc-product-card');
|
|
1009
|
-
document.addEventListener('readystatechange', () => {
|
|
1010
|
-
if (document.readyState === 'complete') {
|
|
1011
|
-
this.addTruncatedClass();
|
|
1012
|
-
}
|
|
1013
|
-
});
|
|
1014
|
-
}
|
|
1015
|
-
render() {
|
|
1016
|
-
if (this.mode == 'wrapper') {
|
|
1017
|
-
return (index.h(index.Host, { class: this.textDisplay }, this.styles && index.h("style", null, this.styles), index.h("div", { class: "wrapper-content" }, index.h("div", { class: "slot-content" }, index.h("slot", null)), index.h("div", { class: `tooltip ${this.position} ${this.theme}` }, index.h("slot", { name: "description" }), this.description && index.h("span", { innerHTML: this.description })))));
|
|
1018
|
-
}
|
|
1019
|
-
else {
|
|
1020
|
-
const classMap = this.getCssClassMap();
|
|
1021
|
-
const cutOff = this.getLineCuttoff();
|
|
1022
|
-
let truncatedText = this.description.substring(0, this.maxLength);
|
|
1023
|
-
if (this.description.length > this.maxLength) {
|
|
1024
|
-
//const lastSpace = truncatedText.lastIndexOf(' ');
|
|
1025
|
-
//truncatedText = truncatedText.substring(0, lastSpace);
|
|
1026
|
-
truncatedText += '... ';
|
|
1027
|
-
}
|
|
1028
|
-
return (index.h(index.Host, { class: { [this.textDisplay]: true, [this.width]: true, 'no-overflow': this.noOverflow } }, this.styles && index.h("style", null, this.styles), this.hideOnMobile && this.isSmallScreen ? (index.h("div", null, this.description)) : (index.h("div", { class: "text-content" }, this.textLines > 0 && !!this.textLines ? (index.h("div", { class: "ellipsis-by-line-boxing", style: cutOff, innerHTML: this.description })) : (index.h("div", { class: classMap }, truncatedText)), index.h("div", { class: `tooltip ${this.position} ${this.theme}`, innerHTML: this.description })))));
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1031
|
-
getCssClassMap() {
|
|
1032
|
-
return {
|
|
1033
|
-
// ['ellipsis-by-line-boxing']: this.textLines && this.textLines > 0,
|
|
1034
|
-
['text-ellipsis']: true,
|
|
1035
|
-
[this.zIndex]: this.description.length > this.maxLength ? true : false,
|
|
1036
|
-
['truncated']: this.description.length > this.maxLength && !this.textLines ? true : false,
|
|
1037
|
-
};
|
|
1038
|
-
}
|
|
1039
|
-
getLineCuttoff() {
|
|
1040
|
-
let result;
|
|
1041
|
-
if (this.textLines && this.textLines > 0) {
|
|
1042
|
-
result = {
|
|
1043
|
-
['-webkit-line-clamp']: `${this.textLines}`,
|
|
1044
|
-
};
|
|
1045
|
-
}
|
|
1046
|
-
return result;
|
|
1047
|
-
}
|
|
1048
|
-
get el() { return index.getElement(this); }
|
|
1049
|
-
};
|
|
1050
|
-
PtcTooltip.style = ptcTooltipCss;
|
|
1051
|
-
|
|
1052
|
-
exports.icon_asset = IconAsset;
|
|
1053
|
-
exports.list_item = ListItem;
|
|
1054
|
-
exports.ptc_button = PtcButton;
|
|
1055
|
-
exports.ptc_link = PtcLink;
|
|
1056
|
-
exports.ptc_para = PtcPara;
|
|
1057
|
-
exports.ptc_pricing_add_on_card = PtcPricingAddOnCard;
|
|
1058
|
-
exports.ptc_pricing_add_on_section = PtcPricingAddOnSection;
|
|
1059
|
-
exports.ptc_pricing_packaging_table = PtcPricingPackagingTable;
|
|
1060
|
-
exports.ptc_readmore = PtcReadmore;
|
|
1061
|
-
exports.ptc_spacer = PtcSpacer;
|
|
1062
|
-
exports.ptc_title = PtcTitle;
|
|
1063
|
-
exports.ptc_tooltip = PtcTooltip;
|