@ptcwebops/ptcw-design 2.4.7 → 2.4.9

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.
Files changed (638) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/author-listing-example.cjs.entry.js +232 -232
  3. package/dist/cjs/bundle-example.cjs.entry.js +31 -31
  4. package/dist/cjs/bundle-jumbotron-example.cjs.entry.js +40 -40
  5. package/dist/cjs/{core-332e5461.js → core-1951cc85.js} +91 -29
  6. package/dist/cjs/dropdown-item.cjs.entry.js +11 -11
  7. package/dist/cjs/dynamic-box-bundle.cjs.entry.js +26 -26
  8. package/dist/cjs/featured-list.cjs.entry.js +84 -84
  9. package/dist/cjs/fl-tab-content_3.cjs.entry.js +41 -41
  10. package/dist/cjs/icon-asset.cjs.entry.js +43 -43
  11. package/dist/cjs/{index-1662de74.js → index-dddc2aea.js} +72 -1
  12. package/dist/cjs/innovator-toggle-container.cjs.entry.js +22 -22
  13. package/dist/cjs/{interfaces-574e6df7.js → interfaces-0ecd8027.js} +9 -9
  14. package/dist/cjs/list-item.cjs.entry.js +23 -23
  15. package/dist/cjs/loader.cjs.js +2 -2
  16. package/dist/cjs/max-width-container.cjs.entry.js +44 -44
  17. package/dist/cjs/my-component.cjs.entry.js +16 -16
  18. package/dist/cjs/{pagination-8d9d474d.js → pagination-d20b7968.js} +24 -6
  19. package/dist/cjs/ptc-accordion-item.cjs.entry.js +85 -85
  20. package/dist/cjs/ptc-accordion.cjs.entry.js +40 -40
  21. package/dist/cjs/ptc-announcement.cjs.entry.js +53 -53
  22. package/dist/cjs/ptc-back-to-top.cjs.entry.js +36 -36
  23. package/dist/cjs/ptc-background-video.cjs.entry.js +58 -58
  24. package/dist/cjs/ptc-bio-card.cjs.entry.js +25 -25
  25. package/dist/cjs/ptc-breadcrumb_2.cjs.entry.js +122 -122
  26. package/dist/cjs/ptc-button.cjs.entry.js +40 -40
  27. package/dist/cjs/ptc-card-bottom_3.cjs.entry.js +124 -124
  28. package/dist/cjs/ptc-card-content.cjs.entry.js +58 -58
  29. package/dist/cjs/ptc-card.cjs.entry.js +73 -73
  30. package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +93 -84
  31. package/dist/cjs/ptc-checkbox.cjs.entry.js +51 -51
  32. package/dist/cjs/ptc-collapse-list.cjs.entry.js +398 -398
  33. package/dist/cjs/ptc-container.cjs.entry.js +34 -34
  34. package/dist/cjs/ptc-date.cjs.entry.js +51 -51
  35. package/dist/cjs/ptc-dropdown.cjs.entry.js +65 -65
  36. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +48 -48
  37. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +47 -47
  38. package/dist/cjs/ptc-featured-list.cjs.entry.js +83 -83
  39. package/dist/cjs/ptc-filter-tag.cjs.entry.js +58 -58
  40. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +12 -12
  41. package/dist/cjs/ptc-hero.cjs.entry.js +19 -19
  42. package/dist/cjs/ptc-icon-component.cjs.entry.js +63 -63
  43. package/dist/cjs/ptc-icon-list.cjs.entry.js +22 -22
  44. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +44 -44
  45. package/dist/cjs/ptc-image-download-strip.cjs.entry.js +19 -19
  46. package/dist/cjs/ptc-img.cjs.entry.js +123 -123
  47. package/dist/cjs/ptc-link.cjs.entry.js +34 -34
  48. package/dist/cjs/ptc-list.cjs.entry.js +50 -50
  49. package/dist/cjs/ptc-media-card.cjs.entry.js +59 -59
  50. package/dist/cjs/ptc-minimized-nav.cjs.entry.js +13 -13
  51. package/dist/cjs/ptc-mobile-select.cjs.entry.js +166 -148
  52. package/dist/cjs/ptc-modal.cjs.entry.js +151 -151
  53. package/dist/cjs/ptc-nav-card.cjs.entry.js +37 -37
  54. package/dist/cjs/ptc-nav-link.cjs.entry.js +37 -37
  55. package/dist/cjs/ptc-nav-pills.cjs.entry.js +9 -9
  56. package/dist/cjs/ptc-nav-slider.cjs.entry.js +91 -91
  57. package/dist/cjs/ptc-nav-submenu.cjs.entry.js +38 -38
  58. package/dist/cjs/ptc-news.cjs.entry.js +25 -25
  59. package/dist/cjs/ptc-overlay.cjs.entry.js +24 -24
  60. package/dist/cjs/ptc-pagenation.cjs.entry.js +307 -307
  61. package/dist/cjs/ptc-para.cjs.entry.js +52 -52
  62. package/dist/cjs/ptc-picture.cjs.entry.js +153 -153
  63. package/dist/cjs/ptc-podcast-card.cjs.entry.js +12 -12
  64. package/dist/cjs/ptc-previous-url.cjs.entry.js +12 -12
  65. package/dist/cjs/ptc-pricing-add-on-card.cjs.entry.js +17 -17
  66. package/dist/cjs/ptc-pricing-add-on-section.cjs.entry.js +40 -40
  67. package/dist/cjs/ptc-pricing-block.cjs.entry.js +21 -21
  68. package/dist/cjs/ptc-pricing-table.cjs.entry.js +510 -510
  69. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +126 -126
  70. package/dist/cjs/ptc-product-card.cjs.entry.js +23 -23
  71. package/dist/cjs/ptc-product-category.cjs.entry.js +11 -11
  72. package/dist/cjs/ptc-product-dropdown.cjs.entry.js +70 -70
  73. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +13 -13
  74. package/dist/cjs/ptc-product-list.cjs.entry.js +141 -141
  75. package/dist/cjs/ptc-product-sidebar.cjs.entry.js +129 -129
  76. package/dist/cjs/ptc-progress-bar.cjs.entry.js +17 -17
  77. package/dist/cjs/ptc-quiz.cjs.entry.js +73 -73
  78. package/dist/cjs/ptc-quote.cjs.entry.js +24 -24
  79. package/dist/cjs/ptc-readmore-char.cjs.entry.js +25 -25
  80. package/dist/cjs/ptc-readmore.cjs.entry.js +78 -78
  81. package/dist/cjs/ptc-related-card-rail.cjs.entry.js +150 -150
  82. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +55 -55
  83. package/dist/cjs/ptc-search-field.cjs.entry.js +72 -72
  84. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +51 -51
  85. package/dist/cjs/ptc-slit-card.cjs.entry.js +26 -26
  86. package/dist/cjs/ptc-social-share.cjs.entry.js +70 -70
  87. package/dist/cjs/ptc-spacer.cjs.entry.js +28 -28
  88. package/dist/cjs/ptc-span.cjs.entry.js +21 -21
  89. package/dist/cjs/ptc-square-card.cjs.entry.js +11 -11
  90. package/dist/cjs/ptc-sticky-icons.cjs.entry.js +33 -33
  91. package/dist/cjs/ptc-sticky-section.cjs.entry.js +31 -31
  92. package/dist/cjs/ptc-sticky-title.cjs.entry.js +24 -24
  93. package/dist/cjs/ptc-subnav-card.cjs.entry.js +16 -16
  94. package/dist/cjs/ptc-subnav.cjs.entry.js +23 -23
  95. package/dist/cjs/ptc-svg-btn.cjs.entry.js +96 -96
  96. package/dist/cjs/ptc-tab-list.cjs.entry.js +142 -142
  97. package/dist/cjs/ptc-tab.cjs.entry.js +21 -21
  98. package/dist/cjs/ptc-tabs.cjs.entry.js +48 -48
  99. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +45 -45
  100. package/dist/cjs/ptc-title.cjs.entry.js +68 -68
  101. package/dist/cjs/ptc-tooltip.cjs.entry.js +96 -96
  102. package/dist/cjs/ptc-two-column-media.cjs.entry.js +16 -16
  103. package/dist/cjs/ptc-value-prop-card.cjs.entry.js +14 -14
  104. package/dist/cjs/ptcw-design.cjs.js +2 -2
  105. package/dist/cjs/sequential-bundle-example.cjs.entry.js +110 -110
  106. package/dist/cjs/sequential-bundle.cjs.entry.js +90 -90
  107. package/dist/cjs/tab-content.cjs.entry.js +29 -29
  108. package/dist/cjs/tab-header.cjs.entry.js +65 -65
  109. package/dist/cjs/{utils-9eb22041.js → utils-416c94fe.js} +90 -90
  110. package/dist/collection/collection-manifest.json +1 -1
  111. package/dist/collection/components/dropdown-item/dropdown-item.js +61 -61
  112. package/dist/collection/components/dynamic-box-bundle/dynamic-box-bundle.js +114 -114
  113. package/dist/collection/components/icon-asset/icon-asset.css +4 -4
  114. package/dist/collection/components/icon-asset/icon-asset.js +199 -199
  115. package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
  116. package/dist/collection/components/icon-asset/media/designer.svg +489 -489
  117. package/dist/collection/components/icon-asset/media/regular.svg +463 -463
  118. package/dist/collection/components/icon-asset/media/solid.svg +3016 -3016
  119. package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
  120. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.js +89 -89
  121. package/dist/collection/components/list-item/list-item.js +144 -144
  122. package/dist/collection/components/max-width-container/max-width-container.css +11 -11
  123. package/dist/collection/components/max-width-container/max-width-container.js +146 -146
  124. package/dist/collection/components/my-component/my-component.css +3 -3
  125. package/dist/collection/components/my-component/my-component.js +82 -82
  126. package/dist/collection/components/organism-bundles/author-listing-example/author-listing-example.css +69 -69
  127. package/dist/collection/components/organism-bundles/author-listing-example/author-listing-example.js +281 -281
  128. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.css +25 -25
  129. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.js +58 -58
  130. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +218 -218
  131. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.js +115 -115
  132. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.css +3 -3
  133. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.js +91 -91
  134. package/dist/collection/components/organism-bundles/sequential-bundle/sequential-bundle.js +116 -116
  135. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.css +92 -92
  136. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.js +160 -160
  137. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +306 -306
  138. package/dist/collection/components/ptc-accordion/ptc-accordion.js +100 -100
  139. package/dist/collection/components/ptc-announcement/ptc-announcement.js +274 -274
  140. package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.js +61 -61
  141. package/dist/collection/components/ptc-background-video/ptc-background-video.js +200 -200
  142. package/dist/collection/components/ptc-bio-card/ptc-bio-card.js +130 -130
  143. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +105 -105
  144. package/dist/collection/components/ptc-button/ptc-button.js +304 -304
  145. package/dist/collection/components/ptc-card/ptc-card.js +419 -419
  146. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +116 -116
  147. package/dist/collection/components/ptc-card-content/ptc-card-content.js +212 -212
  148. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +232 -232
  149. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +4 -4
  150. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.js +91 -91
  151. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +152 -152
  152. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +639 -639
  153. package/dist/collection/components/ptc-container/ptc-container.js +138 -138
  154. package/dist/collection/components/ptc-date/ptc-date.js +224 -224
  155. package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +162 -162
  156. package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +15 -15
  157. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +174 -174
  158. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +137 -137
  159. package/dist/collection/components/ptc-featured-list/fl-tab-content/fl-tab-content.js +61 -61
  160. package/dist/collection/components/ptc-featured-list/fl-tab-header/fl-tab-header.js +105 -105
  161. package/dist/collection/components/ptc-featured-list/fl-tab-image/fl-tab-image.js +61 -61
  162. package/dist/collection/components/ptc-featured-list/ptc-featured-list.js +115 -115
  163. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +113 -113
  164. package/dist/collection/components/ptc-hero/ptc-hero.js +86 -86
  165. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +78 -78
  166. package/dist/collection/components/ptc-icon-component/ptc-icon-component.css +2 -2
  167. package/dist/collection/components/ptc-icon-component/ptc-icon-component.js +87 -87
  168. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +127 -127
  169. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +119 -119
  170. package/dist/collection/components/ptc-image-download-strip/ptc-image-download-strip.js +51 -51
  171. package/dist/collection/components/ptc-img/ptc-img.js +311 -311
  172. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +2 -8
  173. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +326 -326
  174. package/dist/collection/components/ptc-link/ptc-link.js +207 -207
  175. package/dist/collection/components/ptc-list/ptc-list.js +99 -99
  176. package/dist/collection/components/ptc-media-card/ptc-media-card.js +240 -240
  177. package/dist/collection/components/ptc-minimized-nav/ptc-minimized-nav.js +100 -100
  178. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.css +7 -2
  179. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +199 -199
  180. package/dist/collection/components/ptc-modal/ptc-modal.js +407 -407
  181. package/dist/collection/components/ptc-nav-card/ptc-nav-card.js +224 -224
  182. package/dist/collection/components/ptc-nav-pills/ptc-nav-pills.js +18 -18
  183. package/dist/collection/components/ptc-news/ptc-news.js +176 -176
  184. package/dist/collection/components/ptc-overlay/ptc-overlay.js +131 -131
  185. package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +573 -573
  186. package/dist/collection/components/ptc-para/ptc-para.js +242 -242
  187. package/dist/collection/components/ptc-picture/ptc-picture.js +500 -500
  188. package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.js +78 -78
  189. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +78 -78
  190. package/dist/collection/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.js +120 -120
  191. package/dist/collection/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.js +76 -76
  192. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +70 -70
  193. package/dist/collection/components/ptc-pricing-table/ptc-pricing-table.js +664 -664
  194. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +2 -8
  195. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +272 -272
  196. package/dist/collection/components/ptc-product-card/ptc-product-card.js +162 -162
  197. package/dist/collection/components/ptc-product-category/ptc-product-category.js +60 -60
  198. package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.js +185 -185
  199. package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.js +96 -96
  200. package/dist/collection/components/ptc-product-list/ptc-product-list.js +194 -194
  201. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +252 -252
  202. package/dist/collection/components/ptc-progress-bar/ptc-progress-bar.js +42 -42
  203. package/dist/collection/components/ptc-quiz/ptc-quiz.js +92 -92
  204. package/dist/collection/components/ptc-quote/ptc-quote.js +144 -144
  205. package/dist/collection/components/ptc-readmore/ptc-readmore.js +302 -302
  206. package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.js +133 -133
  207. package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.js +190 -190
  208. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
  209. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +65 -65
  210. package/dist/collection/components/ptc-search-field/ptc-search-field.js +247 -247
  211. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +97 -97
  212. package/dist/collection/components/ptc-skeleton/ptc-skeleton.js +139 -139
  213. package/dist/collection/components/ptc-slit-card/ptc-slit-card.js +181 -181
  214. package/dist/collection/components/ptc-social-share/ptc-social-share.js +267 -267
  215. package/dist/collection/components/ptc-spacer/ptc-spacer.css +332 -332
  216. package/dist/collection/components/ptc-spacer/ptc-spacer.js +97 -97
  217. package/dist/collection/components/ptc-span/ptc-span.js +107 -107
  218. package/dist/collection/components/ptc-square-card/ptc-square-card.js +60 -60
  219. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +51 -51
  220. package/dist/collection/components/ptc-sticky-section/ptc-sticky-section.js +49 -49
  221. package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.js +89 -89
  222. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +109 -109
  223. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +195 -195
  224. package/dist/collection/components/ptc-tabs/ptc-tab.js +121 -121
  225. package/dist/collection/components/ptc-tabs/ptc-tabs.js +104 -104
  226. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.css +1 -1
  227. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +199 -199
  228. package/dist/collection/components/ptc-title/ptc-title.js +310 -310
  229. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +342 -342
  230. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +48 -48
  231. package/dist/collection/components/ptc-value-prop-card/ptc-value-prop-card.js +117 -117
  232. package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.js +114 -114
  233. package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.js +133 -133
  234. package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.js +121 -121
  235. package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.js +70 -70
  236. package/dist/collection/components/subnav/ptc-subnav-card/ptc-subnav-card.js +133 -133
  237. package/dist/collection/components/tab-content/tab-content.css +9 -2
  238. package/dist/collection/components/tab-content/tab-content.js +84 -84
  239. package/dist/collection/components/tab-header/tab-header.js +182 -182
  240. package/dist/collection/index.js +1 -1
  241. package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -11
  242. package/dist/collection/media/svg-imgs/close.svg +10 -10
  243. package/dist/collection/media/svg-imgs/nav-active-dotslick.svg +16 -16
  244. package/dist/collection/media/svg-imgs/play-button-dark.svg +20 -20
  245. package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +3 -3
  246. package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +3 -3
  247. package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
  248. package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
  249. package/dist/collection/media/svg-imgs/union.svg +3 -3
  250. package/dist/collection/stories/Accordian.stories.js +205 -205
  251. package/dist/collection/stories/Announcement.stories.js +64 -64
  252. package/dist/collection/stories/BackgroundImage.stories.js +81 -81
  253. package/dist/collection/stories/Breadcrumb.stories.js +50 -50
  254. package/dist/collection/stories/Button.stories.js +119 -119
  255. package/dist/collection/stories/Card.stories.js +234 -234
  256. package/dist/collection/stories/CardWrapper.stories.js +270 -270
  257. package/dist/collection/stories/Checkbox.stories.js +52 -52
  258. package/dist/collection/stories/Date.stories.js +81 -81
  259. package/dist/collection/stories/Dropdown.stories.js +48 -48
  260. package/dist/collection/stories/DynamicCard.stories.js +68 -68
  261. package/dist/collection/stories/FilterTag.stories.js +73 -73
  262. package/dist/collection/stories/Hero.stories.js +119 -119
  263. package/dist/collection/stories/Icon.stories.js +71 -71
  264. package/dist/collection/stories/IconList.stories.js +114 -114
  265. package/dist/collection/stories/IconMinimize.stories.js +40 -40
  266. package/dist/collection/stories/Link.stories.js +101 -101
  267. package/dist/collection/stories/ListItem.stories.js +59 -59
  268. package/dist/collection/stories/MaxWidthContainer.stories.js +32 -32
  269. package/dist/collection/stories/MinimizedHeader.stories.js +37 -37
  270. package/dist/collection/stories/MobileSelect.stories.js +79 -79
  271. package/dist/collection/stories/Modal.stories.js +105 -105
  272. package/dist/collection/stories/Overlay.stories.js +48 -48
  273. package/dist/collection/stories/Pagination.stories.js +101 -101
  274. package/dist/collection/stories/Paragraph.stories.js +95 -95
  275. package/dist/collection/stories/Picture.stories.js +139 -139
  276. package/dist/collection/stories/Quote.stories.js +107 -107
  277. package/dist/collection/stories/ReadMore.stories.js +100 -100
  278. package/dist/collection/stories/SocialShare.stories.js +66 -66
  279. package/dist/collection/stories/Spacer.stories.js +48 -48
  280. package/dist/collection/stories/Span.stories.js +57 -57
  281. package/dist/collection/stories/SvgButton.stories.js +34 -34
  282. package/dist/collection/stories/Tabs.stories.js +213 -213
  283. package/dist/collection/stories/TextCopyWithBackground.stories.js +237 -237
  284. package/dist/collection/stories/Title.stories.js +115 -115
  285. package/dist/collection/stories/Tooltip.stories.js +112 -112
  286. package/dist/collection/utils/component.js +3 -3
  287. package/dist/collection/utils/interfaces.js +11 -11
  288. package/dist/collection/utils/utils.js +92 -92
  289. package/dist/custom-elements/index.js +6986 -6879
  290. package/dist/esm/author-listing-example.entry.js +232 -232
  291. package/dist/esm/bundle-example.entry.js +31 -31
  292. package/dist/esm/bundle-jumbotron-example.entry.js +40 -40
  293. package/dist/esm/{core-73ab4867.js → core-209a2c67.js} +91 -29
  294. package/dist/esm/dropdown-item.entry.js +11 -11
  295. package/dist/esm/dynamic-box-bundle.entry.js +26 -26
  296. package/dist/esm/featured-list.entry.js +84 -84
  297. package/dist/esm/fl-tab-content_3.entry.js +41 -41
  298. package/dist/esm/icon-asset.entry.js +43 -43
  299. package/dist/esm/{index-22a84644.js → index-8db28d54.js} +72 -1
  300. package/dist/esm/innovator-toggle-container.entry.js +22 -22
  301. package/dist/esm/{interfaces-4caedd26.js → interfaces-3cb94654.js} +9 -9
  302. package/dist/esm/list-item.entry.js +23 -23
  303. package/dist/esm/loader.js +3 -3
  304. package/dist/esm/max-width-container.entry.js +44 -44
  305. package/dist/esm/my-component.entry.js +16 -16
  306. package/dist/esm/{pagination-902de0b2.js → pagination-3ddf3057.js} +24 -6
  307. package/dist/esm/polyfills/core-js.js +0 -0
  308. package/dist/esm/polyfills/dom.js +0 -0
  309. package/dist/esm/polyfills/es5-html-element.js +0 -0
  310. package/dist/esm/polyfills/index.js +0 -0
  311. package/dist/esm/polyfills/system.js +0 -0
  312. package/dist/esm/ptc-accordion-item.entry.js +85 -85
  313. package/dist/esm/ptc-accordion.entry.js +40 -40
  314. package/dist/esm/ptc-announcement.entry.js +53 -53
  315. package/dist/esm/ptc-back-to-top.entry.js +36 -36
  316. package/dist/esm/ptc-background-video.entry.js +58 -58
  317. package/dist/esm/ptc-bio-card.entry.js +25 -25
  318. package/dist/esm/ptc-breadcrumb_2.entry.js +122 -122
  319. package/dist/esm/ptc-button.entry.js +40 -40
  320. package/dist/esm/ptc-card-bottom_3.entry.js +124 -124
  321. package/dist/esm/ptc-card-content.entry.js +58 -58
  322. package/dist/esm/ptc-card.entry.js +73 -73
  323. package/dist/esm/ptc-case-studies-slider.entry.js +93 -84
  324. package/dist/esm/ptc-checkbox.entry.js +51 -51
  325. package/dist/esm/ptc-collapse-list.entry.js +398 -398
  326. package/dist/esm/ptc-container.entry.js +34 -34
  327. package/dist/esm/ptc-date.entry.js +51 -51
  328. package/dist/esm/ptc-dropdown.entry.js +65 -65
  329. package/dist/esm/ptc-dynamic-card.entry.js +48 -48
  330. package/dist/esm/ptc-ellipsis-dropdown.entry.js +47 -47
  331. package/dist/esm/ptc-featured-list.entry.js +83 -83
  332. package/dist/esm/ptc-filter-tag.entry.js +58 -58
  333. package/dist/esm/ptc-hero-footer-cta.entry.js +12 -12
  334. package/dist/esm/ptc-hero.entry.js +19 -19
  335. package/dist/esm/ptc-icon-component.entry.js +63 -63
  336. package/dist/esm/ptc-icon-list.entry.js +22 -22
  337. package/dist/esm/ptc-icon-minimize.entry.js +44 -44
  338. package/dist/esm/ptc-image-download-strip.entry.js +19 -19
  339. package/dist/esm/ptc-img.entry.js +123 -123
  340. package/dist/esm/ptc-link.entry.js +34 -34
  341. package/dist/esm/ptc-list.entry.js +50 -50
  342. package/dist/esm/ptc-media-card.entry.js +59 -59
  343. package/dist/esm/ptc-minimized-nav.entry.js +13 -13
  344. package/dist/esm/ptc-mobile-select.entry.js +166 -148
  345. package/dist/esm/ptc-modal.entry.js +151 -151
  346. package/dist/esm/ptc-nav-card.entry.js +37 -37
  347. package/dist/esm/ptc-nav-link.entry.js +37 -37
  348. package/dist/esm/ptc-nav-pills.entry.js +9 -9
  349. package/dist/esm/ptc-nav-slider.entry.js +91 -91
  350. package/dist/esm/ptc-nav-submenu.entry.js +38 -38
  351. package/dist/esm/ptc-news.entry.js +25 -25
  352. package/dist/esm/ptc-overlay.entry.js +24 -24
  353. package/dist/esm/ptc-pagenation.entry.js +307 -307
  354. package/dist/esm/ptc-para.entry.js +52 -52
  355. package/dist/esm/ptc-picture.entry.js +153 -153
  356. package/dist/esm/ptc-podcast-card.entry.js +12 -12
  357. package/dist/esm/ptc-previous-url.entry.js +12 -12
  358. package/dist/esm/ptc-pricing-add-on-card.entry.js +17 -17
  359. package/dist/esm/ptc-pricing-add-on-section.entry.js +40 -40
  360. package/dist/esm/ptc-pricing-block.entry.js +21 -21
  361. package/dist/esm/ptc-pricing-table.entry.js +510 -510
  362. package/dist/esm/ptc-pricing-tabs.entry.js +126 -126
  363. package/dist/esm/ptc-product-card.entry.js +23 -23
  364. package/dist/esm/ptc-product-category.entry.js +11 -11
  365. package/dist/esm/ptc-product-dropdown.entry.js +70 -70
  366. package/dist/esm/ptc-product-highlight-card.entry.js +13 -13
  367. package/dist/esm/ptc-product-list.entry.js +141 -141
  368. package/dist/esm/ptc-product-sidebar.entry.js +129 -129
  369. package/dist/esm/ptc-progress-bar.entry.js +17 -17
  370. package/dist/esm/ptc-quiz.entry.js +73 -73
  371. package/dist/esm/ptc-quote.entry.js +24 -24
  372. package/dist/esm/ptc-readmore-char.entry.js +25 -25
  373. package/dist/esm/ptc-readmore.entry.js +78 -78
  374. package/dist/esm/ptc-related-card-rail.entry.js +150 -150
  375. package/dist/esm/ptc-responsive-wrapper.entry.js +55 -55
  376. package/dist/esm/ptc-search-field.entry.js +72 -72
  377. package/dist/esm/ptc-shopping-cart.entry.js +51 -51
  378. package/dist/esm/ptc-slit-card.entry.js +26 -26
  379. package/dist/esm/ptc-social-share.entry.js +70 -70
  380. package/dist/esm/ptc-spacer.entry.js +28 -28
  381. package/dist/esm/ptc-span.entry.js +21 -21
  382. package/dist/esm/ptc-square-card.entry.js +11 -11
  383. package/dist/esm/ptc-sticky-icons.entry.js +33 -33
  384. package/dist/esm/ptc-sticky-section.entry.js +31 -31
  385. package/dist/esm/ptc-sticky-title.entry.js +24 -24
  386. package/dist/esm/ptc-subnav-card.entry.js +16 -16
  387. package/dist/esm/ptc-subnav.entry.js +23 -23
  388. package/dist/esm/ptc-svg-btn.entry.js +96 -96
  389. package/dist/esm/ptc-tab-list.entry.js +142 -142
  390. package/dist/esm/ptc-tab.entry.js +21 -21
  391. package/dist/esm/ptc-tabs.entry.js +48 -48
  392. package/dist/esm/ptc-text-copy-with-background.entry.js +45 -45
  393. package/dist/esm/ptc-title.entry.js +68 -68
  394. package/dist/esm/ptc-tooltip.entry.js +96 -96
  395. package/dist/esm/ptc-two-column-media.entry.js +16 -16
  396. package/dist/esm/ptc-value-prop-card.entry.js +14 -14
  397. package/dist/esm/ptcw-design.js +3 -3
  398. package/dist/esm/sequential-bundle-example.entry.js +110 -110
  399. package/dist/esm/sequential-bundle.entry.js +90 -90
  400. package/dist/esm/tab-content.entry.js +29 -29
  401. package/dist/esm/tab-header.entry.js +65 -65
  402. package/dist/esm/{utils-38decc43.js → utils-f937097d.js} +90 -90
  403. package/dist/ptcw-design/media/brands.svg +1381 -1381
  404. package/dist/ptcw-design/media/designer.svg +489 -489
  405. package/dist/ptcw-design/media/nav-active-dotslick.svg +15 -15
  406. package/dist/ptcw-design/media/regular.svg +463 -463
  407. package/dist/ptcw-design/media/solid.svg +3016 -3016
  408. package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
  409. package/dist/ptcw-design/{p-15e08cba.entry.js → p-019ee040.entry.js} +1 -1
  410. package/dist/ptcw-design/{p-8bf3dad0.entry.js → p-058a518e.entry.js} +1 -1
  411. package/dist/ptcw-design/{p-17fd5641.entry.js → p-066dc775.entry.js} +1 -1
  412. package/dist/ptcw-design/{p-1b972064.entry.js → p-06b9d7b1.entry.js} +1 -1
  413. package/dist/ptcw-design/{p-c5df36ad.entry.js → p-06c13601.entry.js} +1 -1
  414. package/dist/ptcw-design/{p-bd470a7a.entry.js → p-079b6721.entry.js} +1 -1
  415. package/dist/ptcw-design/{p-7b34bb69.entry.js → p-0ae005de.entry.js} +1 -1
  416. package/dist/ptcw-design/{p-5129270f.entry.js → p-0f42ec51.entry.js} +1 -1
  417. package/dist/ptcw-design/p-0fc282f5.js +1 -0
  418. package/dist/ptcw-design/{p-689f0741.entry.js → p-10371e08.entry.js} +1 -1
  419. package/dist/ptcw-design/{p-bb5c0997.entry.js → p-1e4bc8b4.entry.js} +1 -1
  420. package/dist/ptcw-design/p-213cbb37.entry.js +1 -0
  421. package/dist/ptcw-design/{p-06f99e11.entry.js → p-22e77c7c.entry.js} +1 -1
  422. package/dist/ptcw-design/{p-dc5e5116.entry.js → p-25195807.entry.js} +1 -1
  423. package/dist/ptcw-design/{p-4097a036.entry.js → p-288cb98d.entry.js} +1 -1
  424. package/dist/ptcw-design/{p-0532c37c.entry.js → p-298fd719.entry.js} +1 -1
  425. package/dist/ptcw-design/{p-4c9f71fa.entry.js → p-2c7d84dd.entry.js} +1 -1
  426. package/dist/ptcw-design/{p-1fc3d43a.entry.js → p-2dcdfa2e.entry.js} +1 -1
  427. package/dist/ptcw-design/{p-1c631848.entry.js → p-34764ee6.entry.js} +1 -1
  428. package/dist/ptcw-design/{p-fd6d40c3.entry.js → p-3571d2f7.entry.js} +1 -1
  429. package/dist/ptcw-design/{p-2893f405.entry.js → p-38bee38d.entry.js} +1 -1
  430. package/dist/ptcw-design/{p-e8cd5994.entry.js → p-38fb1625.entry.js} +1 -1
  431. package/dist/ptcw-design/{p-59ac682d.entry.js → p-39bf1649.entry.js} +1 -1
  432. package/dist/ptcw-design/{p-bf47669c.entry.js → p-3d14bf07.entry.js} +1 -1
  433. package/dist/ptcw-design/{p-cf1005f9.entry.js → p-3e5fb8c3.entry.js} +1 -1
  434. package/dist/ptcw-design/{p-3ed0384d.entry.js → p-3fb0f45c.entry.js} +1 -1
  435. package/dist/ptcw-design/{p-12acb46f.entry.js → p-445c9b3d.entry.js} +1 -1
  436. package/dist/ptcw-design/{p-362ec391.entry.js → p-447ad4f8.entry.js} +1 -1
  437. package/dist/ptcw-design/{p-75b17a66.entry.js → p-4eeafd49.entry.js} +1 -1
  438. package/dist/ptcw-design/{p-bf808180.entry.js → p-4f82a06c.entry.js} +1 -1
  439. package/dist/ptcw-design/{p-27807bb0.entry.js → p-4feef7ca.entry.js} +1 -1
  440. package/dist/ptcw-design/{p-7aa8af29.entry.js → p-55292c78.entry.js} +1 -1
  441. package/dist/ptcw-design/{p-6e11536e.entry.js → p-57085c86.entry.js} +1 -1
  442. package/dist/ptcw-design/{p-029f9072.entry.js → p-5ad17a7a.entry.js} +1 -1
  443. package/dist/ptcw-design/{p-5f69e216.entry.js → p-5c2c4b3e.entry.js} +1 -1
  444. package/dist/ptcw-design/{p-f6cf3eea.entry.js → p-5f4b2077.entry.js} +1 -1
  445. package/dist/ptcw-design/{p-6449418a.entry.js → p-60618056.entry.js} +1 -1
  446. package/dist/ptcw-design/{p-58291e3a.entry.js → p-62d3f225.entry.js} +1 -1
  447. package/dist/ptcw-design/{p-56da9ecd.entry.js → p-635dbbec.entry.js} +1 -1
  448. package/dist/ptcw-design/{p-95198d5f.entry.js → p-674aef18.entry.js} +1 -1
  449. package/dist/ptcw-design/{p-98b6cb94.entry.js → p-6c09bbbc.entry.js} +1 -1
  450. package/dist/ptcw-design/{p-f1cdd6c2.entry.js → p-6c51bf82.entry.js} +1 -1
  451. package/dist/ptcw-design/{p-9d681abc.entry.js → p-6f8455b5.entry.js} +1 -1
  452. package/dist/ptcw-design/{p-60727256.entry.js → p-6f8d2b0b.entry.js} +1 -1
  453. package/dist/ptcw-design/{p-a417df03.entry.js → p-7192afeb.entry.js} +1 -1
  454. package/dist/ptcw-design/{p-a42feab1.entry.js → p-736529b8.entry.js} +1 -1
  455. package/dist/ptcw-design/{p-84d3f4fa.entry.js → p-75247100.entry.js} +1 -1
  456. package/dist/ptcw-design/{p-0074d97c.entry.js → p-75b447c8.entry.js} +1 -1
  457. package/dist/ptcw-design/{p-85145672.entry.js → p-7e9e0d37.entry.js} +1 -1
  458. package/dist/ptcw-design/{p-df0aa310.entry.js → p-7ff45a5c.entry.js} +1 -1
  459. package/dist/ptcw-design/{p-6aba5f8f.entry.js → p-808544d7.entry.js} +1 -1
  460. package/dist/ptcw-design/{p-01387eb8.entry.js → p-813a2a19.entry.js} +1 -1
  461. package/dist/ptcw-design/{p-9817c40a.entry.js → p-82b05238.entry.js} +1 -1
  462. package/dist/ptcw-design/p-868a420c.entry.js +1 -0
  463. package/dist/ptcw-design/{p-77f5cf02.entry.js → p-8a1a1bfb.entry.js} +1 -1
  464. package/dist/ptcw-design/{p-cda3854b.entry.js → p-8a9d1f65.entry.js} +1 -1
  465. package/dist/ptcw-design/p-8ae8454b.entry.js +1 -0
  466. package/dist/ptcw-design/{p-515f4332.entry.js → p-968bbb76.entry.js} +1 -1
  467. package/dist/ptcw-design/{p-9e3b390e.entry.js → p-97384e6a.entry.js} +1 -1
  468. package/dist/ptcw-design/{p-ad401696.entry.js → p-97bf50a0.entry.js} +1 -1
  469. package/dist/ptcw-design/{p-ac63caae.entry.js → p-9ca64d6f.entry.js} +1 -1
  470. package/dist/ptcw-design/{p-eb65dacf.entry.js → p-9d477cbd.entry.js} +1 -1
  471. package/dist/ptcw-design/{p-fe85ac05.entry.js → p-9f014fd3.entry.js} +1 -1
  472. package/dist/ptcw-design/{p-9efd9a5b.entry.js → p-a42f8bf2.entry.js} +1 -1
  473. package/dist/ptcw-design/{p-3f368d6d.entry.js → p-a454efc5.entry.js} +1 -1
  474. package/dist/ptcw-design/{p-dc748f00.entry.js → p-a6c1acb8.entry.js} +1 -1
  475. package/dist/ptcw-design/{p-30feb059.entry.js → p-a9c8a262.entry.js} +1 -1
  476. package/dist/ptcw-design/{p-056b652a.entry.js → p-af7e6116.entry.js} +1 -1
  477. package/dist/ptcw-design/{p-aa1cd855.entry.js → p-af95ae7e.entry.js} +1 -1
  478. package/dist/ptcw-design/{p-6a5bc275.entry.js → p-b4602b1d.entry.js} +1 -1
  479. package/dist/ptcw-design/{p-e8ba44ba.entry.js → p-b4f034ff.entry.js} +1 -1
  480. package/dist/ptcw-design/{p-5c47361e.entry.js → p-b9b30024.entry.js} +1 -1
  481. package/dist/ptcw-design/{p-31abde54.entry.js → p-b9f30840.entry.js} +1 -1
  482. package/dist/ptcw-design/{p-f97fc3fd.entry.js → p-bae3e7df.entry.js} +1 -1
  483. package/dist/ptcw-design/{p-26f31be6.entry.js → p-bb3cc915.entry.js} +1 -1
  484. package/dist/ptcw-design/{p-ee20170a.entry.js → p-bbc6cb14.entry.js} +1 -1
  485. package/dist/ptcw-design/p-bd0d0fce.entry.js +1 -0
  486. package/dist/ptcw-design/{p-0f3f83d3.entry.js → p-bd3b4619.entry.js} +1 -1
  487. package/dist/ptcw-design/{p-7ea29d34.entry.js → p-bdfc9555.entry.js} +1 -1
  488. package/dist/ptcw-design/{p-e8d9a19f.entry.js → p-c07609da.entry.js} +1 -1
  489. package/dist/ptcw-design/{p-ad234f99.entry.js → p-c1025cf9.entry.js} +1 -1
  490. package/dist/ptcw-design/{p-63f811ec.entry.js → p-c20bea66.entry.js} +1 -1
  491. package/dist/ptcw-design/{p-cef9cf82.entry.js → p-ce9fbcda.entry.js} +1 -1
  492. package/dist/ptcw-design/{p-2254e000.entry.js → p-d260581f.entry.js} +1 -1
  493. package/dist/ptcw-design/{p-31c33a18.entry.js → p-d67d6edd.entry.js} +1 -1
  494. package/dist/ptcw-design/{p-c4e1b619.entry.js → p-d9c6c833.entry.js} +1 -1
  495. package/dist/ptcw-design/{p-6b1d18b1.entry.js → p-dbb7b2a3.entry.js} +1 -1
  496. package/dist/ptcw-design/{p-777fb495.entry.js → p-dda9d065.entry.js} +1 -1
  497. package/dist/ptcw-design/p-e1b02d51.entry.js +1 -0
  498. package/dist/ptcw-design/{p-f6dfc55e.entry.js → p-e24f0892.entry.js} +1 -1
  499. package/dist/ptcw-design/p-e428e6d9.js +1 -0
  500. package/dist/ptcw-design/{p-2ba6bbbe.entry.js → p-e54969bf.entry.js} +1 -1
  501. package/dist/ptcw-design/{p-e312626a.entry.js → p-e9635f81.entry.js} +1 -1
  502. package/dist/ptcw-design/{p-99457ebb.entry.js → p-ec0873bd.entry.js} +1 -1
  503. package/dist/ptcw-design/{p-58edb316.entry.js → p-f13fc300.entry.js} +1 -1
  504. package/dist/ptcw-design/{p-2fed7a6f.entry.js → p-f1b1f381.entry.js} +1 -1
  505. package/dist/ptcw-design/{p-ef79c1f5.entry.js → p-f309c995.entry.js} +1 -1
  506. package/dist/ptcw-design/{p-cf7dc448.entry.js → p-f31d817a.entry.js} +1 -1
  507. package/dist/ptcw-design/{p-6a4bb3e8.entry.js → p-f4b66bf5.entry.js} +1 -1
  508. package/dist/ptcw-design/{p-10254985.entry.js → p-f5d52d72.entry.js} +1 -1
  509. package/dist/ptcw-design/{p-e1dd94a9.entry.js → p-f8b1f507.entry.js} +1 -1
  510. package/dist/ptcw-design/{p-507ab0b3.entry.js → p-fac62124.entry.js} +1 -1
  511. package/dist/ptcw-design/{p-3b8731e6.entry.js → p-fad09b46.entry.js} +1 -1
  512. package/dist/ptcw-design/ptcw-design.css +1 -1
  513. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  514. package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
  515. package/dist/types/components/dynamic-box-bundle/dynamic-box-bundle.d.ts +10 -10
  516. package/dist/types/components/icon-asset/icon-asset.d.ts +40 -40
  517. package/dist/types/components/innovator-toggle-container/innovator-toggle-container.d.ts +17 -17
  518. package/dist/types/components/list-item/list-item.d.ts +16 -16
  519. package/dist/types/components/max-width-container/max-width-container.d.ts +16 -16
  520. package/dist/types/components/my-component/my-component.d.ts +16 -16
  521. package/dist/types/components/organism-bundles/author-listing-example/author-listing-example.d.ts +12 -12
  522. package/dist/types/components/organism-bundles/bundle-example/bundle-example.d.ts +10 -10
  523. package/dist/types/components/organism-bundles/bundle-featured-list/featured-list.d.ts +12 -12
  524. package/dist/types/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.d.ts +5 -5
  525. package/dist/types/components/organism-bundles/sequential-bundle/sequential-bundle.d.ts +12 -12
  526. package/dist/types/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.d.ts +16 -16
  527. package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +63 -63
  528. package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +17 -17
  529. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +59 -59
  530. package/dist/types/components/ptc-back-to-top/ptc-back-to-top.d.ts +9 -9
  531. package/dist/types/components/ptc-background-video/ptc-background-video.d.ts +45 -45
  532. package/dist/types/components/ptc-bio-card/ptc-bio-card.d.ts +27 -27
  533. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +20 -20
  534. package/dist/types/components/ptc-button/ptc-button.d.ts +64 -64
  535. package/dist/types/components/ptc-card/ptc-card.d.ts +83 -83
  536. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
  537. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +19 -19
  538. package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +28 -28
  539. package/dist/types/components/ptc-case-studies-slider/ptc-case-studies-slider.d.ts +14 -14
  540. package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +14 -14
  541. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +60 -60
  542. package/dist/types/components/ptc-container/ptc-container.d.ts +13 -13
  543. package/dist/types/components/ptc-date/ptc-date.d.ts +46 -46
  544. package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +19 -19
  545. package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +23 -23
  546. package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +15 -15
  547. package/dist/types/components/ptc-featured-list/fl-tab-content/fl-tab-content.d.ts +5 -5
  548. package/dist/types/components/ptc-featured-list/fl-tab-header/fl-tab-header.d.ts +10 -10
  549. package/dist/types/components/ptc-featured-list/fl-tab-image/fl-tab-image.d.ts +5 -5
  550. package/dist/types/components/ptc-featured-list/ptc-featured-list.d.ts +12 -12
  551. package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +17 -17
  552. package/dist/types/components/ptc-hero/ptc-hero.d.ts +16 -16
  553. package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +6 -6
  554. package/dist/types/components/ptc-icon-component/ptc-icon-component.d.ts +17 -17
  555. package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +21 -21
  556. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +12 -12
  557. package/dist/types/components/ptc-image-download-strip/ptc-image-download-strip.d.ts +9 -9
  558. package/dist/types/components/ptc-img/ptc-img.d.ts +55 -55
  559. package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +24 -24
  560. package/dist/types/components/ptc-link/ptc-link.d.ts +40 -40
  561. package/dist/types/components/ptc-list/ptc-list.d.ts +8 -8
  562. package/dist/types/components/ptc-media-card/ptc-media-card.d.ts +52 -52
  563. package/dist/types/components/ptc-minimized-nav/ptc-minimized-nav.d.ts +7 -7
  564. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +36 -36
  565. package/dist/types/components/ptc-modal/ptc-modal.d.ts +71 -71
  566. package/dist/types/components/ptc-nav-card/ptc-nav-card.d.ts +46 -46
  567. package/dist/types/components/ptc-nav-pills/ptc-nav-pills.d.ts +3 -3
  568. package/dist/types/components/ptc-news/ptc-news.d.ts +36 -36
  569. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +21 -21
  570. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +40 -40
  571. package/dist/types/components/ptc-para/ptc-para.d.ts +47 -47
  572. package/dist/types/components/ptc-picture/ptc-picture.d.ts +102 -102
  573. package/dist/types/components/ptc-podcast-card/ptc-podcast-card.d.ts +15 -15
  574. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +9 -9
  575. package/dist/types/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.d.ts +27 -27
  576. package/dist/types/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.d.ts +21 -21
  577. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +7 -7
  578. package/dist/types/components/ptc-pricing-table/ptc-pricing-table.d.ts +109 -109
  579. package/dist/types/components/ptc-pricing-tabs/ptc-pricing-tabs.d.ts +52 -52
  580. package/dist/types/components/ptc-product-card/ptc-product-card.d.ts +37 -37
  581. package/dist/types/components/ptc-product-category/ptc-product-category.d.ts +5 -5
  582. package/dist/types/components/ptc-product-dropdown/ptc-product-dropdown.d.ts +18 -18
  583. package/dist/types/components/ptc-product-highlight-card/ptc-product-highlight-card.d.ts +23 -23
  584. package/dist/types/components/ptc-product-list/ptc-product-list.d.ts +18 -18
  585. package/dist/types/components/ptc-product-sidebar/ptc-product-sidebar.d.ts +31 -31
  586. package/dist/types/components/ptc-progress-bar/ptc-progress-bar.d.ts +5 -5
  587. package/dist/types/components/ptc-quiz/ptc-quiz.d.ts +21 -21
  588. package/dist/types/components/ptc-quote/ptc-quote.d.ts +29 -29
  589. package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +57 -57
  590. package/dist/types/components/ptc-readmore-char/ptc-readmore-char.d.ts +30 -30
  591. package/dist/types/components/ptc-related-card-rail/ptc-related-card-rail.d.ts +30 -30
  592. package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
  593. package/dist/types/components/ptc-search-field/ptc-search-field.d.ts +23 -23
  594. package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
  595. package/dist/types/components/ptc-skeleton/ptc-skeleton.d.ts +10 -10
  596. package/dist/types/components/ptc-slit-card/ptc-slit-card.d.ts +36 -36
  597. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +37 -37
  598. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
  599. package/dist/types/components/ptc-span/ptc-span.d.ts +20 -20
  600. package/dist/types/components/ptc-square-card/ptc-square-card.d.ts +11 -11
  601. package/dist/types/components/ptc-sticky-icons/ptc-sticky-icons.d.ts +7 -7
  602. package/dist/types/components/ptc-sticky-section/ptc-sticky-section.d.ts +9 -9
  603. package/dist/types/components/ptc-sticky-title/ptc-sticky-title.d.ts +8 -8
  604. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +20 -20
  605. package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +21 -21
  606. package/dist/types/components/ptc-tabs/ptc-tab.d.ts +9 -9
  607. package/dist/types/components/ptc-tabs/ptc-tabs.d.ts +10 -10
  608. package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +38 -38
  609. package/dist/types/components/ptc-title/ptc-title.d.ts +54 -54
  610. package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +59 -59
  611. package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +9 -9
  612. package/dist/types/components/ptc-value-prop-card/ptc-value-prop-card.d.ts +23 -23
  613. package/dist/types/components/subnav/ptc-nav-link/ptc-nav-link.d.ts +21 -21
  614. package/dist/types/components/subnav/ptc-nav-slider/ptc-nav-slider.d.ts +11 -11
  615. package/dist/types/components/subnav/ptc-nav-submenu/ptc-nav-submenu.d.ts +23 -23
  616. package/dist/types/components/subnav/ptc-subnav/ptc-subnav.d.ts +8 -8
  617. package/dist/types/components/subnav/ptc-subnav-card/ptc-subnav-card.d.ts +27 -27
  618. package/dist/types/components/tab-content/tab-content.d.ts +12 -12
  619. package/dist/types/components/tab-header/tab-header.d.ts +22 -22
  620. package/dist/types/components.d.ts +134 -134
  621. package/dist/types/global.d.ts +1072 -1072
  622. package/dist/types/index.d.ts +1 -1
  623. package/dist/types/stencil-public-runtime.d.ts +11 -0
  624. package/dist/types/utils/component.d.ts +1 -1
  625. package/dist/types/utils/interfaces.d.ts +31 -31
  626. package/dist/types/utils/utils.d.ts +5 -5
  627. package/package.json +82 -82
  628. package/readme.md +18 -18
  629. package/dist/ptcw-design/p-1c743207.entry.js +0 -1
  630. package/dist/ptcw-design/p-553d840a.js +0 -1
  631. package/dist/ptcw-design/p-704456f9.entry.js +0 -1
  632. package/dist/ptcw-design/p-739507a0.entry.js +0 -1
  633. package/dist/ptcw-design/p-be8db2b7.entry.js +0 -1
  634. package/dist/ptcw-design/p-ca9b1705.entry.js +0 -1
  635. package/dist/ptcw-design/p-d100f115.js +0 -1
  636. /package/dist/ptcw-design/{p-711bcdad.js → p-240733ce.js} +0 -0
  637. /package/dist/ptcw-design/{p-ce0e4c5c.js → p-dc4da4a5.js} +0 -0
  638. /package/dist/ptcw-design/{p-36665caa.js → p-ea875d9e.js} +0 -0
