@ptcwebops/ptcw-design 2.1.6 → 2.1.7
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/bundle-example.cjs.entry.js +1 -1
- package/dist/cjs/bundle-jumbotron-example.cjs.entry.js +1 -1
- package/dist/cjs/dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/dynamic-box-bundle.cjs.entry.js +1 -1
- package/dist/cjs/featured-list.cjs.entry.js +1 -1
- package/dist/cjs/fl-tab-content_3.cjs.entry.js +61 -0
- package/dist/cjs/icon-asset.cjs.entry.js +53 -0
- package/dist/cjs/{index-88135a6b.js → index-1662de74.js} +2 -0
- package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
- package/dist/cjs/list-item.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/lottie-player.cjs.entry.js +1 -1
- package/dist/cjs/max-width-container.cjs.entry.js +8 -2
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/ptc-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/ptc-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ptc-announcement.cjs.entry.js +1 -1
- package/dist/cjs/ptc-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/ptc-background-video_2.cjs.entry.js +195 -0
- package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-breadcrumb_2.cjs.entry.js +2 -2
- package/dist/cjs/ptc-button.cjs.entry.js +48 -0
- package/dist/cjs/ptc-card-bottom_3.cjs.entry.js +1 -1
- package/dist/cjs/ptc-card-content.cjs.entry.js +1 -1
- package/dist/cjs/ptc-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
- package/dist/cjs/ptc-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ptc-collapse-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-container.cjs.entry.js +1 -1
- package/dist/cjs/ptc-date.cjs.entry.js +1 -1
- package/dist/cjs/ptc-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ptc-dynamic-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ptc-featured-list.cjs.entry.js +93 -0
- package/dist/cjs/ptc-filter-tag.cjs.entry.js +1 -1
- package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +1 -1
- package/dist/cjs/ptc-hero.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-component.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-minimize.cjs.entry.js +1 -1
- package/dist/cjs/ptc-image-download-strip.cjs.entry.js +1 -1
- package/dist/cjs/ptc-link.cjs.entry.js +1 -1
- package/dist/cjs/ptc-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-lottie.cjs.entry.js +1 -1
- package/dist/cjs/ptc-media-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-minimized-nav.cjs.entry.js +1 -1
- package/dist/cjs/ptc-mobile-select.cjs.entry.js +1 -1
- package/dist/cjs/ptc-modal.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-link.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-pills.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-slider.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-submenu.cjs.entry.js +1 -1
- package/dist/cjs/ptc-news.cjs.entry.js +1 -1
- package/dist/cjs/ptc-overlay.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pagenation.cjs.entry.js +1 -1
- package/dist/cjs/ptc-para.cjs.entry.js +62 -0
- package/dist/cjs/ptc-picture.cjs.entry.js +1 -1
- package/dist/cjs/ptc-previous-url.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-add-on-card.cjs.entry.js +27 -0
- package/dist/cjs/ptc-pricing-add-on-section.cjs.entry.js +50 -0
- package/dist/cjs/ptc-pricing-block.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-table.cjs.entry.js +437 -0
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-category.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/ptc-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ptc-quote.cjs.entry.js +1 -1
- package/dist/cjs/ptc-readmore-char.cjs.entry.js +1 -1
- package/dist/cjs/ptc-readmore.cjs.entry.js +1 -1
- package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/ptc-search-field.cjs.entry.js +1 -1
- package/dist/cjs/ptc-shopping-cart.cjs.entry.js +1 -1
- package/dist/cjs/ptc-slit-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-social-share.cjs.entry.js +1 -1
- package/dist/cjs/ptc-spacer.cjs.entry.js +1 -1
- package/dist/cjs/ptc-span.cjs.entry.js +1 -1
- package/dist/cjs/ptc-square-card.cjs.entry.js +2 -2
- package/dist/cjs/ptc-sticky-icons.cjs.entry.js +1 -1
- package/dist/cjs/ptc-sticky-section.cjs.entry.js +1 -1
- package/dist/cjs/ptc-sticky-title.cjs.entry.js +1 -1
- package/dist/cjs/ptc-subnav-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-subnav.cjs.entry.js +1 -1
- package/dist/cjs/ptc-svg-btn.cjs.entry.js +1 -1
- package/dist/cjs/ptc-tab-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-tab.cjs.entry.js +1 -1
- package/dist/cjs/ptc-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +1 -1
- package/dist/cjs/ptc-title.cjs.entry.js +78 -0
- package/dist/cjs/ptc-tooltip.cjs.entry.js +106 -0
- package/dist/cjs/ptc-two-column-media.cjs.entry.js +1 -1
- package/dist/cjs/ptcw-design.cjs.js +2 -2
- package/dist/cjs/sequential-bundle-example.cjs.entry.js +1 -1
- package/dist/cjs/sequential-bundle.cjs.entry.js +1 -1
- package/dist/cjs/tab-content.cjs.entry.js +1 -1
- package/dist/cjs/tab-header.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/max-width-container/max-width-container.js +24 -1
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +1 -1
- package/dist/collection/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.css +14 -0
- package/dist/collection/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.js +120 -0
- package/dist/collection/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.css +3 -0
- package/dist/collection/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.js +76 -0
- package/dist/collection/components/ptc-pricing-table/ptc-pricing-table.css +292 -0
- package/dist/collection/components/ptc-pricing-table/ptc-pricing-table.js +581 -0
- package/dist/collection/components/ptc-square-card/ptc-square-card.css +19 -1
- package/dist/collection/stories/Button.stories.js +68 -24
- package/dist/custom-elements/index.d.ts +18 -0
- package/dist/custom-elements/index.js +516 -6
- 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/featured-list.entry.js +1 -1
- package/dist/esm/fl-tab-content_3.entry.js +55 -0
- package/dist/esm/icon-asset.entry.js +49 -0
- package/dist/esm/{index-4afc9d28.js → index-22a84644.js} +2 -1
- package/dist/esm/innovator-toggle-container.entry.js +1 -1
- package/dist/esm/list-item.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/lottie-player.entry.js +1 -1
- package/dist/esm/max-width-container.entry.js +8 -2
- package/dist/esm/my-component.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_2.entry.js +190 -0
- package/dist/esm/ptc-bio-card.entry.js +1 -1
- package/dist/esm/ptc-breadcrumb_2.entry.js +2 -2
- package/dist/esm/ptc-button.entry.js +44 -0
- package/dist/esm/ptc-card-bottom_3.entry.js +1 -1
- package/dist/esm/ptc-card-content.entry.js +1 -1
- package/dist/esm/ptc-card.entry.js +1 -1
- package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
- package/dist/esm/ptc-checkbox.entry.js +1 -1
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-container.entry.js +1 -1
- package/dist/esm/ptc-date.entry.js +1 -1
- package/dist/esm/ptc-dropdown.entry.js +1 -1
- package/dist/esm/ptc-dynamic-card.entry.js +1 -1
- package/dist/esm/ptc-ellipsis-dropdown.entry.js +1 -1
- package/dist/esm/ptc-featured-list.entry.js +89 -0
- package/dist/esm/ptc-filter-tag.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-link.entry.js +1 -1
- package/dist/esm/ptc-list.entry.js +1 -1
- package/dist/esm/ptc-lottie.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.entry.js +1 -1
- package/dist/esm/ptc-nav-card.entry.js +1 -1
- package/dist/esm/ptc-nav-link.entry.js +1 -1
- package/dist/esm/ptc-nav-pills.entry.js +1 -1
- package/dist/esm/ptc-nav-slider.entry.js +1 -1
- package/dist/esm/ptc-nav-submenu.entry.js +1 -1
- package/dist/esm/ptc-news.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-para.entry.js +58 -0
- package/dist/esm/ptc-picture.entry.js +1 -1
- package/dist/esm/ptc-previous-url.entry.js +1 -1
- package/dist/esm/ptc-pricing-add-on-card.entry.js +23 -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-table.entry.js +433 -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 +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-shopping-cart.entry.js +1 -1
- package/dist/esm/ptc-slit-card.entry.js +1 -1
- package/dist/esm/ptc-social-share.entry.js +1 -1
- package/dist/esm/ptc-spacer.entry.js +1 -1
- package/dist/esm/ptc-span.entry.js +1 -1
- package/dist/esm/ptc-square-card.entry.js +2 -2
- package/dist/esm/ptc-sticky-icons.entry.js +1 -1
- package/dist/esm/ptc-sticky-section.entry.js +1 -1
- package/dist/esm/ptc-sticky-title.entry.js +1 -1
- package/dist/esm/ptc-subnav-card.entry.js +1 -1
- package/dist/esm/ptc-subnav.entry.js +1 -1
- package/dist/esm/ptc-svg-btn.entry.js +1 -1
- package/dist/esm/ptc-tab-list.entry.js +1 -1
- package/dist/esm/ptc-tab.entry.js +1 -1
- package/dist/esm/ptc-tabs.entry.js +1 -1
- package/dist/esm/ptc-text-copy-with-background.entry.js +1 -1
- package/dist/esm/ptc-title.entry.js +74 -0
- package/dist/esm/ptc-tooltip.entry.js +102 -0
- package/dist/esm/ptc-two-column-media.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-c6f0e262.entry.js → p-000ed892.entry.js} +1 -1
- package/dist/ptcw-design/{p-a532ea92.entry.js → p-0074d97c.entry.js} +1 -1
- package/dist/ptcw-design/{p-1aaaefc2.entry.js → p-0290031e.entry.js} +1 -1
- package/dist/ptcw-design/{p-799bbd3a.entry.js → p-0532c37c.entry.js} +1 -1
- package/dist/ptcw-design/{p-7097ec55.entry.js → p-056b652a.entry.js} +1 -1
- package/dist/ptcw-design/p-05cc800d.entry.js +1 -0
- package/dist/ptcw-design/{p-7c49a1f7.entry.js → p-06f99e11.entry.js} +1 -1
- package/dist/ptcw-design/{p-edc34ad7.entry.js → p-072887b7.entry.js} +1 -1
- package/dist/ptcw-design/{p-64691ccb.entry.js → p-0f3f83d3.entry.js} +1 -1
- package/dist/ptcw-design/p-10254985.entry.js +1 -0
- package/dist/ptcw-design/{p-cff0b2b0.entry.js → p-15e08cba.entry.js} +1 -1
- package/dist/ptcw-design/{p-a49ba579.entry.js → p-16f75fd4.entry.js} +1 -1
- package/dist/ptcw-design/{p-c326164f.entry.js → p-17fd5641.entry.js} +1 -1
- package/dist/ptcw-design/{p-7698cc75.entry.js → p-1b972064.entry.js} +1 -1
- package/dist/ptcw-design/{p-ad924207.entry.js → p-1c631848.entry.js} +1 -1
- package/dist/ptcw-design/{p-908b08d5.entry.js → p-1c743207.entry.js} +1 -1
- package/dist/ptcw-design/{p-5c9d254c.entry.js → p-2254e000.entry.js} +1 -1
- package/dist/ptcw-design/{p-5854b9b4.entry.js → p-26f31be6.entry.js} +1 -1
- package/dist/ptcw-design/p-27f44b04.entry.js +1 -0
- package/dist/ptcw-design/{p-b41677ec.entry.js → p-2893f405.entry.js} +1 -1
- package/dist/ptcw-design/{p-e2be8313.entry.js → p-2ba6bbbe.entry.js} +1 -1
- package/dist/ptcw-design/p-2fed7a6f.entry.js +1 -0
- package/dist/ptcw-design/{p-42424ba0.entry.js → p-317573b7.entry.js} +1 -1
- package/dist/ptcw-design/p-3192a7e8.entry.js +1 -0
- package/dist/ptcw-design/{p-c9ded71b.entry.js → p-31c33a18.entry.js} +1 -1
- package/dist/ptcw-design/{p-ddf7819e.entry.js → p-362ec391.entry.js} +1 -1
- package/dist/ptcw-design/{p-c05218ed.entry.js → p-3b8731e6.entry.js} +1 -1
- package/dist/ptcw-design/{p-009f76ac.entry.js → p-3ed0384d.entry.js} +1 -1
- package/dist/ptcw-design/{p-deed8ef6.entry.js → p-3f368d6d.entry.js} +1 -1
- package/dist/ptcw-design/{p-7e978dd7.entry.js → p-4097a036.entry.js} +1 -1
- package/dist/ptcw-design/{p-6acd380a.entry.js → p-4aaa6290.entry.js} +1 -1
- package/dist/ptcw-design/p-4e13bc2e.entry.js +1 -0
- package/dist/ptcw-design/{p-effa1f41.entry.js → p-507ab0b3.entry.js} +1 -1
- package/dist/ptcw-design/{p-8116452c.entry.js → p-515f4332.entry.js} +1 -1
- package/dist/ptcw-design/{p-e329399d.entry.js → p-582022a5.entry.js} +1 -1
- package/dist/ptcw-design/{p-68543211.entry.js → p-58291e3a.entry.js} +1 -1
- package/dist/ptcw-design/p-58e7da4a.entry.js +1 -0
- package/dist/ptcw-design/{p-6a0b0d0e.entry.js → p-59ac682d.entry.js} +1 -1
- package/dist/ptcw-design/p-5c47361e.entry.js +1 -0
- package/dist/ptcw-design/p-6392bd90.entry.js +1 -0
- package/dist/ptcw-design/{p-b2afe3a3.entry.js → p-63f811ec.entry.js} +1 -1
- package/dist/ptcw-design/{p-00b2c937.entry.js → p-6449418a.entry.js} +1 -1
- package/dist/ptcw-design/{p-0fec8647.entry.js → p-66fcd7b2.entry.js} +1 -1
- package/dist/ptcw-design/{p-9805a542.entry.js → p-6a4bb3e8.entry.js} +1 -1
- package/dist/ptcw-design/{p-07059441.entry.js → p-6a5bc275.entry.js} +1 -1
- package/dist/ptcw-design/{p-c1d75020.entry.js → p-6aba5f8f.entry.js} +1 -1
- package/dist/ptcw-design/{p-77d3b816.entry.js → p-6b1d18b1.entry.js} +1 -1
- package/dist/ptcw-design/p-6e11536e.entry.js +1 -0
- package/dist/ptcw-design/{p-c43f4e1a.entry.js → p-75b17a66.entry.js} +1 -1
- package/dist/ptcw-design/{p-bdfd42d2.entry.js → p-777fb495.entry.js} +1 -1
- package/dist/ptcw-design/{p-08f40716.entry.js → p-77f5cf02.entry.js} +1 -1
- package/dist/ptcw-design/{p-d7e11aad.entry.js → p-7a3cf557.entry.js} +1 -1
- package/dist/ptcw-design/p-7a87be28.entry.js +1 -0
- package/dist/ptcw-design/{p-1a346da4.entry.js → p-7b34bb69.entry.js} +1 -1
- package/dist/ptcw-design/{p-e8127819.entry.js → p-7ea29d34.entry.js} +1 -1
- package/dist/ptcw-design/{p-4f76722f.entry.js → p-81253f39.entry.js} +1 -1
- package/dist/ptcw-design/{p-a4c49997.entry.js → p-84d3f4fa.entry.js} +1 -1
- package/dist/ptcw-design/{p-c9342bd2.entry.js → p-8b34f2db.entry.js} +1 -1
- package/dist/ptcw-design/{p-c83efab5.entry.js → p-95198d5f.entry.js} +1 -1
- package/dist/ptcw-design/{p-b64cd689.entry.js → p-9817c40a.entry.js} +1 -1
- package/dist/ptcw-design/{p-8c212875.entry.js → p-98b6cb94.entry.js} +1 -1
- package/dist/ptcw-design/{p-1905e99d.entry.js → p-99457ebb.entry.js} +1 -1
- package/dist/ptcw-design/{p-4f93dac7.entry.js → p-9d681abc.entry.js} +1 -1
- package/dist/ptcw-design/{p-da15fae5.entry.js → p-9e4260bc.entry.js} +1 -1
- package/dist/ptcw-design/{p-4e822c95.entry.js → p-9efd9a5b.entry.js} +1 -1
- package/dist/ptcw-design/{p-a1f30323.entry.js → p-a04e0ded.entry.js} +1 -1
- package/dist/ptcw-design/{p-c852499f.entry.js → p-a417df03.entry.js} +1 -1
- package/dist/ptcw-design/{p-10555016.entry.js → p-a42feab1.entry.js} +1 -1
- package/dist/ptcw-design/{p-d94d1fa5.entry.js → p-ac63caae.entry.js} +1 -1
- package/dist/ptcw-design/{p-7650e042.entry.js → p-ad234f99.entry.js} +1 -1
- package/dist/ptcw-design/{p-f4479b50.entry.js → p-ad401696.entry.js} +1 -1
- package/dist/ptcw-design/{p-09a6b0a7.entry.js → p-bd470a7a.entry.js} +1 -1
- package/dist/ptcw-design/p-be8db2b7.entry.js +1 -0
- package/dist/ptcw-design/{p-2d138e91.entry.js → p-bf47669c.entry.js} +1 -1
- package/dist/ptcw-design/{p-b73ea53a.entry.js → p-bf808180.entry.js} +1 -1
- package/dist/ptcw-design/{p-2a959ce3.entry.js → p-c1c229f8.entry.js} +1 -1
- package/dist/ptcw-design/{p-04549d19.entry.js → p-c5df36ad.entry.js} +1 -1
- package/dist/ptcw-design/{p-e282af3d.entry.js → p-c7d5bfe3.entry.js} +1 -1
- package/dist/ptcw-design/{p-f67dc72c.entry.js → p-ca877fea.entry.js} +1 -1
- package/dist/ptcw-design/p-ca9b1705.entry.js +1 -0
- package/dist/ptcw-design/{p-fbf6f66c.entry.js → p-cda3854b.entry.js} +1 -1
- package/dist/ptcw-design/{p-9dd25c18.js → p-ce0e4c5c.js} +2 -2
- package/dist/ptcw-design/{p-35b3d9a8.entry.js → p-cf1005f9.entry.js} +1 -1
- package/dist/ptcw-design/p-d6d25fa7.entry.js +1 -0
- package/dist/ptcw-design/{p-08f17ab6.entry.js → p-dc5e5116.entry.js} +1 -1
- package/dist/ptcw-design/{p-f927e1f9.entry.js → p-dc748f00.entry.js} +1 -1
- package/dist/ptcw-design/{p-dc64e2d4.entry.js → p-dee888f5.entry.js} +1 -1
- package/dist/ptcw-design/{p-a924d029.entry.js → p-df0aa310.entry.js} +1 -1
- package/dist/ptcw-design/{p-47ee06af.entry.js → p-e1dd94a9.entry.js} +1 -1
- package/dist/ptcw-design/{p-a5e92df6.entry.js → p-e312626a.entry.js} +1 -1
- package/dist/ptcw-design/p-e8ba44ba.entry.js +1 -0
- package/dist/ptcw-design/{p-90143d7c.entry.js → p-e8cd5994.entry.js} +1 -1
- package/dist/ptcw-design/{p-9bbfeec6.entry.js → p-eb65dacf.entry.js} +1 -1
- package/dist/ptcw-design/{p-372a6bb1.entry.js → p-ee20170a.entry.js} +1 -1
- package/dist/ptcw-design/{p-dea73da3.entry.js → p-f6dfc55e.entry.js} +1 -1
- package/dist/ptcw-design/{p-a7eb1503.entry.js → p-f865c4cd.entry.js} +1 -1
- package/dist/ptcw-design/{p-1659ad95.entry.js → p-f8eacbd8.entry.js} +1 -1
- package/dist/ptcw-design/{p-ab2a2d1a.entry.js → p-f97fc3fd.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/max-width-container/max-width-container.d.ts +1 -0
- package/dist/types/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.d.ts +27 -0
- package/dist/types/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.d.ts +21 -0
- package/dist/types/components/ptc-pricing-table/ptc-pricing-table.d.ts +101 -0
- package/dist/types/components.d.ts +145 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/fl-tab-content_11.cjs.entry.js +0 -654
- package/dist/esm/fl-tab-content_11.entry.js +0 -640
- package/dist/ptcw-design/p-07b6676a.entry.js +0 -1
- package/dist/ptcw-design/p-2ac4eb02.entry.js +0 -1
- package/dist/ptcw-design/p-82295854.entry.js +0 -1
- package/dist/ptcw-design/p-a6ebedfd.entry.js +0 -1
- package/dist/ptcw-design/p-b7f0d1bf.entry.js +0 -1
|
@@ -0,0 +1,581 @@
|
|
|
1
|
+
import { Host, h, Fragment } from '@stencil/core';
|
|
2
|
+
export class PtcPricingTable {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.scrollTopClipperHeightOptions = {
|
|
5
|
+
withSubNav: {
|
|
6
|
+
desktop: "104px",
|
|
7
|
+
mobile: "80px"
|
|
8
|
+
},
|
|
9
|
+
withoutSubNav: {
|
|
10
|
+
desktop: "40px",
|
|
11
|
+
mobile: "24px"
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
this.handleHorizontalScroll = () => {
|
|
15
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
16
|
+
this.targetElements = this.getTargetElements();
|
|
17
|
+
this.targetElements["sticky-header-container"].scrollLeft = (_a = this.targetElements["table-container"]) === null || _a === void 0 ? void 0 : _a.scrollLeft;
|
|
18
|
+
if (((_b = this.targetElements["table-container"]) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().right) <= ((_c = this.targetElements["table"]) === null || _c === void 0 ? void 0 : _c.getBoundingClientRect().right)) {
|
|
19
|
+
this.targetElements["normal-scroll-buttons-container"].style.left = `${((_d = this.targetElements["table-container"]) === null || _d === void 0 ? void 0 : _d.scrollLeft) + this.desktopHeaderFirstCellWidth}px`;
|
|
20
|
+
this.targetElements["sticky-scroll-buttons-container"].style.left = `${((_e = this.targetElements["table-container"]) === null || _e === void 0 ? void 0 : _e.scrollLeft) + this.desktopHeaderFirstCellWidth}px`;
|
|
21
|
+
}
|
|
22
|
+
if (this.targetElements["mobile-table-row-headers"].length > 0) {
|
|
23
|
+
for (let i = 0; i < this.dataRows; i++) {
|
|
24
|
+
this.targetElements["mobile-table-row-headers"][i].style.paddingLeft = `${(_f = this.targetElements["table-container"]) === null || _f === void 0 ? void 0 : _f.scrollLeft}px`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
if (Math.trunc(this.targetElements["table-container"].getBoundingClientRect().right) >= Math.trunc(this.targetElements["table"].getBoundingClientRect().right)) {
|
|
28
|
+
this.targetElements["normal-next-scroll-button"].style.visibility = 'hidden';
|
|
29
|
+
if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
|
|
30
|
+
this.targetElements["sticky-next-scroll-button"].style.visibility = 'hidden';
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
this.targetElements["normal-next-scroll-button"].style.visibility = 'visible';
|
|
35
|
+
if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
|
|
36
|
+
this.targetElements["sticky-next-scroll-button"].style.visibility = 'visible';
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (this.targetElements["table-container"].scrollLeft === 0) {
|
|
40
|
+
this.targetElements["horizontal-scroll-box-shadow"].style.left = '0';
|
|
41
|
+
this.targetElements["horizontal-scroll-box-shadow"].style.visibility = 'hidden';
|
|
42
|
+
this.targetElements["normal-previous-scroll-button"].style.visibility = 'hidden';
|
|
43
|
+
if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
|
|
44
|
+
this.targetElements["sticky-previous-scroll-button"].style.visibility = 'hidden';
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
this.targetElements["horizontal-scroll-box-shadow"].style.left = `${((_g = this.targetElements["table-container"]) === null || _g === void 0 ? void 0 : _g.scrollLeft) + this.desktopHeaderFirstCellWidth}px`;
|
|
49
|
+
this.targetElements["horizontal-scroll-box-shadow"].style.visibility = 'visible';
|
|
50
|
+
this.targetElements["normal-previous-scroll-button"].style.visibility = 'visible';
|
|
51
|
+
if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
|
|
52
|
+
this.targetElements["sticky-previous-scroll-button"].style.visibility = 'visible';
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
this.handleVerticalScroll = () => {
|
|
57
|
+
this.targetElements = this.getTargetElements();
|
|
58
|
+
const scrollTopPosition = window.scrollY || document.documentElement.scrollTop;
|
|
59
|
+
if (scrollTopPosition < this.lastScrollTop) {
|
|
60
|
+
// Scrolling Up
|
|
61
|
+
if (this.targetElements["table-container"].getBoundingClientRect().bottom > 0) {
|
|
62
|
+
if (this.targetElements["sticky-header-container"].getBoundingClientRect().top < 0) {
|
|
63
|
+
// Scroll the sticky header back into the window along with the table
|
|
64
|
+
this.targetElements["vertical-scroll-content-clipper"].style.display = 'block';
|
|
65
|
+
this.targetElements["sticky-scroll-buttons-container"].style.opacity = '1';
|
|
66
|
+
this.targetElements["sticky-header-container"].style.visibility = 'visible';
|
|
67
|
+
this.targetElements["sticky-header-container"].style.top = `${this.targetElements["table-container"].getBoundingClientRect().bottom - this.targetElements["sticky-header-container"].getBoundingClientRect().height}px`;
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
// Fix the sticky header once it is completely inside the window
|
|
71
|
+
this.targetElements["sticky-header-container"].style.top = this.scrollTopClipperHeight;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (this.targetElements["table-header"].getBoundingClientRect().top > this.targetElements["sticky-header-container"].getBoundingClientRect().top) {
|
|
75
|
+
// Hide the sticky header and show the normal header
|
|
76
|
+
this.targetElements["sticky-scroll-buttons-container"].style.opacity = '0';
|
|
77
|
+
this.targetElements["sticky-header-container"].style.visibility = 'hidden';
|
|
78
|
+
this.targetElements["table-header"].style.visibility = 'visible';
|
|
79
|
+
this.targetElements["vertical-scroll-content-clipper"].style.display = 'none';
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
else if (scrollTopPosition > this.lastScrollTop) {
|
|
83
|
+
// Scrolling down
|
|
84
|
+
if (this.targetElements["sticky-header-container"].getBoundingClientRect().bottom <= 0) {
|
|
85
|
+
// Reset and hide the sticky header on top once it scrolls out of the window
|
|
86
|
+
this.targetElements["sticky-header-container"].style.top = `${-this.targetElements["sticky-header-container"].getBoundingClientRect().height}px`;
|
|
87
|
+
this.targetElements["sticky-scroll-buttons-container"].style.opacity = '0';
|
|
88
|
+
this.targetElements["sticky-header-container"].style.visibility = 'hidden';
|
|
89
|
+
this.targetElements["vertical-scroll-content-clipper"].style.display = 'none';
|
|
90
|
+
}
|
|
91
|
+
else if (this.targetElements["table-header"].getBoundingClientRect().top <= this.targetElements["sticky-header-container"].getBoundingClientRect().top) {
|
|
92
|
+
if (this.targetElements["table-container"].getBoundingClientRect().bottom <= this.targetElements["sticky-header-container"].getBoundingClientRect().bottom) {
|
|
93
|
+
// Scroll the sticky header out of the window along with the table
|
|
94
|
+
this.targetElements["sticky-header-container"].style.top = `${(this.targetElements["table-container"].getBoundingClientRect().bottom - this.targetElements["sticky-header-container"].clientHeight)}px`;
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
// Hide the normal header and show the sticky header
|
|
98
|
+
this.targetElements["vertical-scroll-content-clipper"].style.display = 'block';
|
|
99
|
+
this.targetElements["sticky-scroll-buttons-container"].style.opacity = '1';
|
|
100
|
+
this.targetElements["sticky-header-container"].style.visibility = 'visible';
|
|
101
|
+
this.targetElements["table-header"].style.visibility = 'hidden';
|
|
102
|
+
this.targetElements["sticky-previous-scroll-button"].style.visibility = this.targetElements["normal-previous-scroll-button"].style.visibility;
|
|
103
|
+
this.targetElements["sticky-next-scroll-button"].style.visibility = this.targetElements["normal-next-scroll-button"].style.visibility;
|
|
104
|
+
if (getComputedStyle(this.targetElements["sticky-next-scroll-button"]).visibility === "visible") {
|
|
105
|
+
this.targetElements["table-filler-sticky-header-cell"].style.boxSizing = "content-box";
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
this.lastScrollTop = scrollTopPosition <= 0 ? 0 : scrollTopPosition;
|
|
111
|
+
};
|
|
112
|
+
this.handleResize = () => {
|
|
113
|
+
this.targetElements["table-container"].scrollLeft = 0;
|
|
114
|
+
this.handleHorizontalScroll();
|
|
115
|
+
this.configureStickyHeader();
|
|
116
|
+
this.configureScrollButtonsContainers();
|
|
117
|
+
this.configureTableFillerCells();
|
|
118
|
+
};
|
|
119
|
+
this.pageWithSubnav = false;
|
|
120
|
+
this.tableTitle = undefined;
|
|
121
|
+
this.tableSubTitle = "";
|
|
122
|
+
this.tableDescription = "";
|
|
123
|
+
this.dataRows = undefined;
|
|
124
|
+
this.dataCols = undefined;
|
|
125
|
+
this.disclaimerCount = 0;
|
|
126
|
+
this.scrollTopClipperHeight = undefined;
|
|
127
|
+
this.desktopHeaderFirstCellWidth = 0;
|
|
128
|
+
this.targetElements = {};
|
|
129
|
+
this.columnHeaderLinks = [];
|
|
130
|
+
this.lastScrollTop = undefined;
|
|
131
|
+
this.scrollTimeInterval = 35;
|
|
132
|
+
this.scrollAmount = 5;
|
|
133
|
+
this.scrollLimit = 50;
|
|
134
|
+
this.mobileHeaderRowColSpan = this.dataCols;
|
|
135
|
+
this.showCtaButtonsRow = undefined;
|
|
136
|
+
this.ctaButtons = [];
|
|
137
|
+
this.disclaimers = [];
|
|
138
|
+
}
|
|
139
|
+
getTargetElements() {
|
|
140
|
+
let pricingTable = this.el.shadowRoot;
|
|
141
|
+
let verticalScrollContentClipper = pricingTable === null || pricingTable === void 0 ? void 0 : pricingTable.querySelector('#vertical-scroll-content-clipper');
|
|
142
|
+
let tableContainer = pricingTable === null || pricingTable === void 0 ? void 0 : pricingTable.querySelector('#table-container');
|
|
143
|
+
let table = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('table');
|
|
144
|
+
let tableHeader = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('table thead');
|
|
145
|
+
let desktopHeaderFirstCell = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('.desktop-header-first-cell');
|
|
146
|
+
let tableHeaderCells = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelectorAll('th');
|
|
147
|
+
let desktopTableBody = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('.desktop-table-body');
|
|
148
|
+
let mobileTableBody = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('.mobile-table-body');
|
|
149
|
+
let stickyHeaderContainer = pricingTable === null || pricingTable === void 0 ? void 0 : pricingTable.querySelector('#sticky-header-container');
|
|
150
|
+
let stickyHeaderCells = stickyHeaderContainer === null || stickyHeaderContainer === void 0 ? void 0 : stickyHeaderContainer.querySelectorAll('th');
|
|
151
|
+
let verticalScrollBoxShadow = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector("#vertical-scroll-box-shadow");
|
|
152
|
+
let tableFillerStickyHeaderCell = stickyHeaderContainer === null || stickyHeaderContainer === void 0 ? void 0 : stickyHeaderContainer.querySelector('.table-filler-header-cell');
|
|
153
|
+
let tableFillerHeaderCell = tableHeader === null || tableHeader === void 0 ? void 0 : tableHeader.querySelector('.table-filler-header-cell');
|
|
154
|
+
let tableFillerBodyCells = table === null || table === void 0 ? void 0 : table.querySelectorAll('.table-filler-body-cell');
|
|
155
|
+
let tableFillerButtonCell = table === null || table === void 0 ? void 0 : table.querySelector('.table-filler-button-cell');
|
|
156
|
+
let mobileTableRowHeaders = pricingTable === null || pricingTable === void 0 ? void 0 : pricingTable.querySelectorAll('.mobile-table-row-header');
|
|
157
|
+
let normalScrollButtonsContainer = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('.scroll-buttons-container');
|
|
158
|
+
let stickyScrollButtonsContainer = stickyHeaderContainer === null || stickyHeaderContainer === void 0 ? void 0 : stickyHeaderContainer.querySelector('.scroll-buttons-container');
|
|
159
|
+
let normalPreviousScrollButton = normalScrollButtonsContainer === null || normalScrollButtonsContainer === void 0 ? void 0 : normalScrollButtonsContainer.querySelector('.prev-button');
|
|
160
|
+
let stickyPreviousScrollButton = stickyScrollButtonsContainer === null || stickyScrollButtonsContainer === void 0 ? void 0 : stickyScrollButtonsContainer.querySelector('.prev-button');
|
|
161
|
+
let normalNextScrollButton = normalScrollButtonsContainer === null || normalScrollButtonsContainer === void 0 ? void 0 : normalScrollButtonsContainer.querySelector('.next-button');
|
|
162
|
+
let stickyNextScrollButton = stickyScrollButtonsContainer === null || stickyScrollButtonsContainer === void 0 ? void 0 : stickyScrollButtonsContainer.querySelector('.next-button');
|
|
163
|
+
let horizontalScrollBoxShadow = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('#horizontal-scroll-box-shadow');
|
|
164
|
+
let targetElements = {
|
|
165
|
+
"vertical-scroll-content-clipper": verticalScrollContentClipper,
|
|
166
|
+
"pricing-table": pricingTable,
|
|
167
|
+
"table-container": tableContainer,
|
|
168
|
+
"table": table,
|
|
169
|
+
"table-header": tableHeader,
|
|
170
|
+
"desktop-header-first-cell": desktopHeaderFirstCell,
|
|
171
|
+
"table-header-cells": tableHeaderCells,
|
|
172
|
+
"desktop-table-body": desktopTableBody,
|
|
173
|
+
"mobile-table-body": mobileTableBody,
|
|
174
|
+
"sticky-header-container": stickyHeaderContainer,
|
|
175
|
+
"sticky-header-cells": stickyHeaderCells,
|
|
176
|
+
"vertical-scroll-box-shadow": verticalScrollBoxShadow,
|
|
177
|
+
"table-filler-sticky-header-cell": tableFillerStickyHeaderCell,
|
|
178
|
+
"table-filler-header-cell": tableFillerHeaderCell,
|
|
179
|
+
"table-filler-body-cells": tableFillerBodyCells,
|
|
180
|
+
"table-filler-button-cell": tableFillerButtonCell,
|
|
181
|
+
"mobile-table-row-headers": mobileTableRowHeaders,
|
|
182
|
+
"normal-scroll-buttons-container": normalScrollButtonsContainer,
|
|
183
|
+
"sticky-scroll-buttons-container": stickyScrollButtonsContainer,
|
|
184
|
+
"normal-previous-scroll-button": normalPreviousScrollButton,
|
|
185
|
+
"sticky-previous-scroll-button": stickyPreviousScrollButton,
|
|
186
|
+
"normal-next-scroll-button": normalNextScrollButton,
|
|
187
|
+
"sticky-next-scroll-button": stickyNextScrollButton,
|
|
188
|
+
"horizontal-scroll-box-shadow": horizontalScrollBoxShadow,
|
|
189
|
+
};
|
|
190
|
+
return targetElements;
|
|
191
|
+
}
|
|
192
|
+
configureScrollButtonsContainers() {
|
|
193
|
+
this.targetElements = this.getTargetElements();
|
|
194
|
+
this.targetElements["normal-scroll-buttons-container"].style.width = `${this.targetElements["table-container"].clientWidth}px`;
|
|
195
|
+
this.targetElements["normal-scroll-buttons-container"].style.height = `${this.targetElements["table-header"].clientHeight}px`;
|
|
196
|
+
this.targetElements["sticky-scroll-buttons-container"].style.width = `${this.targetElements["table-container"].clientWidth}px`;
|
|
197
|
+
this.targetElements["sticky-scroll-buttons-container"].style.height = `${this.targetElements["table-header"].clientHeight}px`;
|
|
198
|
+
if (this.targetElements["desktop-header-first-cell"]) {
|
|
199
|
+
this.targetElements["normal-scroll-buttons-container"].style.width = `${this.targetElements["normal-scroll-buttons-container"].getBoundingClientRect().width - this.desktopHeaderFirstCellWidth}px`;
|
|
200
|
+
this.targetElements["sticky-scroll-buttons-container"].style.width = `${this.targetElements["sticky-scroll-buttons-container"].getBoundingClientRect().width - this.desktopHeaderFirstCellWidth}px`;
|
|
201
|
+
}
|
|
202
|
+
if (this.targetElements["table-container"].scrollLeft === 0) {
|
|
203
|
+
this.targetElements["normal-previous-scroll-button"].style.visibility = 'hidden';
|
|
204
|
+
if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
|
|
205
|
+
this.targetElements["sticky-previous-scroll-button"].style.visibility = 'hidden';
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
this.targetElements["normal-previous-scroll-button"].style.visibility = 'visible';
|
|
210
|
+
if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
|
|
211
|
+
this.targetElements["sticky-previous-scroll-button"].style.visibility = 'visible';
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
if (this.targetElements["table-container"].getBoundingClientRect().width >= this.targetElements["table"].getBoundingClientRect().width) {
|
|
215
|
+
this.targetElements["normal-next-scroll-button"].style.visibility = 'hidden';
|
|
216
|
+
if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
|
|
217
|
+
this.targetElements["sticky-next-scroll-button"].style.visibility = 'hidden';
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
this.targetElements["normal-next-scroll-button"].style.visibility = 'visible';
|
|
222
|
+
if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
|
|
223
|
+
this.targetElements["sticky-next-scroll-button"].style.visibility = 'visible';
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
configureStickyHeader() {
|
|
228
|
+
var _a, _b, _c, _d, _e, _f;
|
|
229
|
+
const targetElements = this.getTargetElements();
|
|
230
|
+
// Dimensions
|
|
231
|
+
targetElements["vertical-scroll-content-clipper"].style.width = `${targetElements["table-container"].clientWidth + 20}px`;
|
|
232
|
+
targetElements["sticky-header-container"].style.width = `${targetElements["table-container"].clientWidth}px`;
|
|
233
|
+
if (this.pageWithSubnav) {
|
|
234
|
+
if (window.innerWidth >= 1200) {
|
|
235
|
+
this.scrollTopClipperHeight = this.scrollTopClipperHeightOptions.withSubNav.desktop;
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
this.scrollTopClipperHeight = this.scrollTopClipperHeightOptions.withSubNav.mobile;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
else {
|
|
242
|
+
if (window.innerWidth >= 1200) {
|
|
243
|
+
this.scrollTopClipperHeight = this.scrollTopClipperHeightOptions.withoutSubNav.desktop;
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
this.scrollTopClipperHeight = this.scrollTopClipperHeightOptions.withoutSubNav.mobile;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
targetElements["vertical-scroll-content-clipper"].style.height = this.scrollTopClipperHeight;
|
|
250
|
+
targetElements["sticky-header-container"].style.top = this.scrollTopClipperHeight;
|
|
251
|
+
for (let i = 0; i < targetElements["table-header-cells"].length; i++) {
|
|
252
|
+
targetElements["sticky-header-cells"][i].style.width = `${targetElements["table-header-cells"][i].getBoundingClientRect().width}px`;
|
|
253
|
+
if (targetElements["table-header-cells"][i].classList.contains('desktop-header-first-cell')) {
|
|
254
|
+
this.desktopHeaderFirstCellWidth = targetElements["table-header-cells"][i].getBoundingClientRect().width;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
// Box-sizing
|
|
258
|
+
if (targetElements["table"].clientWidth <= targetElements["table-container"].clientWidth) {
|
|
259
|
+
if (targetElements["desktop-table-body"]) {
|
|
260
|
+
for (let i = 0; i < targetElements["sticky-header-cells"].length; i++) {
|
|
261
|
+
(_b = (_a = targetElements["sticky-header-cells"][i]) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.add('border-box-header-cell');
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
for (let i = 0; i < targetElements["sticky-header-cells"].length; i++) {
|
|
267
|
+
if ((_d = (_c = targetElements["sticky-header-cells"][i]) === null || _c === void 0 ? void 0 : _c.classList) === null || _d === void 0 ? void 0 : _d.contains('border-box-header-cell')) {
|
|
268
|
+
(_f = (_e = targetElements["sticky-header-cells"][i]) === null || _e === void 0 ? void 0 : _e.classList) === null || _f === void 0 ? void 0 : _f.remove('border-box-header-cell');
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
configureTableFillerCells() {
|
|
274
|
+
var _a, _b, _c, _d;
|
|
275
|
+
this.targetElements = this.getTargetElements();
|
|
276
|
+
this.targetElements["table-filler-sticky-header-cell"].style.width = this.targetElements["table-filler-header-cell"].getBoundingClientRect().width;
|
|
277
|
+
if (this.targetElements['table'].getBoundingClientRect().width < this.targetElements['table-container'].getBoundingClientRect().width) {
|
|
278
|
+
// Table smaller than container - Insert fillers
|
|
279
|
+
this.targetElements["table-filler-sticky-header-cell"].style.display = 'table-cell';
|
|
280
|
+
this.targetElements["table-filler-header-cell"].style.display = 'table-cell';
|
|
281
|
+
for (let i = 0; i < this.dataRows; i++) {
|
|
282
|
+
this.targetElements["table-filler-body-cells"][i].style.display = 'table-cell';
|
|
283
|
+
}
|
|
284
|
+
if (this.targetElements["table-filler-button-cell"]) {
|
|
285
|
+
this.targetElements["table-filler-button-cell"].style.display = 'table-cell';
|
|
286
|
+
}
|
|
287
|
+
this.mobileHeaderRowColSpan = this.dataCols + 1;
|
|
288
|
+
}
|
|
289
|
+
else {
|
|
290
|
+
// Table equal to or bigger than container - Remove fillers
|
|
291
|
+
this.targetElements["table-filler-sticky-header-cell"].style.width = '99%';
|
|
292
|
+
if (getComputedStyle(this.targetElements["sticky-next-scroll-button"]).visibility === 'hidden') {
|
|
293
|
+
for (let i = 0; i < this.targetElements["sticky-header-cells"].length + 1; i++) {
|
|
294
|
+
if ((_b = (_a = this.targetElements["sticky-header-cells"][i]) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.contains('border-box-header-cell')) {
|
|
295
|
+
(_d = (_c = this.targetElements["sticky-header-cells"][i]) === null || _c === void 0 ? void 0 : _c.classList) === null || _d === void 0 ? void 0 : _d.remove('border-box-header-cell');
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
handleStickyHeaderHorizontalScroll() {
|
|
302
|
+
var _a;
|
|
303
|
+
this.targetElements["table-container"].scrollLeft = (_a = this.targetElements["sticky-header-container"]) === null || _a === void 0 ? void 0 : _a.scrollLeft;
|
|
304
|
+
}
|
|
305
|
+
handleScrollForward() {
|
|
306
|
+
this.targetElements = this.getTargetElements();
|
|
307
|
+
let scrollAdded = 0;
|
|
308
|
+
let intervalId = setInterval(() => {
|
|
309
|
+
scrollAdded += this.scrollAmount;
|
|
310
|
+
let tableContainerRight = this.targetElements["table-container"].getBoundingClientRect().right;
|
|
311
|
+
let tableRight = this.targetElements["table"].getBoundingClientRect().right;
|
|
312
|
+
if ((scrollAdded == this.scrollLimit) || (tableContainerRight >= tableRight)) {
|
|
313
|
+
clearInterval(intervalId);
|
|
314
|
+
}
|
|
315
|
+
this.targetElements["table-container"].scrollLeft += scrollAdded;
|
|
316
|
+
}, this.scrollTimeInterval);
|
|
317
|
+
}
|
|
318
|
+
handleScrollBackward() {
|
|
319
|
+
this.targetElements = this.getTargetElements();
|
|
320
|
+
let scrollReduced = 0;
|
|
321
|
+
let intervalId = setInterval(() => {
|
|
322
|
+
scrollReduced += this.scrollAmount;
|
|
323
|
+
let tableContainerLeft = this.targetElements["table-container"].getBoundingClientRect().left;
|
|
324
|
+
let tableLeft = this.targetElements["table"].getBoundingClientRect().left;
|
|
325
|
+
if ((scrollReduced == this.scrollLimit) || (tableContainerLeft <= tableLeft)) {
|
|
326
|
+
clearInterval(intervalId);
|
|
327
|
+
}
|
|
328
|
+
this.targetElements["table-container"].scrollLeft -= scrollReduced;
|
|
329
|
+
}, this.scrollTimeInterval);
|
|
330
|
+
}
|
|
331
|
+
componentWillLoad() {
|
|
332
|
+
let columnHeaders = this.el.querySelectorAll('[slot^="column-header"]');
|
|
333
|
+
for (let i = 0; i < this.dataCols; i++) {
|
|
334
|
+
let slotValue = columnHeaders[i].getAttribute('slot');
|
|
335
|
+
let headerText = columnHeaders[i].innerHTML;
|
|
336
|
+
this.el.insertAdjacentHTML('afterbegin', `<span slot="normal-${slotValue}">${headerText}</span><span slot="sticky-${slotValue}">${headerText}</span>`);
|
|
337
|
+
columnHeaders[i].remove();
|
|
338
|
+
}
|
|
339
|
+
let headerLinks = this.el.querySelectorAll('[slot^="header-link"]');
|
|
340
|
+
if (headerLinks.length > 0) {
|
|
341
|
+
for (let i = 0; i < this.dataCols; i++) {
|
|
342
|
+
let linkHref = headerLinks[i].getAttribute('href');
|
|
343
|
+
let linkText = headerLinks[i].innerHTML;
|
|
344
|
+
this.columnHeaderLinks.push({ linkHref, linkText });
|
|
345
|
+
headerLinks[i].remove();
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
let ctaButtons = this.el.querySelectorAll('[slot^="cta-button"]');
|
|
349
|
+
this.showCtaButtonsRow = (ctaButtons.length !== 0);
|
|
350
|
+
for (let i = 0; i < this.dataCols; i++) {
|
|
351
|
+
this.ctaButtons.push({
|
|
352
|
+
linkHref: ctaButtons[i].getAttribute('href'),
|
|
353
|
+
linkText: ctaButtons[i].innerHTML
|
|
354
|
+
});
|
|
355
|
+
ctaButtons[i].remove();
|
|
356
|
+
}
|
|
357
|
+
let disclaimers = this.el.querySelectorAll('[slot^="disclaimer"]');
|
|
358
|
+
for (let i = 0; i < this.disclaimerCount; i++) {
|
|
359
|
+
this.disclaimers.push(disclaimers[i].innerHTML);
|
|
360
|
+
disclaimers[i].remove();
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
componentDidLoad() {
|
|
364
|
+
this.configureTableFillerCells();
|
|
365
|
+
this.configureStickyHeader();
|
|
366
|
+
this.configureScrollButtonsContainers();
|
|
367
|
+
window.addEventListener('scroll', this.handleVerticalScroll);
|
|
368
|
+
window.addEventListener('resize', this.handleResize);
|
|
369
|
+
}
|
|
370
|
+
disconnectedCallback() {
|
|
371
|
+
window.removeEventListener('scroll', this.handleVerticalScroll);
|
|
372
|
+
window.removeEventListener('resize', this.handleResize);
|
|
373
|
+
}
|
|
374
|
+
render() {
|
|
375
|
+
const getTableTitle = () => {
|
|
376
|
+
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)
|
|
377
|
+
? h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "x-small" }), h("ptc-spacer", { breakpoint: "x-small", size: "small" }))
|
|
378
|
+
: (this.tableDescription)
|
|
379
|
+
? h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))
|
|
380
|
+
: null));
|
|
381
|
+
};
|
|
382
|
+
const getTableSubTitle = () => {
|
|
383
|
+
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" })));
|
|
384
|
+
};
|
|
385
|
+
const getTableDescription = () => {
|
|
386
|
+
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.length <= 500) ? this.tableDescription : h("ptc-readmore", { "more-text": "See more" }, this.tableDescription)))));
|
|
387
|
+
};
|
|
388
|
+
const getScrollButtonsContainer = () => {
|
|
389
|
+
return h("div", { class: "scroll-buttons-container" }, h("div", { class: "scroll-buttons prev-button", onClick: () => this.handleScrollBackward() }, 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" }, "See More")), h("div", { class: "scroll-buttons next-button", onClick: () => this.handleScrollForward() }, 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" }, "See More"), h("icon-asset", { type: "solid", size: "medium", name: "chevron-right", color: "primary-gray" })));
|
|
390
|
+
};
|
|
391
|
+
const getTableHeader = (headerType) => {
|
|
392
|
+
return h("thead", null, h("tr", null, h("th", { class: "desktop-header-first-cell" }, 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" }, "Package Options")), ([...Array(this.dataCols).keys()]).map(col => {
|
|
393
|
+
return h("th", null, h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, h("slot", { name: `${headerType}-column-header-${col + 1}` })), (this.columnHeaderLinks.length === this.dataCols) ? 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: "_blank", theme: "d-green-underline" }, 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" }))) : null);
|
|
394
|
+
}), h("th", { class: "table-filler-header-cell" })));
|
|
395
|
+
};
|
|
396
|
+
const getMobileTableBody = () => {
|
|
397
|
+
return h("tbody", { class: "mobile-table-body" }, ([...Array(this.dataRows).keys()]).map(row => {
|
|
398
|
+
return h(Fragment, null, h("tr", null, h("td", { colSpan: this.mobileHeaderRowColSpan }, h("div", { class: "mobile-table-row-header" }, h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-1" }, h("slot", { name: `row-header-${row + 1}` }))))), h("tr", null, ([...Array(this.dataCols).keys()]).map(col => {
|
|
399
|
+
return h("td", null, h("slot", { name: `cell-r${row + 1}-c${col + 1}` }));
|
|
400
|
+
}), h("td", { class: "table-filler-body-cell" })));
|
|
401
|
+
}), (this.showCtaButtonsRow) ?
|
|
402
|
+
h("tr", { class: "table-button-row" }, ([...Array(this.dataCols).keys()]).map(col => {
|
|
403
|
+
return h("td", null, h("ptc-button", { type: "link", color: "ptc-tertiary", "link-href": this.ctaButtons[col].linkHref, target: "_blank" }, this.ctaButtons[col].linkText));
|
|
404
|
+
}), (this.mobileHeaderRowColSpan > this.dataCols) ? h("td", { class: "table-filler-button-cell" }) : null) : null);
|
|
405
|
+
};
|
|
406
|
+
const getDesktopTableBody = () => {
|
|
407
|
+
return h("tbody", { class: "desktop-table-body" }, ([...Array(this.dataRows).keys()]).map(row => {
|
|
408
|
+
return h("tr", null, h("td", { class: "first-column-cell" }, h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-1" }, h("slot", { name: `row-header-${row + 1}` }))), ([...Array(this.dataCols).keys()]).map(col => {
|
|
409
|
+
return h("td", null, h("slot", { name: `cell-r${row + 1}-c${col + 1}` }));
|
|
410
|
+
}), h("td", { class: "table-filler-body-cell" }));
|
|
411
|
+
}), (this.showCtaButtonsRow) ?
|
|
412
|
+
h("tr", { class: "table-button-row" }, h("td", null), ([...Array(this.dataCols).keys()]).map(col => {
|
|
413
|
+
return h("td", null, h("ptc-button", { type: "link", color: "ptc-tertiary", "link-href": this.ctaButtons[col].linkHref, target: "_blank" }, 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" })));
|
|
414
|
+
}), h("td", { class: "table-filler-button-cell" })) : null);
|
|
415
|
+
};
|
|
416
|
+
const getDisclaimers = () => {
|
|
417
|
+
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) => {
|
|
418
|
+
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" }, disclaimer), (ind != (this.disclaimerCount - 1)) ? h("ptc-spacer", { size: "xx-small" }) : null);
|
|
419
|
+
})));
|
|
420
|
+
};
|
|
421
|
+
return (h(Host, null, h("div", { id: "vertical-scroll-content-clipper" }), h("div", { id: "sticky-header-container", onScroll: () => this.handleStickyHeaderHorizontalScroll() }, getScrollButtonsContainer(), getTableHeader("sticky")), h("ptc-spacer", { breakpoint: "small", size: "xxx-large" }), h("ptc-spacer", { breakpoint: "x-small", size: "xxxx-large" }), getTableTitle(), getTableSubTitle(), getTableDescription(), 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: "table-container", onScroll: () => this.handleHorizontalScroll() }, getScrollButtonsContainer(), h("table", null, h("div", { id: "horizontal-scroll-box-shadow" }), getTableHeader("normal"), (window.innerWidth >= 768)
|
|
422
|
+
? getDesktopTableBody()
|
|
423
|
+
: getMobileTableBody())), getDisclaimers(), h("ptc-spacer", { breakpoint: "small", size: "xxx-large" }), h("ptc-spacer", { breakpoint: "x-small", size: "xxxx-large" })));
|
|
424
|
+
}
|
|
425
|
+
static get is() { return "ptc-pricing-table"; }
|
|
426
|
+
static get encapsulation() { return "shadow"; }
|
|
427
|
+
static get originalStyleUrls() {
|
|
428
|
+
return {
|
|
429
|
+
"$": ["ptc-pricing-table.scss"]
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
static get styleUrls() {
|
|
433
|
+
return {
|
|
434
|
+
"$": ["ptc-pricing-table.css"]
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
static get properties() {
|
|
438
|
+
return {
|
|
439
|
+
"pageWithSubnav": {
|
|
440
|
+
"type": "boolean",
|
|
441
|
+
"mutable": false,
|
|
442
|
+
"complexType": {
|
|
443
|
+
"original": "boolean",
|
|
444
|
+
"resolved": "boolean",
|
|
445
|
+
"references": {}
|
|
446
|
+
},
|
|
447
|
+
"required": false,
|
|
448
|
+
"optional": true,
|
|
449
|
+
"docs": {
|
|
450
|
+
"tags": [],
|
|
451
|
+
"text": "[True/False] If the page containing this table has a sticky sub-nav"
|
|
452
|
+
},
|
|
453
|
+
"attribute": "page-with-subnav",
|
|
454
|
+
"reflect": false,
|
|
455
|
+
"defaultValue": "false"
|
|
456
|
+
},
|
|
457
|
+
"tableTitle": {
|
|
458
|
+
"type": "string",
|
|
459
|
+
"mutable": false,
|
|
460
|
+
"complexType": {
|
|
461
|
+
"original": "string",
|
|
462
|
+
"resolved": "string",
|
|
463
|
+
"references": {}
|
|
464
|
+
},
|
|
465
|
+
"required": false,
|
|
466
|
+
"optional": true,
|
|
467
|
+
"docs": {
|
|
468
|
+
"tags": [],
|
|
469
|
+
"text": "Table title (H2)"
|
|
470
|
+
},
|
|
471
|
+
"attribute": "table-title",
|
|
472
|
+
"reflect": false
|
|
473
|
+
},
|
|
474
|
+
"tableSubTitle": {
|
|
475
|
+
"type": "string",
|
|
476
|
+
"mutable": false,
|
|
477
|
+
"complexType": {
|
|
478
|
+
"original": "string",
|
|
479
|
+
"resolved": "string",
|
|
480
|
+
"references": {}
|
|
481
|
+
},
|
|
482
|
+
"required": false,
|
|
483
|
+
"optional": true,
|
|
484
|
+
"docs": {
|
|
485
|
+
"tags": [],
|
|
486
|
+
"text": "Table title (H3)"
|
|
487
|
+
},
|
|
488
|
+
"attribute": "table-sub-title",
|
|
489
|
+
"reflect": false,
|
|
490
|
+
"defaultValue": "\"\""
|
|
491
|
+
},
|
|
492
|
+
"tableDescription": {
|
|
493
|
+
"type": "string",
|
|
494
|
+
"mutable": false,
|
|
495
|
+
"complexType": {
|
|
496
|
+
"original": "string",
|
|
497
|
+
"resolved": "string",
|
|
498
|
+
"references": {}
|
|
499
|
+
},
|
|
500
|
+
"required": false,
|
|
501
|
+
"optional": true,
|
|
502
|
+
"docs": {
|
|
503
|
+
"tags": [],
|
|
504
|
+
"text": "Table description"
|
|
505
|
+
},
|
|
506
|
+
"attribute": "table-description",
|
|
507
|
+
"reflect": false,
|
|
508
|
+
"defaultValue": "\"\""
|
|
509
|
+
},
|
|
510
|
+
"dataRows": {
|
|
511
|
+
"type": "number",
|
|
512
|
+
"mutable": false,
|
|
513
|
+
"complexType": {
|
|
514
|
+
"original": "number",
|
|
515
|
+
"resolved": "number",
|
|
516
|
+
"references": {}
|
|
517
|
+
},
|
|
518
|
+
"required": false,
|
|
519
|
+
"optional": true,
|
|
520
|
+
"docs": {
|
|
521
|
+
"tags": [],
|
|
522
|
+
"text": "Number of data rows in the table"
|
|
523
|
+
},
|
|
524
|
+
"attribute": "data-rows",
|
|
525
|
+
"reflect": false
|
|
526
|
+
},
|
|
527
|
+
"dataCols": {
|
|
528
|
+
"type": "number",
|
|
529
|
+
"mutable": false,
|
|
530
|
+
"complexType": {
|
|
531
|
+
"original": "number",
|
|
532
|
+
"resolved": "number",
|
|
533
|
+
"references": {}
|
|
534
|
+
},
|
|
535
|
+
"required": false,
|
|
536
|
+
"optional": true,
|
|
537
|
+
"docs": {
|
|
538
|
+
"tags": [],
|
|
539
|
+
"text": "Number of data columns in the table"
|
|
540
|
+
},
|
|
541
|
+
"attribute": "data-cols",
|
|
542
|
+
"reflect": false
|
|
543
|
+
},
|
|
544
|
+
"disclaimerCount": {
|
|
545
|
+
"type": "number",
|
|
546
|
+
"mutable": false,
|
|
547
|
+
"complexType": {
|
|
548
|
+
"original": "number",
|
|
549
|
+
"resolved": "number",
|
|
550
|
+
"references": {}
|
|
551
|
+
},
|
|
552
|
+
"required": false,
|
|
553
|
+
"optional": true,
|
|
554
|
+
"docs": {
|
|
555
|
+
"tags": [],
|
|
556
|
+
"text": "Number of disclaimers below the table"
|
|
557
|
+
},
|
|
558
|
+
"attribute": "disclaimer-count",
|
|
559
|
+
"reflect": false,
|
|
560
|
+
"defaultValue": "0"
|
|
561
|
+
}
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
static get states() {
|
|
565
|
+
return {
|
|
566
|
+
"scrollTopClipperHeight": {},
|
|
567
|
+
"desktopHeaderFirstCellWidth": {},
|
|
568
|
+
"targetElements": {},
|
|
569
|
+
"columnHeaderLinks": {},
|
|
570
|
+
"lastScrollTop": {},
|
|
571
|
+
"scrollTimeInterval": {},
|
|
572
|
+
"scrollAmount": {},
|
|
573
|
+
"scrollLimit": {},
|
|
574
|
+
"mobileHeaderRowColSpan": {},
|
|
575
|
+
"showCtaButtonsRow": {},
|
|
576
|
+
"ctaButtons": {},
|
|
577
|
+
"disclaimers": {}
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
static get elementRef() { return "el"; }
|
|
581
|
+
}
|
|
@@ -35,15 +35,33 @@
|
|
|
35
35
|
vertical-align: middle;
|
|
36
36
|
}
|
|
37
37
|
:host .number {
|
|
38
|
-
display: inline;
|
|
38
|
+
display: inline-block;
|
|
39
39
|
line-height: var(--ptc-line-height-denser);
|
|
40
40
|
font-size: var(--ptc-font-size-xx-large);
|
|
41
41
|
font-weight: var(--ptc-font-weight-semibold);
|
|
42
42
|
vertical-align: middle;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
max-width: 160px;
|
|
43
47
|
}
|
|
44
48
|
:host slot[name=before-icon], :host slot[name=after-icon] {
|
|
45
49
|
text-align: center;
|
|
46
50
|
line-height: var(--ptc-line-height-densest);
|
|
47
51
|
font-size: var(--ptc-font-size-x-small);
|
|
48
52
|
font-weight: var(--ptc-font-weight-semibold);
|
|
53
|
+
}
|
|
54
|
+
:host slot[name=before-icon] {
|
|
55
|
+
display: -webkit-box;
|
|
56
|
+
-webkit-box-orient: vertical;
|
|
57
|
+
-webkit-line-clamp: 2;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
text-overflow: ellipsis;
|
|
60
|
+
}
|
|
61
|
+
:host slot[name=after-icon] {
|
|
62
|
+
display: -webkit-box;
|
|
63
|
+
-webkit-box-orient: vertical;
|
|
64
|
+
-webkit-line-clamp: 5;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
text-overflow: ellipsis;
|
|
49
67
|
}
|