@ptcwebops/ptcw-design 2.2.0 → 2.2.1

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