@ptcwebops/ptcw-design 2.2.0 → 2.2.2
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/LICENSE +21 -21
- package/dist/cjs/author-listing-example.cjs.entry.js +242 -0
- package/dist/cjs/bundle-example.cjs.entry.js +31 -31
- package/dist/cjs/bundle-jumbotron-example.cjs.entry.js +40 -40
- package/dist/cjs/{core-1951cc85.js → core-332e5461.js} +29 -91
- package/dist/cjs/dropdown-item.cjs.entry.js +11 -11
- package/dist/cjs/dynamic-box-bundle.cjs.entry.js +26 -26
- package/dist/cjs/featured-list.cjs.entry.js +84 -84
- package/dist/cjs/fl-tab-content_3.cjs.entry.js +41 -41
- package/dist/cjs/icon-asset.cjs.entry.js +43 -43
- package/dist/cjs/{index-dddc2aea.js → index-1662de74.js} +1 -72
- package/dist/cjs/innovator-toggle-container.cjs.entry.js +22 -22
- package/dist/cjs/{interfaces-0ecd8027.js → interfaces-574e6df7.js} +9 -9
- package/dist/cjs/list-item.cjs.entry.js +23 -23
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/lottie-player.cjs.entry.js +2826 -3073
- package/dist/cjs/max-width-container.cjs.entry.js +44 -44
- package/dist/cjs/my-component.cjs.entry.js +16 -16
- package/dist/cjs/{pagination-d20b7968.js → pagination-8d9d474d.js} +6 -24
- package/dist/cjs/ptc-accordion-item.cjs.entry.js +85 -85
- package/dist/cjs/ptc-accordion.cjs.entry.js +40 -40
- package/dist/cjs/ptc-announcement.cjs.entry.js +53 -53
- package/dist/cjs/ptc-back-to-top.cjs.entry.js +36 -36
- package/dist/cjs/ptc-background-video.cjs.entry.js +68 -0
- package/dist/cjs/ptc-bio-card.cjs.entry.js +25 -25
- package/dist/cjs/ptc-breadcrumb_2.cjs.entry.js +121 -121
- package/dist/cjs/ptc-button.cjs.entry.js +40 -40
- package/dist/cjs/ptc-card-bottom_3.cjs.entry.js +123 -123
- package/dist/cjs/ptc-card-content.cjs.entry.js +58 -58
- package/dist/cjs/ptc-card.cjs.entry.js +73 -73
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +83 -92
- package/dist/cjs/ptc-checkbox.cjs.entry.js +51 -51
- package/dist/cjs/ptc-collapse-list.cjs.entry.js +398 -398
- package/dist/cjs/ptc-container.cjs.entry.js +34 -34
- package/dist/cjs/ptc-date.cjs.entry.js +51 -51
- package/dist/cjs/ptc-dropdown.cjs.entry.js +65 -65
- package/dist/cjs/ptc-dynamic-card.cjs.entry.js +49 -49
- package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +47 -47
- package/dist/cjs/ptc-featured-list.cjs.entry.js +83 -83
- package/dist/cjs/ptc-filter-tag.cjs.entry.js +58 -58
- package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +12 -12
- package/dist/cjs/ptc-hero.cjs.entry.js +19 -19
- package/dist/cjs/ptc-icon-component.cjs.entry.js +63 -63
- package/dist/cjs/ptc-icon-list.cjs.entry.js +22 -22
- package/dist/cjs/ptc-icon-minimize.cjs.entry.js +44 -44
- package/dist/cjs/ptc-image-download-strip.cjs.entry.js +19 -19
- package/dist/cjs/{ptc-background-video_2.cjs.entry.js → ptc-img.cjs.entry.js} +123 -185
- package/dist/cjs/ptc-link.cjs.entry.js +34 -34
- package/dist/cjs/ptc-list.cjs.entry.js +50 -50
- package/dist/cjs/ptc-lottie.cjs.entry.js +11 -11
- package/dist/cjs/ptc-media-card.cjs.entry.js +59 -59
- package/dist/cjs/ptc-minimized-nav.cjs.entry.js +13 -13
- package/dist/cjs/ptc-mobile-select.cjs.entry.js +139 -157
- package/dist/cjs/ptc-modal.cjs.entry.js +151 -151
- package/dist/cjs/ptc-nav-card.cjs.entry.js +37 -37
- package/dist/cjs/ptc-nav-link.cjs.entry.js +37 -37
- package/dist/cjs/ptc-nav-pills.cjs.entry.js +9 -9
- package/dist/cjs/ptc-nav-slider.cjs.entry.js +91 -91
- package/dist/cjs/ptc-nav-submenu.cjs.entry.js +38 -38
- package/dist/cjs/ptc-news.cjs.entry.js +18 -18
- package/dist/cjs/ptc-overlay.cjs.entry.js +25 -25
- package/dist/cjs/ptc-pagenation.cjs.entry.js +307 -307
- package/dist/cjs/ptc-para.cjs.entry.js +52 -52
- package/dist/cjs/ptc-picture.cjs.entry.js +153 -153
- package/dist/cjs/ptc-previous-url.cjs.entry.js +12 -12
- package/dist/cjs/ptc-pricing-add-on-card.cjs.entry.js +17 -17
- package/dist/cjs/ptc-pricing-add-on-section.cjs.entry.js +40 -40
- package/dist/cjs/ptc-pricing-block.cjs.entry.js +21 -21
- package/dist/cjs/ptc-pricing-table.cjs.entry.js +427 -427
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +125 -125
- package/dist/cjs/ptc-product-card.cjs.entry.js +23 -23
- package/dist/cjs/ptc-product-category.cjs.entry.js +11 -11
- package/dist/cjs/ptc-product-dropdown.cjs.entry.js +70 -70
- package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +13 -13
- package/dist/cjs/ptc-product-list.cjs.entry.js +141 -141
- package/dist/cjs/ptc-product-sidebar.cjs.entry.js +129 -129
- package/dist/cjs/ptc-progress-bar.cjs.entry.js +17 -17
- package/dist/cjs/ptc-quote.cjs.entry.js +24 -24
- package/dist/cjs/ptc-readmore-char.cjs.entry.js +25 -25
- package/dist/cjs/ptc-readmore.cjs.entry.js +78 -78
- package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +55 -55
- package/dist/cjs/ptc-search-field.cjs.entry.js +72 -72
- package/dist/cjs/ptc-shopping-cart.cjs.entry.js +51 -51
- package/dist/cjs/ptc-slit-card.cjs.entry.js +26 -26
- package/dist/cjs/ptc-social-share.cjs.entry.js +70 -70
- package/dist/cjs/ptc-spacer.cjs.entry.js +28 -28
- package/dist/cjs/ptc-span.cjs.entry.js +21 -21
- package/dist/cjs/ptc-square-card.cjs.entry.js +11 -11
- package/dist/cjs/ptc-sticky-icons.cjs.entry.js +33 -33
- package/dist/cjs/ptc-sticky-section.cjs.entry.js +31 -31
- package/dist/cjs/ptc-sticky-title.cjs.entry.js +24 -24
- package/dist/cjs/ptc-subnav-card.cjs.entry.js +16 -16
- package/dist/cjs/ptc-subnav.cjs.entry.js +23 -23
- package/dist/cjs/ptc-svg-btn.cjs.entry.js +96 -96
- package/dist/cjs/ptc-tab-list.cjs.entry.js +142 -142
- package/dist/cjs/ptc-tab.cjs.entry.js +21 -21
- package/dist/cjs/ptc-tabs.cjs.entry.js +48 -48
- package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +43 -43
- package/dist/cjs/ptc-title.cjs.entry.js +68 -68
- package/dist/cjs/ptc-tooltip.cjs.entry.js +96 -96
- package/dist/cjs/ptc-two-column-media.cjs.entry.js +16 -16
- package/dist/cjs/ptc-value-prop-card.cjs.entry.js +15 -15
- package/dist/cjs/ptcw-design.cjs.js +3 -3
- package/dist/cjs/sequential-bundle-example.cjs.entry.js +111 -111
- package/dist/cjs/sequential-bundle.cjs.entry.js +90 -90
- package/dist/cjs/tab-content.cjs.entry.js +28 -28
- package/dist/cjs/tab-header.cjs.entry.js +65 -65
- package/dist/cjs/{utils-416c94fe.js → utils-9eb22041.js} +90 -90
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +61 -61
- package/dist/collection/components/dynamic-box-bundle/dynamic-box-bundle.js +114 -114
- package/dist/collection/components/icon-asset/icon-asset.css +4 -4
- package/dist/collection/components/icon-asset/icon-asset.js +199 -199
- package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
- package/dist/collection/components/icon-asset/media/designer.svg +475 -475
- package/dist/collection/components/icon-asset/media/regular.svg +463 -463
- package/dist/collection/components/icon-asset/media/solid.svg +3013 -3013
- package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
- package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.js +89 -89
- package/dist/collection/components/list-item/list-item.js +144 -144
- package/dist/collection/components/max-width-container/max-width-container.css +11 -11
- package/dist/collection/components/max-width-container/max-width-container.js +146 -146
- package/dist/collection/components/my-component/my-component.css +3 -3
- package/dist/collection/components/my-component/my-component.js +82 -82
- package/dist/collection/components/organism-bundles/author-listing-example/author-listing-example.css +69 -0
- package/dist/collection/components/organism-bundles/author-listing-example/author-listing-example.js +281 -0
- package/dist/collection/components/organism-bundles/bundle-example/bundle-example.css +25 -25
- package/dist/collection/components/organism-bundles/bundle-example/bundle-example.js +58 -58
- package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +218 -218
- package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.js +115 -115
- package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.css +3 -3
- package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.js +91 -91
- package/dist/collection/components/organism-bundles/sequential-bundle/sequential-bundle.js +116 -116
- package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.css +92 -92
- package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.js +160 -160
- package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +306 -306
- package/dist/collection/components/ptc-accordion/ptc-accordion.js +100 -100
- package/dist/collection/components/ptc-announcement/ptc-announcement.js +274 -274
- package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.js +61 -61
- package/dist/collection/components/ptc-background-video/ptc-background-video.js +200 -200
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.js +130 -130
- package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +105 -105
- package/dist/collection/components/ptc-button/ptc-button.js +304 -304
- package/dist/collection/components/ptc-card/ptc-card.js +419 -419
- package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +116 -116
- package/dist/collection/components/ptc-card-content/ptc-card-content.js +212 -212
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +214 -214
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +2 -2
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.js +91 -91
- package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +152 -152
- package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +639 -639
- package/dist/collection/components/ptc-container/ptc-container.js +138 -138
- package/dist/collection/components/ptc-date/ptc-date.js +224 -224
- package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +162 -162
- package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +15 -15
- package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +3 -1
- package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +174 -174
- package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +137 -137
- package/dist/collection/components/ptc-featured-list/fl-tab-content/fl-tab-content.js +61 -61
- package/dist/collection/components/ptc-featured-list/fl-tab-header/fl-tab-header.js +105 -105
- package/dist/collection/components/ptc-featured-list/fl-tab-image/fl-tab-image.js +61 -61
- package/dist/collection/components/ptc-featured-list/ptc-featured-list.js +115 -115
- package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +113 -113
- package/dist/collection/components/ptc-hero/ptc-hero.js +86 -86
- package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +78 -78
- package/dist/collection/components/ptc-icon-component/ptc-icon-component.css +2 -2
- package/dist/collection/components/ptc-icon-component/ptc-icon-component.js +87 -87
- package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +127 -127
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +119 -119
- package/dist/collection/components/ptc-image-download-strip/ptc-image-download-strip.js +51 -51
- package/dist/collection/components/ptc-img/ptc-img.js +311 -311
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +326 -326
- package/dist/collection/components/ptc-link/ptc-link.js +207 -207
- package/dist/collection/components/ptc-list/ptc-list.js +99 -99
- package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -5
- package/dist/collection/components/ptc-lottie/ptc-lottie.js +62 -62
- package/dist/collection/components/ptc-media-card/ptc-media-card.js +240 -240
- package/dist/collection/components/ptc-minimized-nav/ptc-minimized-nav.js +100 -100
- package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.css +2 -7
- package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +190 -190
- package/dist/collection/components/ptc-modal/ptc-modal.js +407 -407
- package/dist/collection/components/ptc-nav-card/ptc-nav-card.js +224 -224
- package/dist/collection/components/ptc-nav-pills/ptc-nav-pills.js +18 -18
- package/dist/collection/components/ptc-news/ptc-news.js +169 -169
- package/dist/collection/components/ptc-overlay/ptc-overlay.css +8 -0
- package/dist/collection/components/ptc-overlay/ptc-overlay.js +131 -131
- package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +573 -573
- package/dist/collection/components/ptc-para/ptc-para.js +242 -242
- package/dist/collection/components/ptc-picture/ptc-picture.js +500 -500
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +78 -78
- package/dist/collection/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.js +120 -120
- package/dist/collection/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.js +76 -76
- package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +70 -70
- package/dist/collection/components/ptc-pricing-table/ptc-pricing-table.js +581 -581
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +272 -272
- package/dist/collection/components/ptc-product-card/ptc-product-card.js +162 -162
- package/dist/collection/components/ptc-product-category/ptc-product-category.js +60 -60
- package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.js +185 -185
- package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.js +96 -96
- package/dist/collection/components/ptc-product-list/ptc-product-list.js +194 -194
- package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +252 -252
- package/dist/collection/components/ptc-progress-bar/ptc-progress-bar.js +42 -42
- package/dist/collection/components/ptc-quote/ptc-quote.js +144 -144
- package/dist/collection/components/ptc-readmore/ptc-readmore.js +302 -302
- package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.js +133 -133
- package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
- package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +65 -65
- package/dist/collection/components/ptc-search-field/ptc-search-field.js +247 -247
- package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +97 -97
- package/dist/collection/components/ptc-skeleton/ptc-skeleton.js +139 -139
- package/dist/collection/components/ptc-slit-card/ptc-slit-card.js +181 -181
- package/dist/collection/components/ptc-social-share/ptc-social-share.js +267 -267
- package/dist/collection/components/ptc-spacer/ptc-spacer.css +332 -332
- package/dist/collection/components/ptc-spacer/ptc-spacer.js +97 -97
- package/dist/collection/components/ptc-span/ptc-span.js +107 -107
- package/dist/collection/components/ptc-square-card/ptc-square-card.js +60 -60
- package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +51 -51
- package/dist/collection/components/ptc-sticky-section/ptc-sticky-section.js +49 -49
- package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.js +89 -89
- package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +109 -109
- package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +195 -195
- package/dist/collection/components/ptc-tabs/ptc-tab.js +121 -121
- package/dist/collection/components/ptc-tabs/ptc-tabs.js +104 -104
- package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +181 -181
- package/dist/collection/components/ptc-title/ptc-title.js +310 -310
- package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +342 -342
- package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +48 -48
- package/dist/collection/components/ptc-value-prop-card/ptc-value-prop-card.js +135 -135
- package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.js +114 -114
- package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.js +133 -133
- package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.js +121 -121
- package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.js +70 -70
- package/dist/collection/components/subnav/ptc-subnav-card/ptc-subnav-card.js +133 -133
- package/dist/collection/components/tab-content/tab-content.js +84 -84
- package/dist/collection/components/tab-header/tab-header.js +182 -182
- package/dist/collection/index.js +1 -1
- package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -11
- package/dist/collection/media/svg-imgs/close.svg +10 -10
- package/dist/collection/media/svg-imgs/nav-active-dotslick.svg +16 -16
- package/dist/collection/media/svg-imgs/play-button-dark.svg +20 -20
- package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +3 -3
- package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +3 -3
- package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
- package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
- package/dist/collection/media/svg-imgs/union.svg +3 -3
- package/dist/collection/stories/Accordian.stories.js +205 -205
- package/dist/collection/stories/Announcement.stories.js +64 -64
- package/dist/collection/stories/BackgroundImage.stories.js +81 -81
- package/dist/collection/stories/Breadcrumb.stories.js +50 -50
- package/dist/collection/stories/Button.stories.js +119 -119
- package/dist/collection/stories/Card.stories.js +234 -234
- package/dist/collection/stories/CardWrapper.stories.js +270 -270
- package/dist/collection/stories/Checkbox.stories.js +52 -52
- package/dist/collection/stories/Date.stories.js +81 -81
- package/dist/collection/stories/Dropdown.stories.js +48 -48
- package/dist/collection/stories/DynamicCard.stories.js +68 -68
- package/dist/collection/stories/FilterTag.stories.js +73 -73
- package/dist/collection/stories/Hero.stories.js +119 -119
- package/dist/collection/stories/Icon.stories.js +71 -71
- package/dist/collection/stories/IconList.stories.js +114 -114
- package/dist/collection/stories/IconMinimize.stories.js +40 -40
- package/dist/collection/stories/Link.stories.js +101 -101
- package/dist/collection/stories/ListItem.stories.js +59 -59
- package/dist/collection/stories/MaxWidthContainer.stories.js +32 -32
- package/dist/collection/stories/MinimizedHeader.stories.js +37 -37
- package/dist/collection/stories/MobileSelect.stories.js +79 -79
- package/dist/collection/stories/Modal.stories.js +105 -105
- package/dist/collection/stories/Overlay.stories.js +48 -48
- package/dist/collection/stories/Pagination.stories.js +101 -101
- package/dist/collection/stories/Paragraph.stories.js +95 -95
- package/dist/collection/stories/Picture.stories.js +139 -139
- package/dist/collection/stories/Quote.stories.js +107 -107
- package/dist/collection/stories/ReadMore.stories.js +100 -100
- package/dist/collection/stories/SocialShare.stories.js +66 -66
- package/dist/collection/stories/Spacer.stories.js +48 -48
- package/dist/collection/stories/Span.stories.js +57 -57
- package/dist/collection/stories/SvgButton.stories.js +34 -34
- package/dist/collection/stories/Tabs.stories.js +213 -213
- package/dist/collection/stories/TextCopyWithBackground.stories.js +237 -237
- package/dist/collection/stories/Title.stories.js +115 -115
- package/dist/collection/stories/Tooltip.stories.js +112 -112
- package/dist/collection/utils/component.js +3 -3
- package/dist/collection/utils/interfaces.js +11 -11
- package/dist/collection/utils/utils.js +92 -92
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +9336 -9451
- package/dist/esm/author-listing-example.entry.js +238 -0
- package/dist/esm/bundle-example.entry.js +31 -31
- package/dist/esm/bundle-jumbotron-example.entry.js +40 -40
- package/dist/esm/{core-209a2c67.js → core-73ab4867.js} +29 -91
- package/dist/esm/dropdown-item.entry.js +11 -11
- package/dist/esm/dynamic-box-bundle.entry.js +26 -26
- package/dist/esm/featured-list.entry.js +84 -84
- package/dist/esm/fl-tab-content_3.entry.js +41 -41
- package/dist/esm/icon-asset.entry.js +43 -43
- package/dist/esm/{index-8db28d54.js → index-22a84644.js} +1 -72
- package/dist/esm/innovator-toggle-container.entry.js +22 -22
- package/dist/esm/{interfaces-3cb94654.js → interfaces-4caedd26.js} +9 -9
- package/dist/esm/list-item.entry.js +23 -23
- package/dist/esm/loader.js +4 -4
- package/dist/esm/lottie-player.entry.js +2826 -3073
- package/dist/esm/max-width-container.entry.js +44 -44
- package/dist/esm/my-component.entry.js +16 -16
- package/dist/esm/{pagination-3ddf3057.js → pagination-902de0b2.js} +6 -24
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/ptc-accordion-item.entry.js +85 -85
- package/dist/esm/ptc-accordion.entry.js +40 -40
- package/dist/esm/ptc-announcement.entry.js +53 -53
- package/dist/esm/ptc-back-to-top.entry.js +36 -36
- package/dist/esm/ptc-background-video.entry.js +64 -0
- package/dist/esm/ptc-bio-card.entry.js +25 -25
- package/dist/esm/ptc-breadcrumb_2.entry.js +121 -121
- package/dist/esm/ptc-button.entry.js +40 -40
- package/dist/esm/ptc-card-bottom_3.entry.js +123 -123
- package/dist/esm/ptc-card-content.entry.js +58 -58
- package/dist/esm/ptc-card.entry.js +73 -73
- package/dist/esm/ptc-case-studies-slider.entry.js +83 -92
- package/dist/esm/ptc-checkbox.entry.js +51 -51
- package/dist/esm/ptc-collapse-list.entry.js +398 -398
- package/dist/esm/ptc-container.entry.js +34 -34
- package/dist/esm/ptc-date.entry.js +51 -51
- package/dist/esm/ptc-dropdown.entry.js +65 -65
- package/dist/esm/ptc-dynamic-card.entry.js +49 -49
- package/dist/esm/ptc-ellipsis-dropdown.entry.js +47 -47
- package/dist/esm/ptc-featured-list.entry.js +83 -83
- package/dist/esm/ptc-filter-tag.entry.js +58 -58
- package/dist/esm/ptc-hero-footer-cta.entry.js +12 -12
- package/dist/esm/ptc-hero.entry.js +19 -19
- package/dist/esm/ptc-icon-component.entry.js +63 -63
- package/dist/esm/ptc-icon-list.entry.js +22 -22
- package/dist/esm/ptc-icon-minimize.entry.js +44 -44
- package/dist/esm/ptc-image-download-strip.entry.js +19 -19
- package/dist/esm/{ptc-background-video_2.entry.js → ptc-img.entry.js} +124 -185
- package/dist/esm/ptc-link.entry.js +34 -34
- package/dist/esm/ptc-list.entry.js +50 -50
- package/dist/esm/ptc-lottie.entry.js +11 -11
- package/dist/esm/ptc-media-card.entry.js +59 -59
- package/dist/esm/ptc-minimized-nav.entry.js +13 -13
- package/dist/esm/ptc-mobile-select.entry.js +139 -157
- package/dist/esm/ptc-modal.entry.js +151 -151
- package/dist/esm/ptc-nav-card.entry.js +37 -37
- package/dist/esm/ptc-nav-link.entry.js +37 -37
- package/dist/esm/ptc-nav-pills.entry.js +9 -9
- package/dist/esm/ptc-nav-slider.entry.js +91 -91
- package/dist/esm/ptc-nav-submenu.entry.js +38 -38
- package/dist/esm/ptc-news.entry.js +18 -18
- package/dist/esm/ptc-overlay.entry.js +25 -25
- package/dist/esm/ptc-pagenation.entry.js +307 -307
- package/dist/esm/ptc-para.entry.js +52 -52
- package/dist/esm/ptc-picture.entry.js +153 -153
- package/dist/esm/ptc-previous-url.entry.js +12 -12
- package/dist/esm/ptc-pricing-add-on-card.entry.js +17 -17
- package/dist/esm/ptc-pricing-add-on-section.entry.js +40 -40
- package/dist/esm/ptc-pricing-block.entry.js +21 -21
- package/dist/esm/ptc-pricing-table.entry.js +427 -427
- package/dist/esm/ptc-pricing-tabs.entry.js +125 -125
- package/dist/esm/ptc-product-card.entry.js +23 -23
- package/dist/esm/ptc-product-category.entry.js +11 -11
- package/dist/esm/ptc-product-dropdown.entry.js +70 -70
- package/dist/esm/ptc-product-highlight-card.entry.js +13 -13
- package/dist/esm/ptc-product-list.entry.js +141 -141
- package/dist/esm/ptc-product-sidebar.entry.js +129 -129
- package/dist/esm/ptc-progress-bar.entry.js +17 -17
- package/dist/esm/ptc-quote.entry.js +24 -24
- package/dist/esm/ptc-readmore-char.entry.js +25 -25
- package/dist/esm/ptc-readmore.entry.js +78 -78
- package/dist/esm/ptc-responsive-wrapper.entry.js +55 -55
- package/dist/esm/ptc-search-field.entry.js +72 -72
- package/dist/esm/ptc-shopping-cart.entry.js +51 -51
- package/dist/esm/ptc-slit-card.entry.js +26 -26
- package/dist/esm/ptc-social-share.entry.js +70 -70
- package/dist/esm/ptc-spacer.entry.js +28 -28
- package/dist/esm/ptc-span.entry.js +21 -21
- package/dist/esm/ptc-square-card.entry.js +11 -11
- package/dist/esm/ptc-sticky-icons.entry.js +33 -33
- package/dist/esm/ptc-sticky-section.entry.js +31 -31
- package/dist/esm/ptc-sticky-title.entry.js +24 -24
- package/dist/esm/ptc-subnav-card.entry.js +16 -16
- package/dist/esm/ptc-subnav.entry.js +23 -23
- package/dist/esm/ptc-svg-btn.entry.js +96 -96
- package/dist/esm/ptc-tab-list.entry.js +142 -142
- package/dist/esm/ptc-tab.entry.js +21 -21
- package/dist/esm/ptc-tabs.entry.js +48 -48
- package/dist/esm/ptc-text-copy-with-background.entry.js +43 -43
- package/dist/esm/ptc-title.entry.js +68 -68
- package/dist/esm/ptc-tooltip.entry.js +96 -96
- package/dist/esm/ptc-two-column-media.entry.js +16 -16
- package/dist/esm/ptc-value-prop-card.entry.js +15 -15
- package/dist/esm/ptcw-design.js +4 -4
- package/dist/esm/sequential-bundle-example.entry.js +111 -111
- package/dist/esm/sequential-bundle.entry.js +90 -90
- package/dist/esm/tab-content.entry.js +28 -28
- package/dist/esm/tab-header.entry.js +65 -65
- package/dist/esm/{utils-f937097d.js → utils-38decc43.js} +90 -90
- package/dist/ptcw-design/media/brands.svg +1381 -1381
- package/dist/ptcw-design/media/designer.svg +475 -475
- package/dist/ptcw-design/media/nav-active-dotslick.svg +15 -15
- package/dist/ptcw-design/media/regular.svg +463 -463
- package/dist/ptcw-design/media/solid.svg +3013 -3013
- package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
- package/dist/ptcw-design/{p-75b447c8.entry.js → p-0074d97c.entry.js} +1 -1
- package/dist/ptcw-design/{p-d332e427.entry.js → p-0290031e.entry.js} +1 -1
- package/dist/ptcw-design/{p-298fd719.entry.js → p-0532c37c.entry.js} +1 -1
- package/dist/ptcw-design/{p-af7e6116.entry.js → p-056b652a.entry.js} +1 -1
- package/dist/ptcw-design/{p-6e172c5a.entry.js → p-05cc800d.entry.js} +1 -1
- package/dist/ptcw-design/{p-22e77c7c.entry.js → p-06f99e11.entry.js} +1 -1
- package/dist/ptcw-design/{p-2282217b.entry.js → p-072887b7.entry.js} +1 -1
- package/dist/ptcw-design/{p-bd3b4619.entry.js → p-0f3f83d3.entry.js} +1 -1
- package/dist/ptcw-design/{p-f5d52d72.entry.js → p-10254985.entry.js} +1 -1
- package/dist/ptcw-design/{p-445c9b3d.entry.js → p-12acb46f.entry.js} +1 -1
- package/dist/ptcw-design/{p-019ee040.entry.js → p-15e08cba.entry.js} +1 -1
- package/dist/ptcw-design/{p-066dc775.entry.js → p-17fd5641.entry.js} +1 -1
- package/dist/ptcw-design/{p-06b9d7b1.entry.js → p-1b972064.entry.js} +1 -1
- package/dist/ptcw-design/{p-34764ee6.entry.js → p-1c631848.entry.js} +1 -1
- package/dist/ptcw-design/p-1c743207.entry.js +1 -0
- package/dist/ptcw-design/{p-792c20a8.entry.js → p-1fc3d43a.entry.js} +1 -1
- package/dist/ptcw-design/{p-a438d150.entry.js → p-214278c3.entry.js} +1 -1
- package/dist/ptcw-design/{p-d260581f.entry.js → p-2254e000.entry.js} +1 -1
- package/dist/ptcw-design/{p-4227d996.entry.js → p-2597870d.entry.js} +1 -1
- package/dist/ptcw-design/{p-bb3cc915.entry.js → p-26f31be6.entry.js} +1 -1
- package/dist/ptcw-design/{p-38bee38d.entry.js → p-2893f405.entry.js} +1 -1
- package/dist/ptcw-design/{p-e54969bf.entry.js → p-2ba6bbbe.entry.js} +1 -1
- package/dist/ptcw-design/{p-f1b1f381.entry.js → p-2fed7a6f.entry.js} +1 -1
- package/dist/ptcw-design/{p-93a1f340.entry.js → p-317573b7.entry.js} +1 -1
- package/dist/ptcw-design/{p-2fcfa760.entry.js → p-3192a7e8.entry.js} +1 -1
- package/dist/ptcw-design/{p-d67d6edd.entry.js → p-31c33a18.entry.js} +1 -1
- package/dist/ptcw-design/{p-447ad4f8.entry.js → p-362ec391.entry.js} +1 -1
- package/dist/ptcw-design/{p-fad09b46.entry.js → p-3b8731e6.entry.js} +1 -1
- package/dist/ptcw-design/{p-3fb0f45c.entry.js → p-3ed0384d.entry.js} +1 -1
- package/dist/ptcw-design/{p-a454efc5.entry.js → p-3f368d6d.entry.js} +1 -1
- package/dist/ptcw-design/{p-288cb98d.entry.js → p-4097a036.entry.js} +1 -1
- package/dist/ptcw-design/p-4aaa6290.entry.js +1 -0
- package/dist/ptcw-design/{p-fac62124.entry.js → p-507ab0b3.entry.js} +1 -1
- package/dist/ptcw-design/{p-968bbb76.entry.js → p-515f4332.entry.js} +1 -1
- package/dist/ptcw-design/p-553d840a.js +1 -0
- package/dist/ptcw-design/{p-626e2b30.entry.js → p-56da9ecd.entry.js} +1 -1
- package/dist/ptcw-design/{p-62d3f225.entry.js → p-58291e3a.entry.js} +1 -1
- package/dist/ptcw-design/{p-39bf1649.entry.js → p-59ac682d.entry.js} +1 -1
- package/dist/ptcw-design/{p-b9b30024.entry.js → p-5c47361e.entry.js} +1 -1
- package/dist/ptcw-design/{p-67974679.entry.js → p-61197714.entry.js} +1 -1
- package/dist/ptcw-design/{p-0ed8ce2b.entry.js → p-6392bd90.entry.js} +1 -1
- package/dist/ptcw-design/{p-c20bea66.entry.js → p-63f811ec.entry.js} +1 -1
- package/dist/ptcw-design/{p-60618056.entry.js → p-6449418a.entry.js} +1 -1
- package/dist/ptcw-design/{p-255674e8.entry.js → p-66fcd7b2.entry.js} +1 -1
- package/dist/ptcw-design/{p-f4b66bf5.entry.js → p-6a4bb3e8.entry.js} +1 -1
- package/dist/ptcw-design/{p-b4602b1d.entry.js → p-6a5bc275.entry.js} +1 -1
- package/dist/ptcw-design/{p-808544d7.entry.js → p-6aba5f8f.entry.js} +1 -1
- package/dist/ptcw-design/{p-dbb7b2a3.entry.js → p-6b1d18b1.entry.js} +1 -1
- package/dist/ptcw-design/{p-57085c86.entry.js → p-6e11536e.entry.js} +1 -1
- package/dist/ptcw-design/{p-4eeafd49.entry.js → p-75b17a66.entry.js} +1 -1
- package/dist/ptcw-design/{p-dda9d065.entry.js → p-777fb495.entry.js} +1 -1
- package/dist/ptcw-design/{p-8a1a1bfb.entry.js → p-77f5cf02.entry.js} +1 -1
- package/dist/ptcw-design/{p-f540748a.entry.js → p-7a3cf557.entry.js} +1 -1
- package/dist/ptcw-design/{p-e59376e8.entry.js → p-7a87be28.entry.js} +1 -1
- package/dist/ptcw-design/{p-55292c78.entry.js → p-7aa8af29.entry.js} +1 -1
- package/dist/ptcw-design/{p-0ae005de.entry.js → p-7b34bb69.entry.js} +1 -1
- package/dist/ptcw-design/{p-bdfc9555.entry.js → p-7ea29d34.entry.js} +1 -1
- package/dist/ptcw-design/{p-75247100.entry.js → p-84d3f4fa.entry.js} +1 -1
- package/dist/ptcw-design/{p-7e9e0d37.entry.js → p-85145672.entry.js} +1 -1
- package/dist/ptcw-design/{p-11f10902.entry.js → p-8b34f2db.entry.js} +1 -1
- package/dist/ptcw-design/{p-674aef18.entry.js → p-95198d5f.entry.js} +1 -1
- package/dist/ptcw-design/{p-82b05238.entry.js → p-9817c40a.entry.js} +1 -1
- package/dist/ptcw-design/{p-6c09bbbc.entry.js → p-98b6cb94.entry.js} +1 -1
- package/dist/ptcw-design/{p-ec0873bd.entry.js → p-99457ebb.entry.js} +1 -1
- package/dist/ptcw-design/{p-6f8455b5.entry.js → p-9d681abc.entry.js} +1 -1
- package/dist/ptcw-design/{p-4d38bd16.entry.js → p-9e4260bc.entry.js} +1 -1
- package/dist/ptcw-design/{p-a42f8bf2.entry.js → p-9efd9a5b.entry.js} +1 -1
- package/dist/ptcw-design/{p-9991c4bf.entry.js → p-a04e0ded.entry.js} +1 -1
- package/dist/ptcw-design/{p-7192afeb.entry.js → p-a417df03.entry.js} +1 -1
- package/dist/ptcw-design/{p-72fe6dcb.entry.js → p-a42feab1.entry.js} +1 -1
- package/dist/ptcw-design/{p-9ca64d6f.entry.js → p-ac63caae.entry.js} +1 -1
- package/dist/ptcw-design/{p-c1025cf9.entry.js → p-ad234f99.entry.js} +1 -1
- package/dist/ptcw-design/{p-97bf50a0.entry.js → p-ad401696.entry.js} +1 -1
- package/dist/ptcw-design/p-b3d8e893.entry.js +1 -0
- package/dist/ptcw-design/{p-079b6721.entry.js → p-bd470a7a.entry.js} +1 -1
- package/dist/ptcw-design/p-be8db2b7.entry.js +1 -0
- package/dist/ptcw-design/{p-3d14bf07.entry.js → p-bf47669c.entry.js} +1 -1
- package/dist/ptcw-design/{p-4f82a06c.entry.js → p-bf808180.entry.js} +1 -1
- package/dist/ptcw-design/p-c4e1b619.entry.js +1 -0
- package/dist/ptcw-design/{p-06c13601.entry.js → p-c5df36ad.entry.js} +1 -1
- package/dist/ptcw-design/p-c7d5bfe3.entry.js +1 -0
- package/dist/ptcw-design/{p-b63e7023.entry.js → p-ca877fea.entry.js} +1 -1
- package/dist/ptcw-design/{p-101c17f4.entry.js → p-ca9b1705.entry.js} +1 -1
- package/dist/ptcw-design/{p-8a9d1f65.entry.js → p-cda3854b.entry.js} +1 -1
- package/dist/ptcw-design/p-cef9cf82.entry.js +1 -0
- package/dist/ptcw-design/{p-3e5fb8c3.entry.js → p-cf1005f9.entry.js} +1 -1
- package/dist/ptcw-design/p-cf7dc448.entry.js +1 -0
- package/dist/ptcw-design/p-d100f115.js +1 -0
- package/dist/ptcw-design/{p-25195807.entry.js → p-dc5e5116.entry.js} +1 -1
- package/dist/ptcw-design/{p-a6c1acb8.entry.js → p-dc748f00.entry.js} +1 -1
- package/dist/ptcw-design/{p-d4d80654.entry.js → p-dee888f5.entry.js} +1 -1
- package/dist/ptcw-design/{p-7ff45a5c.entry.js → p-df0aa310.entry.js} +1 -1
- package/dist/ptcw-design/{p-f8b1f507.entry.js → p-e1dd94a9.entry.js} +1 -1
- package/dist/ptcw-design/{p-e9635f81.entry.js → p-e312626a.entry.js} +1 -1
- package/dist/ptcw-design/{p-b4f034ff.entry.js → p-e8ba44ba.entry.js} +1 -1
- package/dist/ptcw-design/{p-38fb1625.entry.js → p-e8cd5994.entry.js} +1 -1
- package/dist/ptcw-design/{p-c07609da.entry.js → p-e8d9a19f.entry.js} +1 -1
- package/dist/ptcw-design/{p-9d477cbd.entry.js → p-eb65dacf.entry.js} +1 -1
- package/dist/ptcw-design/{p-bbc6cb14.entry.js → p-ee20170a.entry.js} +1 -1
- package/dist/ptcw-design/{p-e24f0892.entry.js → p-f6dfc55e.entry.js} +1 -1
- package/dist/ptcw-design/{p-180f20e0.entry.js → p-f8eacbd8.entry.js} +1 -1
- package/dist/ptcw-design/{p-bae3e7df.entry.js → p-f97fc3fd.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
- package/dist/types/components/dynamic-box-bundle/dynamic-box-bundle.d.ts +10 -10
- package/dist/types/components/icon-asset/icon-asset.d.ts +40 -40
- package/dist/types/components/innovator-toggle-container/innovator-toggle-container.d.ts +17 -17
- package/dist/types/components/list-item/list-item.d.ts +16 -16
- package/dist/types/components/max-width-container/max-width-container.d.ts +16 -16
- package/dist/types/components/my-component/my-component.d.ts +16 -16
- package/dist/types/components/organism-bundles/author-listing-example/author-listing-example.d.ts +12 -0
- package/dist/types/components/organism-bundles/bundle-example/bundle-example.d.ts +10 -10
- package/dist/types/components/organism-bundles/bundle-featured-list/featured-list.d.ts +12 -12
- package/dist/types/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.d.ts +5 -5
- package/dist/types/components/organism-bundles/sequential-bundle/sequential-bundle.d.ts +12 -12
- package/dist/types/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.d.ts +16 -16
- package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +63 -63
- package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +17 -17
- package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +59 -59
- package/dist/types/components/ptc-back-to-top/ptc-back-to-top.d.ts +9 -9
- package/dist/types/components/ptc-background-video/ptc-background-video.d.ts +45 -45
- package/dist/types/components/ptc-bio-card/ptc-bio-card.d.ts +27 -27
- package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +20 -20
- package/dist/types/components/ptc-button/ptc-button.d.ts +64 -64
- package/dist/types/components/ptc-card/ptc-card.d.ts +83 -83
- package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
- package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +19 -19
- package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +24 -24
- package/dist/types/components/ptc-case-studies-slider/ptc-case-studies-slider.d.ts +14 -14
- package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +14 -14
- package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +60 -60
- package/dist/types/components/ptc-container/ptc-container.d.ts +13 -13
- package/dist/types/components/ptc-date/ptc-date.d.ts +46 -46
- package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +19 -19
- package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +23 -23
- package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +15 -15
- package/dist/types/components/ptc-featured-list/fl-tab-content/fl-tab-content.d.ts +5 -5
- package/dist/types/components/ptc-featured-list/fl-tab-header/fl-tab-header.d.ts +10 -10
- package/dist/types/components/ptc-featured-list/fl-tab-image/fl-tab-image.d.ts +5 -5
- package/dist/types/components/ptc-featured-list/ptc-featured-list.d.ts +12 -12
- package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +17 -17
- package/dist/types/components/ptc-hero/ptc-hero.d.ts +16 -16
- package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +6 -6
- package/dist/types/components/ptc-icon-component/ptc-icon-component.d.ts +17 -17
- package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +21 -21
- package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +12 -12
- package/dist/types/components/ptc-image-download-strip/ptc-image-download-strip.d.ts +9 -9
- package/dist/types/components/ptc-img/ptc-img.d.ts +55 -55
- package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +24 -24
- package/dist/types/components/ptc-link/ptc-link.d.ts +40 -40
- package/dist/types/components/ptc-list/ptc-list.d.ts +8 -8
- package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -12
- package/dist/types/components/ptc-media-card/ptc-media-card.d.ts +52 -52
- package/dist/types/components/ptc-minimized-nav/ptc-minimized-nav.d.ts +7 -7
- package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +36 -36
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +71 -71
- package/dist/types/components/ptc-nav-card/ptc-nav-card.d.ts +46 -46
- package/dist/types/components/ptc-nav-pills/ptc-nav-pills.d.ts +3 -3
- package/dist/types/components/ptc-news/ptc-news.d.ts +35 -35
- package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +21 -21
- package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +40 -40
- package/dist/types/components/ptc-para/ptc-para.d.ts +47 -47
- package/dist/types/components/ptc-picture/ptc-picture.d.ts +102 -102
- package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +9 -9
- package/dist/types/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.d.ts +27 -27
- package/dist/types/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.d.ts +21 -21
- package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +7 -7
- package/dist/types/components/ptc-pricing-table/ptc-pricing-table.d.ts +101 -101
- package/dist/types/components/ptc-pricing-tabs/ptc-pricing-tabs.d.ts +52 -52
- package/dist/types/components/ptc-product-card/ptc-product-card.d.ts +37 -37
- package/dist/types/components/ptc-product-category/ptc-product-category.d.ts +5 -5
- package/dist/types/components/ptc-product-dropdown/ptc-product-dropdown.d.ts +18 -18
- package/dist/types/components/ptc-product-highlight-card/ptc-product-highlight-card.d.ts +23 -23
- package/dist/types/components/ptc-product-list/ptc-product-list.d.ts +18 -18
- package/dist/types/components/ptc-product-sidebar/ptc-product-sidebar.d.ts +31 -31
- package/dist/types/components/ptc-progress-bar/ptc-progress-bar.d.ts +5 -5
- package/dist/types/components/ptc-quote/ptc-quote.d.ts +29 -29
- package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +57 -57
- package/dist/types/components/ptc-readmore-char/ptc-readmore-char.d.ts +30 -30
- package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
- package/dist/types/components/ptc-search-field/ptc-search-field.d.ts +23 -23
- package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
- package/dist/types/components/ptc-skeleton/ptc-skeleton.d.ts +10 -10
- package/dist/types/components/ptc-slit-card/ptc-slit-card.d.ts +36 -36
- package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +37 -37
- package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
- package/dist/types/components/ptc-span/ptc-span.d.ts +20 -20
- package/dist/types/components/ptc-square-card/ptc-square-card.d.ts +11 -11
- package/dist/types/components/ptc-sticky-icons/ptc-sticky-icons.d.ts +7 -7
- package/dist/types/components/ptc-sticky-section/ptc-sticky-section.d.ts +9 -9
- package/dist/types/components/ptc-sticky-title/ptc-sticky-title.d.ts +8 -8
- package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +20 -20
- package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +21 -21
- package/dist/types/components/ptc-tabs/ptc-tab.d.ts +9 -9
- package/dist/types/components/ptc-tabs/ptc-tabs.d.ts +10 -10
- package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +34 -34
- package/dist/types/components/ptc-title/ptc-title.d.ts +54 -54
- package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +59 -59
- package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +9 -9
- package/dist/types/components/ptc-value-prop-card/ptc-value-prop-card.d.ts +27 -27
- package/dist/types/components/subnav/ptc-nav-link/ptc-nav-link.d.ts +21 -21
- package/dist/types/components/subnav/ptc-nav-slider/ptc-nav-slider.d.ts +11 -11
- package/dist/types/components/subnav/ptc-nav-submenu/ptc-nav-submenu.d.ts +23 -23
- package/dist/types/components/subnav/ptc-subnav/ptc-subnav.d.ts +8 -8
- package/dist/types/components/subnav/ptc-subnav-card/ptc-subnav-card.d.ts +27 -27
- package/dist/types/components/tab-content/tab-content.d.ts +12 -12
- package/dist/types/components/tab-header/tab-header.d.ts +22 -22
- package/dist/types/components.d.ts +149 -130
- package/dist/types/global.d.ts +1072 -1072
- package/dist/types/index.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -11
- package/dist/types/utils/component.d.ts +1 -1
- package/dist/types/utils/interfaces.d.ts +31 -31
- package/dist/types/utils/utils.d.ts +5 -5
- package/package.json +82 -82
- package/readme.md +18 -18
- package/dist/ptcw-design/p-0fc282f5.js +0 -1
- package/dist/ptcw-design/p-4329b9c8.entry.js +0 -1
- package/dist/ptcw-design/p-5009cb8b.entry.js +0 -1
- package/dist/ptcw-design/p-6d9e8c97.entry.js +0 -1
- package/dist/ptcw-design/p-8ae8454b.entry.js +0 -1
- package/dist/ptcw-design/p-e428e6d9.js +0 -1
- package/dist/ptcw-design/p-eb76bc66.entry.js +0 -1
- package/dist/ptcw-design/p-f42ef4c9.entry.js +0 -1
- /package/dist/ptcw-design/{p-ea875d9e.js → p-36665caa.js} +0 -0
- /package/dist/ptcw-design/{p-240733ce.js → p-711bcdad.js} +0 -0
- /package/dist/ptcw-design/{p-dc4da4a5.js → p-ce0e4c5c.js} +0 -0
|
@@ -2,138 +2,138 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1662de74.js');
|
|
6
6
|
|
|
7
7
|
const ptcProductSidebarCss = ":host{display:block;position:relative}:host .hide{display:none !important}:host .white-box{padding:12px;background-color:var(--color-white);border-radius:var(--ptc-border-radius-standard)}:host .sort-wrap{display:block}@media only screen and (min-width: 768px){:host .sort-wrap{display:flex;justify-content:space-between}}@media only screen and (min-width: 992px){:host .sort-wrap{display:block}}:host .filter-result-wrap label{font-size:var(--ptc-font-size-xx-small);font-weight:600}@media only screen and (min-width: 992px){:host .filter-result-wrap label{font-size:var(--ptc-font-size-x-small)}}:host .filter-result-wrap .result-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}@media only screen and (min-width: 992px){:host .filter-result-wrap .result-header{margin-bottom:26px}}:host .filter-result-wrap .result-header .clear-cta{cursor:pointer;display:none;color:var(--color-gray-07);font-size:var(--ptc-font-size-x-small);text-decoration:underline}:host .filter-result-wrap .result-header .clear-cta.show{display:block}:host .filter-result-wrap .typeahead-input{box-sizing:border-box;margin-bottom:14px;width:100%;margin-right:0}@media only screen and (min-width: 768px){:host .filter-result-wrap .typeahead-input{margin-right:40px}}@media only screen and (min-width: 992px){:host .filter-result-wrap .typeahead-input{margin-right:0}}:host .filter-result-wrap .typeahead-input .input-wrap{position:relative}:host .filter-result-wrap .typeahead-input .input-wrap svg{position:absolute;left:8px;top:8px}:host .filter-result-wrap .typeahead-input .input-wrap input{margin-top:4px;padding:8px 8px 8px 34px;display:block;width:100%;box-sizing:border-box;border:1px solid var(--color-gray-03);font-size:14px}:host .filter-result-wrap .typeahead-input .suggestion-wrap{position:relative;width:100%}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions{border:1px solid var(--color-gray-03);box-shadow:0px 2px 4px rgba(35, 43, 45, 0.3);background-color:var(--color-white);position:absolute;z-index:105;top:0;margin:0;width:100%;box-sizing:border-box;padding:0;max-height:400px;overflow-y:auto}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar{width:5px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3)}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar-thumb{background-color:var(--color-gray-05);outline:1px solid var(--color-gray-05)}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li{list-style:none;padding:10px 16px;cursor:pointer;display:block;font-size:14px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li:first-child{padding-top:20px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li:last-child{padding-bottom:20px}:host .filter-result-wrap .dropdwon-filter{margin-bottom:10px;width:100%}:host .product-list-wrap{display:none}@media only screen and (min-width: 992px){:host .product-list-wrap{display:block}}:host .product-list-wrap .category-list{display:block;padding:12px 4px;font-size:var(--ptc-font-size-x-small)}:host .product-list-wrap .category-list ptc-para{padding-bottom:4px;display:block}:host .product-list-wrap .category-list ul{padding-left:20px;margin:0}";
|
|
8
8
|
|
|
9
|
-
const PtcProductSidebar = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.selectedResult = index.createEvent(this, "selectedResult", 7);
|
|
13
|
-
this.clearsearch = index.createEvent(this, "clearsearch", 7);
|
|
14
|
-
this.inputChanged = index.createEvent(this, "inputChanged", 7);
|
|
15
|
-
this.emptyResult = index.createEvent(this, "emptyResult", 7);
|
|
16
|
-
this.searchTerm = '';
|
|
17
|
-
this.suggestions = [];
|
|
18
|
-
this.suggestionList = [];
|
|
19
|
-
}
|
|
20
|
-
componentWillLoad() {
|
|
21
|
-
this.getDomData();
|
|
22
|
-
}
|
|
23
|
-
componentDidLoad() {
|
|
24
|
-
this.productListWrap = this.hostElement.shadowRoot.querySelector('.product-list-wrap');
|
|
25
|
-
this.clearBtn = this.hostElement.shadowRoot.querySelector('.clear-cta');
|
|
26
|
-
}
|
|
27
|
-
// Getting category title and products list
|
|
28
|
-
getDomData() {
|
|
29
|
-
const categoryList = document.querySelectorAll('ptc-product-category');
|
|
30
|
-
categoryList.forEach(category => {
|
|
31
|
-
let categoryTitle = category.getAttribute('category-title');
|
|
32
|
-
let categoryObject = { categoryName: categoryTitle, products: [] };
|
|
33
|
-
this.suggestionList.push(categoryObject);
|
|
34
|
-
let productList = category.querySelectorAll('ptc-product-card');
|
|
35
|
-
productList.forEach(product => {
|
|
36
|
-
let productTitle = product.getAttribute('card-title');
|
|
37
|
-
categoryObject.products.push(productTitle);
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
handleInputChange(event) {
|
|
42
|
-
const inputElement = event.target;
|
|
43
|
-
this.searchTerm = inputElement.value.toLocaleLowerCase();
|
|
44
|
-
this.clearBtn.classList.add('show');
|
|
45
|
-
this.getSuggestions();
|
|
46
|
-
this.inputChanged.emit({
|
|
47
|
-
'sender': this,
|
|
48
|
-
'event': event,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
getSuggestions() {
|
|
52
|
-
const searchTerm = this.searchTerm.toLowerCase();
|
|
53
|
-
const suggestions = this.suggestionList.reduce((acc, item) => {
|
|
54
|
-
if (item.categoryName.toLowerCase().includes(searchTerm)) {
|
|
55
|
-
acc.push(item.categoryName); // Include the category if it matches the search term
|
|
56
|
-
}
|
|
57
|
-
const matchedProducts = item.products.filter((product) => product.toLowerCase().includes(searchTerm));
|
|
58
|
-
if (matchedProducts.length > 0) {
|
|
59
|
-
acc.push(...matchedProducts); // Include the matching products
|
|
60
|
-
}
|
|
61
|
-
return acc;
|
|
62
|
-
}, []);
|
|
63
|
-
this.suggestions = suggestions;
|
|
64
|
-
}
|
|
65
|
-
handleSelectSuggestion(suggestion, event) {
|
|
66
|
-
this.searchTerm = suggestion;
|
|
67
|
-
this.productListWrap.classList.add('hide');
|
|
68
|
-
this.selectedResult.emit({
|
|
69
|
-
'sender': this,
|
|
70
|
-
'event': event,
|
|
71
|
-
'searchTerm': this.searchTerm
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
handleKeyUp(e) {
|
|
75
|
-
const inputElement = e.target;
|
|
76
|
-
this.searchTerm = inputElement.value.toLocaleLowerCase();
|
|
77
|
-
if (e.keyCode === 13 && this.suggestions.length == 0) {
|
|
78
|
-
this.emptyResult.emit({
|
|
79
|
-
'sender': this,
|
|
80
|
-
'event': e,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
clearSearch(event) {
|
|
85
|
-
let input = this.hostElement.shadowRoot.querySelector('input');
|
|
86
|
-
this.productListWrap.classList.remove('hide');
|
|
87
|
-
this.clearBtn.classList.remove('show');
|
|
88
|
-
if (input) {
|
|
89
|
-
input.value = "";
|
|
90
|
-
}
|
|
91
|
-
this.suggestions = [];
|
|
92
|
-
this.clearsearch.emit({
|
|
93
|
-
'sender': this,
|
|
94
|
-
'event': event,
|
|
95
|
-
'searchTerm': input.value
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
handleDropdownTouched(event) {
|
|
99
|
-
const { sender, isOpen } = event.detail;
|
|
100
|
-
if (sender) {
|
|
101
|
-
if (isOpen) {
|
|
102
|
-
let input = this.hostElement.shadowRoot.querySelector('input');
|
|
103
|
-
if (input) {
|
|
104
|
-
input.value = "";
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
handleClick() {
|
|
110
|
-
this.suggestions = [];
|
|
111
|
-
}
|
|
112
|
-
handleclearCtaClicked(event) {
|
|
113
|
-
const { sender, event: mouseEvent, } = event.detail;
|
|
114
|
-
if (sender) {
|
|
115
|
-
this.clearSearch(mouseEvent);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
handleSelectedValues(event) {
|
|
119
|
-
const { sender, selectedOptions } = event.detail;
|
|
120
|
-
if (sender) {
|
|
121
|
-
if (selectedOptions.length > 0) {
|
|
122
|
-
this.clearBtn.classList.add('show');
|
|
123
|
-
this.productListWrap.classList.add('hide');
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
this.clearBtn.classList.remove('show');
|
|
127
|
-
this.productListWrap.classList.remove('hide');
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
render() {
|
|
132
|
-
return (index.h(index.Host, { class: 'search-box' }, index.h("div", { class: "filter-result-wrap white-box" }, index.h("div", { class: "result-header" }, index.h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium", "title-height": "densest" }, "Filter Results"), index.h("span", { class: "clear-cta", onClick: (e) => this.clearSearch(e) }, "Clear")), index.h("div", { class: "sort-wrap" }, index.h("div", { class: "typeahead-input" }, index.h("label", { htmlFor: "searchBox" }, "Filter"), index.h("div", { class: "input-wrap" }, index.h("svg", { width: "19", height: "18", viewBox: "0 0 19 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M0.208984 0V1.2375L6.95898 7.65V14.2875L11.5715 17.8875V7.65L18.209 1.35V0H0.208984Z", fill: "#323B42" })), index.h("input", { type: "text", value: this.searchTerm, onInput: (event) => this.handleInputChange(event), onKeyUp: (e) => this.handleKeyUp(e), id: 'searchBox' })), this.suggestions.length > 0 &&
|
|
133
|
-
index.h("div", { class: "suggestion-wrap" }, index.h("ul", { class: "suggestions" }, this.suggestions.map((suggestion) => (index.h("li", { onClick: (e) => this.handleSelectSuggestion(suggestion, e) }, suggestion)))))), index.h("div", { class: "dropdwon-filter" }, index.h("label", { htmlFor: "tech-dropdown" }, "Technology"), index.h("ptc-product-dropdown", { placeholder: "Select a technology", id: "tech-dropdown" }, this.suggestionList.map((item) => (index.h("span", null, item.categoryName))))))), index.h("ptc-spacer", { size: "large" }), index.h("ptc-spacer", { size: "large" }), index.h("div", { class: "product-list-wrap white-box" }, index.h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium", "title-height": "densest" }, "Jump to Product"), this.suggestionList.map((item) => (index.h("div", { class: "category-list" }, index.h("ptc-para", { "font-size": 'x-small', "font-weight": 'w-7', "para-line-h": "line-height-densest", "para-margin": 'margin-flush' }, index.h("list-item", { "list-type": "list-underline", "link-href": '#' + item.categoryName }, index.h("ptc-tooltip", { "text-display": "inline", "text-lines": "4", "z-index": "z-2", description: item.categoryName, position: "bottom" }))), index.h("div", { class: "product-list" }, index.h("ul", null, item.products.map((product) => (index.h("list-item", { "list-type": "list-underline", "link-href": '#' + product }, product)))))))))));
|
|
134
|
-
}
|
|
135
|
-
get hostElement() { return index.getElement(this); }
|
|
136
|
-
};
|
|
9
|
+
const PtcProductSidebar = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.selectedResult = index.createEvent(this, "selectedResult", 7);
|
|
13
|
+
this.clearsearch = index.createEvent(this, "clearsearch", 7);
|
|
14
|
+
this.inputChanged = index.createEvent(this, "inputChanged", 7);
|
|
15
|
+
this.emptyResult = index.createEvent(this, "emptyResult", 7);
|
|
16
|
+
this.searchTerm = '';
|
|
17
|
+
this.suggestions = [];
|
|
18
|
+
this.suggestionList = [];
|
|
19
|
+
}
|
|
20
|
+
componentWillLoad() {
|
|
21
|
+
this.getDomData();
|
|
22
|
+
}
|
|
23
|
+
componentDidLoad() {
|
|
24
|
+
this.productListWrap = this.hostElement.shadowRoot.querySelector('.product-list-wrap');
|
|
25
|
+
this.clearBtn = this.hostElement.shadowRoot.querySelector('.clear-cta');
|
|
26
|
+
}
|
|
27
|
+
// Getting category title and products list
|
|
28
|
+
getDomData() {
|
|
29
|
+
const categoryList = document.querySelectorAll('ptc-product-category');
|
|
30
|
+
categoryList.forEach(category => {
|
|
31
|
+
let categoryTitle = category.getAttribute('category-title');
|
|
32
|
+
let categoryObject = { categoryName: categoryTitle, products: [] };
|
|
33
|
+
this.suggestionList.push(categoryObject);
|
|
34
|
+
let productList = category.querySelectorAll('ptc-product-card');
|
|
35
|
+
productList.forEach(product => {
|
|
36
|
+
let productTitle = product.getAttribute('card-title');
|
|
37
|
+
categoryObject.products.push(productTitle);
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
handleInputChange(event) {
|
|
42
|
+
const inputElement = event.target;
|
|
43
|
+
this.searchTerm = inputElement.value.toLocaleLowerCase();
|
|
44
|
+
this.clearBtn.classList.add('show');
|
|
45
|
+
this.getSuggestions();
|
|
46
|
+
this.inputChanged.emit({
|
|
47
|
+
'sender': this,
|
|
48
|
+
'event': event,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
getSuggestions() {
|
|
52
|
+
const searchTerm = this.searchTerm.toLowerCase();
|
|
53
|
+
const suggestions = this.suggestionList.reduce((acc, item) => {
|
|
54
|
+
if (item.categoryName.toLowerCase().includes(searchTerm)) {
|
|
55
|
+
acc.push(item.categoryName); // Include the category if it matches the search term
|
|
56
|
+
}
|
|
57
|
+
const matchedProducts = item.products.filter((product) => product.toLowerCase().includes(searchTerm));
|
|
58
|
+
if (matchedProducts.length > 0) {
|
|
59
|
+
acc.push(...matchedProducts); // Include the matching products
|
|
60
|
+
}
|
|
61
|
+
return acc;
|
|
62
|
+
}, []);
|
|
63
|
+
this.suggestions = suggestions;
|
|
64
|
+
}
|
|
65
|
+
handleSelectSuggestion(suggestion, event) {
|
|
66
|
+
this.searchTerm = suggestion;
|
|
67
|
+
this.productListWrap.classList.add('hide');
|
|
68
|
+
this.selectedResult.emit({
|
|
69
|
+
'sender': this,
|
|
70
|
+
'event': event,
|
|
71
|
+
'searchTerm': this.searchTerm
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
handleKeyUp(e) {
|
|
75
|
+
const inputElement = e.target;
|
|
76
|
+
this.searchTerm = inputElement.value.toLocaleLowerCase();
|
|
77
|
+
if (e.keyCode === 13 && this.suggestions.length == 0) {
|
|
78
|
+
this.emptyResult.emit({
|
|
79
|
+
'sender': this,
|
|
80
|
+
'event': e,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
clearSearch(event) {
|
|
85
|
+
let input = this.hostElement.shadowRoot.querySelector('input');
|
|
86
|
+
this.productListWrap.classList.remove('hide');
|
|
87
|
+
this.clearBtn.classList.remove('show');
|
|
88
|
+
if (input) {
|
|
89
|
+
input.value = "";
|
|
90
|
+
}
|
|
91
|
+
this.suggestions = [];
|
|
92
|
+
this.clearsearch.emit({
|
|
93
|
+
'sender': this,
|
|
94
|
+
'event': event,
|
|
95
|
+
'searchTerm': input.value
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
handleDropdownTouched(event) {
|
|
99
|
+
const { sender, isOpen } = event.detail;
|
|
100
|
+
if (sender) {
|
|
101
|
+
if (isOpen) {
|
|
102
|
+
let input = this.hostElement.shadowRoot.querySelector('input');
|
|
103
|
+
if (input) {
|
|
104
|
+
input.value = "";
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
handleClick() {
|
|
110
|
+
this.suggestions = [];
|
|
111
|
+
}
|
|
112
|
+
handleclearCtaClicked(event) {
|
|
113
|
+
const { sender, event: mouseEvent, } = event.detail;
|
|
114
|
+
if (sender) {
|
|
115
|
+
this.clearSearch(mouseEvent);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
handleSelectedValues(event) {
|
|
119
|
+
const { sender, selectedOptions } = event.detail;
|
|
120
|
+
if (sender) {
|
|
121
|
+
if (selectedOptions.length > 0) {
|
|
122
|
+
this.clearBtn.classList.add('show');
|
|
123
|
+
this.productListWrap.classList.add('hide');
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
this.clearBtn.classList.remove('show');
|
|
127
|
+
this.productListWrap.classList.remove('hide');
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
render() {
|
|
132
|
+
return (index.h(index.Host, { class: 'search-box' }, index.h("div", { class: "filter-result-wrap white-box" }, index.h("div", { class: "result-header" }, index.h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium", "title-height": "densest" }, "Filter Results"), index.h("span", { class: "clear-cta", onClick: (e) => this.clearSearch(e) }, "Clear")), index.h("div", { class: "sort-wrap" }, index.h("div", { class: "typeahead-input" }, index.h("label", { htmlFor: "searchBox" }, "Filter"), index.h("div", { class: "input-wrap" }, index.h("svg", { width: "19", height: "18", viewBox: "0 0 19 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M0.208984 0V1.2375L6.95898 7.65V14.2875L11.5715 17.8875V7.65L18.209 1.35V0H0.208984Z", fill: "#323B42" })), index.h("input", { type: "text", value: this.searchTerm, onInput: (event) => this.handleInputChange(event), onKeyUp: (e) => this.handleKeyUp(e), id: 'searchBox' })), this.suggestions.length > 0 &&
|
|
133
|
+
index.h("div", { class: "suggestion-wrap" }, index.h("ul", { class: "suggestions" }, this.suggestions.map((suggestion) => (index.h("li", { onClick: (e) => this.handleSelectSuggestion(suggestion, e) }, suggestion)))))), index.h("div", { class: "dropdwon-filter" }, index.h("label", { htmlFor: "tech-dropdown" }, "Technology"), index.h("ptc-product-dropdown", { placeholder: "Select a technology", id: "tech-dropdown" }, this.suggestionList.map((item) => (index.h("span", null, item.categoryName))))))), index.h("ptc-spacer", { size: "large" }), index.h("ptc-spacer", { size: "large" }), index.h("div", { class: "product-list-wrap white-box" }, index.h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium", "title-height": "densest" }, "Jump to Product"), this.suggestionList.map((item) => (index.h("div", { class: "category-list" }, index.h("ptc-para", { "font-size": 'x-small', "font-weight": 'w-7', "para-line-h": "line-height-densest", "para-margin": 'margin-flush' }, index.h("list-item", { "list-type": "list-underline", "link-href": '#' + item.categoryName }, index.h("ptc-tooltip", { "text-display": "inline", "text-lines": "4", "z-index": "z-2", description: item.categoryName, position: "bottom" }))), index.h("div", { class: "product-list" }, index.h("ul", null, item.products.map((product) => (index.h("list-item", { "list-type": "list-underline", "link-href": '#' + product }, product)))))))))));
|
|
134
|
+
}
|
|
135
|
+
get hostElement() { return index.getElement(this); }
|
|
136
|
+
};
|
|
137
137
|
PtcProductSidebar.style = ptcProductSidebarCss;
|
|
138
138
|
|
|
139
139
|
exports.ptc_product_sidebar = PtcProductSidebar;
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1662de74.js');
|
|
6
6
|
|
|
7
7
|
const ptcProgressBarCss = ":host{display:block}:host .progress-bar-container{height:5px;background-color:linear-gradient(272deg, #3b4550, #1a1a1a);width:100%}:host .progress-bar{height:100%;background-image:linear-gradient(270deg, #4795cd, #33a13c);transition:width 0.3s ease-in-out}";
|
|
8
8
|
|
|
9
|
-
const PtcProgressBar = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.scrollPercentage = 0;
|
|
13
|
-
}
|
|
14
|
-
handleScroll() {
|
|
15
|
-
const scrollTop = document.documentElement.scrollTop;
|
|
16
|
-
const scrollHeight = document.documentElement.scrollHeight - document.documentElement.clientHeight;
|
|
17
|
-
console.log('scrollTop: ' + scrollTop + '; scorllHeight: ' + scrollHeight);
|
|
18
|
-
const percentage = (scrollTop / scrollHeight) * 100;
|
|
19
|
-
this.scrollPercentage = percentage;
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
return (index.h(index.Host, null, index.h("div", { class: "progress-bar-container" }, index.h("div", { class: "progress-bar", style: { width: `${this.scrollPercentage}%` } }))));
|
|
23
|
-
}
|
|
24
|
-
};
|
|
9
|
+
const PtcProgressBar = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.scrollPercentage = 0;
|
|
13
|
+
}
|
|
14
|
+
handleScroll() {
|
|
15
|
+
const scrollTop = document.documentElement.scrollTop;
|
|
16
|
+
const scrollHeight = document.documentElement.scrollHeight - document.documentElement.clientHeight;
|
|
17
|
+
console.log('scrollTop: ' + scrollTop + '; scorllHeight: ' + scrollHeight);
|
|
18
|
+
const percentage = (scrollTop / scrollHeight) * 100;
|
|
19
|
+
this.scrollPercentage = percentage;
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return (index.h(index.Host, null, index.h("div", { class: "progress-bar-container" }, index.h("div", { class: "progress-bar", style: { width: `${this.scrollPercentage}%` } }))));
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
25
|
PtcProgressBar.style = ptcProgressBarCss;
|
|
26
26
|
|
|
27
27
|
exports.ptc_progress_bar = PtcProgressBar;
|
|
@@ -2,35 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1662de74.js');
|
|
6
6
|
|
|
7
7
|
const QuotationMark = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48.12 32.76"><defs><style>.cls-1{isolation:isolate;}.cls-2{fill:#cac8c8;}</style></defs><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><g class="cls-1"><g class="cls-1"><path class="cls-2" d="M24,0,18,15.12h5.4L19.68,32.76H0l3.72-18L11.4,0ZM48.12,0l-6,15.12h5.4L43.8,32.76H24.12l3.72-18L35.52,0Z"/></g></g></g></g></svg>`;
|
|
8
8
|
|
|
9
9
|
const ptcQuoteCss = ":host{display:flex;width:100%;position:relative;overflow:hidden;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:flex-start}:host(.image-quote) .quote-media{position:relative;flex-basis:auto}:host(.image-quote) .quote-media img{width:100%}:host(.image-quote) .quote-media .our-leadership{width:89%;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-04) var(--ptc-element-spacing-02) var(--ptc-element-spacing-04);top:0px;margin:0px auto;display:flex;position:relative;box-shadow:var(--ptc-shadow-large);background-color:var(--color-white);transform:translateY(-50%)}:host(.image-quote) .quote-media .our-leadership p{font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-black);color:var(--color-gray-10);line-height:var(--ptc-line-height-p);letter-spacing:var(--ptc-letter-spacing-loose);margin-block-end:0;margin-block-start:0}:host(.image-quote) .quote-media .our-leadership .line{height:2px;width:82%;position:absolute;top:20%}:host(.image-quote) .quote-media .our-leadership .line .green-line{width:30%;height:2px;background-color:var(--color-green-05);display:inline-block;position:absolute}:host(.image-quote) .quote-media .our-leadership .line .grey-line{width:70%;height:1px;background-color:var(--color-gray-03);display:inline-block;position:absolute;left:30%}:host(.image-quote) .quote-content{flex-basis:auto;display:flex;flex-flow:column nowrap}:host(.image-quote) .quote-content .quotemarks{flex-basis:7%;width:15%;margin-bottom:var(--ptc-element-spacing-03);max-width:2.5rem}:host(.image-quote) .quote-content blockquote{flex-basis:93%;margin-block-start:calc(-1 * var(--ptc-element-spacing-04));margin-inline-start:0;margin-inline-end:0}:host(.image-quote) .quote-content blockquote p{font-weight:var(--ptc-font-weight-medium);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-p);font-style:var(--ptc-font-style-italic);color:var(--color-gray-10);letter-spacing:var(--ptc-letter-spacing-loose);margin:var(--ptc-element-spacing-04) 0}:host(.image-quote) .quote-content .quote-name{display:block;margin-bottom:var(--ptc-element-spacing-07);font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-medium)}@media only screen and (min-width: 768px){:host(.image-quote) .quote-media .our-leadership{width:65%;padding:var(--ptc-element-spacing-06) var(--ptc-element-spacing-06) var(--ptc-element-spacing-03) var(--ptc-element-spacing-06);transform:translateY(-25%)}:host(.image-quote) .quote-media .our-leadership p{font-size:var(--ptc-font-size-large)}:host(.image-quote) .quote-content .quotemarks{width:10%}:host(.image-quote) .quote-content blockquote p{font-size:var(--ptc-font-size-medium);letter-spacing:var(--ptc-letter-spacing-normal)}:host(.image-quote) .quote-content .quote-name{font-size:var(--ptc-font-size-medium);letter-spacing:var(--ptc-letter-spacing-normal)}}@media only screen and (min-width: 992px){:host(.image-quote) .quote-content{margin-right:5%;margin-left:5%}:host(.image-quote) .quote-content blockquote p{font-size:var(--ptc-font-size-large)}:host(.image-quote) .quote-content .quote-name{font-size:var(--ptc-font-size-large)}}@media only screen and (min-width: 1200px){:host(.image-quote){flex-direction:row}:host(.image-quote) .quote-media{flex-basis:40%;padding:unset;margin:var(--ptc-layout-spacing-05) 0px 0px calc(var(--ptc-layout-spacing-06) * 2);padding-right:var(--ptc-element-spacing-08)}:host(.image-quote) .quote-media .our-leadership{width:78%;transform:translateY(-50%)}:host(.image-quote) .quote-media .our-leadership .line{top:18%}:host(.image-quote) .quote-content{flex-basis:58%;flex-flow:row nowrap;margin-left:unset;margin-right:unset}:host(.image-quote) .quote-content .quotemarks{flex-basis:8%;margin-right:var(--ptc-element-spacing-03)}}:host(.plain-quote) blockquote{margin:0 auto;padding:0 0 var(--ptc-element-spacing-04) var(--ptc-element-spacing-04);border-left:5px solid var(--color-green-05)}:host(.plain-quote) blockquote p{font-weight:var(--ptc-font-weight-regular);font-size:var(--ptc-font-size-medium);line-height:var(--ptc-line-height-p);font-style:var(--ptc-font-style-italic);color:var(--color-gray-10);margin:var(--ptc-element-spacing-04) 0}:host(.plain-quote) .quote-content{flex-basis:auto}:host(.plain-quote) .quote-content .quote-name{display:block;margin-bottom:var(--ptc-element-spacing-07);font-size:var(--ptc-font-size-x-small)}";
|
|
10
10
|
|
|
11
|
-
const PtcQuote = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.quoteType = "image-quote";
|
|
15
|
-
this.quoteName = 'John Smith';
|
|
16
|
-
this.ctaText = undefined;
|
|
17
|
-
this.ctaUrl = undefined;
|
|
18
|
-
this.imgSrc = undefined;
|
|
19
|
-
this.imgTitle = undefined;
|
|
20
|
-
}
|
|
21
|
-
getImageTitle() {
|
|
22
|
-
return (index.h("div", { class: "our-leadership" }, index.h("div", { class: "line" }, index.h("div", { class: "green-line" }), index.h("div", { class: "grey-line" })), index.h("p", null, this.imgTitle)));
|
|
23
|
-
}
|
|
24
|
-
render() {
|
|
25
|
-
const classMap = this.getCssClassMap();
|
|
26
|
-
return (index.h(index.Host, { class: classMap }, this.imgSrc ? (index.h("div", { class: "quote-media" }, this.imgSrc ? index.h("img", { src: this.imgSrc, alt: this.imgTitle ? this.imgTitle : 'quote Image' }) : null, this.imgTitle ? this.getImageTitle() : null)) : null, index.h("div", { class: "quote-content" }, this.quoteType == 'image-quote' ? index.h("div", { class: 'quotemarks', innerHTML: QuotationMark }) : null, index.h("blockquote", null, index.h("p", null, index.h("slot", null)), index.h("span", { class: "quote-name" }, this.quoteName ? this.quoteName : null), this.ctaText && this.ctaUrl ? (index.h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": this.ctaUrl }, this.ctaText)) : null))));
|
|
27
|
-
}
|
|
28
|
-
getCssClassMap() {
|
|
29
|
-
return {
|
|
30
|
-
[this.quoteType]: true
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
};
|
|
11
|
+
const PtcQuote = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.quoteType = "image-quote";
|
|
15
|
+
this.quoteName = 'John Smith';
|
|
16
|
+
this.ctaText = undefined;
|
|
17
|
+
this.ctaUrl = undefined;
|
|
18
|
+
this.imgSrc = undefined;
|
|
19
|
+
this.imgTitle = undefined;
|
|
20
|
+
}
|
|
21
|
+
getImageTitle() {
|
|
22
|
+
return (index.h("div", { class: "our-leadership" }, index.h("div", { class: "line" }, index.h("div", { class: "green-line" }), index.h("div", { class: "grey-line" })), index.h("p", null, this.imgTitle)));
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
const classMap = this.getCssClassMap();
|
|
26
|
+
return (index.h(index.Host, { class: classMap }, this.imgSrc ? (index.h("div", { class: "quote-media" }, this.imgSrc ? index.h("img", { src: this.imgSrc, alt: this.imgTitle ? this.imgTitle : 'quote Image' }) : null, this.imgTitle ? this.getImageTitle() : null)) : null, index.h("div", { class: "quote-content" }, this.quoteType == 'image-quote' ? index.h("div", { class: 'quotemarks', innerHTML: QuotationMark }) : null, index.h("blockquote", null, index.h("p", null, index.h("slot", null)), index.h("span", { class: "quote-name" }, this.quoteName ? this.quoteName : null), this.ctaText && this.ctaUrl ? (index.h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": this.ctaUrl }, this.ctaText)) : null))));
|
|
27
|
+
}
|
|
28
|
+
getCssClassMap() {
|
|
29
|
+
return {
|
|
30
|
+
[this.quoteType]: true
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
34
|
PtcQuote.style = ptcQuoteCss;
|
|
35
35
|
|
|
36
36
|
exports.ptc_quote = PtcQuote;
|
|
@@ -2,34 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1662de74.js');
|
|
6
6
|
|
|
7
7
|
const ptcReadmoreCharCss = ":host{display:block}:host .description{display:inline}:host .truncated-label{cursor:pointer;color:var(--color-blue-07);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-bold);text-decoration-line:underline;line-height:var(--ptc-line-height-densest)}:host .truncated-label::before{content:\"\";padding-left:8px}";
|
|
8
8
|
|
|
9
|
-
const PtcReadmoreChar = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.readMoreClicked = index.createEvent(this, "readMoreClicked", 7);
|
|
13
|
-
this.expanded = false;
|
|
14
|
-
this.maxCharacters = 100;
|
|
15
|
-
this.description = undefined;
|
|
16
|
-
this.readMoreText = "Read More";
|
|
17
|
-
this.readLessText = "Read Less";
|
|
18
|
-
}
|
|
19
|
-
toggleExpand() {
|
|
20
|
-
this.expanded = !this.expanded;
|
|
21
|
-
this.readMoreClicked.emit(this.expanded);
|
|
22
|
-
}
|
|
23
|
-
render() {
|
|
24
|
-
const contentText = this.description
|
|
25
|
-
? this.description.trim()
|
|
26
|
-
: '';
|
|
27
|
-
const truncatedContent = contentText.length > this.maxCharacters ? contentText.substring(0, this.maxCharacters) + '...' : contentText;
|
|
28
|
-
const label = this.expanded ? this.readLessText : this.readMoreText;
|
|
29
|
-
return (index.h(index.Host, null, index.h("p", { class: "description" }, this.expanded ? (this.description) : (truncatedContent)), contentText.length > this.maxCharacters && (index.h("label", { class: "truncated-label", onClick: () => this.toggleExpand() }, label))));
|
|
30
|
-
}
|
|
31
|
-
get el() { return index.getElement(this); }
|
|
32
|
-
};
|
|
9
|
+
const PtcReadmoreChar = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.readMoreClicked = index.createEvent(this, "readMoreClicked", 7);
|
|
13
|
+
this.expanded = false;
|
|
14
|
+
this.maxCharacters = 100;
|
|
15
|
+
this.description = undefined;
|
|
16
|
+
this.readMoreText = "Read More";
|
|
17
|
+
this.readLessText = "Read Less";
|
|
18
|
+
}
|
|
19
|
+
toggleExpand() {
|
|
20
|
+
this.expanded = !this.expanded;
|
|
21
|
+
this.readMoreClicked.emit(this.expanded);
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
const contentText = this.description
|
|
25
|
+
? this.description.trim()
|
|
26
|
+
: '';
|
|
27
|
+
const truncatedContent = contentText.length > this.maxCharacters ? contentText.substring(0, this.maxCharacters) + '...' : contentText;
|
|
28
|
+
const label = this.expanded ? this.readLessText : this.readMoreText;
|
|
29
|
+
return (index.h(index.Host, null, index.h("p", { class: "description" }, this.expanded ? (this.description) : (truncatedContent)), contentText.length > this.maxCharacters && (index.h("label", { class: "truncated-label", onClick: () => this.toggleExpand() }, label))));
|
|
30
|
+
}
|
|
31
|
+
get el() { return index.getElement(this); }
|
|
32
|
+
};
|
|
33
33
|
PtcReadmoreChar.style = ptcReadmoreCharCss;
|
|
34
34
|
|
|
35
35
|
exports.ptc_readmore_char = PtcReadmoreChar;
|
|
@@ -2,87 +2,87 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1662de74.js');
|
|
6
6
|
|
|
7
7
|
const ptcReadmoreCss = ":host{display:block}.box input{opacity:0;position:absolute;pointer-events:none}.box .read-more-text{display:-webkit-box;-webkit-box-orient:vertical;margin:0;overflow:hidden;word-wrap:break-word}.box .line1{-webkit-line-clamp:1}.box .line2{-webkit-line-clamp:2}.box .line3{-webkit-line-clamp:3}.box .line4{-webkit-line-clamp:4}.box .line5{-webkit-line-clamp:5}.box .line10{-webkit-line-clamp:10}.box input~label{display:block;position:relative;cursor:pointer;right:0;margin-top:var(--ptc-element-spacing-02);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest);text-decoration-line:underline;color:var(--color-blue-07);text-align:right;margin-right:var(--ptc-element-spacing-07)}.box input~label.left{text-align:left}.box input~label.right{text-align:right}.box input~label.center{text-align:center;margin-right:0}.box .z-auto{z-index:auto}.box .z-1{z-index:1}.box .z-2{z-index:2}.box .z-3{z-index:3}.box .z-999{z-index:999}.box input:checked+.read-more-text{-webkit-line-clamp:unset !important}.box .read-more-text:not(.truncated)~label{display:none}.box .show-less-cta{display:block !important}:host .box.add-icon .read-more-cta-label span{display:inline-block;position:relative;padding-right:var(--ptc-element-spacing-03)}:host .box.add-icon .read-more-cta-label span::after{content:\"\";background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 10 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2300890B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E\");width:10px;height:7px;background-size:cover;position:absolute;right:-5px;bottom:7px}:host .box.add-icon .read-more-cta-label.show-less-cta span::after{transform:rotate(180deg)}:host .box.blue .read-more-cta-label{color:var(--color-blue-07)}:host .box.gray .read-more-cta-label{color:var(--color-gray-10)}:host .box.green .read-more-cta-label{color:var(--color-green-07)}:host .box.initial .read-more-cta-label{color:initial}:host .box.small .read-more-cta-label{font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest)}:host .box.medium .read-more-cta-label{font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-p)}:host .box.large .read-more-cta-label{font-size:var(--ptc-font-size-large);line-height:var(--ptc-line-height-p)}:host .box.large.add-icon .read-more-cta-label span{padding-right:var(--ptc-element-spacing-04)}:host .box.large.add-icon .read-more-cta-label span::after{width:15px;height:10px}";
|
|
8
8
|
|
|
9
|
-
const PtcReadmore = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.moreText = 'read more';
|
|
13
|
-
this.lessText = undefined;
|
|
14
|
-
this.readMorePosition = 'right';
|
|
15
|
-
this.display = 'inline';
|
|
16
|
-
this.visibleLines = 'line2';
|
|
17
|
-
this.visibleLinesCustom = undefined;
|
|
18
|
-
this.zIndex = 'z-auto';
|
|
19
|
-
this.checked = false;
|
|
20
|
-
this.size = 'small';
|
|
21
|
-
this.isIcon = false;
|
|
22
|
-
this.color = 'blue';
|
|
23
|
-
}
|
|
24
|
-
addBtnTruncated() {
|
|
25
|
-
const appRoot = this.el.shadowRoot;
|
|
26
|
-
const ps = appRoot.querySelectorAll('.read-more-text');
|
|
27
|
-
ps.forEach(p => {
|
|
28
|
-
// if (this.visibleCharacters){
|
|
29
|
-
// const truncatedText = p.textContent.slice(0, this.visibleCharacters);
|
|
30
|
-
// p.textContent = truncatedText;
|
|
31
|
-
// }
|
|
32
|
-
p.classList[p.scrollHeight > p.clientHeight ? 'add' : 'remove']('truncated');
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
// Created this function to initialize the truncate function on specific elements like tabs
|
|
36
|
-
enableAddTruncatedClass(element) {
|
|
37
|
-
const allTabHeaders = document.querySelectorAll(element);
|
|
38
|
-
for (const element of Array.from(allTabHeaders)) {
|
|
39
|
-
let tabHeader = element;
|
|
40
|
-
if (tabHeader) {
|
|
41
|
-
tabHeader.addEventListener('click', () => {
|
|
42
|
-
setTimeout(() => {
|
|
43
|
-
this.addBtnTruncated();
|
|
44
|
-
}, 100);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
componentDidLoad() {
|
|
50
|
-
this.addBtnTruncated();
|
|
51
|
-
document.addEventListener("readystatechange", () => {
|
|
52
|
-
if (document.readyState === "complete") {
|
|
53
|
-
this.addBtnTruncated();
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
this.enableAddTruncatedClass('tab-header');
|
|
57
|
-
this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
|
|
58
|
-
}
|
|
59
|
-
// click event handler
|
|
60
|
-
handleClick(event) {
|
|
61
|
-
this.addBtnTruncated();
|
|
62
|
-
// check if the input box is checked
|
|
63
|
-
this.checked = event.target.checked;
|
|
64
|
-
// Getting cta element
|
|
65
|
-
const cta = this.el.shadowRoot.querySelector('.read-more-cta-label');
|
|
66
|
-
// Updating the cta text
|
|
67
|
-
this.checked
|
|
68
|
-
? cta.innerHTML = `<span> ${this.lessText ? this.lessText : ''} </span>`
|
|
69
|
-
: cta.innerHTML = `<span> ${this.moreText ? this.moreText : ''}</span>`;
|
|
70
|
-
this.checked ? cta.classList.add('show-less-cta') : cta.classList.remove('show-less-cta');
|
|
71
|
-
}
|
|
72
|
-
render() {
|
|
73
|
-
const classMap = this.getCssClassMap();
|
|
74
|
-
return (index.h(index.Host, { class: this.display }, index.h("div", { class: classMap }, index.h("input", { type: "checkbox", id: "expanded", onClick: (e) => this.handleClick(e) }), !!this.visibleLines || !!this.visibleLinesCustom ? index.h("p", { class: `read-more-text ${this.visibleLines}`, style: { WebkitLineClamp: `${this.visibleLinesCustom}` } }, index.h("slot", null)) : null, index.h("label", { htmlFor: "expanded", role: "button", class: `${this.zIndex + ' ' + this.readMorePosition} read-more-cta-label` }, index.h("span", null, this.moreText))), console.log('rendering readmore')));
|
|
75
|
-
}
|
|
76
|
-
getCssClassMap() {
|
|
77
|
-
return {
|
|
78
|
-
['box']: true,
|
|
79
|
-
[this.color]: true,
|
|
80
|
-
[this.size]: true,
|
|
81
|
-
['add-icon']: this.isIcon
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
get el() { return index.getElement(this); }
|
|
85
|
-
};
|
|
9
|
+
const PtcReadmore = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.moreText = 'read more';
|
|
13
|
+
this.lessText = undefined;
|
|
14
|
+
this.readMorePosition = 'right';
|
|
15
|
+
this.display = 'inline';
|
|
16
|
+
this.visibleLines = 'line2';
|
|
17
|
+
this.visibleLinesCustom = undefined;
|
|
18
|
+
this.zIndex = 'z-auto';
|
|
19
|
+
this.checked = false;
|
|
20
|
+
this.size = 'small';
|
|
21
|
+
this.isIcon = false;
|
|
22
|
+
this.color = 'blue';
|
|
23
|
+
}
|
|
24
|
+
addBtnTruncated() {
|
|
25
|
+
const appRoot = this.el.shadowRoot;
|
|
26
|
+
const ps = appRoot.querySelectorAll('.read-more-text');
|
|
27
|
+
ps.forEach(p => {
|
|
28
|
+
// if (this.visibleCharacters){
|
|
29
|
+
// const truncatedText = p.textContent.slice(0, this.visibleCharacters);
|
|
30
|
+
// p.textContent = truncatedText;
|
|
31
|
+
// }
|
|
32
|
+
p.classList[p.scrollHeight > p.clientHeight ? 'add' : 'remove']('truncated');
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
// Created this function to initialize the truncate function on specific elements like tabs
|
|
36
|
+
enableAddTruncatedClass(element) {
|
|
37
|
+
const allTabHeaders = document.querySelectorAll(element);
|
|
38
|
+
for (const element of Array.from(allTabHeaders)) {
|
|
39
|
+
let tabHeader = element;
|
|
40
|
+
if (tabHeader) {
|
|
41
|
+
tabHeader.addEventListener('click', () => {
|
|
42
|
+
setTimeout(() => {
|
|
43
|
+
this.addBtnTruncated();
|
|
44
|
+
}, 100);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
componentDidLoad() {
|
|
50
|
+
this.addBtnTruncated();
|
|
51
|
+
document.addEventListener("readystatechange", () => {
|
|
52
|
+
if (document.readyState === "complete") {
|
|
53
|
+
this.addBtnTruncated();
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
this.enableAddTruncatedClass('tab-header');
|
|
57
|
+
this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
|
|
58
|
+
}
|
|
59
|
+
// click event handler
|
|
60
|
+
handleClick(event) {
|
|
61
|
+
this.addBtnTruncated();
|
|
62
|
+
// check if the input box is checked
|
|
63
|
+
this.checked = event.target.checked;
|
|
64
|
+
// Getting cta element
|
|
65
|
+
const cta = this.el.shadowRoot.querySelector('.read-more-cta-label');
|
|
66
|
+
// Updating the cta text
|
|
67
|
+
this.checked
|
|
68
|
+
? cta.innerHTML = `<span> ${this.lessText ? this.lessText : ''} </span>`
|
|
69
|
+
: cta.innerHTML = `<span> ${this.moreText ? this.moreText : ''}</span>`;
|
|
70
|
+
this.checked ? cta.classList.add('show-less-cta') : cta.classList.remove('show-less-cta');
|
|
71
|
+
}
|
|
72
|
+
render() {
|
|
73
|
+
const classMap = this.getCssClassMap();
|
|
74
|
+
return (index.h(index.Host, { class: this.display }, index.h("div", { class: classMap }, index.h("input", { type: "checkbox", id: "expanded", onClick: (e) => this.handleClick(e) }), !!this.visibleLines || !!this.visibleLinesCustom ? index.h("p", { class: `read-more-text ${this.visibleLines}`, style: { WebkitLineClamp: `${this.visibleLinesCustom}` } }, index.h("slot", null)) : null, index.h("label", { htmlFor: "expanded", role: "button", class: `${this.zIndex + ' ' + this.readMorePosition} read-more-cta-label` }, index.h("span", null, this.moreText))), console.log('rendering readmore')));
|
|
75
|
+
}
|
|
76
|
+
getCssClassMap() {
|
|
77
|
+
return {
|
|
78
|
+
['box']: true,
|
|
79
|
+
[this.color]: true,
|
|
80
|
+
[this.size]: true,
|
|
81
|
+
['add-icon']: this.isIcon
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
get el() { return index.getElement(this); }
|
|
85
|
+
};
|
|
86
86
|
PtcReadmore.style = ptcReadmoreCss;
|
|
87
87
|
|
|
88
88
|
exports.ptc_readmore = PtcReadmore;
|