@ptcwebops/ptcw-design 6.3.35-beta → 6.3.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/component-1b8ad4d2.js +1819 -0
- package/dist/cjs/{component-6a178a16.js → component-35540bfb.js} +1494 -3305
- package/dist/cjs/embedded-form.cjs.entry.js +1 -1
- package/dist/cjs/featured-list.cjs.entry.js +1 -1
- package/dist/cjs/global-418c14b4.js +33 -0
- package/dist/cjs/icon-asset.cjs.entry.js +1 -1
- package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
- package/dist/cjs/jumbotron-sub-menu.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -1
- package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-button_5.cjs.entry.js +542 -0
- package/dist/cjs/ptc-card_2.cjs.entry.js +10 -7
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +2 -6
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +24 -24
- package/dist/cjs/ptc-countdown.cjs.entry.js +7 -10
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +2 -1
- package/dist/cjs/ptc-dynamic-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-embedded-quiz.cjs.entry.js +1 -1
- package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-filter-dropdown_4.cjs.entry.js +40 -9
- package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +18 -3
- package/dist/cjs/{ptc-form-checkbox_4.cjs.entry.js → ptc-form-checkbox_2.cjs.entry.js} +39 -803
- package/dist/cjs/ptc-info-tile.cjs.entry.js +2 -1
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +4 -1
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +674 -0
- package/dist/cjs/ptc-nav-link.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-skip-to-content.cjs.entry.js +28 -3
- package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-previous-url.cjs.entry.js +2 -10
- package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +1 -1
- 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-highlight-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-list.cjs.entry.js +4 -0
- package/dist/cjs/ptc-product-sidebar.cjs.entry.js +38 -6
- 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-v3.cjs.entry.js +1 -1
- package/dist/cjs/ptc-related-card-rail.cjs.entry.js +42 -38
- package/dist/cjs/ptc-sticky-icons.cjs.entry.js +9 -0
- package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +15 -0
- package/dist/cjs/ptc-theater-video-modal.cjs.entry.js +42 -8
- package/dist/cjs/ptc-tooltip-v2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +1 -1
- package/dist/cjs/ptc-white-paper.cjs.entry.js +11 -10
- package/dist/cjs/ptcw-design.cjs.js +3 -1
- package/dist/cjs/validation-messages-f1d373e7.js +172 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/icon-asset/icon-asset.js +1 -1
- package/dist/collection/components/icon-asset/media/{designer-v6.0.6.svg → designer-v6.0.7.svg} +17 -30
- package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +6 -6
- package/dist/collection/components/jumbotron-sub-menu/jumbotron-sub-menu.css +1 -0
- package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +3 -3
- package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +1 -1
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +6 -6
- package/dist/collection/components/ptc-button/ptc-button.css +100 -0
- package/dist/collection/components/ptc-button/ptc-button.js +24 -4
- package/dist/collection/components/ptc-card/ptc-card.js +21 -2
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +6 -6
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.js +1 -5
- package/dist/collection/components/ptc-countdown/ptc-countdown.js +7 -10
- package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +1 -1
- package/dist/collection/components/ptc-embedded-quiz/ptc-embedded-quiz.css +1 -1
- package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +6 -6
- package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.css +12 -0
- package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.js +29 -3
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +34 -13
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.js +17 -2
- package/dist/collection/components/ptc-info-tile/ptc-info-tile.js +20 -1
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +6 -6
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +3 -0
- package/dist/collection/components/ptc-modal/ptc-modal.css +0 -4
- package/dist/collection/components/ptc-modal/ptc-modal.js +25 -25
- package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.css +7 -0
- package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.js +78 -2
- package/dist/collection/components/ptc-para/ptc-para.css +0 -3
- package/dist/collection/components/ptc-para/ptc-para.js +2 -2
- package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +6 -6
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +109 -0
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +6 -4
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +0 -16
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +1 -27
- package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.css +2 -2
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +1 -1
- package/dist/collection/components/ptc-product-card/ptc-product-card.css +6 -6
- package/dist/collection/components/ptc-product-category/ptc-product-category.css +6 -6
- package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +6 -6
- package/dist/collection/components/ptc-product-list/ptc-product-list.js +4 -0
- package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.css +8 -0
- package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +37 -5
- package/dist/collection/components/ptc-quote/ptc-quote.js +1 -1
- package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +6 -6
- package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +6 -6
- package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.js +63 -38
- package/dist/collection/components/ptc-select/ptc-select.js +8 -4
- package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +9 -0
- package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +15 -0
- package/dist/collection/components/ptc-textfield/ptc-textfield.css +69 -4
- package/dist/collection/components/ptc-textfield/ptc-textfield.js +77 -37
- package/dist/collection/components/ptc-theater-video/ptc-theater-video.css +6 -0
- package/dist/collection/components/ptc-theater-video/ptc-theater-video.js +1 -1
- package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.css +15 -0
- package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.js +67 -9
- package/dist/collection/components/ptc-theater-video-playlist/ptc-theater-video-playlist.js +8 -3
- package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +6 -6
- package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +6 -6
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +6 -6
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +10 -9
- package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.js +1 -1
- package/dist/collection/global/global.js +7 -0
- package/dist/collection/stories/Breadcrumb2.stories.js +62 -0
- package/dist/collection/stories/BrightcovVideo.stories.js +21 -0
- package/dist/collection/stories/Card.stories.js +3 -148
- package/dist/collection/stories/Checkbox.stories.js +21 -53
- package/dist/collection/stories/CheckboxGroup.stories.js +27 -0
- package/dist/collection/stories/CloseIcon.stories.js +10 -0
- package/dist/collection/stories/CollapseList.stories.js +14 -0
- package/dist/collection/stories/Countdown.stories.js +10 -0
- package/dist/collection/stories/DataLookup.stories.js +21 -0
- package/dist/collection/stories/EllipsisDropdown.stories.js +14 -0
- package/dist/collection/stories/Hero.stories.js +35 -120
- package/dist/collection/stories/HeroFooterCTA.stories.js +21 -0
- package/dist/collection/stories/Jumbotron.stories.js +727 -0
- package/dist/collection/stories/Link.stories.js +25 -13
- package/dist/collection/stories/MinimizedFooter.stories.js +18 -0
- package/dist/collection/stories/MultiSelect.stories.js +10 -0
- package/dist/collection/stories/Paragraph.stories.js +18 -10
- package/dist/collection/stories/ResponsiveWrapper.stories.js +21 -0
- package/dist/collection/stories/ScrollButton.stories.js +14 -0
- package/dist/collection/stories/SearchField.stories.js +21 -0
- package/dist/collection/stories/Select.stories.js +27 -81
- package/dist/collection/stories/SocialShare.stories.js +83 -67
- package/dist/collection/stories/SvgBtn.stories.js +36 -0
- package/dist/collection/stories/TextCopyWithBackground.stories.js +100 -242
- package/dist/collection/stories/Textfield.stories.js +71 -28
- package/dist/collection/stories/TheaterVideo.stories.js +21 -0
- package/dist/collection/stories/Title.stories.js +28 -16
- package/dist/collection/stories/VideoEmbed.stories.js +10 -0
- package/dist/collection/stories/backToTop.stories.js +10 -0
- package/dist/collection/stories/backgroundVideo.stories.js +115 -0
- package/dist/collection/stories/jumbotronSubMenu.stories.js +14 -0
- package/dist/collection/stories/organisms/ptc/Academic Form/preview.stories.js +22 -0
- package/dist/collection/stories/organisms/ptc/All Products/preview.stories.js +1616 -0
- package/dist/collection/stories/organisms/ptc/Announcement/preview.stories.js +58 -0
- package/dist/collection/stories/organisms/ptc/Background Video/preview.stories.js +58 -0
- package/dist/collection/stories/organisms/ptc/Blog Author Listing/preview.stories.js +32 -0
- package/dist/collection/stories/organisms/ptc/Blog Content/preview.stories.js +317 -0
- package/dist/collection/stories/organisms/ptc/Blog Detail/preview.stories.js +500 -0
- package/dist/collection/stories/organisms/ptc/Blogs Listing Page/preview.stories.js +368 -0
- package/dist/collection/stories/organisms/ptc/Bureau New Dynamic/preview.stories.js +54 -0
- package/dist/collection/stories/organisms/ptc/Case Studies/preview.stories.js +243 -0
- package/dist/collection/stories/organisms/ptc/Case Studies Detail Page/preview.stories.js +456 -0
- package/dist/collection/stories/organisms/ptc/Case Studies Slider/preview.stories.js +384 -0
- package/dist/collection/stories/organisms/ptc/Case Studies Slider New/preview.stories.js +171 -0
- package/dist/collection/stories/organisms/ptc/Clq Modal Quiz/preview.stories.js +100 -0
- package/dist/collection/stories/organisms/ptc/Contact Free Trial Form/preview.stories.js +22 -0
- package/dist/collection/stories/organisms/ptc/Countdown Example/preview.stories.js +29 -0
- package/dist/collection/stories/organisms/ptc/E Store Build Listing/preview.stories.js +543 -0
- package/dist/collection/stories/organisms/ptc/E Store Build Product/preview.stories.js +427 -0
- package/dist/collection/stories/organisms/ptc/Eloqua Library Contact Info/preview.stories.js +168 -0
- package/dist/collection/stories/organisms/ptc/Eloqua Library Visitor PCenter/preview.stories.js +60 -0
- package/dist/collection/stories/organisms/ptc/Eloqua Library Visitor Recipient Id/preview.stories.js +59 -0
- package/dist/collection/stories/organisms/ptc/Embedded Form/preview.stories.js +23 -0
- package/dist/collection/stories/organisms/ptc/Embedded Form Floating/preview.stories.js +165 -0
- package/dist/collection/stories/organisms/ptc/Event Detail/preview.stories.js +16 -0
- package/dist/collection/stories/organisms/ptc/Event Jumbotron/preview.stories.js +470 -0
- package/dist/collection/stories/organisms/ptc/Event Podcast Slider/preview.stories.js +142 -0
- package/dist/collection/stories/organisms/ptc/Events Listing Cards/preview.stories.js +169 -0
- package/dist/collection/stories/organisms/ptc/Events Listing Cards Horizontal/preview.stories.js +169 -0
- package/dist/collection/stories/organisms/ptc/Featured Events Slider/preview.stories.js +165 -0
- package/dist/collection/stories/organisms/ptc/Featured List/preview.stories.js +16 -0
- package/dist/collection/stories/organisms/ptc/Filter Level Theater/preview.stories.js +18 -0
- package/dist/collection/stories/organisms/ptc/Five Card Value Prop/preview.stories.js +64 -0
- package/dist/collection/stories/organisms/ptc/Footer Form/preview.stories.js +18 -0
- package/dist/collection/stories/organisms/ptc/Footer V2/preview.stories.js +138 -0
- package/dist/collection/stories/organisms/ptc/Footer V2 Cn/preview.stories.js +146 -0
- package/dist/collection/stories/organisms/ptc/Form Radio Button/preview.stories.js +42 -0
- package/dist/collection/stories/organisms/ptc/Framed Video 16 9/preview.stories.js +31 -0
- package/dist/collection/stories/organisms/ptc/Homepage Image Feature/preview.stories.js +41 -0
- package/dist/collection/stories/organisms/ptc/Homepage Jumbotron/preview.stories.js +166 -0
- package/dist/collection/stories/organisms/ptc/Homepage Toggled Content/preview.stories.js +227 -0
- package/dist/collection/stories/organisms/ptc/Hub Of Hubs/preview.stories.js +417 -0
- package/dist/collection/stories/organisms/ptc/Intro/preview.stories.js +41 -0
- package/dist/collection/stories/organisms/ptc/Jumbotron/preview.stories.js +431 -0
- package/dist/collection/stories/organisms/ptc/Jumbotron With Logos/preview.stories.js +431 -0
- package/dist/collection/stories/organisms/ptc/Large Bulleted List/preview.stories.js +224 -0
- package/dist/collection/stories/organisms/ptc/Large Bulleted List V2/preview.stories.js +326 -0
- package/dist/collection/stories/organisms/ptc/Listing Filter/preview.stories.js +256 -0
- package/dist/collection/stories/organisms/ptc/Main Nav Product Solutions Tab/preview.stories.js +200 -0
- package/dist/collection/stories/organisms/ptc/Mathcad Start Page/preview.stories.js +100 -0
- package/dist/collection/stories/organisms/ptc/Media Kit Speed Bump/preview.stories.js +39 -0
- package/dist/collection/stories/organisms/ptc/Most Popular News/preview.stories.js +28 -0
- package/dist/collection/stories/organisms/ptc/Mvc Form/preview.stories.js +22 -0
- package/dist/collection/stories/organisms/ptc/New Buttons/preview.stories.js +125 -0
- package/dist/collection/stories/organisms/ptc/Partners Detail/preview.stories.js +151 -0
- package/dist/collection/stories/organisms/ptc/Partners Listing/preview.stories.js +394 -0
- package/dist/collection/stories/organisms/ptc/Pdf Portal/preview.stories.js +140 -0
- package/dist/collection/stories/organisms/ptc/Plm On Demand 1/preview.stories.js +205 -0
- package/dist/collection/stories/organisms/ptc/Plm On Demand 2/preview.stories.js +180 -0
- package/dist/collection/stories/organisms/ptc/Podcast List/preview.stories.js +175 -0
- package/dist/collection/stories/organisms/ptc/Preference Center/preview.stories.js +235 -0
- package/dist/collection/stories/organisms/ptc/Preference Center Exit Page/preview.stories.js +85 -0
- package/dist/collection/stories/organisms/ptc/Preference Center Update Email/preview.stories.js +54 -0
- package/dist/collection/stories/organisms/ptc/Preference Center Update Personal Info/preview.stories.js +59 -0
- package/dist/collection/stories/organisms/ptc/Pricing Packaging Table/preview.stories.js +399 -0
- package/dist/collection/stories/organisms/ptc/Pricing Packaging Table Subnav/preview.stories.js +179 -0
- package/dist/collection/stories/organisms/ptc/Ptc 3 Card Value Prop/preview.stories.js +46 -0
- package/dist/collection/stories/organisms/ptc/Ptc Bio Cards/preview.stories.js +741 -0
- package/dist/collection/stories/organisms/ptc/Ptc Creo Start Page/preview.stories.js +111 -0
- package/dist/collection/stories/organisms/ptc/Ptc Editorial/preview.stories.js +84 -0
- package/dist/collection/stories/organisms/ptc/Ptc Form/preview.stories.js +18 -0
- package/dist/collection/stories/organisms/ptc/Ptc Icon Card Slider/preview.stories.js +121 -0
- package/dist/collection/stories/organisms/ptc/Ptc Icon Component/preview.stories.js +185 -0
- package/dist/collection/stories/organisms/ptc/Ptc Icon Sprites/preview.stories.js +150 -0
- package/dist/collection/stories/organisms/ptc/Ptc Innovator Toggle/preview.stories.js +421 -0
- package/dist/collection/stories/organisms/ptc/Ptc Media Cards/preview.stories.js +133 -0
- package/dist/collection/stories/organisms/ptc/Ptc News Detail/preview.stories.js +142 -0
- package/dist/collection/stories/organisms/ptc/Ptc News Detail Alternate/preview.stories.js +140 -0
- package/dist/collection/stories/organisms/ptc/Ptc Offices/preview.stories.js +405 -0
- package/dist/collection/stories/organisms/ptc/Ptc Readmore V3/preview.stories.js +71 -0
- package/dist/collection/stories/organisms/ptc/Ptc Showcase Card/preview.stories.js +177 -0
- package/dist/collection/stories/organisms/ptc/Ptc Sticky Share Icons/preview.stories.js +184 -0
- package/dist/collection/stories/organisms/ptc/Ptc Subnav V1/preview.stories.js +149 -0
- package/dist/collection/stories/organisms/ptc/Ptc Subnav V2/preview.stories.js +91 -0
- package/dist/collection/stories/organisms/ptc/Ptc Text Copy With Background/preview.stories.js +226 -0
- package/dist/collection/stories/organisms/ptc/Ptc Title Demo/preview.stories.js +24 -0
- package/dist/collection/stories/organisms/ptc/Ptc Tooltip V3/preview.stories.js +85 -0
- package/dist/collection/stories/organisms/ptc/Ptc Two Column Two Media/preview.stories.js +126 -0
- package/dist/collection/stories/organisms/ptc/Read More/preview.stories.js +278 -0
- package/dist/collection/stories/organisms/ptc/Related Cards/preview.stories.js +107 -0
- package/dist/collection/stories/organisms/ptc/Resource Center/preview.stories.js +149 -0
- package/dist/collection/stories/organisms/ptc/Search Result/preview.stories.js +62 -0
- package/dist/collection/stories/organisms/ptc/Search Result News/preview.stories.js +72 -0
- package/dist/collection/stories/organisms/ptc/Searchbar Plm On Demand/preview.stories.js +62 -0
- package/dist/collection/stories/organisms/ptc/Seo Test/preview.stories.js +215 -0
- package/dist/collection/stories/organisms/ptc/Sequential Slider/preview.stories.js +38 -0
- package/dist/collection/stories/organisms/ptc/Sequential Slider Mobile/preview.stories.js +90 -0
- package/dist/collection/stories/organisms/ptc/Shortform Agileworx/preview.stories.js +22 -0
- package/dist/collection/stories/organisms/ptc/Storefront Enhanced Product Listing/preview.stories.js +132 -0
- package/dist/collection/stories/organisms/ptc/Success Path Details Page/preview.stories.js +236 -0
- package/dist/collection/stories/organisms/ptc/Three Column Text/preview.stories.js +75 -0
- package/dist/collection/stories/organisms/ptc/Three Up Text Cards/preview.stories.js +134 -0
- package/dist/collection/stories/organisms/ptc/Two Column Media/preview.stories.js +181 -0
- package/dist/collection/stories/organisms/ptc/Two Column With Toggle/preview.stories.js +549 -0
- package/dist/collection/stories/organisms/ptc/Value Led Resource/preview.stories.js +479 -0
- package/dist/collection/stories/organisms/ptc/Volvo Three Col/preview.stories.js +115 -0
- package/dist/collection/stories/organisms/ptc/Vuforia Quiz/preview.stories.js +26 -0
- package/dist/collection/stories/organisms/ptc/White Paper/preview.stories.js +174 -0
- package/dist/collection/stories/ptcLink2.stories.js +142 -0
- package/dist/collection/utils/fef-logger.js +23 -0
- package/dist/collection/utils/validation-messages.js +49 -2
- package/dist/custom-elements/index.d.ts +0 -6
- package/dist/custom-elements/index.js +574 -404
- package/dist/esm/blog-detail-content_2.entry.js +1 -1
- package/dist/esm/blog-detail-layout.entry.js +1 -1
- package/dist/esm/blogs-search-section.entry.js +1 -1
- package/dist/esm/{component-80f298b4.js → component-8c53e377.js} +1482 -3281
- package/dist/esm/component-9beac35b.js +1802 -0
- package/dist/esm/embedded-form.entry.js +1 -1
- package/dist/esm/featured-list.entry.js +1 -1
- package/dist/esm/global-1a5f28d5.js +31 -0
- package/dist/esm/homepage-jumbotron.entry.js +1 -1
- package/dist/esm/homepage-toggled-content.entry.js +1 -1
- package/dist/esm/icon-asset.entry.js +1 -1
- package/dist/esm/innovator-toggle-container.entry.js +1 -1
- package/dist/esm/{interfaces-4caedd26.js → interfaces-7c0243be.js} +1 -1
- package/dist/esm/jumbotron-sub-menu.entry.js +1 -1
- package/dist/esm/loader.js +3 -1
- package/dist/esm/most-popular-news.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-background-video.entry.js +1 -1
- package/dist/esm/ptc-bio-card.entry.js +1 -1
- package/dist/esm/ptc-button_5.entry.js +534 -0
- package/dist/esm/ptc-card_2.entry.js +10 -7
- package/dist/esm/ptc-case-studies-slider.entry.js +2 -6
- package/dist/esm/ptc-close-icon_2.entry.js +24 -24
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-countdown.entry.js +7 -10
- package/dist/esm/ptc-data-lookup.entry.js +2 -1
- package/dist/esm/ptc-dynamic-card.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 +40 -9
- package/dist/esm/ptc-filter-level-theater.entry.js +18 -3
- package/dist/esm/{ptc-form-checkbox_4.entry.js → ptc-form-checkbox_2.entry.js} +40 -802
- package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
- package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
- package/dist/esm/ptc-icon-card.entry.js +1 -1
- package/dist/esm/ptc-img.entry.js +1 -1
- package/dist/esm/ptc-info-tile.entry.js +2 -1
- package/dist/esm/ptc-jumbotron.entry.js +4 -1
- package/dist/esm/ptc-link.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-multi-select_2.entry.js +669 -0
- package/dist/esm/ptc-nav-link.entry.js +1 -1
- package/dist/esm/ptc-nav-skip-to-content.entry.js +28 -3
- package/dist/esm/ptc-podcast-card.entry.js +1 -1
- package/dist/esm/ptc-previous-url.entry.js +2 -10
- package/dist/esm/ptc-pricing-packaging-table.entry.js +2 -2
- package/dist/esm/ptc-pricing-tabs.entry.js +2 -2
- package/dist/esm/ptc-product-card.entry.js +1 -1
- package/dist/esm/ptc-product-category.entry.js +1 -1
- package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
- package/dist/esm/ptc-product-list.entry.js +4 -0
- package/dist/esm/ptc-product-sidebar.entry.js +38 -6
- package/dist/esm/ptc-quote.entry.js +1 -1
- package/dist/esm/ptc-readmore-char.entry.js +1 -1
- package/dist/esm/ptc-readmore-v3.entry.js +1 -1
- package/dist/esm/ptc-related-card-rail.entry.js +42 -38
- package/dist/esm/ptc-social-icons-footer.entry.js +1 -1
- package/dist/esm/ptc-sticky-icons.entry.js +9 -0
- package/dist/esm/ptc-text-copy-with-background.entry.js +16 -1
- package/dist/esm/ptc-theater-video-modal.entry.js +43 -9
- package/dist/esm/ptc-tooltip-v2.entry.js +1 -1
- package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
- package/dist/esm/ptc-white-paper.entry.js +11 -10
- package/dist/esm/ptcw-design.js +3 -1
- package/dist/esm/{utils-2f12c081.js → utils-7c68b88a.js} +1 -1
- package/dist/esm/validation-messages-1379b825.js +169 -0
- package/dist/ptcw-design/media/{designer-v6.0.6.svg → designer-v6.0.7.svg} +17 -30
- package/dist/ptcw-design/p-00e21489.entry.js +1 -0
- package/dist/ptcw-design/{p-901c31b3.entry.js → p-0252726c.entry.js} +1 -1
- package/dist/ptcw-design/p-02822616.entry.js +1 -0
- package/dist/ptcw-design/p-05c29cc2.entry.js +1 -0
- package/dist/ptcw-design/{p-f867ebe6.entry.js → p-0ddf2a09.entry.js} +1 -1
- package/dist/ptcw-design/p-0efedf59.js +1 -0
- package/dist/ptcw-design/p-1454ba84.entry.js +1 -0
- package/dist/ptcw-design/{p-45b1f3fc.entry.js → p-16d47ac5.entry.js} +1 -1
- package/dist/ptcw-design/p-18851303.entry.js +1 -0
- package/dist/ptcw-design/{p-d73cc053.entry.js → p-18ac526f.entry.js} +1 -1
- package/dist/ptcw-design/{p-4ca956c1.entry.js → p-1c99b808.entry.js} +1 -1
- package/dist/ptcw-design/p-1feb2812.entry.js +1 -0
- package/dist/ptcw-design/{p-a5fc048f.entry.js → p-24a6eefa.entry.js} +1 -1
- package/dist/ptcw-design/{p-9df7489b.entry.js → p-27c26d50.entry.js} +1 -1
- package/dist/ptcw-design/{p-9dbcfcee.entry.js → p-2ba1ef9d.entry.js} +1 -1
- package/dist/ptcw-design/{p-1eb40265.entry.js → p-30bfb2f9.entry.js} +1 -1
- package/dist/ptcw-design/p-33224113.entry.js +1 -0
- package/dist/ptcw-design/p-352e87c0.entry.js +1 -0
- package/dist/ptcw-design/p-3b9fbbaa.js +1 -0
- package/dist/ptcw-design/p-3e4ec8ef.entry.js +1 -0
- package/dist/ptcw-design/{p-297a14cb.entry.js → p-4056c365.entry.js} +1 -1
- package/dist/ptcw-design/{p-b647f7a1.entry.js → p-50770cc0.entry.js} +1 -1
- package/dist/ptcw-design/{p-52e17d34.entry.js → p-55e344bc.entry.js} +1 -1
- package/dist/ptcw-design/p-593b8eff.entry.js +1 -0
- package/dist/ptcw-design/{p-8cea8943.entry.js → p-5bd8b4be.entry.js} +1 -1
- package/dist/ptcw-design/{p-3ed4a7ed.entry.js → p-5ca42138.entry.js} +1 -1
- package/dist/ptcw-design/p-66ecd7b9.entry.js +1 -0
- package/dist/ptcw-design/{p-257267e3.entry.js → p-673cfd2e.entry.js} +1 -1
- package/dist/ptcw-design/p-73a853fc.entry.js +1 -0
- package/dist/ptcw-design/{p-8e42a22d.entry.js → p-757e3edb.entry.js} +1 -1
- package/dist/ptcw-design/p-78370e3d.entry.js +1 -0
- package/dist/ptcw-design/{p-d51438de.entry.js → p-80588c84.entry.js} +1 -1
- package/dist/ptcw-design/{p-4702c233.entry.js → p-81e65926.entry.js} +1 -1
- package/dist/ptcw-design/{p-80122e26.js → p-826c17e8.js} +1 -1
- package/dist/ptcw-design/p-829855f5.entry.js +1 -0
- package/dist/ptcw-design/{p-99355e65.entry.js → p-884c335c.entry.js} +1 -1
- package/dist/ptcw-design/p-98426799.js +203 -0
- package/dist/ptcw-design/p-98844b50.js +134 -0
- package/dist/ptcw-design/{p-71360e29.entry.js → p-9e4e21a4.entry.js} +1 -1
- package/dist/ptcw-design/p-a2c7df64.entry.js +1 -0
- package/dist/ptcw-design/p-a58698ca.entry.js +1 -0
- package/dist/ptcw-design/{p-8c121480.entry.js → p-a5ad0eff.entry.js} +1 -1
- package/dist/ptcw-design/{p-0b515839.entry.js → p-a791c53a.entry.js} +1 -1
- package/dist/ptcw-design/p-acdd9a1d.entry.js +1 -0
- package/dist/ptcw-design/p-ad821a01.entry.js +1 -0
- package/dist/ptcw-design/p-b6255525.entry.js +1 -0
- package/dist/ptcw-design/{p-fd87fcd5.entry.js → p-b863b296.entry.js} +1 -1
- package/dist/ptcw-design/p-bb9a879f.entry.js +1 -0
- package/dist/ptcw-design/p-bc146844.entry.js +1 -0
- package/dist/ptcw-design/p-bcc6712c.entry.js +68 -0
- package/dist/ptcw-design/p-c82eaf9d.entry.js +1 -0
- package/dist/ptcw-design/p-cad4b517.entry.js +1 -0
- package/dist/ptcw-design/{p-3dd0ded9.entry.js → p-d089dc37.entry.js} +1 -1
- package/dist/ptcw-design/p-d6845e91.entry.js +1 -0
- package/dist/ptcw-design/p-ddb898c7.entry.js +1 -0
- package/dist/ptcw-design/{p-14b7693f.entry.js → p-dffcfa42.entry.js} +1 -1
- package/dist/ptcw-design/p-e3867512.entry.js +1 -0
- package/dist/ptcw-design/p-e6619d63.entry.js +1 -0
- package/dist/ptcw-design/{p-76dab076.entry.js → p-e813ea2b.entry.js} +1 -1
- package/dist/ptcw-design/p-eaa0597a.entry.js +1 -0
- package/dist/ptcw-design/{p-711bcdad.js → p-ee1183b2.js} +1 -1
- package/dist/ptcw-design/p-f377006c.entry.js +1 -0
- package/dist/ptcw-design/{p-bab5bb88.entry.js → p-f5d8a3b1.entry.js} +1 -1
- package/dist/ptcw-design/p-f9256e3d.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +2 -2
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-button/ptc-button.d.ts +2 -1
- package/dist/types/components/ptc-card/ptc-card.d.ts +1 -0
- package/dist/types/components/ptc-countdown/ptc-countdown.d.ts +0 -1
- package/dist/types/components/ptc-filter-dropdown/ptc-filter-dropdown.d.ts +2 -1
- package/dist/types/components/ptc-form-checkbox/ptc-form-checkbox.d.ts +1 -1
- package/dist/types/components/ptc-info-tile/ptc-info-tile.d.ts +1 -0
- package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +1 -0
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +1 -1
- package/dist/types/components/ptc-multi-select/ptc-multi-select.d.ts +1 -1
- package/dist/types/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.d.ts +6 -0
- package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
- package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +0 -2
- package/dist/types/components/ptc-product-list/ptc-product-list.d.ts +1 -1
- package/dist/types/components/ptc-product-sidebar/ptc-product-sidebar.d.ts +6 -3
- package/dist/types/components/ptc-related-card-rail/ptc-related-card-rail.d.ts +3 -0
- package/dist/types/components/ptc-select/ptc-select.d.ts +2 -1
- package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +2 -0
- package/dist/types/components/ptc-textfield/ptc-textfield.d.ts +58 -4
- package/dist/types/components/ptc-theater-video-modal/ptc-theater-video-modal.d.ts +6 -1
- package/dist/types/components/ptc-theater-video-playlist/ptc-theater-video-playlist.d.ts +1 -1
- package/dist/types/components.d.ts +137 -24
- package/dist/types/global/global.d.ts +4 -0
- package/dist/types/utils/fef-logger.d.ts +10 -0
- package/dist/types/utils/validation-messages.d.ts +4 -123
- package/package.json +1 -1
- package/readme.md +1 -5
- package/dist/cjs/modal-form-example.cjs.entry.js +0 -94
- package/dist/cjs/ptc-button.cjs.entry.js +0 -87
- package/dist/cjs/ptc-para.cjs.entry.js +0 -127
- package/dist/cjs/ptc-picture.cjs.entry.js +0 -162
- package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
- package/dist/cjs/ptc-title.cjs.entry.js +0 -152
- package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +0 -26
- package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +0 -99
- package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +0 -45
- package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +0 -47
- package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +0 -157
- package/dist/esm/modal-form-example.entry.js +0 -90
- package/dist/esm/ptc-button.entry.js +0 -83
- package/dist/esm/ptc-para.entry.js +0 -123
- package/dist/esm/ptc-picture.entry.js +0 -158
- package/dist/esm/ptc-spacer.entry.js +0 -34
- package/dist/esm/ptc-title.entry.js +0 -148
- package/dist/ptcw-design/p-0529caaa.entry.js +0 -1
- package/dist/ptcw-design/p-077839d5.entry.js +0 -1
- package/dist/ptcw-design/p-092e50c9.entry.js +0 -1
- package/dist/ptcw-design/p-0c69ea52.entry.js +0 -1
- package/dist/ptcw-design/p-0e5932f0.entry.js +0 -1
- package/dist/ptcw-design/p-0ef61b44.entry.js +0 -1
- package/dist/ptcw-design/p-1616a1f7.entry.js +0 -1
- package/dist/ptcw-design/p-1e3bf09c.entry.js +0 -1
- package/dist/ptcw-design/p-21aa746d.entry.js +0 -1
- package/dist/ptcw-design/p-282b7d4e.entry.js +0 -1
- package/dist/ptcw-design/p-2a20d4a6.entry.js +0 -1
- package/dist/ptcw-design/p-2cc7e2a8.entry.js +0 -1
- package/dist/ptcw-design/p-32f64f48.entry.js +0 -1
- package/dist/ptcw-design/p-3ee2a531.entry.js +0 -1
- package/dist/ptcw-design/p-445329ed.entry.js +0 -1
- package/dist/ptcw-design/p-5311c6e1.entry.js +0 -1
- package/dist/ptcw-design/p-58e91cb8.entry.js +0 -1
- package/dist/ptcw-design/p-5db7f70b.entry.js +0 -1
- package/dist/ptcw-design/p-672a349f.js +0 -336
- package/dist/ptcw-design/p-75390f63.entry.js +0 -1
- package/dist/ptcw-design/p-799afee5.entry.js +0 -1
- package/dist/ptcw-design/p-7bdf1e64.entry.js +0 -1
- package/dist/ptcw-design/p-7f9ad266.entry.js +0 -1
- package/dist/ptcw-design/p-845d10b5.entry.js +0 -1
- package/dist/ptcw-design/p-85bdb2d5.entry.js +0 -68
- package/dist/ptcw-design/p-8fb48953.entry.js +0 -1
- package/dist/ptcw-design/p-9501995f.entry.js +0 -1
- package/dist/ptcw-design/p-97b9f41b.entry.js +0 -1
- package/dist/ptcw-design/p-a8872ce3.entry.js +0 -1
- package/dist/ptcw-design/p-baff4d44.entry.js +0 -1
- package/dist/ptcw-design/p-de960790.entry.js +0 -1
- package/dist/ptcw-design/p-e4eb925f.entry.js +0 -1
- package/dist/ptcw-design/p-e6a272d9.entry.js +0 -1
- package/dist/ptcw-design/p-f1734520.entry.js +0 -1
- package/dist/ptcw-design/p-fe40421e.entry.js +0 -1
- package/dist/ptcw-design/p-fe907670.entry.js +0 -1
- package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +0 -25
|
@@ -107,6 +107,10 @@ ptc-link, ptc-square-card,
|
|
|
107
107
|
font-size: var(--ptc-font-size-x-small);
|
|
108
108
|
text-decoration: underline;
|
|
109
109
|
}
|
|
110
|
+
:host .filter-result-wrap .result-header .clear-cta:focus-visible {
|
|
111
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
112
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
113
|
+
}
|
|
110
114
|
:host .filter-result-wrap .result-header .clear-cta.show {
|
|
111
115
|
display: block;
|
|
112
116
|
}
|
|
@@ -182,6 +186,10 @@ ptc-link, ptc-square-card,
|
|
|
182
186
|
display: block;
|
|
183
187
|
font-size: 14px;
|
|
184
188
|
}
|
|
189
|
+
:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li:focus-visible {
|
|
190
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
191
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
192
|
+
}
|
|
185
193
|
:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li:first-child {
|
|
186
194
|
padding-top: 20px;
|
|
187
195
|
}
|
|
@@ -17,6 +17,7 @@ export class PtcProductSidebar {
|
|
|
17
17
|
componentDidLoad() {
|
|
18
18
|
this.productListWrap = this.hostElement.shadowRoot.querySelector('.product-list-wrap');
|
|
19
19
|
this.clearBtn = this.hostElement.shadowRoot.querySelector('.clear-cta');
|
|
20
|
+
this.inputBox = this.hostElement.shadowRoot.querySelector('#searchBox');
|
|
20
21
|
}
|
|
21
22
|
// Getting category title and products list
|
|
22
23
|
getDomData() {
|
|
@@ -74,6 +75,15 @@ export class PtcProductSidebar {
|
|
|
74
75
|
'event': e,
|
|
75
76
|
});
|
|
76
77
|
}
|
|
78
|
+
else if (e.key === 'Escape') {
|
|
79
|
+
this.clearSearch(e);
|
|
80
|
+
this.inputBox.focus();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
handleKeyDownClearCta(e) {
|
|
84
|
+
if (e.key === 'Enter') {
|
|
85
|
+
this.clearSearch(e);
|
|
86
|
+
}
|
|
77
87
|
}
|
|
78
88
|
clearSearch(event) {
|
|
79
89
|
let input = this.hostElement.shadowRoot.querySelector('input');
|
|
@@ -103,10 +113,10 @@ export class PtcProductSidebar {
|
|
|
103
113
|
handleClick() {
|
|
104
114
|
this.suggestions = [];
|
|
105
115
|
}
|
|
106
|
-
handleclearCtaClicked(
|
|
107
|
-
const { sender, event
|
|
116
|
+
handleclearCtaClicked(eve) {
|
|
117
|
+
const { sender, event } = eve.detail;
|
|
108
118
|
if (sender) {
|
|
109
|
-
this.clearSearch(
|
|
119
|
+
this.clearSearch(event);
|
|
110
120
|
}
|
|
111
121
|
}
|
|
112
122
|
handleSelectedValues(event) {
|
|
@@ -122,9 +132,31 @@ export class PtcProductSidebar {
|
|
|
122
132
|
}
|
|
123
133
|
}
|
|
124
134
|
}
|
|
135
|
+
handleSuggestionKeyDown(e, index, suggestion) {
|
|
136
|
+
var _a;
|
|
137
|
+
const listItems = (_a = e.currentTarget.parentElement) === null || _a === void 0 ? void 0 : _a.querySelectorAll('li');
|
|
138
|
+
if (!listItems)
|
|
139
|
+
return;
|
|
140
|
+
if (e.key === 'Enter') {
|
|
141
|
+
this.handleSelectSuggestion(suggestion, e);
|
|
142
|
+
this.suggestions = [];
|
|
143
|
+
}
|
|
144
|
+
else if (e.key === 'Tab') {
|
|
145
|
+
e.preventDefault();
|
|
146
|
+
const isShift = e.shiftKey;
|
|
147
|
+
const nextIndex = isShift
|
|
148
|
+
? (index - 1 + listItems.length) % listItems.length
|
|
149
|
+
: (index + 1) % listItems.length;
|
|
150
|
+
listItems[nextIndex].focus();
|
|
151
|
+
}
|
|
152
|
+
else if (e.key === 'Escape') {
|
|
153
|
+
this.clearSearch(e);
|
|
154
|
+
this.inputBox.focus();
|
|
155
|
+
}
|
|
156
|
+
}
|
|
125
157
|
render() {
|
|
126
|
-
return (h(Host, { class: 'search-box' }, h("div", { class: "filter-result-wrap white-box" }, h("div", { class: "result-header" }, h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium", "title-height": "densest" }, this.filterResults), h("span", { class: "clear-cta", onClick: (e) => this.clearSearch(e) }, this.clearText)), h("div", { class: "sort-wrap" }, h("div", { class: "typeahead-input" }, h("label", { htmlFor: "searchBox" }, this.filterText), h("div", { class: "input-wrap" }, h("svg", { width: "19", height: "18", viewBox: "0 0 19 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.208984 0V1.2375L6.95898 7.65V14.2875L11.5715 17.8875V7.65L18.209 1.35V0H0.208984Z", fill: "#323B42" })), h("input", { type: "text", value: this.searchTerm, onInput: (event) => this.handleInputChange(event), onKeyUp: (e) => this.handleKeyUp(e), id: 'searchBox' })), this.suggestions.length > 0 &&
|
|
127
|
-
h("div", { class: "suggestion-wrap" }, h("ul", { class: "suggestions" }, this.suggestions.map((suggestion) => (h("li", { onClick: (e) => this.handleSelectSuggestion(suggestion, e) }, suggestion)))))), h("div", { class: "dropdwon-filter" }, h("label", { htmlFor: "tech-dropdown" }, this.technologyText), h("ptc-product-dropdown", { placeholder: this.selectTechnology, id: "tech-dropdown" }, this.suggestionList.map((item) => (h("span", null, item.categoryName))))))), h("ptc-spacer", { size: "large" }), h("ptc-spacer", { size: "large" }), h("div", { class: "product-list-wrap white-box" }, h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium", "title-height": "densest" }, this.jumpToProduct), this.suggestionList.map((item) => (h("div", { class: "category-list" }, h("ptc-para", { "font-size": 'x-small', "font-weight": 'w-7', "para-line-h": "line-height-densest", "para-margin": 'margin-flush' }, h("list-item", { "list-type": "list-underline", "link-href": '#' + item.categoryName }, h("ptc-tooltip", { "text-display": "inline", "text-lines": "4", "z-index": "z-2", description: item.categoryName, position: "bottom" }))), h("div", { class: "product-list" }, h("ul", null, item.products.map((product) => (h("list-item", { "list-type": "list-underline", "link-href": '#' + product }, product)))))))))));
|
|
158
|
+
return (h(Host, { class: 'search-box' }, h("div", { class: "filter-result-wrap white-box" }, h("div", { class: "result-header" }, h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium", "title-height": "densest" }, this.filterResults), h("span", { class: "clear-cta", onClick: (e) => this.clearSearch(e), tabIndex: 0, onKeyDown: (e) => { this.handleKeyDownClearCta(e); } }, this.clearText)), h("div", { class: "sort-wrap" }, h("div", { class: "typeahead-input" }, h("label", { htmlFor: "searchBox" }, this.filterText), h("div", { class: "input-wrap" }, h("svg", { width: "19", height: "18", viewBox: "0 0 19 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.208984 0V1.2375L6.95898 7.65V14.2875L11.5715 17.8875V7.65L18.209 1.35V0H0.208984Z", fill: "#323B42" })), h("input", { type: "text", value: this.searchTerm, onInput: (event) => this.handleInputChange(event), onKeyUp: (e) => this.handleKeyUp(e), id: 'searchBox' })), this.suggestions.length > 0 &&
|
|
159
|
+
h("div", { class: "suggestion-wrap" }, h("ul", { class: "suggestions" }, this.suggestions.map((suggestion, index) => (h("li", { onClick: (e) => this.handleSelectSuggestion(suggestion, e), tabIndex: 0, onKeyDown: (e) => this.handleSuggestionKeyDown(e, index, suggestion) }, suggestion)))))), h("div", { class: "dropdwon-filter" }, h("label", { htmlFor: "tech-dropdown" }, this.technologyText), h("ptc-product-dropdown", { placeholder: this.selectTechnology, id: "tech-dropdown" }, this.suggestionList.map((item) => (h("span", null, item.categoryName))))))), h("ptc-spacer", { size: "large" }), h("ptc-spacer", { size: "large" }), h("div", { class: "product-list-wrap white-box" }, h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium", "title-height": "densest" }, this.jumpToProduct), this.suggestionList.map((item) => (h("div", { class: "category-list" }, h("ptc-para", { "font-size": 'x-small', "font-weight": 'w-7', "para-line-h": "line-height-densest", "para-margin": 'margin-flush' }, h("list-item", { "list-type": "list-underline", "link-href": '#' + item.categoryName }, h("ptc-tooltip", { "text-display": "inline", "text-lines": "4", "z-index": "z-2", description: item.categoryName, position: "bottom" }))), h("div", { class: "product-list" }, h("ul", null, item.products.map((product) => (h("list-item", { "list-type": "list-underline", "link-href": '#' + product }, product)))))))))));
|
|
128
160
|
}
|
|
129
161
|
static get is() { return "ptc-product-sidebar"; }
|
|
130
162
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,7 +15,7 @@ export class PtcQuote {
|
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
17
|
const classMap = this.getCssClassMap();
|
|
18
|
-
return (h(Host, { class: classMap }, this.imgSrc ? (h("div", { class: "quote-media" }, this.imgSrc ? h("img", { src: this.imgSrc, alt: this.imgTitle ? this.imgTitle : 'quote Image' }) : null, this.imgTitle ? this.getImageTitle() : null)) : null, h("div", { class: "quote-content" }, this.quoteType == 'image-quote' ? h("div", { class: 'quotemarks', innerHTML: QuotationMark }) : null, h("blockquote", null, this.quoteType == 'value-led-quote' &&
|
|
18
|
+
return (h(Host, { class: classMap }, this.imgSrc ? (h("div", { class: "quote-media" }, this.imgSrc ? h("img", { src: this.imgSrc, alt: this.imgTitle ? this.imgTitle : 'quote Image' }) : null, this.imgTitle ? this.getImageTitle() : null)) : null, h("div", { class: "quote-content" }, this.quoteType == 'image-quote' ? h("div", { class: 'quotemarks', innerHTML: QuotationMark }) : null, h("blockquote", null, this.quoteType == 'value-led-quote' && this.quoteImage &&
|
|
19
19
|
h("ptc-picture", { alt: "quote", src: this.quoteImage }), h("p", null, h("slot", null)), h("span", { class: "quote-name" }, this.quoteName ? this.quoteName : null), this.ctaText && this.ctaUrl ? (h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": this.ctaUrl }, this.ctaText)) : null))));
|
|
20
20
|
}
|
|
21
21
|
getCssClassMap() {
|
|
@@ -82,26 +82,26 @@ a:focus-visible {
|
|
|
82
82
|
border-radius: var(--ptc-border-radius-standard);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
85
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .background-plm-grey a.light-link {
|
|
86
86
|
color: var(--color-blue-04);
|
|
87
87
|
margin: -2px;
|
|
88
88
|
border: 2px solid transparent;
|
|
89
89
|
}
|
|
90
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
90
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .background-plm-grey a.light-link:visited {
|
|
91
91
|
color: var(--color-blue-06);
|
|
92
92
|
}
|
|
93
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
93
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
|
|
94
94
|
transition: none;
|
|
95
95
|
color: var(--color-blue-07);
|
|
96
96
|
}
|
|
97
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
97
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
|
|
98
98
|
color: var(--color-blue-05);
|
|
99
99
|
}
|
|
100
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
100
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .background-plm-grey a.light-link.disabled {
|
|
101
101
|
color: var(--color-gray-04) !important;
|
|
102
102
|
cursor: not-allowed;
|
|
103
103
|
}
|
|
104
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
104
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .background-plm-grey a.light-link:focus-visible {
|
|
105
105
|
border-radius: var(--ptc-border-radius-standard);
|
|
106
106
|
border: 2px solid white;
|
|
107
107
|
outline: 5px solid var(--keyboard-nav-outline);
|
|
@@ -82,26 +82,26 @@ a:focus-visible {
|
|
|
82
82
|
border-radius: var(--ptc-border-radius-standard);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
85
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .background-plm-grey a.light-link {
|
|
86
86
|
color: var(--color-blue-04);
|
|
87
87
|
margin: -2px;
|
|
88
88
|
border: 2px solid transparent;
|
|
89
89
|
}
|
|
90
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
90
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .background-plm-grey a.light-link:visited {
|
|
91
91
|
color: var(--color-blue-06);
|
|
92
92
|
}
|
|
93
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
93
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
|
|
94
94
|
transition: none;
|
|
95
95
|
color: var(--color-blue-07);
|
|
96
96
|
}
|
|
97
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
97
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
|
|
98
98
|
color: var(--color-blue-05);
|
|
99
99
|
}
|
|
100
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
100
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .background-plm-grey a.light-link.disabled {
|
|
101
101
|
color: var(--color-gray-04) !important;
|
|
102
102
|
cursor: not-allowed;
|
|
103
103
|
}
|
|
104
|
-
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .
|
|
104
|
+
.light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .background-plm-grey a.light-link:focus-visible {
|
|
105
105
|
border-radius: var(--ptc-border-radius-standard);
|
|
106
106
|
border: 2px solid white;
|
|
107
107
|
outline: 5px solid var(--keyboard-nav-outline);
|
|
@@ -3,6 +3,32 @@ import { createFocusTrap } from 'focus-trap';
|
|
|
3
3
|
export class PtcRelatedCardRail {
|
|
4
4
|
constructor() {
|
|
5
5
|
//lastFocusElement: HTMLElement;
|
|
6
|
+
this.setFocusTrap = () => {
|
|
7
|
+
//console.log('this.focusTrap: ' + this.focusTrap)
|
|
8
|
+
if (!this.focusTrap) {
|
|
9
|
+
this.focusTrap = createFocusTrap(this.el, {
|
|
10
|
+
escapeDeactivates: true,
|
|
11
|
+
returnFocusOnDeactivate: true,
|
|
12
|
+
onActivate: () => {
|
|
13
|
+
if (!this.openedByKeyboard) {
|
|
14
|
+
this.focusTrap.pause(); // If opened by mouse, prevent immediate focus trapping
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
onDeactivate: () => {
|
|
18
|
+
setTimeout(() => {
|
|
19
|
+
this.closed = true;
|
|
20
|
+
}, 0);
|
|
21
|
+
},
|
|
22
|
+
tabbableOptions: {
|
|
23
|
+
getShadowRoot: true,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
if (this.isVisible === true && this.openedByKeyboard === true) {
|
|
28
|
+
this.focusTrap && this.focusTrap.activate();
|
|
29
|
+
//console.log('activate focus trap');
|
|
30
|
+
}
|
|
31
|
+
};
|
|
6
32
|
this.setScreenBasedProps = () => {
|
|
7
33
|
let windowWidth = window.innerWidth;
|
|
8
34
|
let props = {
|
|
@@ -79,33 +105,7 @@ export class PtcRelatedCardRail {
|
|
|
79
105
|
let percentageSrolled = Math.floor((scrollTop / trackLength) * 100);
|
|
80
106
|
if (percentageSrolled >= 50) {
|
|
81
107
|
this.el.style.display = 'block';
|
|
82
|
-
|
|
83
|
-
this.focusTrap = createFocusTrap(this.el, {
|
|
84
|
-
escapeDeactivates: true,
|
|
85
|
-
returnFocusOnDeactivate: true,
|
|
86
|
-
// setReturnFocus:"#last-focus",
|
|
87
|
-
onActivate: () => {
|
|
88
|
-
if (!this.openedByKeyboard) {
|
|
89
|
-
this.focusTrap.pause(); // If opened by mouse, prevent immediate focus trapping
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
onDeactivate: () => {
|
|
93
|
-
// this.focusTrap?.deactivate();
|
|
94
|
-
// this.focusTrap = undefined;
|
|
95
|
-
console.log('Hello~~~ onDeactivate');
|
|
96
|
-
setTimeout(() => {
|
|
97
|
-
this.closed = true;
|
|
98
|
-
}, 0);
|
|
99
|
-
//this.setReturnFocus();
|
|
100
|
-
},
|
|
101
|
-
tabbableOptions: {
|
|
102
|
-
getShadowRoot: true,
|
|
103
|
-
},
|
|
104
|
-
});
|
|
105
|
-
if (this.openedByKeyboard && this.closed === false) {
|
|
106
|
-
this.focusTrap.activate();
|
|
107
|
-
}
|
|
108
|
-
}
|
|
108
|
+
this.isVisible = true;
|
|
109
109
|
}
|
|
110
110
|
else {
|
|
111
111
|
if (this.focusTrap && this.closed === true) {
|
|
@@ -113,6 +113,7 @@ export class PtcRelatedCardRail {
|
|
|
113
113
|
this.focusTrap = undefined;
|
|
114
114
|
}
|
|
115
115
|
this.el.style.display = 'none';
|
|
116
|
+
this.isVisible = false;
|
|
116
117
|
}
|
|
117
118
|
let cardRailContainer = this.el.shadowRoot.querySelector('.card-rail-container');
|
|
118
119
|
let pageFooter = document.querySelector(this.footerQuerySelector);
|
|
@@ -150,7 +151,7 @@ export class PtcRelatedCardRail {
|
|
|
150
151
|
if (this.focusTrap && this.closed === true) {
|
|
151
152
|
this.focusTrap.deactivate();
|
|
152
153
|
this.focusTrap = undefined;
|
|
153
|
-
console.log(
|
|
154
|
+
//console.log('flag');
|
|
154
155
|
}
|
|
155
156
|
}
|
|
156
157
|
};
|
|
@@ -159,6 +160,7 @@ export class PtcRelatedCardRail {
|
|
|
159
160
|
};
|
|
160
161
|
this.footerQuerySelector = undefined;
|
|
161
162
|
this.railTitle = 'Read More Case Studies';
|
|
163
|
+
this.isVisible = false;
|
|
162
164
|
this.closed = false;
|
|
163
165
|
this.cardInView = 0;
|
|
164
166
|
this.data = [];
|
|
@@ -169,15 +171,16 @@ export class PtcRelatedCardRail {
|
|
|
169
171
|
};
|
|
170
172
|
this.openedByKeyboard = false;
|
|
171
173
|
}
|
|
174
|
+
onVisibleChanged(newValue) {
|
|
175
|
+
if (newValue) {
|
|
176
|
+
this.setFocusTrap();
|
|
177
|
+
//console.log('isVisible: ' + this.isVisible);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
172
180
|
handleKeyClose(event) {
|
|
173
181
|
if (event.key === 'Enter' || event.key === 'Esc') {
|
|
174
182
|
event.preventDefault();
|
|
175
|
-
|
|
176
|
-
this.focusTrap.deactivate();
|
|
177
|
-
}
|
|
178
|
-
else {
|
|
179
|
-
this.closed = true;
|
|
180
|
-
}
|
|
183
|
+
this.closed = true;
|
|
181
184
|
}
|
|
182
185
|
}
|
|
183
186
|
connectedCallback() {
|
|
@@ -206,9 +209,9 @@ export class PtcRelatedCardRail {
|
|
|
206
209
|
}
|
|
207
210
|
}
|
|
208
211
|
this.handleOnScrollBehaviour();
|
|
212
|
+
this.setScreenBasedProps();
|
|
209
213
|
}
|
|
210
214
|
componentDidLoad() {
|
|
211
|
-
this.setScreenBasedProps();
|
|
212
215
|
window.addEventListener('scroll', this.handleOnScrollBehaviour);
|
|
213
216
|
window.addEventListener('resize', this.handleOnResizeBehaviour);
|
|
214
217
|
}
|
|
@@ -225,9 +228,7 @@ export class PtcRelatedCardRail {
|
|
|
225
228
|
if (this.focusTrap) {
|
|
226
229
|
this.focusTrap.deactivate();
|
|
227
230
|
}
|
|
228
|
-
|
|
229
|
-
this.closed = true;
|
|
230
|
-
}
|
|
231
|
+
this.closed = true;
|
|
231
232
|
}, tabindex: "0" }, h("icon-asset", { type: "ptc", size: "xx-small", name: "times", color: "gray" }))), h("div", { class: "card-rail-content" }, h("icon-asset", { id: "left-arrow", class: "mf-listen", type: "ptc", size: "small", name: "previous_button_arrow", color: "gray", onClick: this.handlePrevClick }), h("icon-asset", { id: "right-arrow", class: "mf-listen", type: "ptc", size: "small", name: "next_button_arrow", color: "gray", onClick: this.handleNextClick }), h("div", { class: "content-container" }, this.data.map((item, index) => (h("div", { class: "content mf-listen", id: `card-rail-content-${index}`, onKeyDown: (event) => {
|
|
232
233
|
event.key === 'Enter' && window.open(item.href);
|
|
233
234
|
}, onClick: () => {
|
|
@@ -282,6 +283,24 @@ export class PtcRelatedCardRail {
|
|
|
282
283
|
"attribute": "rail-title",
|
|
283
284
|
"reflect": false,
|
|
284
285
|
"defaultValue": "'Read More Case Studies'"
|
|
286
|
+
},
|
|
287
|
+
"isVisible": {
|
|
288
|
+
"type": "boolean",
|
|
289
|
+
"mutable": true,
|
|
290
|
+
"complexType": {
|
|
291
|
+
"original": "boolean",
|
|
292
|
+
"resolved": "boolean",
|
|
293
|
+
"references": {}
|
|
294
|
+
},
|
|
295
|
+
"required": false,
|
|
296
|
+
"optional": false,
|
|
297
|
+
"docs": {
|
|
298
|
+
"tags": [],
|
|
299
|
+
"text": ""
|
|
300
|
+
},
|
|
301
|
+
"attribute": "is-visible",
|
|
302
|
+
"reflect": false,
|
|
303
|
+
"defaultValue": "false"
|
|
285
304
|
}
|
|
286
305
|
};
|
|
287
306
|
}
|
|
@@ -295,4 +314,10 @@ export class PtcRelatedCardRail {
|
|
|
295
314
|
};
|
|
296
315
|
}
|
|
297
316
|
static get elementRef() { return "el"; }
|
|
317
|
+
static get watchers() {
|
|
318
|
+
return [{
|
|
319
|
+
"propName": "isVisible",
|
|
320
|
+
"methodName": "onVisibleChanged"
|
|
321
|
+
}];
|
|
322
|
+
}
|
|
298
323
|
}
|
|
@@ -277,10 +277,9 @@ export class PtcSelect {
|
|
|
277
277
|
if (this.defaultValue)
|
|
278
278
|
this.setValue();
|
|
279
279
|
this.defaultSelect.listen('MDCSelect:change', () => {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
this.
|
|
283
|
-
this.selectedValue = select.value;
|
|
280
|
+
if (this.selectedValue !== this.defaultSelect.value) {
|
|
281
|
+
this.valueChange.emit(this.defaultSelect.value);
|
|
282
|
+
this.selectedValue = this.defaultSelect.value;
|
|
284
283
|
if (this.fieldId === 'contact-country') {
|
|
285
284
|
const countryCode = this.selectedValue ? this.map[this.selectedValue] : '';
|
|
286
285
|
const telField = document.querySelector('ptc-textfield[field-id="contact-phone"]');
|
|
@@ -293,6 +292,11 @@ export class PtcSelect {
|
|
|
293
292
|
this.addKeyboardAccessibility();
|
|
294
293
|
this.setupFocusHandlers();
|
|
295
294
|
}
|
|
295
|
+
disconnectedCallback() {
|
|
296
|
+
if (this.defaultSelect) {
|
|
297
|
+
this.defaultSelect.destroy();
|
|
298
|
+
}
|
|
299
|
+
}
|
|
296
300
|
addKeyboardAccessibility() {
|
|
297
301
|
const selectAnchor = this.el.querySelector('.mdc-select__anchor');
|
|
298
302
|
const menu = this.el.querySelector('.mdc-select__menu');
|
|
@@ -11,6 +11,7 @@ export class PtcStickyIcons {
|
|
|
11
11
|
}
|
|
12
12
|
setHostLocation() {
|
|
13
13
|
let width = (window.innerWidth > 0) ? window.innerWidth : screen.width;
|
|
14
|
+
const detailSection = document.querySelector(".cs-detail-section");
|
|
14
15
|
let currEle = this.el;
|
|
15
16
|
// get the element
|
|
16
17
|
const element = document.querySelector("ptc-sticky-icons");
|
|
@@ -19,6 +20,14 @@ export class PtcStickyIcons {
|
|
|
19
20
|
if (width < 992) {
|
|
20
21
|
currEle.parentElement.appendChild(currEle);
|
|
21
22
|
currEle.parentElement.style.paddingRight = "0px";
|
|
23
|
+
// Code for case study page only
|
|
24
|
+
// Moving sticky icon in the last ptc-section div
|
|
25
|
+
if (detailSection) {
|
|
26
|
+
const lastSection = detailSection.querySelectorAll('.content-section section.ptc-section').length ? detailSection.querySelectorAll('section.ptc-section')[detailSection.querySelectorAll('section.ptc-section').length - 1] : null;
|
|
27
|
+
if (lastSection && !lastSection.contains(element)) {
|
|
28
|
+
lastSection.appendChild(currEle);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
22
31
|
}
|
|
23
32
|
else {
|
|
24
33
|
currEle.parentElement.prepend(currEle);
|
package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js
CHANGED
|
@@ -11,6 +11,20 @@ export class PtcTextCopyWithBackground {
|
|
|
11
11
|
this.disableLightLinks = false;
|
|
12
12
|
this.styles = undefined;
|
|
13
13
|
}
|
|
14
|
+
componentDidLoad() {
|
|
15
|
+
var _a;
|
|
16
|
+
// Run logic only if type is 'hero-footer-cta'
|
|
17
|
+
if (this.hostEle.getAttribute('type') === 'hero-footer-cta') {
|
|
18
|
+
const centerWell = document.querySelector('.center-well');
|
|
19
|
+
if (centerWell) {
|
|
20
|
+
const sectionCount = centerWell.querySelectorAll(':scope > section').length;
|
|
21
|
+
// Add class only if more than one <section> inside .center-well
|
|
22
|
+
if (sectionCount > 1) {
|
|
23
|
+
(_a = this.hostEle.parentElement) === null || _a === void 0 ? void 0 : _a.classList.add('text-copy-footer-cta');
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
14
28
|
render() {
|
|
15
29
|
const classMap = this.getCssClassMap();
|
|
16
30
|
const slitFill = this.getSlitFillColor();
|
|
@@ -216,4 +230,5 @@ export class PtcTextCopyWithBackground {
|
|
|
216
230
|
}
|
|
217
231
|
};
|
|
218
232
|
}
|
|
233
|
+
static get elementRef() { return "hostEle"; }
|
|
219
234
|
}
|
|
@@ -3634,20 +3634,28 @@ ptc-link, ptc-square-card,
|
|
|
3634
3634
|
}
|
|
3635
3635
|
.ptc-text-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused.mouse-focus .mdc-notched-outline__leading,
|
|
3636
3636
|
.ptc-text-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused.mouse-focus .mdc-notched-outline__notch,
|
|
3637
|
-
.ptc-text-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused.mouse-focus .mdc-notched-outline__trailing
|
|
3637
|
+
.ptc-text-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused.mouse-focus .mdc-notched-outline__trailing,
|
|
3638
|
+
.ptc-text-field .mdc-text-field--outlined.mouse-focus .mdc-notched-outline__leading,
|
|
3639
|
+
.ptc-text-field .mdc-text-field--outlined.mouse-focus .mdc-notched-outline__notch,
|
|
3640
|
+
.ptc-text-field .mdc-text-field--outlined.mouse-focus .mdc-notched-outline__trailing {
|
|
3638
3641
|
border-color: var(--color-blue-07);
|
|
3639
3642
|
}
|
|
3640
3643
|
.ptc-text-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused.keyboard-focus .mdc-notched-outline__leading,
|
|
3641
3644
|
.ptc-text-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused.keyboard-focus .mdc-notched-outline__notch,
|
|
3642
|
-
.ptc-text-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused.keyboard-focus .mdc-notched-outline__trailing
|
|
3645
|
+
.ptc-text-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused.keyboard-focus .mdc-notched-outline__trailing,
|
|
3646
|
+
.ptc-text-field .mdc-text-field--outlined.keyboard-focus .mdc-notched-outline__leading,
|
|
3647
|
+
.ptc-text-field .mdc-text-field--outlined.keyboard-focus .mdc-notched-outline__notch,
|
|
3648
|
+
.ptc-text-field .mdc-text-field--outlined.keyboard-focus .mdc-notched-outline__trailing {
|
|
3643
3649
|
border-color: var(--keyboard-nav-outline);
|
|
3644
3650
|
border-width: 5px;
|
|
3645
3651
|
}
|
|
3646
|
-
.ptc-text-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused.keyboard-focus .mdc-notched-outline__leading
|
|
3652
|
+
.ptc-text-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused.keyboard-focus .mdc-notched-outline__leading,
|
|
3653
|
+
.ptc-text-field .mdc-text-field--outlined.keyboard-focus .mdc-notched-outline__leading {
|
|
3647
3654
|
border-top-left-radius: var(--ptc-border-radius-standard) !important;
|
|
3648
3655
|
border-bottom-left-radius: var(--ptc-border-radius-standard) !important;
|
|
3649
3656
|
}
|
|
3650
|
-
.ptc-text-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused.keyboard-focus .mdc-notched-outline__trailing
|
|
3657
|
+
.ptc-text-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused.keyboard-focus .mdc-notched-outline__trailing,
|
|
3658
|
+
.ptc-text-field .mdc-text-field--outlined.keyboard-focus .mdc-notched-outline__trailing {
|
|
3651
3659
|
border-top-right-radius: var(--ptc-border-radius-standard) !important;
|
|
3652
3660
|
border-bottom-right-radius: var(--ptc-border-radius-standard) !important;
|
|
3653
3661
|
}
|
|
@@ -3810,4 +3818,61 @@ ptc-link, ptc-square-card,
|
|
|
3810
3818
|
}
|
|
3811
3819
|
.ptc-text-field.email-signup .mdc-text-field__input::placeholder {
|
|
3812
3820
|
font-size: var(--ptc-font-size-small);
|
|
3821
|
+
}
|
|
3822
|
+
.ptc-text-field textarea.mdc-text-field__input {
|
|
3823
|
+
min-height: 56px;
|
|
3824
|
+
max-height: 200px;
|
|
3825
|
+
overflow-y: auto;
|
|
3826
|
+
font-size: var(--ptc-font-size-xx-small);
|
|
3827
|
+
width: 100%;
|
|
3828
|
+
box-sizing: border-box;
|
|
3829
|
+
resize: vertical;
|
|
3830
|
+
display: block;
|
|
3831
|
+
margin: 0;
|
|
3832
|
+
position: static;
|
|
3833
|
+
padding-right: 8px;
|
|
3834
|
+
padding-top: 8px;
|
|
3835
|
+
padding-bottom: 8px;
|
|
3836
|
+
line-height: var(--ptc-font-size-small);
|
|
3837
|
+
}
|
|
3838
|
+
.ptc-text-field .mdc-text-field--outlined {
|
|
3839
|
+
height: 34px;
|
|
3840
|
+
width: 273px;
|
|
3841
|
+
padding-left: 8px;
|
|
3842
|
+
padding-right: 8px;
|
|
3843
|
+
}
|
|
3844
|
+
.ptc-text-field .mdc-text-field--outlined .mdc-notched-outline__trailing {
|
|
3845
|
+
border-radius: 0px !important;
|
|
3846
|
+
}
|
|
3847
|
+
.ptc-text-field .mdc-text-field--outlined .mdc-notched-outline__leading {
|
|
3848
|
+
border-radius: 0px !important;
|
|
3849
|
+
}
|
|
3850
|
+
.ptc-text-field .mdc-text-field--outlined:has(textarea.mdc-text-field__input) {
|
|
3851
|
+
min-height: 34px;
|
|
3852
|
+
height: auto;
|
|
3853
|
+
display: flex;
|
|
3854
|
+
flex-direction: column;
|
|
3855
|
+
align-items: stretch;
|
|
3856
|
+
}
|
|
3857
|
+
.ptc-text-field .mdc-text-field:has(textarea.mdc-text-field__input) {
|
|
3858
|
+
padding-right: 8px;
|
|
3859
|
+
padding-top: 2px;
|
|
3860
|
+
padding-bottom: 8px;
|
|
3861
|
+
}
|
|
3862
|
+
.ptc-text-field .mdc-text-field--with-internal-counter textarea.mdc-text-field__input {
|
|
3863
|
+
padding-bottom: 32px;
|
|
3864
|
+
overflow-y: auto;
|
|
3865
|
+
word-break: break-word;
|
|
3866
|
+
}
|
|
3867
|
+
.ptc-text-field .textarea-wrapper {
|
|
3868
|
+
position: relative;
|
|
3869
|
+
z-index: 9;
|
|
3870
|
+
padding-bottom: 20px;
|
|
3871
|
+
}
|
|
3872
|
+
.ptc-text-field .textarea-wrapper .mdc-text-field-character-counter {
|
|
3873
|
+
position: absolute;
|
|
3874
|
+
top: unset;
|
|
3875
|
+
bottom: -28px;
|
|
3876
|
+
right: 0;
|
|
3877
|
+
z-index: 9;
|
|
3813
3878
|
}
|