@@ -2,519 +2,519 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1662de74.js');
5
+ const index = require('./index-dddc2aea.js');
6
6
 
7
7
  const ptcPricingTableCss = ":host{display:block;position:relative}:host #vertical-scroll-content-clipper{position:fixed;top:0;left:0;right:0;margin:auto;background-color:white;z-index:25;display:none}:host .last-column-tooltip .tooltip{right:-48px}:host #sticky-header-container{position:fixed;z-index:20;background-color:white;overflow-x:scroll;overflow-y:visible;-ms-overflow-style:none;scrollbar-width:none;visibility:hidden;border-top-left-radius:var(--ptc-border-radius-standard);border-top-right-radius:var(--ptc-border-radius-standard);box-shadow:var(--ptc-shadow-x-large)}:host #sticky-header-container::-webkit-scrollbar{display:none}:host #sticky-header-container th{background:var(--color-gray-10);color:white;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);min-width:168px;max-width:180px;vertical-align:middle}:host #sticky-header-container th:not(:last-child){border-right:1px solid var(--color-gray-07)}:host #sticky-header-container th.desktop-header-first-cell{display:none}:host #sticky-header-container th.border-box-header-cell{box-sizing:border-box}:host #sticky-header-container th.table-filler-header-cell{width:99%;box-sizing:content-box}:host .scroll-buttons-container{position:absolute;top:0;right:0;display:flex;align-items:center;box-sizing:border-box}:host .scroll-buttons-container .scroll-buttons{z-index:15;position:absolute;display:inline-block;width:36px;width:fit-content;height:36px;background-color:white;box-shadow:var(--ptc-shadow-x-medium);display:flex;justify-content:center;align-items:center}:host .scroll-buttons-container .scroll-buttons icon-asset{z-index:15;display:flex;justify-content:center;align-items:center;width:36px;height:100%}:host .scroll-buttons-container .scroll-buttons.prev-button{z-index:15;left:0;border-radius:0px var(--ptc-element-spacing-01) var(--ptc-element-spacing-01) 0px}:host .scroll-buttons-container .scroll-buttons.prev-button ptc-para{z-index:15;margin-right:var(--ptc-element-spacing-04);display:none}:host .scroll-buttons-container .scroll-buttons.next-button{z-index:15;right:0;border-radius:var(--ptc-element-spacing-01) 0px 0px var(--ptc-element-spacing-01)}:host .scroll-buttons-container .scroll-buttons.next-button ptc-para{z-index:15;margin-left:var(--ptc-element-spacing-04);display:none}:host #table-container{border-radius:var(--ptc-border-radius-standard);box-shadow:var(--ptc-shadow-x-small);overflow-x:scroll;position:relative}:host #table-container #horizontal-scroll-box-shadow{display:none}:host #table-container table{border-spacing:0}:host #table-container th{background:var(--color-gray-10);color:white;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06)}:host #table-container th:not(:last-child){border-right:1px solid var(--color-gray-07)}:host #table-container th.desktop-header-first-cell{display:none}:host #table-container th.table-filler-header-cell{width:99%;display:none}:host #table-container tbody.mobile-table-body{display:contents;width:100%}:host #table-container tbody.desktop-table-body{display:none}:host #table-container tr{background-color:white;width:100%;overflow-x:scroll}:host #table-container tr:nth-child(odd){background-color:var(--color-gray-01)}:host #table-container tr:nth-child(even){background-color:white}:host #table-container tr.table-button-row{background-color:white}:host #table-container tr.table-button-row td{border-top:1px solid var(--color-gray-02)}:host #table-container tr.table-button-row td ptc-tooltip .text-ellipsis{font-size:var(--ptc-font-size-x-small)}:host #table-container td{text-align:center;min-width:168px;max-width:180px;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-06)}:host #table-container td:not(:last-child){border-right:1px solid var(--color-gray-02)}:host #table-container td.table-filler-body-cell{width:99%;display:none}@media only screen and (min-width: 768px){:host .table-descriptor{width:768px;margin:auto}}@media only screen and (min-width: 992px){:host #sticky-header-container{box-shadow:none}:host #sticky-header-container th{max-width:275px}:host #sticky-header-container th.desktop-header-first-cell{display:table-cell;min-width:275px;box-sizing:content-box}:host #sticky-header-container th:first-of-type{position:-webkit-sticky;position:sticky;left:0;z-index:5}:host #sticky-header-container th.table-filler-header-cell{width:99%;display:none;max-width:fit-content;box-sizing:border-box}:host #table-container #horizontal-scroll-box-shadow{display:block;position:absolute;top:0;left:0;height:100%;width:var(--ptc-element-spacing-06);background:linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 100%);z-index:10;visibility:hidden}:host #table-container th{max-width:275px}:host #table-container th.desktop-header-first-cell{display:table-cell;min-width:275px}:host #table-container th:first-of-type{position:-webkit-sticky;position:sticky;left:0;z-index:5}:host #table-container th.table-filler-header-cell{width:99%;display:none}:host #table-container tbody.mobile-table-body{display:none}:host #table-container tbody.desktop-table-body{display:contents;width:100%}:host #table-container tr:nth-child(odd){background-color:white}:host #table-container tr:nth-child(even){background-color:var(--color-gray-01)}:host #table-container tr.table-button-row{background-color:white}:host #table-container tr.table-button-row td{border-top:1px solid var(--color-gray-02)}:host #table-container td{max-width:275px}:host #table-container td:first-of-type{position:-webkit-sticky;position:sticky;left:0;z-index:5;background:inherit;min-width:275px}:host #table-container td:not(:first-child){text-align:center}:host #table-container td.first-column-cell.scroll-shadow{box-shadow:var(--ptc-shadow-x-large)}:host #table-container td.first-column-cell.no-shadow{box-shadow:none}:host #table-container td.table-filler-body-cell{width:99%;display:none}:host #table-container td.table-filler-button-cell{width:99%;display:none}}";
