@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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { r as registerInstance, h, F as Fragment, H as Host, g as getElement } from './index-abb9f744.js';
|
|
2
|
+
|
|
3
|
+
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}";
|
|
4
|
+
|
|
5
|
+
const PtcPricingAddOnCard = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.cardTitle = undefined;
|
|
9
|
+
this.cardPricingText = undefined;
|
|
10
|
+
this.cardCtaHref = null;
|
|
11
|
+
this.cardCtaText = null;
|
|
12
|
+
this.cardCtaTarget = null;
|
|
13
|
+
this.cardDisclaimer = null;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (h(Host, null, h("div", { class: "add-on-card" }, 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), h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-align": "left", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, h("slot", { name: "card-pricing" })), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), 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) ?
|
|
17
|
+
h("slot", { name: "card-body" }) :
|
|
18
|
+
h("ptc-readmore", { "more-text": "More", "less-text": "Less" }, h("slot", { name: "card-body" })), h("slot", { name: "card-body" })), this.cardCtaHref && this.cardCtaText && h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "x-large" }), h("ptc-spacer", { breakpoint: "small", size: "xx-small" }), h("ptc-spacer", { breakpoint: "x-small", size: "xx-large" }), h("ptc-spacer", { breakpoint: "x-small", size: "xx-small" }), h("ptc-button", { type: "link", color: "ptc-tertiary", "link-href": this.cardCtaHref, target: this.cardCtaTarget }, h("ptc-tooltip", { "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.cardCtaText, position: "bottom" }))), this.cardDisclaimer && h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), 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) ? h("slot", { name: "card-disclaimer" }) : h("ptc-readmore", { "more-text": "More", "less-text": "Less" }, h("slot", { name: "card-disclaimer" })))))));
|
|
19
|
+
}
|
|
20
|
+
get el() { return getElement(this); }
|
|
21
|
+
};
|
|
22
|
+
PtcPricingAddOnCard.style = ptcPricingAddOnCardCss;
|
|
23
|
+
|
|
24
|
+
export { PtcPricingAddOnCard as ptc_pricing_add_on_card };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-abb9f744.js';
|
|
2
|
+
|
|
3
|
+
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}";
|
|
4
|
+
|
|
5
|
+
const PtcPricingAddOnSection = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.cardCount = undefined;
|
|
9
|
+
this.cardData = [];
|
|
10
|
+
this.sectionTitle = "";
|
|
11
|
+
}
|
|
12
|
+
componentWillLoad() {
|
|
13
|
+
if (this.cardCount > 8) {
|
|
14
|
+
this.cardCount = 8;
|
|
15
|
+
}
|
|
16
|
+
for (let i = 0; i < this.cardCount; i++) {
|
|
17
|
+
let title = this.el.querySelector(`[slot="card-title-${i + 1}"]`);
|
|
18
|
+
let pricing = this.el.querySelector(`[slot="card-pricing-${i + 1}"]`);
|
|
19
|
+
let cta = this.el.querySelector(`[slot="card-cta-${i + 1}"]`);
|
|
20
|
+
let disclaimer = this.el.querySelector(`[slot="card-disclaimer-${i + 1}"]`);
|
|
21
|
+
let data = {
|
|
22
|
+
title: title === null || title === void 0 ? void 0 : title.innerHTML.toString(),
|
|
23
|
+
pricing: pricing === null || pricing === void 0 ? void 0 : pricing.innerHTML.toString(),
|
|
24
|
+
cta: {
|
|
25
|
+
linkHref: (cta === null || cta === void 0 ? void 0 : cta.getAttribute('href')) || "",
|
|
26
|
+
linkText: (cta === null || cta === void 0 ? void 0 : cta.innerHTML.toString()) || "",
|
|
27
|
+
linkTarget: (cta === null || cta === void 0 ? void 0 : cta.getAttribute('target')) || "_blank",
|
|
28
|
+
},
|
|
29
|
+
disclaimer: (disclaimer === null || disclaimer === void 0 ? void 0 : disclaimer.innerHTML.toString()) || "",
|
|
30
|
+
};
|
|
31
|
+
title === null || title === void 0 ? void 0 : title.remove();
|
|
32
|
+
cta === null || cta === void 0 ? void 0 : cta.remove();
|
|
33
|
+
this.cardData.push(data);
|
|
34
|
+
}
|
|
35
|
+
if (this.cardData.length != this.cardCount) {
|
|
36
|
+
this.cardData = [];
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
render() {
|
|
40
|
+
return (h(Host, null, 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), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "is-grid has-col-gap-md" }, this.cardData.map((data, ind) => h("div", { class: "is-col-12 is-col-6-md is-col-4-lg is-col-3-xl" }, 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 }, h("span", { slot: "card-pricing" }, h("slot", { name: `card-pricing-${ind + 1}` })), h("div", { slot: "card-body" }, h("slot", { name: `card-body-${ind + 1}` })), h("span", { slot: "card-disclaimer" }, h("slot", { name: `card-disclaimer-${ind + 1}` }))))))));
|
|
41
|
+
}
|
|
42
|
+
get el() { return getElement(this); }
|
|
43
|
+
};
|
|
44
|
+
PtcPricingAddOnSection.style = ptcPricingAddOnSectionCss;
|
|
45
|
+
|
|
46
|
+
export { PtcPricingAddOnSection as ptc_pricing_add_on_section };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-abb9f744.js';
|
|
2
2
|
|
|
3
3
|
const ptcPricingBlockCss = "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;color:var(--color-gray-10);margin-top:var(--ptc-element-spacing-03)}:host .ptc-pricing-block{width:100%;background-color:var(--color-gray-02);border:1px solid var(--color-gray-02);border-radius:var(--ptc-border-radius-standard);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);display:block;transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium), border-color var(--ptc-ease-inout) var(--ptc-transition-medium)}:host .ptc-pricing-block.active{background-color:var(--color-gray-12);border-color:var(--color-gray-12);color:var(--color-white)}:host .ptc-pricing-block:hover:not(.active){border-color:var(--color-gray-12)}@media (min-width: 400px){:host .ptc-pricing-block{display:flex;justify-content:space-between;align-items:center}}:host .right-text{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-dense);text-align:left;margin:0px 20px 15px 15px;display:block}@media (min-width: 400px){:host .right-text{text-align:right;float:right;margin-top:15px}}:host .left-text{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);text-align:left;margin:15px 15px 0 20px;display:block}@media (min-width: 400px){:host .left-text{text-align:left;display:inline-block;margin-bottom:15px}}";
|
|
4
4
|
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement, F as Fragment } from './index-abb9f744.js';
|
|
2
|
+
|
|
3
|
+
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}}";
|
|
4
|
+
|
|
5
|
+
const PtcPricingPackagingTable = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.verticalScrollContentClipperHeightOptions = {
|
|
9
|
+
withSubNav: {
|
|
10
|
+
desktop: 104,
|
|
11
|
+
mobile: 80
|
|
12
|
+
},
|
|
13
|
+
withoutSubNav: {
|
|
14
|
+
desktop: 40,
|
|
15
|
+
mobile: 24
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
this.handleVerticalScroll = () => {
|
|
19
|
+
let verticalScrollContentClipper = this.el.shadowRoot.querySelector("#vertical-scroll-content-clipper");
|
|
20
|
+
let tableContainer = this.el.shadowRoot.querySelector("#table-container");
|
|
21
|
+
let tableBody = this.el.shadowRoot.querySelector("#table-body");
|
|
22
|
+
let tableHeaderPlaceholder = this.el.shadowRoot.querySelector("#table-header-placeholder");
|
|
23
|
+
let tableHeader = this.el.shadowRoot.querySelector("#table-header");
|
|
24
|
+
const scrollTopPosition = window.scrollY || document.documentElement.scrollTop;
|
|
25
|
+
if (scrollTopPosition < this.lastScrollTop) {
|
|
26
|
+
// Scrolling up
|
|
27
|
+
if (tableHeaderPlaceholder.getBoundingClientRect().top >= this.stickyTopAt) {
|
|
28
|
+
// Unstick header
|
|
29
|
+
this.headerType = "normal";
|
|
30
|
+
tableHeader.style.top = '0px';
|
|
31
|
+
}
|
|
32
|
+
if (this.headerType === "sticky") {
|
|
33
|
+
// Scroll the sticky header out of the window along with the table
|
|
34
|
+
if (tableContainer.getBoundingClientRect().bottom > tableHeader.getBoundingClientRect().bottom) {
|
|
35
|
+
if (tableHeader.getBoundingClientRect().top < this.stickyTopAt) {
|
|
36
|
+
tableHeader.style.top = `${Math.min(tableContainer.getBoundingClientRect().bottom - tableHeader.clientHeight, this.stickyTopAt)}px`;
|
|
37
|
+
verticalScrollContentClipper.style.top = `${(tableHeader.getBoundingClientRect().top - verticalScrollContentClipper.clientHeight)}px`;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
else if (scrollTopPosition > this.lastScrollTop) {
|
|
43
|
+
// Scrolling down
|
|
44
|
+
if (tableHeaderPlaceholder.getBoundingClientRect().top < this.stickyTopAt) {
|
|
45
|
+
// Stick header
|
|
46
|
+
this.headerType = "sticky";
|
|
47
|
+
tableHeader.style.top = `${this.stickyTopAt}px`;
|
|
48
|
+
tableHeader.style.width = `${tableBody.getBoundingClientRect().width}px`;
|
|
49
|
+
// tableHeader.scrollLeft = tableBody.scrollLeft;
|
|
50
|
+
}
|
|
51
|
+
if (this.headerType === "sticky") {
|
|
52
|
+
// Scroll the sticky header back into view along with the table
|
|
53
|
+
if (tableContainer.getBoundingClientRect().bottom <= tableHeader.getBoundingClientRect().bottom) {
|
|
54
|
+
tableHeader.style.top = `${(tableContainer.getBoundingClientRect().bottom - tableHeader.clientHeight)}px`;
|
|
55
|
+
verticalScrollContentClipper.style.top = `${(tableHeader.getBoundingClientRect().top - verticalScrollContentClipper.clientHeight)}px`;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
this.refreshHorizontalPosition();
|
|
60
|
+
this.lastScrollTop = scrollTopPosition <= 0 ? 0 : scrollTopPosition;
|
|
61
|
+
};
|
|
62
|
+
this.handleHorizontalScroll = () => {
|
|
63
|
+
this.refreshHorizontalPosition();
|
|
64
|
+
this.handleScrollButtonsVisibility();
|
|
65
|
+
};
|
|
66
|
+
this.handleScrollButtonsVisibility = () => {
|
|
67
|
+
let tableBody = this.el.shadowRoot.querySelector("#table-body");
|
|
68
|
+
let previousScrollButton = this.el.shadowRoot.querySelector("#previous-scroll-button");
|
|
69
|
+
let nextScrollButton = this.el.shadowRoot.querySelector("#next-scroll-button");
|
|
70
|
+
let horizontalScrollShadow = this.el.shadowRoot.querySelector("#horizontal-scroll-shadow");
|
|
71
|
+
if (tableBody.scrollLeft === 0) {
|
|
72
|
+
previousScrollButton.style.visibility = 'hidden';
|
|
73
|
+
horizontalScrollShadow.style.visibility = 'hidden';
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
previousScrollButton.style.visibility = 'visible';
|
|
77
|
+
horizontalScrollShadow.style.visibility = 'visible';
|
|
78
|
+
}
|
|
79
|
+
if ([-1, 0, 1].includes(Math.trunc(tableBody.scrollWidth - tableBody.scrollLeft) - Math.trunc(tableBody.getBoundingClientRect().width))) {
|
|
80
|
+
nextScrollButton.style.visibility = 'hidden';
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
nextScrollButton.style.visibility = 'visible';
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
this.handleForwardScroll = () => {
|
|
87
|
+
let scrollAdded = 0;
|
|
88
|
+
let tableBody = this.el.shadowRoot.querySelector("#table-body");
|
|
89
|
+
let intervalId = setInterval(() => {
|
|
90
|
+
scrollAdded += this.scrollAmount;
|
|
91
|
+
if ((scrollAdded == this.scrollLimit) || [-1, 0, 1].includes(Math.trunc(tableBody.scrollWidth - tableBody.scrollLeft) - Math.trunc(tableBody.getBoundingClientRect().width))) {
|
|
92
|
+
clearInterval(intervalId);
|
|
93
|
+
}
|
|
94
|
+
tableBody.scrollLeft += scrollAdded;
|
|
95
|
+
}, this.scrollTimeInterval);
|
|
96
|
+
};
|
|
97
|
+
this.handleBackwardScroll = () => {
|
|
98
|
+
let scrollReduced = 0;
|
|
99
|
+
let pricingTable = this.el.shadowRoot.querySelector("#pricing-table");
|
|
100
|
+
let tableBody = this.el.shadowRoot.querySelector("#table-body");
|
|
101
|
+
let intervalId = setInterval(() => {
|
|
102
|
+
scrollReduced += this.scrollAmount;
|
|
103
|
+
if ((scrollReduced == this.scrollLimit) || (pricingTable.getBoundingClientRect().left >= tableBody.getBoundingClientRect().right)) {
|
|
104
|
+
clearInterval(intervalId);
|
|
105
|
+
}
|
|
106
|
+
tableBody.scrollLeft -= scrollReduced;
|
|
107
|
+
}, this.scrollTimeInterval);
|
|
108
|
+
};
|
|
109
|
+
this.setFillerCellWidth = (fillerWidth) => {
|
|
110
|
+
this.el.style.setProperty('--filler-cell-width', `${fillerWidth}px`);
|
|
111
|
+
};
|
|
112
|
+
this.expandTableCells = () => {
|
|
113
|
+
let pricingTable = this.el.shadowRoot.querySelector("#pricing-table");
|
|
114
|
+
let desktopHeaderFirstCell = this.el.shadowRoot.querySelector(".desktop-header-first-cell");
|
|
115
|
+
let emptySpace = pricingTable.getBoundingClientRect().width - desktopHeaderFirstCell.getBoundingClientRect().width;
|
|
116
|
+
let fillerWidth = (emptySpace / this.dataCols);
|
|
117
|
+
if (this.isDesktopView) {
|
|
118
|
+
this.el.style.setProperty('--cell-width-xxs', `${this.cellWidthXXS}px`);
|
|
119
|
+
this.el.style.setProperty('--cell-width-md', `${fillerWidth - this.cellLeftRightPadding}px`);
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
this.el.style.setProperty('--cell-width-xxs', `${fillerWidth - this.cellLeftRightPadding}px`);
|
|
123
|
+
this.el.style.setProperty('--cell-width-md', `${this.cellWidthMD}px`);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
this.handleFillEmptySpace = () => {
|
|
127
|
+
let pricingTable = this.el.shadowRoot.querySelector("#pricing-table");
|
|
128
|
+
let tableHeaderPlaceholder = this.el.shadowRoot.querySelector("#table-header-placeholder");
|
|
129
|
+
if (tableHeaderPlaceholder.getBoundingClientRect().right < pricingTable.getBoundingClientRect().right) {
|
|
130
|
+
this.hasEmptySpace = true;
|
|
131
|
+
this.expandTableCells();
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
this.resetWidthVariables = () => {
|
|
135
|
+
this.el.style.setProperty('--cell-width-xxs', `${this.cellWidthXXS}px`);
|
|
136
|
+
this.el.style.setProperty('--cell-width-md', `${this.cellWidthMD}px`);
|
|
137
|
+
};
|
|
138
|
+
this.handleTableReset = () => {
|
|
139
|
+
let verticalScrollContentClipper = this.el.shadowRoot.querySelector("#vertical-scroll-content-clipper");
|
|
140
|
+
let tableHeader = this.el.shadowRoot.querySelector("#table-header");
|
|
141
|
+
let tableBody = this.el.shadowRoot.querySelector("#table-body");
|
|
142
|
+
let nextScrollButton = this.el.shadowRoot.querySelector("#next-scroll-button");
|
|
143
|
+
let desktopHeaderFirstCell = this.el.shadowRoot.querySelector(".desktop-header-first-cell");
|
|
144
|
+
let horizontalScrollShadow = this.el.shadowRoot.querySelector("#horizontal-scroll-shadow");
|
|
145
|
+
this.isDesktopView = (window.innerWidth >= 992);
|
|
146
|
+
this.resetWidthVariables();
|
|
147
|
+
if (this.pageWithSubnav) {
|
|
148
|
+
if (this.isDesktopView) {
|
|
149
|
+
this.stickyTopAt = this.verticalScrollContentClipperHeightOptions["withSubNav"]["desktop"];
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
this.stickyTopAt = this.verticalScrollContentClipperHeightOptions["withSubNav"]["mobile"];
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
if (this.isDesktopView) {
|
|
157
|
+
this.stickyTopAt = this.verticalScrollContentClipperHeightOptions["withoutSubNav"]["desktop"];
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
this.stickyTopAt = this.verticalScrollContentClipperHeightOptions["withoutSubNav"]["mobile"];
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
this.el.style.setProperty('--sticky-stop-at', `${this.stickyTopAt}px`);
|
|
164
|
+
const bodyBackgroundColor = window.getComputedStyle(document.body, null).getPropertyValue('background-color');
|
|
165
|
+
if (bodyBackgroundColor === ("rgba(0, 0, 0, 0)" )) {
|
|
166
|
+
verticalScrollContentClipper.style.backgroundColor = "white";
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
verticalScrollContentClipper.style.backgroundColor = bodyBackgroundColor;
|
|
170
|
+
}
|
|
171
|
+
verticalScrollContentClipper.style.width = `${tableBody.getBoundingClientRect().width + 20}px`;
|
|
172
|
+
verticalScrollContentClipper.style.transform = `translateX(-10px)`;
|
|
173
|
+
tableHeader.style.width = `${tableBody.getBoundingClientRect().width}px`;
|
|
174
|
+
tableHeader.scrollLeft = tableBody.scrollLeft;
|
|
175
|
+
nextScrollButton.style.left = `${tableBody.getBoundingClientRect().width}px`;
|
|
176
|
+
horizontalScrollShadow.style.left = `${desktopHeaderFirstCell.getBoundingClientRect().width}px`;
|
|
177
|
+
this.handleScrollButtonsVisibility();
|
|
178
|
+
this.handleFillEmptySpace();
|
|
179
|
+
};
|
|
180
|
+
this.preProcessTableDescription = () => {
|
|
181
|
+
let tableDescription = this.el.querySelector('[slot="table-description"]');
|
|
182
|
+
if (tableDescription) {
|
|
183
|
+
this.tableDescription = tableDescription;
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
this.preProcessdesktopHeaderFirstCell = () => {
|
|
187
|
+
let desktopHeaderFirstCellSlot = this.el.querySelector('[slot="desktop-header-first-cell"]');
|
|
188
|
+
let desktopHeaderFirstCellText = desktopHeaderFirstCellSlot.innerHTML;
|
|
189
|
+
this.el.insertAdjacentHTML('afterbegin', `<span slot="placeholder-desktop-header-first-cell">${desktopHeaderFirstCellText}</span>`);
|
|
190
|
+
};
|
|
191
|
+
this.preProcessColumnHeaders = () => {
|
|
192
|
+
let columnHeaders = this.el.querySelectorAll('[slot^="column-header"]');
|
|
193
|
+
for (let i = 0; i < this.dataCols; i++) {
|
|
194
|
+
let slotValue = columnHeaders[i].getAttribute('slot');
|
|
195
|
+
let headerText = columnHeaders[i].innerHTML;
|
|
196
|
+
this.el.insertAdjacentHTML('afterbegin', `<span slot="placeholder-${slotValue}">${headerText}</span>`);
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
this.preProcessHeaderLinks = () => {
|
|
200
|
+
let headerLink;
|
|
201
|
+
for (let i = 0; i < this.dataCols; i++) {
|
|
202
|
+
headerLink = this.el.querySelector(`[slot^="header-link-${i + 1}"]`);
|
|
203
|
+
if (headerLink) {
|
|
204
|
+
let linkHref = headerLink.getAttribute('href');
|
|
205
|
+
let linkText = headerLink.innerHTML;
|
|
206
|
+
let linkTarget = headerLink.getAttribute('target');
|
|
207
|
+
let linkTitle = headerLink.getAttribute('title');
|
|
208
|
+
this.columnHeaderLinks.push({ linkHref, linkText, linkTarget, linkTitle });
|
|
209
|
+
headerLink.remove();
|
|
210
|
+
}
|
|
211
|
+
else {
|
|
212
|
+
this.columnHeaderLinks.push(null);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
this.preProcessRowHeaders = () => {
|
|
217
|
+
let rowHeader;
|
|
218
|
+
for (let i = 0; i < this.dataRows; i++) {
|
|
219
|
+
rowHeader = this.el.querySelector(`[slot^="row-header-${i + 1}"]`);
|
|
220
|
+
let tableRowHeaderP = rowHeader.querySelectorAll('.table-row-header-p');
|
|
221
|
+
for (let i = 0; i < tableRowHeaderP.length; i++) {
|
|
222
|
+
let ptcPara = document.createElement('ptc-para');
|
|
223
|
+
ptcPara.setAttribute("font-size", "small");
|
|
224
|
+
ptcPara.setAttribute("font-weight", "w-6");
|
|
225
|
+
ptcPara.setAttribute("para-align", "left");
|
|
226
|
+
ptcPara.setAttribute("para-color", "primary-grey");
|
|
227
|
+
ptcPara.setAttribute("para-line-h", "line-height-p");
|
|
228
|
+
ptcPara.setAttribute("para-margin", "margin-flush");
|
|
229
|
+
ptcPara.innerHTML = tableRowHeaderP[i].innerHTML;
|
|
230
|
+
tableRowHeaderP[i].replaceWith(ptcPara);
|
|
231
|
+
}
|
|
232
|
+
let slotValue = rowHeader.getAttribute('slot');
|
|
233
|
+
let headerContent = rowHeader.innerHTML;
|
|
234
|
+
this.el.insertAdjacentHTML('afterbegin', `<div slot="desktop-${slotValue}">${headerContent}</div><div slot="mobile-${slotValue}">${headerContent}</div>`);
|
|
235
|
+
rowHeader.remove();
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
this.preProcessCtaButtons = () => {
|
|
239
|
+
let ctaButton;
|
|
240
|
+
this.showCtaButtonsRow = false;
|
|
241
|
+
for (let i = 0; i < this.dataCols; i++) {
|
|
242
|
+
ctaButton = this.el.querySelector(`[slot^="cta-button-${i + 1}"]`);
|
|
243
|
+
if (ctaButton) {
|
|
244
|
+
let linkHref = ctaButton.getAttribute('href');
|
|
245
|
+
let linkText = ctaButton.innerHTML;
|
|
246
|
+
let linkTarget = ctaButton.getAttribute('target');
|
|
247
|
+
let linkTitle = ctaButton.getAttribute('title');
|
|
248
|
+
this.ctaButtons.push({ linkHref, linkText, linkTarget, linkTitle });
|
|
249
|
+
ctaButton.remove();
|
|
250
|
+
this.showCtaButtonsRow = true;
|
|
251
|
+
}
|
|
252
|
+
else {
|
|
253
|
+
this.ctaButtons.push(null);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
this.preProcessDisclaimers = () => {
|
|
258
|
+
let disclaimers = this.el.querySelectorAll('[slot^="disclaimer"]');
|
|
259
|
+
for (let i = 0; i < this.disclaimerCount; i++) {
|
|
260
|
+
this.disclaimers.push(disclaimers[i].innerHTML);
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
this.pageWithSubnav = false;
|
|
264
|
+
this.tableTitle = undefined;
|
|
265
|
+
this.tableSubTitle = "";
|
|
266
|
+
this.dataRows = undefined;
|
|
267
|
+
this.dataCols = undefined;
|
|
268
|
+
this.disclaimerCount = 0;
|
|
269
|
+
this.isDesktopView = undefined;
|
|
270
|
+
this.cellWidthXXS = 180;
|
|
271
|
+
this.cellWidthMD = 225;
|
|
272
|
+
this.cellLeftRightPadding = 48;
|
|
273
|
+
this.headerType = "normal";
|
|
274
|
+
this.lastScrollTop = undefined;
|
|
275
|
+
this.scrollTimeInterval = 25;
|
|
276
|
+
this.scrollAmount = 5;
|
|
277
|
+
this.scrollLimit = 50;
|
|
278
|
+
this.stickyTopAt = undefined;
|
|
279
|
+
this.columnHeaderLinks = [];
|
|
280
|
+
this.hasEmptySpace = false;
|
|
281
|
+
this.showFillerCells = false;
|
|
282
|
+
this.showCtaButtonsRow = undefined;
|
|
283
|
+
this.ctaButtons = [];
|
|
284
|
+
this.disclaimers = [];
|
|
285
|
+
this.tableDescription = undefined;
|
|
286
|
+
}
|
|
287
|
+
refreshHorizontalPosition() {
|
|
288
|
+
let refreshCount = 0;
|
|
289
|
+
let tableHeader = this.el.shadowRoot.querySelector("#table-header");
|
|
290
|
+
let tableBody = this.el.shadowRoot.querySelector("#table-body");
|
|
291
|
+
let refresh = () => {
|
|
292
|
+
tableHeader.scrollLeft = tableBody.scrollLeft;
|
|
293
|
+
refreshCount++;
|
|
294
|
+
if (refreshCount < 5) {
|
|
295
|
+
window.requestAnimationFrame(refresh);
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
window.requestAnimationFrame(refresh);
|
|
299
|
+
}
|
|
300
|
+
componentWillLoad() {
|
|
301
|
+
this.preProcessTableDescription();
|
|
302
|
+
this.preProcessdesktopHeaderFirstCell();
|
|
303
|
+
this.preProcessColumnHeaders();
|
|
304
|
+
this.preProcessHeaderLinks();
|
|
305
|
+
this.preProcessRowHeaders();
|
|
306
|
+
this.preProcessCtaButtons();
|
|
307
|
+
this.preProcessDisclaimers();
|
|
308
|
+
}
|
|
309
|
+
componentDidLoad() {
|
|
310
|
+
this.handleTableReset();
|
|
311
|
+
window.addEventListener("scroll", () => this.handleVerticalScroll());
|
|
312
|
+
window.addEventListener("resize", () => this.handleTableReset());
|
|
313
|
+
}
|
|
314
|
+
render() {
|
|
315
|
+
const TableTitle = () => {
|
|
316
|
+
return (this.tableTitle && h(Fragment, null, h("div", { class: "table-descriptor" }, 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)
|
|
317
|
+
? h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "x-small" }), h("ptc-spacer", { breakpoint: "x-small", size: "small" }))
|
|
318
|
+
: (this.tableDescription)
|
|
319
|
+
? h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))
|
|
320
|
+
: null));
|
|
321
|
+
};
|
|
322
|
+
const TableSubTitle = () => {
|
|
323
|
+
return (this.tableSubTitle && h(Fragment, null, h("div", { class: "table-descriptor" }, 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)), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" })));
|
|
324
|
+
};
|
|
325
|
+
const TableDescription = () => {
|
|
326
|
+
return (this.tableDescription && h(Fragment, null, h("div", { class: "table-descriptor" }, 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) ?
|
|
327
|
+
h("slot", { name: "table-description" }) :
|
|
328
|
+
h("ptc-readmore", { "more-text": "More", "less-text": "Less" }, h("slot", { name: "table-description" }))))));
|
|
329
|
+
};
|
|
330
|
+
const TableHeader = () => {
|
|
331
|
+
return h("div", { id: "table-header", class: this.headerType, onScroll: () => this.handleHorizontalScroll() }, h("div", { class: `desktop-header-first-cell` }, (this.isDesktopView) ?
|
|
332
|
+
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" }, h("slot", { name: "desktop-header-first-cell" }))
|
|
333
|
+
: null, h("div", { class: "scroll-button", id: "previous-scroll-button" }, h("div", { onClick: () => this.handleBackwardScroll() }, h("icon-asset", { type: "solid", size: "medium", name: "chevron-left", color: "primary-gray" }), 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"))), h("div", { class: "scroll-button", id: "next-scroll-button" }, h("div", { onClick: () => this.handleForwardScroll() }, 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"), h("icon-asset", { type: "solid", size: "medium", name: "chevron-right", color: "primary-gray" })))), ([...Array(this.dataCols).keys()]).map(col => {
|
|
334
|
+
return h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, 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" }, h("slot", { name: `column-header-${col + 1}` })), ((this.columnHeaderLinks.length === this.dataCols) && (this.columnHeaderLinks[col])) ? h(Fragment, null, h("ptc-spacer", { breakpoint: 'small', size: "small" }), h("ptc-spacer", { breakpoint: 'x-small', size: "medium" }), 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 ?
|
|
335
|
+
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" })
|
|
336
|
+
: this.columnHeaderLinks[col].linkText)) : null);
|
|
337
|
+
}), h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` }));
|
|
338
|
+
};
|
|
339
|
+
const TableHeaderPlaceholder = () => {
|
|
340
|
+
return h("div", { id: "table-header-placeholder", class: this.headerType }, h("div", { class: `desktop-header-first-cell` }, (this.isDesktopView) ?
|
|
341
|
+
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" }, h("slot", { name: "placeholder-desktop-header-first-cell" }))
|
|
342
|
+
: null), ([...Array(this.dataCols).keys()]).map(col => {
|
|
343
|
+
return h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, 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" }, h("slot", { name: `placeholder-column-header-${col + 1}` })), ((this.columnHeaderLinks.length === this.dataCols) && (this.columnHeaderLinks[col])) ? h(Fragment, null, h("ptc-spacer", { breakpoint: 'small', size: "small" }), h("ptc-spacer", { breakpoint: 'x-small', size: "medium" }), 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 ?
|
|
344
|
+
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" })
|
|
345
|
+
: this.columnHeaderLinks[col].linkText)) : null);
|
|
346
|
+
}), h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` }));
|
|
347
|
+
};
|
|
348
|
+
const TableDataRows = () => {
|
|
349
|
+
return ([...Array(this.dataRows).keys()]).map(row => {
|
|
350
|
+
return h(Fragment, null, h("div", { class: "mobile-sticky-row-header" }, h("slot", { name: `mobile-row-header-${row + 1}` })), h("div", { class: `table-row ${(this.isDesktopView && (row % 2 != 0)) ? "desktop-alternate-row" : ""}` }, (this.isDesktopView) ?
|
|
351
|
+
h("div", { class: `desktop-sticky-row-header ${(this.isDesktopView && (row % 2 != 0)) ? "desktop-alternate-row" : ""}` }, h("slot", { name: `desktop-row-header-${row + 1}` })) : null, ([...Array(this.dataCols).keys()]).map(col => {
|
|
352
|
+
return h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, h("slot", { name: `cell-r${row + 1}-c${col + 1}` }));
|
|
353
|
+
}), h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` })));
|
|
354
|
+
});
|
|
355
|
+
};
|
|
356
|
+
const TableCtaRow = () => {
|
|
357
|
+
return (this.showCtaButtonsRow) ?
|
|
358
|
+
h("div", { class: "table-cta-row" }, (this.isDesktopView) ?
|
|
359
|
+
h("div", { class: "desktop-sticky-row-header" })
|
|
360
|
+
: null, ([...Array(this.dataCols).keys()]).map(col => {
|
|
361
|
+
return h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, (this.ctaButtons[col]) ?
|
|
362
|
+
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 ?
|
|
363
|
+
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" })
|
|
364
|
+
: this.ctaButtons[col].linkText) : null);
|
|
365
|
+
}), h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` })) : null;
|
|
366
|
+
};
|
|
367
|
+
const TableDisclaimers = () => {
|
|
368
|
+
return ((this.disclaimerCount > 0) && h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), this.disclaimers.map((_disclaimer, ind) => {
|
|
369
|
+
return h(Fragment, null, 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" }, h("slot", { name: `disclaimer-${ind + 1}` })), (ind != (this.disclaimerCount - 1)) ? h("ptc-spacer", { size: "xx-small" }) : null);
|
|
370
|
+
})));
|
|
371
|
+
};
|
|
372
|
+
return (h(Host, null, h("div", { id: "pricing-table" }, h(TableTitle, null), h(TableSubTitle, null), h(TableDescription, null), h("ptc-spacer", { breakpoint: "small", size: "xx-large" }), h("ptc-spacer", { breakpoint: "small", size: "xx-small" }), h("ptc-spacer", { breakpoint: "x-small", size: "xxx-large" }), h("ptc-spacer", { breakpoint: "x-small", size: "xx-small" }), h("div", { id: "vertical-scroll-content-clipper", class: this.headerType }), h("div", { id: "table-container" }, h("div", { id: "horizontal-scroll-shadow" }), h("div", { id: "table-body", onScroll: () => this.handleHorizontalScroll() }, h(TableHeader, null), h(TableHeaderPlaceholder, null), h(TableDataRows, null), h(TableCtaRow, null))), h(TableDisclaimers, null))));
|
|
373
|
+
}
|
|
374
|
+
get el() { return getElement(this); }
|
|
375
|
+
};
|
|
376
|
+
PtcPricingPackagingTable.style = ptcPricingPackagingTableCss;
|
|
377
|
+
|
|
378
|
+
export { PtcPricingPackagingTable as ptc_pricing_packaging_table };
|