8
8
 
9
- const PtcPricingTable = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.scrollTopClipperHeightOptions = {
13
- withSubNav: {
14
- desktop: "104px",
15
- mobile: "80px"
16
- },
17
- withoutSubNav: {
18
- desktop: "40px",
19
- mobile: "24px"
20
- }
21
- };
22
- this.handleHorizontalScroll = () => {
23
- var _a, _b, _c, _d, _e, _f, _g;
24
- this.targetElements = this.getTargetElements();
25
- this.targetElements["sticky-header-container"].scrollLeft = (_a = this.targetElements["table-container"]) === null || _a === void 0 ? void 0 : _a.scrollLeft;
26
- // Scroll the button containers in sync with the table's scrolling
27
- if (((_b = this.targetElements["table-container"]) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().right) <= ((_c = this.targetElements["table"]) === null || _c === void 0 ? void 0 : _c.getBoundingClientRect().right)) {
28
- this.targetElements["normal-scroll-buttons-container"].style.left = `${((_d = this.targetElements["table-container"]) === null || _d === void 0 ? void 0 : _d.scrollLeft) + this.desktopHeaderFirstCellWidth}px`;
29
- this.targetElements["sticky-scroll-buttons-container"].style.left = `${((_e = this.targetElements["table-container"]) === null || _e === void 0 ? void 0 : _e.scrollLeft) + this.desktopHeaderFirstCellWidth}px`;
30
- }
31
- // Scroll the mobile row headers along with the table in the mobile view
32
- if (this.targetElements["mobile-table-row-headers"].length > 0) {
33
- for (let i = 0; i < this.dataRows; i++) {
34
- this.targetElements["mobile-table-row-headers"][i].style.paddingLeft = `${(_f = this.targetElements["table-container"]) === null || _f === void 0 ? void 0 : _f.scrollLeft}px`;
35
- }
36
- }
37
- // Managing the visibility of the next scroll buttons in both the sticky and normal headers, depending on whether the table can scroll further to the right or not
38
- if (Math.trunc(this.targetElements["table-container"].getBoundingClientRect().right) >= Math.trunc(this.targetElements["table"].getBoundingClientRect().right)) {
39
- this.targetElements["normal-next-scroll-button"].style.visibility = 'hidden';
40
- if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
41
- this.targetElements["sticky-next-scroll-button"].style.visibility = 'hidden';
42
- }
43
- }
44
- else {
45
- this.targetElements["normal-next-scroll-button"].style.visibility = 'visible';
46
- if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
47
- this.targetElements["sticky-next-scroll-button"].style.visibility = 'visible';
48
- }
49
- }
50
- // Adjusting the visibility of the previous scroll buttons in both the sticky and normal headers, as well as the box shadow in desktop view, depending on whether the table can scroll further to the left or not
51
- if (this.targetElements["table-container"].scrollLeft === 0) {
52
- this.targetElements["horizontal-scroll-box-shadow"].style.left = '0';
53
- this.targetElements["horizontal-scroll-box-shadow"].style.visibility = 'hidden';
54
- this.targetElements["normal-previous-scroll-button"].style.visibility = 'hidden';
55
- if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
56
- this.targetElements["sticky-previous-scroll-button"].style.visibility = 'hidden';
57
- }
58
- }
59
- else {
60
- this.targetElements["horizontal-scroll-box-shadow"].style.left = `${((_g = this.targetElements["table-container"]) === null || _g === void 0 ? void 0 : _g.scrollLeft) + this.desktopHeaderFirstCellWidth}px`;
61
- this.targetElements["horizontal-scroll-box-shadow"].style.visibility = 'visible';
62
- this.targetElements["normal-previous-scroll-button"].style.visibility = 'visible';
63
- if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
64
- this.targetElements["sticky-previous-scroll-button"].style.visibility = 'visible';
65
- }
66
- }
67
- };
68
- this.handleVerticalScroll = () => {
69
- this.targetElements = this.getTargetElements();
70
- const scrollTopPosition = window.scrollY || document.documentElement.scrollTop;
71
- if (scrollTopPosition < this.lastScrollTop) {
72
- // Scrolling Up
73
- if (this.targetElements["table-container"].getBoundingClientRect().bottom > 0) {
74
- if (this.targetElements["sticky-header-container"].getBoundingClientRect().top < 0) {
75
- // Scroll the sticky header back into view along with the table
76
- this.targetElements["vertical-scroll-content-clipper"].style.display = 'block';
77
- this.targetElements["sticky-scroll-buttons-container"].style.opacity = '1';
78
- this.targetElements["sticky-header-container"].style.visibility = 'visible';
79
- this.targetElements["sticky-header-container"].style.top = `${this.targetElements["table-container"].getBoundingClientRect().bottom - this.targetElements["sticky-header-container"].getBoundingClientRect().height}px`;
80
- }
81
- else {
82
- // Make the sticky header fixed once it is entirely within the window
83
- this.targetElements["sticky-header-container"].style.top = this.scrollTopClipperHeight;
84
- }
85
- }
86
- if (this.targetElements["table-header"].getBoundingClientRect().top > this.targetElements["sticky-header-container"].getBoundingClientRect().top) {
87
- // Conceal the sticky header and reveal the normal header
88
- this.targetElements["sticky-scroll-buttons-container"].style.opacity = '0';
89
- this.targetElements["sticky-header-container"].style.visibility = 'hidden';
90
- this.targetElements["table-header"].style.visibility = 'visible';
91
- this.targetElements["vertical-scroll-content-clipper"].style.display = 'none';
92
- }
93
- }
94
- else if (scrollTopPosition > this.lastScrollTop) {
95
- // Scrolling down
96
- if (this.targetElements["sticky-header-container"].getBoundingClientRect().bottom <= 0) {
97
- // Reset and hide the sticky header when it scrolls out of the top of the window
98
- this.targetElements["sticky-header-container"].style.top = `${-this.targetElements["sticky-header-container"].getBoundingClientRect().height}px`;
99
- this.targetElements["sticky-scroll-buttons-container"].style.opacity = '0';
100
- this.targetElements["sticky-header-container"].style.visibility = 'hidden';
101
- this.targetElements["vertical-scroll-content-clipper"].style.display = 'none';
102
- }
103
- else if (this.targetElements["table-header"].getBoundingClientRect().top <= this.targetElements["sticky-header-container"].getBoundingClientRect().top) {
104
- if (this.targetElements["table-container"].getBoundingClientRect().bottom <= this.targetElements["sticky-header-container"].getBoundingClientRect().bottom) {
105
- // Scroll the sticky header out of the window along with the table
106
- this.targetElements["sticky-header-container"].style.top = `${(this.targetElements["table-container"].getBoundingClientRect().bottom - this.targetElements["sticky-header-container"].clientHeight)}px`;
107
- }
108
- else {
109
- // Conceal the normal header and reveal the sticky header
110
- this.targetElements["vertical-scroll-content-clipper"].style.display = 'block';
111
- this.targetElements["sticky-scroll-buttons-container"].style.opacity = '1';
112
- this.targetElements["sticky-header-container"].style.visibility = 'visible';
113
- this.targetElements["table-header"].style.visibility = 'hidden';
114
- this.targetElements["sticky-previous-scroll-button"].style.visibility = this.targetElements["normal-previous-scroll-button"].style.visibility;
115
- this.targetElements["sticky-next-scroll-button"].style.visibility = this.targetElements["normal-next-scroll-button"].style.visibility;
116
- if (getComputedStyle(this.targetElements["sticky-next-scroll-button"]).visibility === "visible") {
117
- this.targetElements["table-filler-sticky-header-cell"].style.boxSizing = "content-box";
118
- }
119
- }
120
- }
121
- }
122
- this.lastScrollTop = scrollTopPosition <= 0 ? 0 : scrollTopPosition;
123
- };
124
- this.handleResize = () => {
125
- this.targetElements["table-container"].scrollLeft = 0;
126
- this.handleHorizontalScroll();
127
- this.configureStickyHeader();
128
- this.configureScrollButtonsContainers();
129
- this.configureTableFillerCells();
130
- };
131
- this.pageWithSubnav = false;
132
- this.tableTitle = undefined;
133
- this.tableSubTitle = "";
134
- this.tableDescription = "";
135
- this.dataRows = undefined;
136
- this.dataCols = undefined;
137
- this.disclaimerCount = 0;
138
- this.scrollTopClipperHeight = undefined;
139
- this.desktopHeaderFirstCellWidth = 0;
140
- this.targetElements = {};
141
- this.columnHeaderLinks = [];
142
- this.lastScrollTop = undefined;
143
- this.scrollTimeInterval = 35;
144
- this.scrollAmount = 5;
145
- this.scrollLimit = 50;
146
- this.mobileHeaderRowColSpan = this.dataCols;
147
- this.showCtaButtonsRow = undefined;
148
- this.ctaButtons = [];
149
- this.disclaimers = [];
150
- }
151
- // Provides an object containing frequently accessed HTML elements for table-related operations
152
- getTargetElements() {
153
- let pricingTable = this.el.shadowRoot;
154
- let verticalScrollContentClipper = pricingTable === null || pricingTable === void 0 ? void 0 : pricingTable.querySelector('#vertical-scroll-content-clipper');
155
- let tableContainer = pricingTable === null || pricingTable === void 0 ? void 0 : pricingTable.querySelector('#table-container');
156
- let table = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('table');
157
- let tableHeader = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('table thead');
158
- let desktopHeaderFirstCell = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('.desktop-header-first-cell');
159
- let tableHeaderCells = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelectorAll('th');
160
- let desktopTableBody = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('.desktop-table-body');
161
- let mobileTableBody = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('.mobile-table-body');
162
- let stickyHeaderContainer = pricingTable === null || pricingTable === void 0 ? void 0 : pricingTable.querySelector('#sticky-header-container');
163
- let stickyHeaderCells = stickyHeaderContainer === null || stickyHeaderContainer === void 0 ? void 0 : stickyHeaderContainer.querySelectorAll('th');
164
- let verticalScrollBoxShadow = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector("#vertical-scroll-box-shadow");
165
- let tableFillerStickyHeaderCell = stickyHeaderContainer === null || stickyHeaderContainer === void 0 ? void 0 : stickyHeaderContainer.querySelector('.table-filler-header-cell');
166
- let tableFillerHeaderCell = tableHeader === null || tableHeader === void 0 ? void 0 : tableHeader.querySelector('.table-filler-header-cell');
167
- let tableFillerBodyCells = table === null || table === void 0 ? void 0 : table.querySelectorAll('.table-filler-body-cell');
168
- let tableFillerButtonCell = table === null || table === void 0 ? void 0 : table.querySelector('.table-filler-button-cell');
169
- let mobileTableRowHeaders = pricingTable === null || pricingTable === void 0 ? void 0 : pricingTable.querySelectorAll('.mobile-table-row-header');
170
- let normalScrollButtonsContainer = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('.scroll-buttons-container');
171
- let stickyScrollButtonsContainer = stickyHeaderContainer === null || stickyHeaderContainer === void 0 ? void 0 : stickyHeaderContainer.querySelector('.scroll-buttons-container');
172
- let normalPreviousScrollButton = normalScrollButtonsContainer === null || normalScrollButtonsContainer === void 0 ? void 0 : normalScrollButtonsContainer.querySelector('.prev-button');
173
- let normalPreviousScrollButtonText = normalPreviousScrollButton === null || normalPreviousScrollButton === void 0 ? void 0 : normalPreviousScrollButton.querySelector('ptc-para');
174
- let stickyPreviousScrollButton = stickyScrollButtonsContainer === null || stickyScrollButtonsContainer === void 0 ? void 0 : stickyScrollButtonsContainer.querySelector('.prev-button');
175
- let stickyPreviousScrollButtonText = stickyPreviousScrollButton === null || stickyPreviousScrollButton === void 0 ? void 0 : stickyPreviousScrollButton.querySelector('ptc-para');
176
- let normalNextScrollButton = normalScrollButtonsContainer === null || normalScrollButtonsContainer === void 0 ? void 0 : normalScrollButtonsContainer.querySelector('.next-button');
177
- let normalNextScrollButtonText = normalNextScrollButton === null || normalNextScrollButton === void 0 ? void 0 : normalNextScrollButton.querySelector('ptc-para');
178
- let stickyNextScrollButton = stickyScrollButtonsContainer === null || stickyScrollButtonsContainer === void 0 ? void 0 : stickyScrollButtonsContainer.querySelector('.next-button');
179
- let stickyNextScrollButtonText = stickyNextScrollButton === null || stickyNextScrollButton === void 0 ? void 0 : stickyNextScrollButton.querySelector('ptc-para');
180
- let horizontalScrollBoxShadow = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('#horizontal-scroll-box-shadow');
181
- let targetElements = {
182
- "vertical-scroll-content-clipper": verticalScrollContentClipper,
183
- "pricing-table": pricingTable,
184
- "table-container": tableContainer,
185
- "table": table,
186
- "table-header": tableHeader,
187
- "desktop-header-first-cell": desktopHeaderFirstCell,
188
- "table-header-cells": tableHeaderCells,
189
- "desktop-table-body": desktopTableBody,
190
- "mobile-table-body": mobileTableBody,
191
- "sticky-header-container": stickyHeaderContainer,
192
- "sticky-header-cells": stickyHeaderCells,
193
- "vertical-scroll-box-shadow": verticalScrollBoxShadow,
194
- "table-filler-sticky-header-cell": tableFillerStickyHeaderCell,
195
- "table-filler-header-cell": tableFillerHeaderCell,
196
- "table-filler-body-cells": tableFillerBodyCells,
197
- "table-filler-button-cell": tableFillerButtonCell,
198
- "mobile-table-row-headers": mobileTableRowHeaders,
199
- "normal-scroll-buttons-container": normalScrollButtonsContainer,
200
- "sticky-scroll-buttons-container": stickyScrollButtonsContainer,
201
- "normal-previous-scroll-button": normalPreviousScrollButton,
202
- "normal-previous-scroll-button-text": normalPreviousScrollButtonText,
203
- "sticky-previous-scroll-button": stickyPreviousScrollButton,
204
- "sticky-previous-scroll-button-text": stickyPreviousScrollButtonText,
205
- "normal-next-scroll-button": normalNextScrollButton,
206
- "normal-next-scroll-button-text": normalNextScrollButtonText,
207
- "sticky-next-scroll-button": stickyNextScrollButton,
208
- "sticky-next-scroll-button-text": stickyNextScrollButtonText,
209
- "horizontal-scroll-box-shadow": horizontalScrollBoxShadow,
210
- };
211
- return targetElements;
212
- }
213
- // Sets up the scroll buttons container for both the sticky and normal headers
214
- configureScrollButtonsContainers() {
215
- this.targetElements = this.getTargetElements();
216
- // Defines the dimensions
217
- this.targetElements["normal-scroll-buttons-container"].style.width = `${this.targetElements["table-container"].clientWidth}px`;
218
- this.targetElements["normal-scroll-buttons-container"].style.height = `${this.targetElements["table-header"].clientHeight}px`;
219
- this.targetElements["sticky-scroll-buttons-container"].style.width = `${this.targetElements["table-container"].clientWidth}px`;
220
- this.targetElements["sticky-scroll-buttons-container"].style.height = `${this.targetElements["table-header"].clientHeight}px`;
221
- // For desktop screens, scroll buttons are positioned after the first column of the table
222
- if (this.targetElements["desktop-header-first-cell"]) {
223
- this.targetElements["normal-scroll-buttons-container"].style.width = `${this.targetElements["normal-scroll-buttons-container"].getBoundingClientRect().width - this.desktopHeaderFirstCellWidth}px`;
224
- this.targetElements["sticky-scroll-buttons-container"].style.width = `${this.targetElements["sticky-scroll-buttons-container"].getBoundingClientRect().width - this.desktopHeaderFirstCellWidth}px`;
225
- }
226
- // Controlling the visibility of the previous scroll buttons, of the sticky and normal headers, based on whether table can scroll further to the left or not
227
- if (this.targetElements["table-container"].scrollLeft === 0) {
228
- this.targetElements["normal-previous-scroll-button"].style.visibility = 'hidden';
229
- if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
230
- this.targetElements["sticky-previous-scroll-button"].style.visibility = 'hidden';
231
- }
232
- }
233
- else {
234
- this.targetElements["normal-previous-scroll-button"].style.visibility = 'visible';
235
- if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
236
- this.targetElements["sticky-previous-scroll-button"].style.visibility = 'visible';
237
- }
238
- }
239
- // Managing the visibility of the next scroll buttons in both the sticky and normal headers, depending on whether the table can be scrolled further to the right or not
240
- if (this.targetElements["table-container"].getBoundingClientRect().width >= this.targetElements["table"].getBoundingClientRect().width) {
241
- this.targetElements["normal-next-scroll-button"].style.visibility = 'hidden';
242
- if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
243
- this.targetElements["sticky-next-scroll-button"].style.visibility = 'hidden';
244
- }
245
- }
246
- else {
247
- this.targetElements["normal-next-scroll-button"].style.visibility = 'visible';
248
- if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
249
- this.targetElements["sticky-next-scroll-button"].style.visibility = 'visible';
250
- }
251
- }
252
- }
253
- // Configures the sticky header based on the dimensions of the table header
254
- configureStickyHeader() {
255
- var _a, _b, _c, _d, _e, _f;
256
- const targetElements = this.getTargetElements();
257
- // Expanding the content clipper by an additional 10px on each side to accommodate the table's box-shadow
258
- targetElements["vertical-scroll-content-clipper"].style.width = `${targetElements["table-container"].clientWidth + 20}px`;
259
- // Aligns the background color of the element with the body's background color
260
- const bodyBackgroundColor = window.getComputedStyle(document.body, null).getPropertyValue('background-color');
261
- if (bodyBackgroundColor === ("rgba(0, 0, 0, 0)" )) {
262
- targetElements["vertical-scroll-content-clipper"].style.backgroundColor = "white";
263
- }
264
- else {
265
- targetElements["vertical-scroll-content-clipper"].style.backgroundColor = bodyBackgroundColor;
266
- }
267
- // Establishing the width of the sticky header to be in line with the table's width
268
- targetElements["sticky-header-container"].style.width = `${targetElements["table-container"].clientWidth}px`;
269
- // Adjusts the table's sticky behavior, making it adhere at varying positions below the top, contingent on factors like the device type (mobile or desktop) and the presence of a subnav in the page
270
- if (this.pageWithSubnav) {
271
- if (window.innerWidth >= 1200) {
272
- this.scrollTopClipperHeight = this.scrollTopClipperHeightOptions.withSubNav.desktop;
273
- }
274
- else {
275
- this.scrollTopClipperHeight = this.scrollTopClipperHeightOptions.withSubNav.mobile;
276
- }
277
- }
278
- else {
279
- if (window.innerWidth >= 1200) {
280
- this.scrollTopClipperHeight = this.scrollTopClipperHeightOptions.withoutSubNav.desktop;
281
- }
282
- else {
283
- this.scrollTopClipperHeight = this.scrollTopClipperHeightOptions.withoutSubNav.mobile;
284
- }
285
- }
286
- targetElements["vertical-scroll-content-clipper"].style.height = this.scrollTopClipperHeight;
287
- targetElements["sticky-header-container"].style.top = this.scrollTopClipperHeight;
288
- // Align the widths of sticky header cells with those of the normal header cells
289
- for (let i = 0; i < targetElements["table-header-cells"].length; i++) {
290
- targetElements["sticky-header-cells"][i].style.width = `${targetElements["table-header-cells"][i].getBoundingClientRect().width}px`;
291
- if (targetElements["table-header-cells"][i].classList.contains('desktop-header-first-cell')) {
292
- this.desktopHeaderFirstCellWidth = targetElements["table-header-cells"][i].getBoundingClientRect().width;
293
- }
294
- }
295
- // Box-sizing
296
- if (targetElements["table"].clientWidth <= targetElements["table-container"].clientWidth) {
297
- if (targetElements["desktop-table-body"]) {
298
- for (let i = 0; i < targetElements["sticky-header-cells"].length; i++) {
299
- (_b = (_a = targetElements["sticky-header-cells"][i]) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.add('border-box-header-cell');
300
- }
301
- }
302
- }
303
- else {
304
- for (let i = 0; i < targetElements["sticky-header-cells"].length; i++) {
305
- if ((_d = (_c = targetElements["sticky-header-cells"][i]) === null || _c === void 0 ? void 0 : _c.classList) === null || _d === void 0 ? void 0 : _d.contains('border-box-header-cell')) {
306
- (_f = (_e = targetElements["sticky-header-cells"][i]) === null || _e === void 0 ? void 0 : _e.classList) === null || _f === void 0 ? void 0 : _f.remove('border-box-header-cell');
307
- }
308
- }
309
- }
310
- }
311
- configureTableFillerCells() {
312
- var _a, _b, _c, _d;
313
- this.targetElements = this.getTargetElements();
314
- this.targetElements["table-filler-sticky-header-cell"].style.width = this.targetElements["table-filler-header-cell"].getBoundingClientRect().width;
315
- if (this.targetElements['table'].getBoundingClientRect().width < this.targetElements['table-container'].getBoundingClientRect().width) {
316
- // If the table is smaller than the container, insert fillers
317
- this.targetElements["table-filler-sticky-header-cell"].style.display = 'table-cell';
318
- this.targetElements["table-filler-header-cell"].style.display = 'table-cell';
319
- for (let i = 0; i < this.dataRows; i++) {
320
- this.targetElements["table-filler-body-cells"][i].style.display = 'table-cell';
321
- }
322
- if (this.targetElements["table-filler-button-cell"]) {
323
- this.targetElements["table-filler-button-cell"].style.display = 'table-cell';
324
- }
325
- this.mobileHeaderRowColSpan = this.dataCols + 1;
326
- }
327
- else {
328
- // If the table is equal to or larger than the container, remove fillers
329
- this.targetElements["table-filler-sticky-header-cell"].style.width = '99%';
330
- if (getComputedStyle(this.targetElements["sticky-next-scroll-button"]).visibility === 'hidden') {
331
- for (let i = 0; i < this.targetElements["sticky-header-cells"].length + 1; i++) {
332
- if ((_b = (_a = this.targetElements["sticky-header-cells"][i]) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.contains('border-box-header-cell')) {
333
- (_d = (_c = this.targetElements["sticky-header-cells"][i]) === null || _c === void 0 ? void 0 : _c.classList) === null || _d === void 0 ? void 0 : _d.remove('border-box-header-cell');
334
- }
335
- }
336
- }
337
- }
338
- }
339
- handleStickyHeaderHorizontalScroll() {
340
- var _a;
341
- this.targetElements["table-container"].scrollLeft = (_a = this.targetElements["sticky-header-container"]) === null || _a === void 0 ? void 0 : _a.scrollLeft;
342
- }
343
- handleScrollForwardHover() {
344
- if (this.targetElements["normal-next-scroll-button"].getAttribute("data-clicked") !== "true") {
345
- document.body.style.cursor = 'pointer';
346
- this.targetElements["normal-next-scroll-button-text"].style.display = "block";
347
- this.targetElements["sticky-next-scroll-button-text"].style.display = "block";
348
- }
349
- }
350
- handleScrollForwardHoverOut() {
351
- if (this.targetElements["normal-next-scroll-button"].getAttribute("data-clicked") !== "true") {
352
- document.body.style.cursor = 'auto';
353
- this.targetElements["normal-next-scroll-button-text"].style.display = "none";
354
- this.targetElements["sticky-next-scroll-button-text"].style.display = "none";
355
- }
356
- }
357
- handleScrollForward() {
358
- this.targetElements = this.getTargetElements();
359
- // Display the "See more" text when clicked
360
- document.body.style.cursor = 'pointer';
361
- this.targetElements["normal-next-scroll-button"].setAttribute("data-clicked", "true");
362
- this.targetElements["normal-next-scroll-button-text"].style.display = "block";
363
- this.targetElements["sticky-next-scroll-button-text"].style.display = "block";
364
- let scrollAdded = 0;
365
- let intervalId = setInterval(() => {
366
- scrollAdded += this.scrollAmount;
367
- let tableContainerRight = this.targetElements["table-container"].getBoundingClientRect().right;
368
- let tableRight = this.targetElements["table"].getBoundingClientRect().right;
369
- if ((scrollAdded == this.scrollLimit) || (tableContainerRight >= tableRight)) {
370
- clearInterval(intervalId);
371
- this.targetElements["normal-next-scroll-button"].setAttribute("data-clicked", "false");
372
- // Remove the "See more" text if the mouse is not hovering over the button after scrolling
373
- if (!this.targetElements["normal-next-scroll-button"].matches(':hover') && !this.targetElements["sticky-next-scroll-button"].matches(':hover')) {
374
- document.body.style.cursor = 'auto';
375
- this.targetElements["normal-next-scroll-button-text"].style.display = "none";
376
- this.targetElements["sticky-next-scroll-button-text"].style.display = "none";
377
- }
378
- }
379
- this.targetElements["table-container"].scrollLeft += scrollAdded;
380
- }, this.scrollTimeInterval);
381
- }
382
- handleScrollBackwardHover() {
383
- document.body.style.cursor = 'pointer';
384
- if (this.targetElements["normal-previous-scroll-button"].getAttribute("data-clicked") !== "true") {
385
- this.targetElements["normal-previous-scroll-button-text"].style.display = "block";
386
- this.targetElements["sticky-previous-scroll-button-text"].style.display = "block";
387
- }
388
- }
389
- handleScrollBackwardHoverOut() {
390
- document.body.style.cursor = 'auto';
391
- if (this.targetElements["normal-previous-scroll-button"].getAttribute("data-clicked") !== "true") {
392
- this.targetElements["normal-previous-scroll-button-text"].style.display = "none";
393
- this.targetElements["sticky-previous-scroll-button-text"].style.display = "none";
394
- }
395
- }
396
- handleScrollBackward() {
397
- this.targetElements = this.getTargetElements();
398
- // Display the "See more" text when clicked
399
- document.body.style.cursor = 'pointer';
400
- this.targetElements["normal-previous-scroll-button"].setAttribute("data-clicked", "true");
401
- this.targetElements["normal-previous-scroll-button-text"].style.display = "block";
402
- this.targetElements["sticky-previous-scroll-button-text"].style.display = "block";
403
- let scrollReduced = 0;
404
- let intervalId = setInterval(() => {
405
- scrollReduced += this.scrollAmount;
406
- let tableContainerLeft = this.targetElements["table-container"].getBoundingClientRect().left;
407
- let tableLeft = this.targetElements["table"].getBoundingClientRect().left;
408
- if ((scrollReduced == this.scrollLimit) || (tableContainerLeft <= tableLeft)) {
409
- clearInterval(intervalId);
410
- this.targetElements["normal-previous-scroll-button"].setAttribute("data-clicked", "false");
411
- // Remove the "See more" text if the mouse is not hovering over the button after scrolling
412
- if (!this.targetElements["normal-previous-scroll-button"].matches(':hover') && !this.targetElements["sticky-previous-scroll-button"].matches(':hover')) {
413
- document.body.style.cursor = 'auto';
414
- this.targetElements["normal-previous-scroll-button-text"].style.display = "none";
415
- this.targetElements["sticky-previous-scroll-button-text"].style.display = "none";
416
- }
417
- return;
418
- }
419
- this.targetElements["table-container"].scrollLeft -= scrollReduced;
420
- }, this.scrollTimeInterval);
421
- }
422
- componentWillLoad() {
423
- let columnHeaders = this.el.querySelectorAll('[slot^="column-header"]');
424
- for (let i = 0; i < this.dataCols; i++) {
425
- let slotValue = columnHeaders[i].getAttribute('slot');
426
- let headerText = columnHeaders[i].innerHTML;
427
- this.el.insertAdjacentHTML('afterbegin', `<span slot="normal-${slotValue}">${headerText}</span><span slot="sticky-${slotValue}">${headerText}</span>`);
428
- columnHeaders[i].remove();
429
- }
430
- let headerLinks = this.el.querySelectorAll('[slot^="header-link"]');
431
- if (headerLinks.length > 0) {
432
- for (let i = 0; i < this.dataCols; i++) {
433
- let linkHref = headerLinks[i].getAttribute('href');
434
- let linkText = headerLinks[i].innerHTML;
435
- this.columnHeaderLinks.push({ linkHref, linkText });
436
- headerLinks[i].remove();
437
- }
438
- }
439
- let ctaButtons = this.el.querySelectorAll('[slot^="cta-button"]');
440
- this.showCtaButtonsRow = (ctaButtons.length !== 0);
441
- for (let i = 0; i < this.dataCols; i++) {
442
- this.ctaButtons.push({
443
- linkHref: ctaButtons[i].getAttribute('href'),
444
- linkText: ctaButtons[i].innerHTML
445
- });
446
- ctaButtons[i].remove();
447
- }
448
- let disclaimers = this.el.querySelectorAll('[slot^="disclaimer"]');
449
- for (let i = 0; i < this.disclaimerCount; i++) {
450
- this.disclaimers.push(disclaimers[i].innerHTML);
451
- disclaimers[i].remove();
452
- }
453
- }
454
- componentDidLoad() {
455
- this.configureTableFillerCells();
456
- this.configureStickyHeader();
457
- this.configureScrollButtonsContainers();
458
- window.addEventListener('scroll', this.handleVerticalScroll);
459
- window.addEventListener('resize', this.handleResize);
460
- }
461
- disconnectedCallback() {
462
- window.removeEventListener('scroll', this.handleVerticalScroll);
463
- window.removeEventListener('resize', this.handleResize);
464
- }
465
- render() {
466
- const getTableTitle = () => {
467
- return (this.tableTitle && index.h(index.Fragment, null, index.h("div", { class: "table-descriptor" }, index.h("ptc-title", { type: "h2", "text-align": "center", "title-size": "xx-large", upperline: "no-upperline", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-8" }, this.tableTitle)), (this.tableSubTitle)
468
- ? index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: "small", size: "x-small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "small" }))
469
- : (this.tableDescription)
470
- ? index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))
471
- : null));
472
- };
473
- const getTableSubTitle = () => {
474
- return (this.tableSubTitle && index.h(index.Fragment, null, index.h("div", { class: "table-descriptor" }, index.h("ptc-title", { type: "h3", "text-align": "center", "title-size": "large", upperline: "no-upperline", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7" }, this.tableSubTitle)), index.h("ptc-spacer", { breakpoint: "small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "large" })));
475
- };
476
- const getTableDescription = () => {
477
- return (this.tableDescription && index.h(index.Fragment, null, index.h("div", { class: "table-descriptor" }, index.h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-align": "center", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, (this.tableDescription.length <= 500) ? this.tableDescription : index.h("ptc-readmore", { "more-text": "See more" }, this.tableDescription)))));
478
- };
479
- const getScrollButtonsContainer = () => {
480
- return index.h("div", { class: "scroll-buttons-container" }, index.h("div", { class: "scroll-buttons prev-button", "data-clicked": "false", onClick: () => this.handleScrollBackward(), onMouseOver: () => this.handleScrollBackwardHover(), onMouseOut: () => this.handleScrollBackwardHoverOut() }, index.h("icon-asset", { type: "solid", size: "medium", name: "chevron-left", color: "primary-gray" }), index.h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "justify", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, "See More")), index.h("div", { class: "scroll-buttons next-button", "data-clicked": "false", onClick: () => this.handleScrollForward(), onMouseOver: () => this.handleScrollForwardHover(), onMouseOut: () => this.handleScrollForwardHoverOut() }, index.h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "justify", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, "See More"), index.h("icon-asset", { type: "solid", size: "medium", name: "chevron-right", color: "primary-gray" })));
481
- };
482
- const getTableHeader = (headerType) => {
483
- return index.h("thead", null, index.h("tr", null, index.h("th", { class: "desktop-header-first-cell" }, index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "left", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, "Package Options")), ([...Array(this.dataCols).keys()]).map(col => {
484
- return index.h("th", null, index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, index.h("slot", { name: `${headerType}-column-header-${col + 1}` })), (this.columnHeaderLinks.length === this.dataCols) ? index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: 'small', size: "small" }), index.h("ptc-spacer", { breakpoint: 'x-small', size: "medium" }), index.h("ptc-link", { "font-size": "medium", "font-weight": "w-extrabold", href: `${this.columnHeaderLinks[col].linkHref}`, "link-area": "undefined", target: "_blank", theme: "d-green-underline" }, index.h("ptc-tooltip", { class: (col === (this.dataCols - 1)) ? "last-column-tooltip" : "", "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.columnHeaderLinks[col].linkText, position: "top" }))) : null);
485
- }), index.h("th", { class: "table-filler-header-cell" })));
486
- };
487
- const getMobileTableBody = () => {
488
- return index.h("tbody", { class: "mobile-table-body" }, ([...Array(this.dataRows).keys()]).map(row => {
489
- return index.h(index.Fragment, null, index.h("tr", null, index.h("td", { colSpan: this.mobileHeaderRowColSpan }, index.h("div", { class: "mobile-table-row-header" }, index.h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-1" }, index.h("slot", { name: `row-header-${row + 1}` }))))), index.h("tr", null, ([...Array(this.dataCols).keys()]).map(col => {
490
- return index.h("td", null, index.h("slot", { name: `cell-r${row + 1}-c${col + 1}` }));
491
- }), index.h("td", { class: "table-filler-body-cell" })));
492
- }), (this.showCtaButtonsRow) ?
493
- index.h("tr", { class: "table-button-row" }, ([...Array(this.dataCols).keys()]).map(col => {
494
- return index.h("td", null, index.h("ptc-button", { type: "link", color: "ptc-tertiary", "link-href": this.ctaButtons[col].linkHref, target: "_blank" }, this.ctaButtons[col].linkText));
495
- }), (this.mobileHeaderRowColSpan > this.dataCols) ? index.h("td", { class: "table-filler-button-cell" }) : null) : null);
496
- };
497
- const getDesktopTableBody = () => {
498
- return index.h("tbody", { class: "desktop-table-body" }, ([...Array(this.dataRows).keys()]).map(row => {
499
- return index.h("tr", null, index.h("td", { class: "first-column-cell" }, index.h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-1" }, index.h("slot", { name: `row-header-${row + 1}` }))), ([...Array(this.dataCols).keys()]).map(col => {
500
- return index.h("td", null, index.h("slot", { name: `cell-r${row + 1}-c${col + 1}` }));
501
- }), index.h("td", { class: "table-filler-body-cell" }));
502
- }), (this.showCtaButtonsRow) ?
503
- index.h("tr", { class: "table-button-row" }, index.h("td", null), ([...Array(this.dataCols).keys()]).map(col => {
504
- return index.h("td", null, index.h("ptc-button", { type: "link", color: "ptc-tertiary", "link-href": this.ctaButtons[col].linkHref, target: "_blank" }, index.h("ptc-tooltip", { class: (col === (this.dataCols - 1)) ? "last-column-tooltip" : "", "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.ctaButtons[col].linkText, position: "top" })));
505
- }), index.h("td", { class: "table-filler-button-cell" })) : null);
506
- };
507
- const getDisclaimers = () => {
508
- return ((this.disclaimerCount > 0) && index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: "small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "large" }), this.disclaimers.map((disclaimer, ind) => {
509
- return index.h(index.Fragment, null, index.h("ptc-para", { "font-size": "xx-small", "font-weight": "w-6", "para-align": "center", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, disclaimer), (ind != (this.disclaimerCount - 1)) ? index.h("ptc-spacer", { size: "xx-small" }) : null);
510
- })));
511
- };
512
- return (index.h(index.Host, null, index.h("div", { id: "vertical-scroll-content-clipper" }), index.h("div", { id: "sticky-header-container", onScroll: () => this.handleStickyHeaderHorizontalScroll() }, getScrollButtonsContainer(), getTableHeader("sticky")), index.h("ptc-spacer", { breakpoint: "small", size: "xxx-large" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "xxxx-large" }), getTableTitle(), getTableSubTitle(), getTableDescription(), index.h("ptc-spacer", { breakpoint: "small", size: "xx-large" }), index.h("ptc-spacer", { breakpoint: "small", size: "xx-small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "xxx-large" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "xx-small" }), index.h("div", { id: "table-container", onScroll: () => this.handleHorizontalScroll() }, getScrollButtonsContainer(), index.h("table", null, index.h("div", { id: "horizontal-scroll-box-shadow" }), getTableHeader("normal"), (window.innerWidth >= 992)
513
- ? getDesktopTableBody()
514
- : getMobileTableBody())), getDisclaimers(), index.h("ptc-spacer", { breakpoint: "small", size: "xxx-large" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "xxxx-large" })));
515
- }
516
- get el() { return index.getElement(this); }
517
- };
9
+ const PtcPricingTable = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.scrollTopClipperHeightOptions = {
13
+ withSubNav: {
14
+ desktop: "104px",
15
+ mobile: "80px"
16
+ },
17
+ withoutSubNav: {
18
+ desktop: "40px",
19
+ mobile: "24px"
20
+ }
21
+ };
22
+ this.handleHorizontalScroll = () => {
23
+ var _a, _b, _c, _d, _e, _f, _g;
24
+ this.targetElements = this.getTargetElements();
25
+ this.targetElements["sticky-header-container"].scrollLeft = (_a = this.targetElements["table-container"]) === null || _a === void 0 ? void 0 : _a.scrollLeft;
26
+ // Scroll the button containers in sync with the table's scrolling
27
+ if (((_b = this.targetElements["table-container"]) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().right) <= ((_c = this.targetElements["table"]) === null || _c === void 0 ? void 0 : _c.getBoundingClientRect().right)) {
28
+ this.targetElements["normal-scroll-buttons-container"].style.left = `${((_d = this.targetElements["table-container"]) === null || _d === void 0 ? void 0 : _d.scrollLeft) + this.desktopHeaderFirstCellWidth}px`;
29
+ this.targetElements["sticky-scroll-buttons-container"].style.left = `${((_e = this.targetElements["table-container"]) === null || _e === void 0 ? void 0 : _e.scrollLeft) + this.desktopHeaderFirstCellWidth}px`;
30
+ }
31
+ // Scroll the mobile row headers along with the table in the mobile view
32
+ if (this.targetElements["mobile-table-row-headers"].length > 0) {
33
+ for (let i = 0; i < this.dataRows; i++) {
34
+ this.targetElements["mobile-table-row-headers"][i].style.paddingLeft = `${(_f = this.targetElements["table-container"]) === null || _f === void 0 ? void 0 : _f.scrollLeft}px`;
35
+ }
36
+ }
37
+ // Managing the visibility of the next scroll buttons in both the sticky and normal headers, depending on whether the table can scroll further to the right or not
38
+ if (Math.trunc(this.targetElements["table-container"].getBoundingClientRect().right) >= Math.trunc(this.targetElements["table"].getBoundingClientRect().right)) {
39
+ this.targetElements["normal-next-scroll-button"].style.visibility = 'hidden';
40
+ if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
41
+ this.targetElements["sticky-next-scroll-button"].style.visibility = 'hidden';
42
+ }
43
+ }
44
+ else {
45
+ this.targetElements["normal-next-scroll-button"].style.visibility = 'visible';
46
+ if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
47
+ this.targetElements["sticky-next-scroll-button"].style.visibility = 'visible';
48
+ }
49
+ }
50
+ // Adjusting the visibility of the previous scroll buttons in both the sticky and normal headers, as well as the box shadow in desktop view, depending on whether the table can scroll further to the left or not
51
+ if (this.targetElements["table-container"].scrollLeft === 0) {
52
+ this.targetElements["horizontal-scroll-box-shadow"].style.left = '0';
53
+ this.targetElements["horizontal-scroll-box-shadow"].style.visibility = 'hidden';
54
+ this.targetElements["normal-previous-scroll-button"].style.visibility = 'hidden';
55
+ if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
56
+ this.targetElements["sticky-previous-scroll-button"].style.visibility = 'hidden';
57
+ }
58
+ }
59
+ else {
60
+ this.targetElements["horizontal-scroll-box-shadow"].style.left = `${((_g = this.targetElements["table-container"]) === null || _g === void 0 ? void 0 : _g.scrollLeft) + this.desktopHeaderFirstCellWidth}px`;
61
+ this.targetElements["horizontal-scroll-box-shadow"].style.visibility = 'visible';
62
+ this.targetElements["normal-previous-scroll-button"].style.visibility = 'visible';
63
+ if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
64
+ this.targetElements["sticky-previous-scroll-button"].style.visibility = 'visible';
65
+ }
66
+ }
67
+ };
68
+ this.handleVerticalScroll = () => {
69
+ this.targetElements = this.getTargetElements();
70
+ const scrollTopPosition = window.scrollY || document.documentElement.scrollTop;
71
+ if (scrollTopPosition < this.lastScrollTop) {
72
+ // Scrolling Up
73
+ if (this.targetElements["table-container"].getBoundingClientRect().bottom > 0) {
74
+ if (this.targetElements["sticky-header-container"].getBoundingClientRect().top < 0) {
75
+ // Scroll the sticky header back into view along with the table
76
+ this.targetElements["vertical-scroll-content-clipper"].style.display = 'block';
77
+ this.targetElements["sticky-scroll-buttons-container"].style.opacity = '1';
78
+ this.targetElements["sticky-header-container"].style.visibility = 'visible';
79
+ this.targetElements["sticky-header-container"].style.top = `${this.targetElements["table-container"].getBoundingClientRect().bottom - this.targetElements["sticky-header-container"].getBoundingClientRect().height}px`;
80
+ }
81
+ else {
82
+ // Make the sticky header fixed once it is entirely within the window
83
+ this.targetElements["sticky-header-container"].style.top = this.scrollTopClipperHeight;
84
+ }
85
+ }
86
+ if (this.targetElements["table-header"].getBoundingClientRect().top > this.targetElements["sticky-header-container"].getBoundingClientRect().top) {
87
+ // Conceal the sticky header and reveal the normal header
88
+ this.targetElements["sticky-scroll-buttons-container"].style.opacity = '0';
89
+ this.targetElements["sticky-header-container"].style.visibility = 'hidden';
90
+ this.targetElements["table-header"].style.visibility = 'visible';
91
+ this.targetElements["vertical-scroll-content-clipper"].style.display = 'none';
92
+ }
93
+ }
94
+ else if (scrollTopPosition > this.lastScrollTop) {
95
+ // Scrolling down
96
+ if (this.targetElements["sticky-header-container"].getBoundingClientRect().bottom <= 0) {
97
+ // Reset and hide the sticky header when it scrolls out of the top of the window
98
+ this.targetElements["sticky-header-container"].style.top = `${-this.targetElements["sticky-header-container"].getBoundingClientRect().height}px`;
99
+ this.targetElements["sticky-scroll-buttons-container"].style.opacity = '0';
100
+ this.targetElements["sticky-header-container"].style.visibility = 'hidden';
101
+ this.targetElements["vertical-scroll-content-clipper"].style.display = 'none';
102
+ }
103
+ else if (this.targetElements["table-header"].getBoundingClientRect().top <= this.targetElements["sticky-header-container"].getBoundingClientRect().top) {
104
+ if (this.targetElements["table-container"].getBoundingClientRect().bottom <= this.targetElements["sticky-header-container"].getBoundingClientRect().bottom) {
105
+ // Scroll the sticky header out of the window along with the table
106
+ this.targetElements["sticky-header-container"].style.top = `${(this.targetElements["table-container"].getBoundingClientRect().bottom - this.targetElements["sticky-header-container"].clientHeight)}px`;
107
+ }
108
+ else {
109
+ // Conceal the normal header and reveal the sticky header
110
+ this.targetElements["vertical-scroll-content-clipper"].style.display = 'block';
111
+ this.targetElements["sticky-scroll-buttons-container"].style.opacity = '1';
112
+ this.targetElements["sticky-header-container"].style.visibility = 'visible';
113
+ this.targetElements["table-header"].style.visibility = 'hidden';
114
+ this.targetElements["sticky-previous-scroll-button"].style.visibility = this.targetElements["normal-previous-scroll-button"].style.visibility;
115
+ this.targetElements["sticky-next-scroll-button"].style.visibility = this.targetElements["normal-next-scroll-button"].style.visibility;
116
+ if (getComputedStyle(this.targetElements["sticky-next-scroll-button"]).visibility === "visible") {
117
+ this.targetElements["table-filler-sticky-header-cell"].style.boxSizing = "content-box";
118
+ }
119
+ }
120
+ }
121
+ }
122
+ this.lastScrollTop = scrollTopPosition <= 0 ? 0 : scrollTopPosition;
123
+ };
124
+ this.handleResize = () => {
125
+ this.targetElements["table-container"].scrollLeft = 0;
126
+ this.handleHorizontalScroll();
127
+ this.configureStickyHeader();
128
+ this.configureScrollButtonsContainers();
129
+ this.configureTableFillerCells();
130
+ };
131
+ this.pageWithSubnav = false;
132
+ this.tableTitle = undefined;
133
+ this.tableSubTitle = "";
134
+ this.tableDescription = "";
135
+ this.dataRows = undefined;
136
+ this.dataCols = undefined;
137
+ this.disclaimerCount = 0;
138
+ this.scrollTopClipperHeight = undefined;
139
+ this.desktopHeaderFirstCellWidth = 0;
140
+ this.targetElements = {};
141
+ this.columnHeaderLinks = [];
142
+ this.lastScrollTop = undefined;
143
+ this.scrollTimeInterval = 35;
144
+ this.scrollAmount = 5;
145
+ this.scrollLimit = 50;
146
+ this.mobileHeaderRowColSpan = this.dataCols;
147
+ this.showCtaButtonsRow = undefined;
148
+ this.ctaButtons = [];
149
+ this.disclaimers = [];
150
+ }
151
+ // Provides an object containing frequently accessed HTML elements for table-related operations
152
+ getTargetElements() {
153
+ let pricingTable = this.el.shadowRoot;
154
+ let verticalScrollContentClipper = pricingTable === null || pricingTable === void 0 ? void 0 : pricingTable.querySelector('#vertical-scroll-content-clipper');
155
+ let tableContainer = pricingTable === null || pricingTable === void 0 ? void 0 : pricingTable.querySelector('#table-container');
156
+ let table = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('table');
157
+ let tableHeader = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('table thead');
158
+ let desktopHeaderFirstCell = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('.desktop-header-first-cell');
159
+ let tableHeaderCells = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelectorAll('th');
160
+ let desktopTableBody = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('.desktop-table-body');
161
+ let mobileTableBody = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('.mobile-table-body');
162
+ let stickyHeaderContainer = pricingTable === null || pricingTable === void 0 ? void 0 : pricingTable.querySelector('#sticky-header-container');
163
+ let stickyHeaderCells = stickyHeaderContainer === null || stickyHeaderContainer === void 0 ? void 0 : stickyHeaderContainer.querySelectorAll('th');
164
+ let verticalScrollBoxShadow = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector("#vertical-scroll-box-shadow");
165
+ let tableFillerStickyHeaderCell = stickyHeaderContainer === null || stickyHeaderContainer === void 0 ? void 0 : stickyHeaderContainer.querySelector('.table-filler-header-cell');
166
+ let tableFillerHeaderCell = tableHeader === null || tableHeader === void 0 ? void 0 : tableHeader.querySelector('.table-filler-header-cell');
167
+ let tableFillerBodyCells = table === null || table === void 0 ? void 0 : table.querySelectorAll('.table-filler-body-cell');
168
+ let tableFillerButtonCell = table === null || table === void 0 ? void 0 : table.querySelector('.table-filler-button-cell');
169
+ let mobileTableRowHeaders = pricingTable === null || pricingTable === void 0 ? void 0 : pricingTable.querySelectorAll('.mobile-table-row-header');
170
+ let normalScrollButtonsContainer = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('.scroll-buttons-container');
171
+ let stickyScrollButtonsContainer = stickyHeaderContainer === null || stickyHeaderContainer === void 0 ? void 0 : stickyHeaderContainer.querySelector('.scroll-buttons-container');
172
+ let normalPreviousScrollButton = normalScrollButtonsContainer === null || normalScrollButtonsContainer === void 0 ? void 0 : normalScrollButtonsContainer.querySelector('.prev-button');
173
+ let normalPreviousScrollButtonText = normalPreviousScrollButton === null || normalPreviousScrollButton === void 0 ? void 0 : normalPreviousScrollButton.querySelector('ptc-para');
174
+ let stickyPreviousScrollButton = stickyScrollButtonsContainer === null || stickyScrollButtonsContainer === void 0 ? void 0 : stickyScrollButtonsContainer.querySelector('.prev-button');
175
+ let stickyPreviousScrollButtonText = stickyPreviousScrollButton === null || stickyPreviousScrollButton === void 0 ? void 0 : stickyPreviousScrollButton.querySelector('ptc-para');
176
+ let normalNextScrollButton = normalScrollButtonsContainer === null || normalScrollButtonsContainer === void 0 ? void 0 : normalScrollButtonsContainer.querySelector('.next-button');
177
+ let normalNextScrollButtonText = normalNextScrollButton === null || normalNextScrollButton === void 0 ? void 0 : normalNextScrollButton.querySelector('ptc-para');
178
+ let stickyNextScrollButton = stickyScrollButtonsContainer === null || stickyScrollButtonsContainer === void 0 ? void 0 : stickyScrollButtonsContainer.querySelector('.next-button');
179
+ let stickyNextScrollButtonText = stickyNextScrollButton === null || stickyNextScrollButton === void 0 ? void 0 : stickyNextScrollButton.querySelector('ptc-para');
180
+ let horizontalScrollBoxShadow = tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.querySelector('#horizontal-scroll-box-shadow');
181
+ let targetElements = {
182
+ "vertical-scroll-content-clipper": verticalScrollContentClipper,
183
+ "pricing-table": pricingTable,
184
+ "table-container": tableContainer,
185
+ "table": table,
186
+ "table-header": tableHeader,
187
+ "desktop-header-first-cell": desktopHeaderFirstCell,
188
+ "table-header-cells": tableHeaderCells,
189
+ "desktop-table-body": desktopTableBody,
190
+ "mobile-table-body": mobileTableBody,
191
+ "sticky-header-container": stickyHeaderContainer,
192
+ "sticky-header-cells": stickyHeaderCells,
193
+ "vertical-scroll-box-shadow": verticalScrollBoxShadow,
194
+ "table-filler-sticky-header-cell": tableFillerStickyHeaderCell,
195
+ "table-filler-header-cell": tableFillerHeaderCell,
196
+ "table-filler-body-cells": tableFillerBodyCells,
197
+ "table-filler-button-cell": tableFillerButtonCell,
198
+ "mobile-table-row-headers": mobileTableRowHeaders,
199
+ "normal-scroll-buttons-container": normalScrollButtonsContainer,
200
+ "sticky-scroll-buttons-container": stickyScrollButtonsContainer,
201
+ "normal-previous-scroll-button": normalPreviousScrollButton,
202
+ "normal-previous-scroll-button-text": normalPreviousScrollButtonText,
203
+ "sticky-previous-scroll-button": stickyPreviousScrollButton,
204
+ "sticky-previous-scroll-button-text": stickyPreviousScrollButtonText,
205
+ "normal-next-scroll-button": normalNextScrollButton,
206
+ "normal-next-scroll-button-text": normalNextScrollButtonText,
207
+ "sticky-next-scroll-button": stickyNextScrollButton,
208
+ "sticky-next-scroll-button-text": stickyNextScrollButtonText,
209
+ "horizontal-scroll-box-shadow": horizontalScrollBoxShadow,
210
+ };
211
+ return targetElements;
212
+ }
213
+ // Sets up the scroll buttons container for both the sticky and normal headers
214
+ configureScrollButtonsContainers() {
215
+ this.targetElements = this.getTargetElements();
216
+ // Defines the dimensions
217
+ this.targetElements["normal-scroll-buttons-container"].style.width = `${this.targetElements["table-container"].clientWidth}px`;
218
+ this.targetElements["normal-scroll-buttons-container"].style.height = `${this.targetElements["table-header"].clientHeight}px`;
219
+ this.targetElements["sticky-scroll-buttons-container"].style.width = `${this.targetElements["table-container"].clientWidth}px`;
220
+ this.targetElements["sticky-scroll-buttons-container"].style.height = `${this.targetElements["table-header"].clientHeight}px`;
221
+ // For desktop screens, scroll buttons are positioned after the first column of the table
222
+ if (this.targetElements["desktop-header-first-cell"]) {
223
+ this.targetElements["normal-scroll-buttons-container"].style.width = `${this.targetElements["normal-scroll-buttons-container"].getBoundingClientRect().width - this.desktopHeaderFirstCellWidth}px`;
224
+ this.targetElements["sticky-scroll-buttons-container"].style.width = `${this.targetElements["sticky-scroll-buttons-container"].getBoundingClientRect().width - this.desktopHeaderFirstCellWidth}px`;
225
+ }
226
+ // Controlling the visibility of the previous scroll buttons, of the sticky and normal headers, based on whether table can scroll further to the left or not
227
+ if (this.targetElements["table-container"].scrollLeft === 0) {
228
+ this.targetElements["normal-previous-scroll-button"].style.visibility = 'hidden';
229
+ if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
230
+ this.targetElements["sticky-previous-scroll-button"].style.visibility = 'hidden';
231
+ }
232
+ }
233
+ else {
234
+ this.targetElements["normal-previous-scroll-button"].style.visibility = 'visible';
235
+ if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
236
+ this.targetElements["sticky-previous-scroll-button"].style.visibility = 'visible';
237
+ }
238
+ }
239
+ // Managing the visibility of the next scroll buttons in both the sticky and normal headers, depending on whether the table can be scrolled further to the right or not
240
+ if (this.targetElements["table-container"].getBoundingClientRect().width >= this.targetElements["table"].getBoundingClientRect().width) {
241
+ this.targetElements["normal-next-scroll-button"].style.visibility = 'hidden';
242
+ if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
243
+ this.targetElements["sticky-next-scroll-button"].style.visibility = 'hidden';
244
+ }
245
+ }
246
+ else {
247
+ this.targetElements["normal-next-scroll-button"].style.visibility = 'visible';
248
+ if (this.targetElements["sticky-header-container"].style.visibility === 'visible') {
249
+ this.targetElements["sticky-next-scroll-button"].style.visibility = 'visible';
250
+ }
251
+ }
252
+ }
253
+ // Configures the sticky header based on the dimensions of the table header
254
+ configureStickyHeader() {
255
+ var _a, _b, _c, _d, _e, _f;
256
+ const targetElements = this.getTargetElements();
257
+ // Expanding the content clipper by an additional 10px on each side to accommodate the table's box-shadow
258
+ targetElements["vertical-scroll-content-clipper"].style.width = `${targetElements["table-container"].clientWidth + 20}px`;
259
+ // Aligns the background color of the element with the body's background color
260
+ const bodyBackgroundColor = window.getComputedStyle(document.body, null).getPropertyValue('background-color');
261
+ if (bodyBackgroundColor === ("rgba(0, 0, 0, 0)" )) {
262
+ targetElements["vertical-scroll-content-clipper"].style.backgroundColor = "white";
263
+ }
264
+ else {
265
+ targetElements["vertical-scroll-content-clipper"].style.backgroundColor = bodyBackgroundColor;
266
+ }
267
+ // Establishing the width of the sticky header to be in line with the table's width
268
+ targetElements["sticky-header-container"].style.width = `${targetElements["table-container"].clientWidth}px`;
269
+ // Adjusts the table's sticky behavior, making it adhere at varying positions below the top, contingent on factors like the device type (mobile or desktop) and the presence of a subnav in the page
270
+ if (this.pageWithSubnav) {
271
+ if (window.innerWidth >= 1200) {
272
+ this.scrollTopClipperHeight = this.scrollTopClipperHeightOptions.withSubNav.desktop;
273
+ }
274
+ else {
275
+ this.scrollTopClipperHeight = this.scrollTopClipperHeightOptions.withSubNav.mobile;
276
+ }
277
+ }
278
+ else {
279
+ if (window.innerWidth >= 1200) {
280
+ this.scrollTopClipperHeight = this.scrollTopClipperHeightOptions.withoutSubNav.desktop;
281
+ }
282
+ else {
283
+ this.scrollTopClipperHeight = this.scrollTopClipperHeightOptions.withoutSubNav.mobile;
284
+ }
285
+ }
286
+ targetElements["vertical-scroll-content-clipper"].style.height = this.scrollTopClipperHeight;
287
+ targetElements["sticky-header-container"].style.top = this.scrollTopClipperHeight;
288
+ // Align the widths of sticky header cells with those of the normal header cells
289
+ for (let i = 0; i < targetElements["table-header-cells"].length; i++) {
290
+ targetElements["sticky-header-cells"][i].style.width = `${targetElements["table-header-cells"][i].getBoundingClientRect().width}px`;
291
+ if (targetElements["table-header-cells"][i].classList.contains('desktop-header-first-cell')) {
292
+ this.desktopHeaderFirstCellWidth = targetElements["table-header-cells"][i].getBoundingClientRect().width;
293
+ }
294
+ }
295
+ // Box-sizing
296
+ if (targetElements["table"].clientWidth <= targetElements["table-container"].clientWidth) {
297
+ if (targetElements["desktop-table-body"]) {
298
+ for (let i = 0; i < targetElements["sticky-header-cells"].length; i++) {
299
+ (_b = (_a = targetElements["sticky-header-cells"][i]) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.add('border-box-header-cell');
300
+ }
301
+ }
302
+ }
303
+ else {
304
+ for (let i = 0; i < targetElements["sticky-header-cells"].length; i++) {
305
+ if ((_d = (_c = targetElements["sticky-header-cells"][i]) === null || _c === void 0 ? void 0 : _c.classList) === null || _d === void 0 ? void 0 : _d.contains('border-box-header-cell')) {
306
+ (_f = (_e = targetElements["sticky-header-cells"][i]) === null || _e === void 0 ? void 0 : _e.classList) === null || _f === void 0 ? void 0 : _f.remove('border-box-header-cell');
307
+ }
308
+ }
309
+ }
310
+ }
311
+ configureTableFillerCells() {
312
+ var _a, _b, _c, _d;
313
+ this.targetElements = this.getTargetElements();
314
+ this.targetElements["table-filler-sticky-header-cell"].style.width = this.targetElements["table-filler-header-cell"].getBoundingClientRect().width;
315
+ if (this.targetElements['table'].getBoundingClientRect().width < this.targetElements['table-container'].getBoundingClientRect().width) {
316
+ // If the table is smaller than the container, insert fillers
317
+ this.targetElements["table-filler-sticky-header-cell"].style.display = 'table-cell';
318
+ this.targetElements["table-filler-header-cell"].style.display = 'table-cell';
319
+ for (let i = 0; i < this.dataRows; i++) {
320
+ this.targetElements["table-filler-body-cells"][i].style.display = 'table-cell';
321
+ }
322
+ if (this.targetElements["table-filler-button-cell"]) {
323
+ this.targetElements["table-filler-button-cell"].style.display = 'table-cell';
324
+ }
325
+ this.mobileHeaderRowColSpan = this.dataCols + 1;
326
+ }
327
+ else {
328
+ // If the table is equal to or larger than the container, remove fillers
329
+ this.targetElements["table-filler-sticky-header-cell"].style.width = '99%';
330
+ if (getComputedStyle(this.targetElements["sticky-next-scroll-button"]).visibility === 'hidden') {
331
+ for (let i = 0; i < this.targetElements["sticky-header-cells"].length + 1; i++) {
332
+ if ((_b = (_a = this.targetElements["sticky-header-cells"][i]) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.contains('border-box-header-cell')) {
333
+ (_d = (_c = this.targetElements["sticky-header-cells"][i]) === null || _c === void 0 ? void 0 : _c.classList) === null || _d === void 0 ? void 0 : _d.remove('border-box-header-cell');
334
+ }
335
+ }
336
+ }
337
+ }
338
+ }
339
+ handleStickyHeaderHorizontalScroll() {
340
+ var _a;
341
+ this.targetElements["table-container"].scrollLeft = (_a = this.targetElements["sticky-header-container"]) === null || _a === void 0 ? void 0 : _a.scrollLeft;
342
+ }
343
+ handleScrollForwardHover() {
344
+ if (this.targetElements["normal-next-scroll-button"].getAttribute("data-clicked") !== "true") {
345
+ document.body.style.cursor = 'pointer';
346
+ this.targetElements["normal-next-scroll-button-text"].style.display = "block";
347
+ this.targetElements["sticky-next-scroll-button-text"].style.display = "block";
348
+ }
349
+ }
350
+ handleScrollForwardHoverOut() {
351
+ if (this.targetElements["normal-next-scroll-button"].getAttribute("data-clicked") !== "true") {
352
+ document.body.style.cursor = 'auto';
353
+ this.targetElements["normal-next-scroll-button-text"].style.display = "none";
354
+ this.targetElements["sticky-next-scroll-button-text"].style.display = "none";
355
+ }
356
+ }
357
+ handleScrollForward() {
358
+ this.targetElements = this.getTargetElements();
359
+ // Display the "See more" text when clicked
360
+ document.body.style.cursor = 'pointer';
361
+ this.targetElements["normal-next-scroll-button"].setAttribute("data-clicked", "true");
362
+ this.targetElements["normal-next-scroll-button-text"].style.display = "block";
363
+ this.targetElements["sticky-next-scroll-button-text"].style.display = "block";
364
+ let scrollAdded = 0;
365
+ let intervalId = setInterval(() => {
366
+ scrollAdded += this.scrollAmount;
367
+ let tableContainerRight = this.targetElements["table-container"].getBoundingClientRect().right;
368
+ let tableRight = this.targetElements["table"].getBoundingClientRect().right;
369
+ if ((scrollAdded == this.scrollLimit) || (tableContainerRight >= tableRight)) {
370
+ clearInterval(intervalId);
371
+ this.targetElements["normal-next-scroll-button"].setAttribute("data-clicked", "false");
372
+ // Remove the "See more" text if the mouse is not hovering over the button after scrolling
373
+ if (!this.targetElements["normal-next-scroll-button"].matches(':hover') && !this.targetElements["sticky-next-scroll-button"].matches(':hover')) {
374
+ document.body.style.cursor = 'auto';
375
+ this.targetElements["normal-next-scroll-button-text"].style.display = "none";
376
+ this.targetElements["sticky-next-scroll-button-text"].style.display = "none";
377
+ }
378
+ }
379
+ this.targetElements["table-container"].scrollLeft += scrollAdded;
380
+ }, this.scrollTimeInterval);
381
+ }
382
+ handleScrollBackwardHover() {
383
+ document.body.style.cursor = 'pointer';
384
+ if (this.targetElements["normal-previous-scroll-button"].getAttribute("data-clicked") !== "true") {
385
+ this.targetElements["normal-previous-scroll-button-text"].style.display = "block";
386
+ this.targetElements["sticky-previous-scroll-button-text"].style.display = "block";
387
+ }
388
+ }
389
+ handleScrollBackwardHoverOut() {
390
+ document.body.style.cursor = 'auto';
391
+ if (this.targetElements["normal-previous-scroll-button"].getAttribute("data-clicked") !== "true") {
392
+ this.targetElements["normal-previous-scroll-button-text"].style.display = "none";
393
+ this.targetElements["sticky-previous-scroll-button-text"].style.display = "none";
394
+ }
395
+ }
396
+ handleScrollBackward() {
397
+ this.targetElements = this.getTargetElements();
398
+ // Display the "See more" text when clicked
399
+ document.body.style.cursor = 'pointer';
400
+ this.targetElements["normal-previous-scroll-button"].setAttribute("data-clicked", "true");
401
+ this.targetElements["normal-previous-scroll-button-text"].style.display = "block";
402
+ this.targetElements["sticky-previous-scroll-button-text"].style.display = "block";
403
+ let scrollReduced = 0;
404
+ let intervalId = setInterval(() => {
405
+ scrollReduced += this.scrollAmount;
406
+ let tableContainerLeft = this.targetElements["table-container"].getBoundingClientRect().left;
407
+ let tableLeft = this.targetElements["table"].getBoundingClientRect().left;
408
+ if ((scrollReduced == this.scrollLimit) || (tableContainerLeft <= tableLeft)) {
409
+ clearInterval(intervalId);
410
+ this.targetElements["normal-previous-scroll-button"].setAttribute("data-clicked", "false");
411
+ // Remove the "See more" text if the mouse is not hovering over the button after scrolling
412
+ if (!this.targetElements["normal-previous-scroll-button"].matches(':hover') && !this.targetElements["sticky-previous-scroll-button"].matches(':hover')) {
413
+ document.body.style.cursor = 'auto';
414
+ this.targetElements["normal-previous-scroll-button-text"].style.display = "none";
415
+ this.targetElements["sticky-previous-scroll-button-text"].style.display = "none";
416
+ }
417
+ return;
418
+ }
419
+ this.targetElements["table-container"].scrollLeft -= scrollReduced;
420
+ }, this.scrollTimeInterval);
421
+ }
422
+ componentWillLoad() {
423
+ let columnHeaders = this.el.querySelectorAll('[slot^="column-header"]');
424
+ for (let i = 0; i < this.dataCols; i++) {
425
+ let slotValue = columnHeaders[i].getAttribute('slot');
426
+ let headerText = columnHeaders[i].innerHTML;
427
+ this.el.insertAdjacentHTML('afterbegin', `<span slot="normal-${slotValue}">${headerText}</span><span slot="sticky-${slotValue}">${headerText}</span>`);
428
+ columnHeaders[i].remove();
429
+ }
430
+ let headerLinks = this.el.querySelectorAll('[slot^="header-link"]');
431
+ if (headerLinks.length > 0) {
432
+ for (let i = 0; i < this.dataCols; i++) {
433
+ let linkHref = headerLinks[i].getAttribute('href');
434
+ let linkText = headerLinks[i].innerHTML;
435
+ this.columnHeaderLinks.push({ linkHref, linkText });
436
+ headerLinks[i].remove();
437
+ }
438
+ }
439
+ let ctaButtons = this.el.querySelectorAll('[slot^="cta-button"]');
440
+ this.showCtaButtonsRow = (ctaButtons.length !== 0);
441
+ for (let i = 0; i < this.dataCols; i++) {
442
+ this.ctaButtons.push({
443
+ linkHref: ctaButtons[i].getAttribute('href'),
444
+ linkText: ctaButtons[i].innerHTML
445
+ });
446
+ ctaButtons[i].remove();
447
+ }
448
+ let disclaimers = this.el.querySelectorAll('[slot^="disclaimer"]');
449
+ for (let i = 0; i < this.disclaimerCount; i++) {
450
+ this.disclaimers.push(disclaimers[i].innerHTML);
451
+ disclaimers[i].remove();
452
+ }
453
+ }
454
+ componentDidLoad() {
455
+ this.configureTableFillerCells();
456
+ this.configureStickyHeader();
457
+ this.configureScrollButtonsContainers();
458
+ window.addEventListener('scroll', this.handleVerticalScroll);
459
+ window.addEventListener('resize', this.handleResize);
460
+ }
461
+ disconnectedCallback() {
462
+ window.removeEventListener('scroll', this.handleVerticalScroll);
463
+ window.removeEventListener('resize', this.handleResize);
464
+ }
465
+ render() {
466
+ const getTableTitle = () => {
467
+ return (this.tableTitle && index.h(index.Fragment, null, index.h("div", { class: "table-descriptor" }, index.h("ptc-title", { type: "h2", "text-align": "center", "title-size": "xx-large", upperline: "no-upperline", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-8" }, this.tableTitle)), (this.tableSubTitle)
468
+ ? index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: "small", size: "x-small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "small" }))
469
+ : (this.tableDescription)
470
+ ? index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))
471
+ : null));
472
+ };
473
+ const getTableSubTitle = () => {
474
+ return (this.tableSubTitle && index.h(index.Fragment, null, index.h("div", { class: "table-descriptor" }, index.h("ptc-title", { type: "h3", "text-align": "center", "title-size": "large", upperline: "no-upperline", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7" }, this.tableSubTitle)), index.h("ptc-spacer", { breakpoint: "small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "large" })));
475
+ };
476
+ const getTableDescription = () => {
477
+ return (this.tableDescription && index.h(index.Fragment, null, index.h("div", { class: "table-descriptor" }, index.h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-align": "center", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, (this.tableDescription.length <= 500) ? this.tableDescription : index.h("ptc-readmore", { "more-text": "See more" }, this.tableDescription)))));
478
+ };
479
+ const getScrollButtonsContainer = () => {
480
+ return index.h("div", { class: "scroll-buttons-container" }, index.h("div", { class: "scroll-buttons prev-button", "data-clicked": "false", onClick: () => this.handleScrollBackward(), onMouseOver: () => this.handleScrollBackwardHover(), onMouseOut: () => this.handleScrollBackwardHoverOut() }, index.h("icon-asset", { type: "solid", size: "medium", name: "chevron-left", color: "primary-gray" }), index.h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "justify", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, "See More")), index.h("div", { class: "scroll-buttons next-button", "data-clicked": "false", onClick: () => this.handleScrollForward(), onMouseOver: () => this.handleScrollForwardHover(), onMouseOut: () => this.handleScrollForwardHoverOut() }, index.h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "justify", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, "See More"), index.h("icon-asset", { type: "solid", size: "medium", name: "chevron-right", color: "primary-gray" })));
481
+ };
482
+ const getTableHeader = (headerType) => {
483
+ return index.h("thead", null, index.h("tr", null, index.h("th", { class: "desktop-header-first-cell" }, index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "left", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, "Package Options")), ([...Array(this.dataCols).keys()]).map(col => {
484
+ return index.h("th", null, index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, index.h("slot", { name: `${headerType}-column-header-${col + 1}` })), (this.columnHeaderLinks.length === this.dataCols) ? index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: 'small', size: "small" }), index.h("ptc-spacer", { breakpoint: 'x-small', size: "medium" }), index.h("ptc-link", { "font-size": "medium", "font-weight": "w-extrabold", href: `${this.columnHeaderLinks[col].linkHref}`, "link-area": "undefined", target: "_blank", theme: "d-green-underline" }, index.h("ptc-tooltip", { class: (col === (this.dataCols - 1)) ? "last-column-tooltip" : "", "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.columnHeaderLinks[col].linkText, position: "top" }))) : null);
485
+ }), index.h("th", { class: "table-filler-header-cell" })));
486
+ };
487
+ const getMobileTableBody = () => {
488
+ return index.h("tbody", { class: "mobile-table-body" }, ([...Array(this.dataRows).keys()]).map(row => {
489
+ return index.h(index.Fragment, null, index.h("tr", null, index.h("td", { colSpan: this.mobileHeaderRowColSpan }, index.h("div", { class: "mobile-table-row-header" }, index.h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-1" }, index.h("slot", { name: `row-header-${row + 1}` }))))), index.h("tr", null, ([...Array(this.dataCols).keys()]).map(col => {
490
+ return index.h("td", null, index.h("slot", { name: `cell-r${row + 1}-c${col + 1}` }));
491
+ }), index.h("td", { class: "table-filler-body-cell" })));
492
+ }), (this.showCtaButtonsRow) ?
493
+ index.h("tr", { class: "table-button-row" }, ([...Array(this.dataCols).keys()]).map(col => {
494
+ return index.h("td", null, index.h("ptc-button", { type: "link", color: "ptc-tertiary", "link-href": this.ctaButtons[col].linkHref, target: "_blank" }, this.ctaButtons[col].linkText));
495
+ }), (this.mobileHeaderRowColSpan > this.dataCols) ? index.h("td", { class: "table-filler-button-cell" }) : null) : null);
496
+ };
497
+ const getDesktopTableBody = () => {
498
+ return index.h("tbody", { class: "desktop-table-body" }, ([...Array(this.dataRows).keys()]).map(row => {
499
+ return index.h("tr", null, index.h("td", { class: "first-column-cell" }, index.h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-1" }, index.h("slot", { name: `row-header-${row + 1}` }))), ([...Array(this.dataCols).keys()]).map(col => {
500
+ return index.h("td", null, index.h("slot", { name: `cell-r${row + 1}-c${col + 1}` }));
501
+ }), index.h("td", { class: "table-filler-body-cell" }));
502
+ }), (this.showCtaButtonsRow) ?
503
+ index.h("tr", { class: "table-button-row" }, index.h("td", null), ([...Array(this.dataCols).keys()]).map(col => {
504
+ return index.h("td", null, index.h("ptc-button", { type: "link", color: "ptc-tertiary", "link-href": this.ctaButtons[col].linkHref, target: "_blank" }, index.h("ptc-tooltip", { class: (col === (this.dataCols - 1)) ? "last-column-tooltip" : "", "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.ctaButtons[col].linkText, position: "top" })));
505
+ }), index.h("td", { class: "table-filler-button-cell" })) : null);
506
+ };
507
+ const getDisclaimers = () => {
508
+ return ((this.disclaimerCount > 0) && index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: "small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "large" }), this.disclaimers.map((disclaimer, ind) => {
509
+ return index.h(index.Fragment, null, index.h("ptc-para", { "font-size": "xx-small", "font-weight": "w-6", "para-align": "center", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, disclaimer), (ind != (this.disclaimerCount - 1)) ? index.h("ptc-spacer", { size: "xx-small" }) : null);
510
+ })));
511
+ };
512
+ return (index.h(index.Host, null, index.h("div", { id: "vertical-scroll-content-clipper" }), index.h("div", { id: "sticky-header-container", onScroll: () => this.handleStickyHeaderHorizontalScroll() }, getScrollButtonsContainer(), getTableHeader("sticky")), index.h("ptc-spacer", { breakpoint: "small", size: "xxx-large" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "xxxx-large" }), getTableTitle(), getTableSubTitle(), getTableDescription(), index.h("ptc-spacer", { breakpoint: "small", size: "xx-large" }), index.h("ptc-spacer", { breakpoint: "small", size: "xx-small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "xxx-large" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "xx-small" }), index.h("div", { id: "table-container", onScroll: () => this.handleHorizontalScroll() }, getScrollButtonsContainer(), index.h("table", null, index.h("div", { id: "horizontal-scroll-box-shadow" }), getTableHeader("normal"), (window.innerWidth >= 992)
513
+ ? getDesktopTableBody()
514
+ : getMobileTableBody())), getDisclaimers(), index.h("ptc-spacer", { breakpoint: "small", size: "xxx-large" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "xxxx-large" })));
515
+ }
516
+ get el() { return index.getElement(this); }
517
+ };
518
518
  PtcPricingTable.style = ptcPricingTableCss;
519
519
 
520
520
  exports.ptc_pricing_table = PtcPricingTable;