@ptcwebops/ptcw-design 2.8.7 → 2.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (572) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/author-listing-example.cjs.entry.js +232 -232
  3. package/dist/cjs/bundle-example.cjs.entry.js +43 -43
  4. package/dist/cjs/bundle-jumbotron-example.cjs.entry.js +39 -39
  5. package/dist/cjs/dropdown-item.cjs.entry.js +10 -10
  6. package/dist/cjs/dynamic-box-bundle.cjs.entry.js +25 -25
  7. package/dist/cjs/embedded-form.cjs.entry.js +420 -420
  8. package/dist/cjs/featured-list.cjs.entry.js +90 -90
  9. package/dist/cjs/fl-tab-content_3.cjs.entry.js +44 -44
  10. package/dist/cjs/footer-form.cjs.entry.js +55 -55
  11. package/dist/cjs/icon-asset.cjs.entry.js +42 -42
  12. package/dist/cjs/innovator-toggle-container.cjs.entry.js +21 -21
  13. package/dist/cjs/{interfaces-574e6df7.js → interfaces-0ecd8027.js} +9 -9
  14. package/dist/cjs/list-item.cjs.entry.js +22 -22
  15. package/dist/cjs/max-width-container.cjs.entry.js +43 -43
  16. package/dist/cjs/my-component.cjs.entry.js +15 -15
  17. package/dist/cjs/ptc-accordion-item.cjs.entry.js +84 -84
  18. package/dist/cjs/ptc-accordion.cjs.entry.js +39 -39
  19. package/dist/cjs/ptc-announcement.cjs.entry.js +52 -52
  20. package/dist/cjs/ptc-back-to-top.cjs.entry.js +35 -35
  21. package/dist/cjs/ptc-background-video.cjs.entry.js +57 -57
  22. package/dist/cjs/ptc-bio-card.cjs.entry.js +24 -24
  23. package/dist/cjs/ptc-breadcrumb_2.cjs.entry.js +132 -132
  24. package/dist/cjs/ptc-brightcov-video.cjs.entry.js +46 -46
  25. package/dist/cjs/ptc-button.cjs.entry.js +39 -39
  26. package/dist/cjs/ptc-card-bottom_3.cjs.entry.js +130 -130
  27. package/dist/cjs/ptc-card-content.cjs.entry.js +57 -57
  28. package/dist/cjs/ptc-card.cjs.entry.js +74 -74
  29. package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +77 -77
  30. package/dist/cjs/ptc-checkbox.cjs.entry.js +50 -50
  31. package/dist/cjs/ptc-collapse-list.cjs.entry.js +397 -397
  32. package/dist/cjs/ptc-container.cjs.entry.js +33 -33
  33. package/dist/cjs/ptc-date.cjs.entry.js +50 -50
  34. package/dist/cjs/ptc-dropdown.cjs.entry.js +64 -64
  35. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +48 -48
  36. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +46 -46
  37. package/dist/cjs/ptc-embedded-quiz.cjs.entry.js +89 -89
  38. package/dist/cjs/ptc-featured-list.cjs.entry.js +95 -95
  39. package/dist/cjs/ptc-filter-dropdown_4.cjs.entry.js +268 -268
  40. package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +52 -52
  41. package/dist/cjs/ptc-filter-tag.cjs.entry.js +57 -57
  42. package/dist/cjs/ptc-form-checkbox_3.cjs.entry.js +224 -224
  43. package/dist/cjs/ptc-form.cjs.entry.js +78 -78
  44. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +11 -11
  45. package/dist/cjs/ptc-hero.cjs.entry.js +18 -18
  46. package/dist/cjs/ptc-icon-component.cjs.entry.js +60 -60
  47. package/dist/cjs/ptc-icon-list.cjs.entry.js +21 -21
  48. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +43 -43
  49. package/dist/cjs/ptc-image-download-strip.cjs.entry.js +18 -18
  50. package/dist/cjs/ptc-img.cjs.entry.js +122 -122
  51. package/dist/cjs/ptc-link.cjs.entry.js +48 -48
  52. package/dist/cjs/ptc-list.cjs.entry.js +49 -49
  53. package/dist/cjs/ptc-media-card.cjs.entry.js +58 -58
  54. package/dist/cjs/ptc-minimized-nav.cjs.entry.js +12 -12
  55. package/dist/cjs/ptc-mobile-select.cjs.entry.js +62 -62
  56. package/dist/cjs/ptc-modal-quiz.cjs.entry.js +115 -115
  57. package/dist/cjs/ptc-modal.cjs.entry.js +150 -150
  58. package/dist/cjs/ptc-nav-card.cjs.entry.js +36 -36
  59. package/dist/cjs/ptc-nav-link.cjs.entry.js +36 -36
  60. package/dist/cjs/ptc-nav-pills.cjs.entry.js +8 -8
  61. package/dist/cjs/ptc-nav-slider.cjs.entry.js +90 -90
  62. package/dist/cjs/ptc-nav-submenu.cjs.entry.js +37 -37
  63. package/dist/cjs/ptc-news.cjs.entry.js +24 -24
  64. package/dist/cjs/ptc-overlay.cjs.entry.js +23 -23
  65. package/dist/cjs/ptc-pagenation.cjs.entry.js +306 -306
  66. package/dist/cjs/ptc-para.cjs.entry.js +51 -51
  67. package/dist/cjs/ptc-picture.cjs.entry.js +152 -152
  68. package/dist/cjs/ptc-podcast-card.cjs.entry.js +11 -11
  69. package/dist/cjs/ptc-previous-url.cjs.entry.js +11 -11
  70. package/dist/cjs/ptc-pricing-add-on-card.cjs.entry.js +17 -17
  71. package/dist/cjs/ptc-pricing-add-on-section.cjs.entry.js +38 -38
  72. package/dist/cjs/ptc-pricing-block.cjs.entry.js +20 -20
  73. package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +312 -317
  74. package/dist/cjs/ptc-pricing-table.cjs.entry.js +525 -525
  75. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +124 -124
  76. package/dist/cjs/ptc-product-card.cjs.entry.js +22 -22
  77. package/dist/cjs/ptc-product-category.cjs.entry.js +10 -10
  78. package/dist/cjs/ptc-product-dropdown.cjs.entry.js +69 -69
  79. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +12 -12
  80. package/dist/cjs/ptc-product-list.cjs.entry.js +140 -140
  81. package/dist/cjs/ptc-product-sidebar.cjs.entry.js +128 -128
  82. package/dist/cjs/ptc-progress-bar.cjs.entry.js +16 -16
  83. package/dist/cjs/ptc-quote.cjs.entry.js +23 -23
  84. package/dist/cjs/ptc-readmore-char.cjs.entry.js +24 -24
  85. package/dist/cjs/ptc-readmore.cjs.entry.js +82 -82
  86. package/dist/cjs/ptc-related-card-rail.cjs.entry.js +149 -149
  87. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +54 -54
  88. package/dist/cjs/ptc-search-field.cjs.entry.js +71 -71
  89. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +50 -50
  90. package/dist/cjs/ptc-slit-card.cjs.entry.js +25 -25
  91. package/dist/cjs/ptc-spacer.cjs.entry.js +27 -27
  92. package/dist/cjs/ptc-span.cjs.entry.js +20 -20
  93. package/dist/cjs/ptc-square-card.cjs.entry.js +10 -10
  94. package/dist/cjs/ptc-sticky-icons.cjs.entry.js +32 -32
  95. package/dist/cjs/ptc-sticky-section.cjs.entry.js +30 -30
  96. package/dist/cjs/ptc-sticky-title.cjs.entry.js +23 -23
  97. package/dist/cjs/ptc-subnav-card.cjs.entry.js +15 -15
  98. package/dist/cjs/ptc-subnav.cjs.entry.js +24 -24
  99. package/dist/cjs/ptc-svg-btn.cjs.entry.js +95 -95
  100. package/dist/cjs/ptc-tab-list.cjs.entry.js +143 -143
  101. package/dist/cjs/ptc-tab.cjs.entry.js +20 -20
  102. package/dist/cjs/ptc-tabs.cjs.entry.js +47 -47
  103. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +43 -43
  104. package/dist/cjs/ptc-theater-video-modal.cjs.entry.js +81 -81
  105. package/dist/cjs/ptc-title.cjs.entry.js +67 -67
  106. package/dist/cjs/ptc-tooltip.cjs.entry.js +95 -95
  107. package/dist/cjs/ptc-two-column-media.cjs.entry.js +15 -15
  108. package/dist/cjs/ptc-value-prop-card.cjs.entry.js +13 -13
  109. package/dist/cjs/sequential-bundle-example.cjs.entry.js +108 -108
  110. package/dist/cjs/sequential-bundle.cjs.entry.js +88 -88
  111. package/dist/cjs/tab-content.cjs.entry.js +27 -27
  112. package/dist/cjs/tab-header.cjs.entry.js +65 -65
  113. package/dist/cjs/{utils-9eb22041.js → utils-416c94fe.js} +90 -90
  114. package/dist/collection/components/dropdown-item/dropdown-item.js +61 -61
  115. package/dist/collection/components/dynamic-box-bundle/dynamic-box-bundle.js +114 -114
  116. package/dist/collection/components/icon-asset/icon-asset.css +4 -4
  117. package/dist/collection/components/icon-asset/icon-asset.js +199 -199
  118. package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
  119. package/dist/collection/components/icon-asset/media/designer.svg +489 -489
  120. package/dist/collection/components/icon-asset/media/regular.svg +463 -463
  121. package/dist/collection/components/icon-asset/media/solid.svg +3016 -3016
  122. package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
  123. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.js +89 -89
  124. package/dist/collection/components/list-item/list-item.js +144 -144
  125. package/dist/collection/components/max-width-container/max-width-container.css +11 -11
  126. package/dist/collection/components/max-width-container/max-width-container.js +146 -146
  127. package/dist/collection/components/my-component/my-component.css +3 -3
  128. package/dist/collection/components/my-component/my-component.js +82 -82
  129. package/dist/collection/components/organism-bundles/author-listing-example/author-listing-example.css +69 -69
  130. package/dist/collection/components/organism-bundles/author-listing-example/author-listing-example.js +282 -282
  131. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.css +25 -25
  132. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.js +79 -79
  133. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +218 -218
  134. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.js +122 -122
  135. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.css +3 -3
  136. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.js +91 -91
  137. package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +121 -121
  138. package/dist/collection/components/organism-bundles/form/footer-form/footer-form.js +72 -72
  139. package/dist/collection/components/organism-bundles/form/ptc-form/ptc-form.css +13 -13
  140. package/dist/collection/components/organism-bundles/form/ptc-form/ptc-form.js +94 -94
  141. package/dist/collection/components/organism-bundles/sequential-bundle/sequential-bundle.js +116 -116
  142. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.css +90 -90
  143. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.js +160 -160
  144. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +306 -306
  145. package/dist/collection/components/ptc-accordion/ptc-accordion.js +100 -100
  146. package/dist/collection/components/ptc-announcement/ptc-announcement.js +274 -274
  147. package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.js +61 -61
  148. package/dist/collection/components/ptc-background-video/ptc-background-video.js +200 -200
  149. package/dist/collection/components/ptc-bio-card/ptc-bio-card.js +130 -130
  150. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +105 -105
  151. package/dist/collection/components/ptc-brightcov-video/ptc-brightcov-video.js +79 -79
  152. package/dist/collection/components/ptc-button/ptc-button.js +304 -304
  153. package/dist/collection/components/ptc-card/ptc-card.js +439 -439
  154. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +116 -116
  155. package/dist/collection/components/ptc-card-content/ptc-card-content.js +212 -212
  156. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +253 -253
  157. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.js +91 -91
  158. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +152 -152
  159. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +639 -639
  160. package/dist/collection/components/ptc-container/ptc-container.js +138 -138
  161. package/dist/collection/components/ptc-date/ptc-date.js +224 -224
  162. package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +162 -162
  163. package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +15 -15
  164. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +192 -192
  165. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +137 -137
  166. package/dist/collection/components/ptc-embedded-quiz/ptc-embedded-quiz.js +146 -146
  167. package/dist/collection/components/ptc-featured-list/fl-tab-content/fl-tab-content.js +61 -61
  168. package/dist/collection/components/ptc-featured-list/fl-tab-header/fl-tab-header.js +114 -114
  169. package/dist/collection/components/ptc-featured-list/fl-tab-image/fl-tab-image.js +61 -61
  170. package/dist/collection/components/ptc-featured-list/ptc-featured-list.js +128 -128
  171. package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.js +134 -134
  172. package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.js +98 -98
  173. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +113 -113
  174. package/dist/collection/components/ptc-form-checkbox/ptc-form-checkbox.js +209 -209
  175. package/dist/collection/components/ptc-hero/ptc-hero.js +86 -86
  176. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +78 -78
  177. package/dist/collection/components/ptc-icon-component/ptc-icon-component.js +87 -87
  178. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +127 -127
  179. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +119 -119
  180. package/dist/collection/components/ptc-image-download-strip/ptc-image-download-strip.js +51 -51
  181. package/dist/collection/components/ptc-img/ptc-img.js +311 -311
  182. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +355 -355
  183. package/dist/collection/components/ptc-link/ptc-link.js +239 -239
  184. package/dist/collection/components/ptc-list/ptc-list.js +99 -99
  185. package/dist/collection/components/ptc-media-card/ptc-media-card.js +240 -240
  186. package/dist/collection/components/ptc-minimized-nav/ptc-minimized-nav.js +100 -100
  187. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +199 -199
  188. package/dist/collection/components/ptc-modal/ptc-modal.js +407 -407
  189. package/dist/collection/components/ptc-modal-quiz/ptc-modal-quiz.js +191 -191
  190. package/dist/collection/components/ptc-nav-card/ptc-nav-card.js +224 -224
  191. package/dist/collection/components/ptc-nav-pills/ptc-nav-pills.js +18 -18
  192. package/dist/collection/components/ptc-news/ptc-news.js +176 -176
  193. package/dist/collection/components/ptc-overlay/ptc-overlay.js +131 -131
  194. package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +573 -573
  195. package/dist/collection/components/ptc-para/ptc-para.js +242 -242
  196. package/dist/collection/components/ptc-picture/ptc-picture.js +500 -500
  197. package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.js +78 -78
  198. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +78 -78
  199. package/dist/collection/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.js +139 -139
  200. package/dist/collection/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.js +75 -75
  201. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +70 -70
  202. package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +454 -459
  203. package/dist/collection/components/ptc-pricing-table/ptc-pricing-table.js +680 -680
  204. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +272 -272
  205. package/dist/collection/components/ptc-product-card/ptc-product-card.js +162 -162
  206. package/dist/collection/components/ptc-product-category/ptc-product-category.js +60 -60
  207. package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.js +185 -185
  208. package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.js +96 -96
  209. package/dist/collection/components/ptc-product-list/ptc-product-list.js +194 -194
  210. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +252 -252
  211. package/dist/collection/components/ptc-progress-bar/ptc-progress-bar.js +42 -42
  212. package/dist/collection/components/ptc-quote/ptc-quote.js +144 -144
  213. package/dist/collection/components/ptc-readmore/ptc-readmore.js +326 -326
  214. package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.js +133 -133
  215. package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.js +190 -190
  216. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
  217. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +65 -65
  218. package/dist/collection/components/ptc-search-field/ptc-search-field.js +247 -247
  219. package/dist/collection/components/ptc-select/ptc-select.js +190 -190
  220. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +97 -97
  221. package/dist/collection/components/ptc-skeleton/ptc-skeleton.js +139 -139
  222. package/dist/collection/components/ptc-slit-card/ptc-slit-card.js +181 -181
  223. package/dist/collection/components/ptc-social-share/ptc-social-share.js +267 -267
  224. package/dist/collection/components/ptc-spacer/ptc-spacer.css +332 -332
  225. package/dist/collection/components/ptc-spacer/ptc-spacer.js +97 -97
  226. package/dist/collection/components/ptc-span/ptc-span.js +107 -107
  227. package/dist/collection/components/ptc-square-card/ptc-square-card.js +60 -60
  228. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +51 -51
  229. package/dist/collection/components/ptc-sticky-section/ptc-sticky-section.js +49 -49
  230. package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.js +89 -89
  231. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +109 -109
  232. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +214 -214
  233. package/dist/collection/components/ptc-tabs/ptc-tab.js +121 -121
  234. package/dist/collection/components/ptc-tabs/ptc-tabs.js +104 -104
  235. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +199 -199
  236. package/dist/collection/components/ptc-textfield/ptc-textfield.js +355 -355
  237. package/dist/collection/components/ptc-theater-video/ptc-theater-video.js +181 -181
  238. package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.js +128 -128
  239. package/dist/collection/components/ptc-theater-video-playlist/ptc-theater-video-playlist.js +165 -165
  240. package/dist/collection/components/ptc-title/ptc-title.js +310 -310
  241. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +342 -342
  242. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +48 -48
  243. package/dist/collection/components/ptc-value-prop-card/ptc-value-prop-card.js +117 -117
  244. package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.js +131 -131
  245. package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.js +133 -133
  246. package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.js +121 -121
  247. package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.js +78 -78
  248. package/dist/collection/components/subnav/ptc-subnav-card/ptc-subnav-card.js +133 -133
  249. package/dist/collection/components/tab-content/tab-content.js +84 -84
  250. package/dist/collection/components/tab-header/tab-header.js +183 -183
  251. package/dist/collection/index.js +1 -1
  252. package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -11
  253. package/dist/collection/media/svg-imgs/close.svg +10 -10
  254. package/dist/collection/media/svg-imgs/nav-active-dotslick.svg +16 -16
  255. package/dist/collection/media/svg-imgs/play-button-dark.svg +20 -20
  256. package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +3 -3
  257. package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +3 -3
  258. package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
  259. package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
  260. package/dist/collection/media/svg-imgs/union.svg +3 -3
  261. package/dist/collection/stories/Accordian.stories.js +205 -205
  262. package/dist/collection/stories/Announcement.stories.js +64 -64
  263. package/dist/collection/stories/BackgroundImage.stories.js +81 -81
  264. package/dist/collection/stories/Breadcrumb.stories.js +50 -50
  265. package/dist/collection/stories/Button.stories.js +119 -119
  266. package/dist/collection/stories/Card.stories.js +234 -234
  267. package/dist/collection/stories/CardWrapper.stories.js +270 -270
  268. package/dist/collection/stories/Checkbox.stories.js +52 -52
  269. package/dist/collection/stories/Date.stories.js +81 -81
  270. package/dist/collection/stories/Dropdown.stories.js +48 -48
  271. package/dist/collection/stories/DynamicCard.stories.js +68 -68
  272. package/dist/collection/stories/FilterTag.stories.js +73 -73
  273. package/dist/collection/stories/FormCheckbox.stories.js +57 -57
  274. package/dist/collection/stories/Hero.stories.js +119 -119
  275. package/dist/collection/stories/Icon.stories.js +71 -71
  276. package/dist/collection/stories/IconList.stories.js +114 -114
  277. package/dist/collection/stories/IconMinimize.stories.js +40 -40
  278. package/dist/collection/stories/Link.stories.js +101 -101
  279. package/dist/collection/stories/ListItem.stories.js +59 -59
  280. package/dist/collection/stories/MaxWidthContainer.stories.js +45 -45
  281. package/dist/collection/stories/MinimizedHeader.stories.js +37 -37
  282. package/dist/collection/stories/MobileSelect.stories.js +79 -79
  283. package/dist/collection/stories/Modal.stories.js +105 -105
  284. package/dist/collection/stories/Overlay.stories.js +48 -48
  285. package/dist/collection/stories/Pagination.stories.js +101 -101
  286. package/dist/collection/stories/Paragraph.stories.js +95 -95
  287. package/dist/collection/stories/Picture.stories.js +139 -139
  288. package/dist/collection/stories/Quote.stories.js +107 -107
  289. package/dist/collection/stories/ReadMore.stories.js +100 -100
  290. package/dist/collection/stories/Select.stories.js +81 -81
  291. package/dist/collection/stories/SocialShare.stories.js +66 -66
  292. package/dist/collection/stories/Spacer.stories.js +48 -48
  293. package/dist/collection/stories/Span.stories.js +57 -57
  294. package/dist/collection/stories/SvgButton.stories.js +34 -34
  295. package/dist/collection/stories/Tabs.stories.js +213 -213
  296. package/dist/collection/stories/TextCopyWithBackground.stories.js +237 -237
  297. package/dist/collection/stories/Textfield.stories.js +81 -81
  298. package/dist/collection/stories/Title.stories.js +115 -115
  299. package/dist/collection/stories/Tooltip.stories.js +112 -112
  300. package/dist/collection/utils/component.js +3 -3
  301. package/dist/collection/utils/eloqua-tracking.js +42 -42
  302. package/dist/collection/utils/elq-lib.js +319 -319
  303. package/dist/collection/utils/interfaces.js +11 -11
  304. package/dist/collection/utils/utils.js +92 -92
  305. package/dist/custom-elements/index.js +8429 -8434
  306. package/dist/esm/author-listing-example.entry.js +232 -232
  307. package/dist/esm/bundle-example.entry.js +43 -43
  308. package/dist/esm/bundle-jumbotron-example.entry.js +39 -39
  309. package/dist/esm/dropdown-item.entry.js +10 -10
  310. package/dist/esm/dynamic-box-bundle.entry.js +25 -25
  311. package/dist/esm/embedded-form.entry.js +420 -420
  312. package/dist/esm/featured-list.entry.js +90 -90
  313. package/dist/esm/fl-tab-content_3.entry.js +44 -44
  314. package/dist/esm/footer-form.entry.js +55 -55
  315. package/dist/esm/icon-asset.entry.js +42 -42
  316. package/dist/esm/innovator-toggle-container.entry.js +21 -21
  317. package/dist/esm/{interfaces-4caedd26.js → interfaces-3cb94654.js} +9 -9
  318. package/dist/esm/list-item.entry.js +22 -22
  319. package/dist/esm/max-width-container.entry.js +43 -43
  320. package/dist/esm/my-component.entry.js +15 -15
  321. package/dist/esm/polyfills/core-js.js +0 -0
  322. package/dist/esm/polyfills/dom.js +0 -0
  323. package/dist/esm/polyfills/es5-html-element.js +0 -0
  324. package/dist/esm/polyfills/index.js +0 -0
  325. package/dist/esm/polyfills/system.js +0 -0
  326. package/dist/esm/ptc-accordion-item.entry.js +84 -84
  327. package/dist/esm/ptc-accordion.entry.js +39 -39
  328. package/dist/esm/ptc-announcement.entry.js +52 -52
  329. package/dist/esm/ptc-back-to-top.entry.js +35 -35
  330. package/dist/esm/ptc-background-video.entry.js +57 -57
  331. package/dist/esm/ptc-bio-card.entry.js +24 -24
  332. package/dist/esm/ptc-breadcrumb_2.entry.js +132 -132
  333. package/dist/esm/ptc-brightcov-video.entry.js +46 -46
  334. package/dist/esm/ptc-button.entry.js +39 -39
  335. package/dist/esm/ptc-card-bottom_3.entry.js +130 -130
  336. package/dist/esm/ptc-card-content.entry.js +57 -57
  337. package/dist/esm/ptc-card.entry.js +74 -74
  338. package/dist/esm/ptc-case-studies-slider.entry.js +77 -77
  339. package/dist/esm/ptc-checkbox.entry.js +50 -50
  340. package/dist/esm/ptc-collapse-list.entry.js +397 -397
  341. package/dist/esm/ptc-container.entry.js +33 -33
  342. package/dist/esm/ptc-date.entry.js +50 -50
  343. package/dist/esm/ptc-dropdown.entry.js +64 -64
  344. package/dist/esm/ptc-dynamic-card.entry.js +48 -48
  345. package/dist/esm/ptc-ellipsis-dropdown.entry.js +46 -46
  346. package/dist/esm/ptc-embedded-quiz.entry.js +89 -89
  347. package/dist/esm/ptc-featured-list.entry.js +95 -95
  348. package/dist/esm/ptc-filter-dropdown_4.entry.js +268 -268
  349. package/dist/esm/ptc-filter-level-theater.entry.js +52 -52
  350. package/dist/esm/ptc-filter-tag.entry.js +57 -57
  351. package/dist/esm/ptc-form-checkbox_3.entry.js +224 -224
  352. package/dist/esm/ptc-form.entry.js +78 -78
  353. package/dist/esm/ptc-hero-footer-cta.entry.js +11 -11
  354. package/dist/esm/ptc-hero.entry.js +18 -18
  355. package/dist/esm/ptc-icon-component.entry.js +60 -60
  356. package/dist/esm/ptc-icon-list.entry.js +21 -21
  357. package/dist/esm/ptc-icon-minimize.entry.js +43 -43
  358. package/dist/esm/ptc-image-download-strip.entry.js +18 -18
  359. package/dist/esm/ptc-img.entry.js +122 -122
  360. package/dist/esm/ptc-link.entry.js +48 -48
  361. package/dist/esm/ptc-list.entry.js +49 -49
  362. package/dist/esm/ptc-media-card.entry.js +58 -58
  363. package/dist/esm/ptc-minimized-nav.entry.js +12 -12
  364. package/dist/esm/ptc-mobile-select.entry.js +62 -62
  365. package/dist/esm/ptc-modal-quiz.entry.js +115 -115
  366. package/dist/esm/ptc-modal.entry.js +150 -150
  367. package/dist/esm/ptc-nav-card.entry.js +36 -36
  368. package/dist/esm/ptc-nav-link.entry.js +36 -36
  369. package/dist/esm/ptc-nav-pills.entry.js +8 -8
  370. package/dist/esm/ptc-nav-slider.entry.js +90 -90
  371. package/dist/esm/ptc-nav-submenu.entry.js +37 -37
  372. package/dist/esm/ptc-news.entry.js +24 -24
  373. package/dist/esm/ptc-overlay.entry.js +23 -23
  374. package/dist/esm/ptc-pagenation.entry.js +306 -306
  375. package/dist/esm/ptc-para.entry.js +51 -51
  376. package/dist/esm/ptc-picture.entry.js +152 -152
  377. package/dist/esm/ptc-podcast-card.entry.js +11 -11
  378. package/dist/esm/ptc-previous-url.entry.js +11 -11
  379. package/dist/esm/ptc-pricing-add-on-card.entry.js +17 -17
  380. package/dist/esm/ptc-pricing-add-on-section.entry.js +38 -38
  381. package/dist/esm/ptc-pricing-block.entry.js +20 -20
  382. package/dist/esm/ptc-pricing-packaging-table.entry.js +312 -317
  383. package/dist/esm/ptc-pricing-table.entry.js +525 -525
  384. package/dist/esm/ptc-pricing-tabs.entry.js +124 -124
  385. package/dist/esm/ptc-product-card.entry.js +22 -22
  386. package/dist/esm/ptc-product-category.entry.js +10 -10
  387. package/dist/esm/ptc-product-dropdown.entry.js +69 -69
  388. package/dist/esm/ptc-product-highlight-card.entry.js +12 -12
  389. package/dist/esm/ptc-product-list.entry.js +140 -140
  390. package/dist/esm/ptc-product-sidebar.entry.js +128 -128
  391. package/dist/esm/ptc-progress-bar.entry.js +16 -16
  392. package/dist/esm/ptc-quote.entry.js +23 -23
  393. package/dist/esm/ptc-readmore-char.entry.js +24 -24
  394. package/dist/esm/ptc-readmore.entry.js +82 -82
  395. package/dist/esm/ptc-related-card-rail.entry.js +149 -149
  396. package/dist/esm/ptc-responsive-wrapper.entry.js +54 -54
  397. package/dist/esm/ptc-search-field.entry.js +71 -71
  398. package/dist/esm/ptc-shopping-cart.entry.js +50 -50
  399. package/dist/esm/ptc-slit-card.entry.js +25 -25
  400. package/dist/esm/ptc-spacer.entry.js +27 -27
  401. package/dist/esm/ptc-span.entry.js +20 -20
  402. package/dist/esm/ptc-square-card.entry.js +10 -10
  403. package/dist/esm/ptc-sticky-icons.entry.js +32 -32
  404. package/dist/esm/ptc-sticky-section.entry.js +30 -30
  405. package/dist/esm/ptc-sticky-title.entry.js +23 -23
  406. package/dist/esm/ptc-subnav-card.entry.js +15 -15
  407. package/dist/esm/ptc-subnav.entry.js +24 -24
  408. package/dist/esm/ptc-svg-btn.entry.js +95 -95
  409. package/dist/esm/ptc-tab-list.entry.js +143 -143
  410. package/dist/esm/ptc-tab.entry.js +20 -20
  411. package/dist/esm/ptc-tabs.entry.js +47 -47
  412. package/dist/esm/ptc-text-copy-with-background.entry.js +43 -43
  413. package/dist/esm/ptc-theater-video-modal.entry.js +81 -81
  414. package/dist/esm/ptc-title.entry.js +67 -67
  415. package/dist/esm/ptc-tooltip.entry.js +95 -95
  416. package/dist/esm/ptc-two-column-media.entry.js +15 -15
  417. package/dist/esm/ptc-value-prop-card.entry.js +13 -13
  418. package/dist/esm/sequential-bundle-example.entry.js +108 -108
  419. package/dist/esm/sequential-bundle.entry.js +88 -88
  420. package/dist/esm/tab-content.entry.js +27 -27
  421. package/dist/esm/tab-header.entry.js +65 -65
  422. package/dist/esm/{utils-38decc43.js → utils-f937097d.js} +90 -90
  423. package/dist/ptcw-design/media/brands.svg +1381 -1381
  424. package/dist/ptcw-design/media/designer.svg +489 -489
  425. package/dist/ptcw-design/media/nav-active-dotslick.svg +15 -15
  426. package/dist/ptcw-design/media/regular.svg +463 -463
  427. package/dist/ptcw-design/media/solid.svg +3016 -3016
  428. package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
  429. package/dist/ptcw-design/{p-b4547b7f.entry.js → p-08111375.entry.js} +1 -1
  430. package/dist/ptcw-design/{p-003e61e7.entry.js → p-3e52fe43.entry.js} +1 -1
  431. package/dist/ptcw-design/{p-40a6e32d.entry.js → p-5893a183.entry.js} +1 -1
  432. package/dist/ptcw-design/p-58c140ab.entry.js +1 -0
  433. package/dist/ptcw-design/{p-46e3abad.entry.js → p-6ec80150.entry.js} +1 -1
  434. package/dist/ptcw-design/{p-1aec473a.entry.js → p-86130704.entry.js} +1 -1
  435. package/dist/ptcw-design/{p-2c6cce6c.entry.js → p-a5716559.entry.js} +1 -1
  436. package/dist/ptcw-design/p-aee89482.entry.js +1 -0
  437. package/dist/ptcw-design/{p-3aa32e28.entry.js → p-ee7854e1.entry.js} +1 -1
  438. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  439. package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
  440. package/dist/types/components/dynamic-box-bundle/dynamic-box-bundle.d.ts +10 -10
  441. package/dist/types/components/icon-asset/icon-asset.d.ts +40 -40
  442. package/dist/types/components/innovator-toggle-container/innovator-toggle-container.d.ts +17 -17
  443. package/dist/types/components/list-item/list-item.d.ts +16 -16
  444. package/dist/types/components/max-width-container/max-width-container.d.ts +16 -16
  445. package/dist/types/components/my-component/my-component.d.ts +16 -16
  446. package/dist/types/components/organism-bundles/author-listing-example/author-listing-example.d.ts +12 -12
  447. package/dist/types/components/organism-bundles/bundle-example/bundle-example.d.ts +14 -14
  448. package/dist/types/components/organism-bundles/bundle-featured-list/featured-list.d.ts +12 -12
  449. package/dist/types/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.d.ts +5 -5
  450. package/dist/types/components/organism-bundles/form/embedded-form/embedded-form.d.ts +33 -33
  451. package/dist/types/components/organism-bundles/form/footer-form/footer-form.d.ts +14 -14
  452. package/dist/types/components/organism-bundles/form/ptc-form/ptc-form.d.ts +25 -25
  453. package/dist/types/components/organism-bundles/sequential-bundle/sequential-bundle.d.ts +12 -12
  454. package/dist/types/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.d.ts +16 -16
  455. package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +63 -63
  456. package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +17 -17
  457. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +59 -59
  458. package/dist/types/components/ptc-back-to-top/ptc-back-to-top.d.ts +9 -9
  459. package/dist/types/components/ptc-background-video/ptc-background-video.d.ts +45 -45
  460. package/dist/types/components/ptc-bio-card/ptc-bio-card.d.ts +27 -27
  461. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +20 -20
  462. package/dist/types/components/ptc-brightcov-video/ptc-brightcov-video.d.ts +6 -6
  463. package/dist/types/components/ptc-button/ptc-button.d.ts +64 -64
  464. package/dist/types/components/ptc-card/ptc-card.d.ts +84 -84
  465. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
  466. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +19 -19
  467. package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +30 -30
  468. package/dist/types/components/ptc-case-studies-slider/ptc-case-studies-slider.d.ts +14 -14
  469. package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +14 -14
  470. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +60 -60
  471. package/dist/types/components/ptc-container/ptc-container.d.ts +13 -13
  472. package/dist/types/components/ptc-date/ptc-date.d.ts +46 -46
  473. package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +19 -19
  474. package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +27 -27
  475. package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +15 -15
  476. package/dist/types/components/ptc-embedded-quiz/ptc-embedded-quiz.d.ts +21 -21
  477. package/dist/types/components/ptc-featured-list/fl-tab-content/fl-tab-content.d.ts +5 -5
  478. package/dist/types/components/ptc-featured-list/fl-tab-header/fl-tab-header.d.ts +12 -12
  479. package/dist/types/components/ptc-featured-list/fl-tab-image/fl-tab-image.d.ts +5 -5
  480. package/dist/types/components/ptc-featured-list/ptc-featured-list.d.ts +12 -12
  481. package/dist/types/components/ptc-filter-dropdown/ptc-filter-dropdown.d.ts +24 -24
  482. package/dist/types/components/ptc-filter-level-theater/ptc-filter-level-theater.d.ts +14 -14
  483. package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +17 -17
  484. package/dist/types/components/ptc-form-checkbox/ptc-form-checkbox.d.ts +20 -20
  485. package/dist/types/components/ptc-hero/ptc-hero.d.ts +16 -16
  486. package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +6 -6
  487. package/dist/types/components/ptc-icon-component/ptc-icon-component.d.ts +17 -17
  488. package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +21 -21
  489. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +12 -12
  490. package/dist/types/components/ptc-image-download-strip/ptc-image-download-strip.d.ts +9 -9
  491. package/dist/types/components/ptc-img/ptc-img.d.ts +55 -55
  492. package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +26 -26
  493. package/dist/types/components/ptc-link/ptc-link.d.ts +44 -44
  494. package/dist/types/components/ptc-list/ptc-list.d.ts +8 -8
  495. package/dist/types/components/ptc-media-card/ptc-media-card.d.ts +52 -52
  496. package/dist/types/components/ptc-minimized-nav/ptc-minimized-nav.d.ts +7 -7
  497. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +36 -36
  498. package/dist/types/components/ptc-modal/ptc-modal.d.ts +71 -71
  499. package/dist/types/components/ptc-modal-quiz/ptc-modal-quiz.d.ts +36 -36
  500. package/dist/types/components/ptc-nav-card/ptc-nav-card.d.ts +46 -46
  501. package/dist/types/components/ptc-nav-pills/ptc-nav-pills.d.ts +3 -3
  502. package/dist/types/components/ptc-news/ptc-news.d.ts +36 -36
  503. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +21 -21
  504. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +40 -40
  505. package/dist/types/components/ptc-para/ptc-para.d.ts +47 -47
  506. package/dist/types/components/ptc-picture/ptc-picture.d.ts +102 -102
  507. package/dist/types/components/ptc-podcast-card/ptc-podcast-card.d.ts +15 -15
  508. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +9 -9
  509. package/dist/types/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.d.ts +31 -31
  510. package/dist/types/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.d.ts +22 -22
  511. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +7 -7
  512. package/dist/types/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.d.ts +78 -78
  513. package/dist/types/components/ptc-pricing-table/ptc-pricing-table.d.ts +110 -110
  514. package/dist/types/components/ptc-pricing-tabs/ptc-pricing-tabs.d.ts +52 -52
  515. package/dist/types/components/ptc-product-card/ptc-product-card.d.ts +37 -37
  516. package/dist/types/components/ptc-product-category/ptc-product-category.d.ts +5 -5
  517. package/dist/types/components/ptc-product-dropdown/ptc-product-dropdown.d.ts +18 -18
  518. package/dist/types/components/ptc-product-highlight-card/ptc-product-highlight-card.d.ts +23 -23
  519. package/dist/types/components/ptc-product-list/ptc-product-list.d.ts +18 -18
  520. package/dist/types/components/ptc-product-sidebar/ptc-product-sidebar.d.ts +31 -31
  521. package/dist/types/components/ptc-progress-bar/ptc-progress-bar.d.ts +5 -5
  522. package/dist/types/components/ptc-quote/ptc-quote.d.ts +29 -29
  523. package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +58 -58
  524. package/dist/types/components/ptc-readmore-char/ptc-readmore-char.d.ts +30 -30
  525. package/dist/types/components/ptc-related-card-rail/ptc-related-card-rail.d.ts +30 -30
  526. package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
  527. package/dist/types/components/ptc-search-field/ptc-search-field.d.ts +23 -23
  528. package/dist/types/components/ptc-select/ptc-select.d.ts +18 -18
  529. package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
  530. package/dist/types/components/ptc-skeleton/ptc-skeleton.d.ts +10 -10
  531. package/dist/types/components/ptc-slit-card/ptc-slit-card.d.ts +36 -36
  532. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +37 -37
  533. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
  534. package/dist/types/components/ptc-span/ptc-span.d.ts +20 -20
  535. package/dist/types/components/ptc-square-card/ptc-square-card.d.ts +11 -11
  536. package/dist/types/components/ptc-sticky-icons/ptc-sticky-icons.d.ts +7 -7
  537. package/dist/types/components/ptc-sticky-section/ptc-sticky-section.d.ts +9 -9
  538. package/dist/types/components/ptc-sticky-title/ptc-sticky-title.d.ts +8 -8
  539. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +20 -20
  540. package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +23 -23
  541. package/dist/types/components/ptc-tabs/ptc-tab.d.ts +9 -9
  542. package/dist/types/components/ptc-tabs/ptc-tabs.d.ts +10 -10
  543. package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +38 -38
  544. package/dist/types/components/ptc-textfield/ptc-textfield.d.ts +27 -27
  545. package/dist/types/components/ptc-theater-video/ptc-theater-video.d.ts +14 -14
  546. package/dist/types/components/ptc-theater-video-modal/ptc-theater-video-modal.d.ts +16 -16
  547. package/dist/types/components/ptc-theater-video-playlist/ptc-theater-video-playlist.d.ts +26 -26
  548. package/dist/types/components/ptc-title/ptc-title.d.ts +54 -54
  549. package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +59 -59
  550. package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +9 -9
  551. package/dist/types/components/ptc-value-prop-card/ptc-value-prop-card.d.ts +23 -23
  552. package/dist/types/components/subnav/ptc-nav-link/ptc-nav-link.d.ts +26 -26
  553. package/dist/types/components/subnav/ptc-nav-slider/ptc-nav-slider.d.ts +11 -11
  554. package/dist/types/components/subnav/ptc-nav-submenu/ptc-nav-submenu.d.ts +23 -23
  555. package/dist/types/components/subnav/ptc-subnav/ptc-subnav.d.ts +11 -11
  556. package/dist/types/components/subnav/ptc-subnav-card/ptc-subnav-card.d.ts +27 -27
  557. package/dist/types/components/tab-content/tab-content.d.ts +12 -12
  558. package/dist/types/components/tab-header/tab-header.d.ts +22 -22
  559. package/dist/types/components.d.ts +186 -186
  560. package/dist/types/index.d.ts +1 -1
  561. package/dist/types/utils/component.d.ts +1 -1
  562. package/dist/types/utils/eloqua-tracking.d.ts +36 -36
  563. package/dist/types/utils/eloqua.d.ts +8 -8
  564. package/dist/types/utils/elq-lib.d.ts +49 -49
  565. package/dist/types/utils/interfaces.d.ts +32 -32
  566. package/dist/types/utils/utils.d.ts +5 -5
  567. package/package.json +88 -88
  568. package/readme.md +19 -19
  569. package/dist/ptcw-design/p-270e5fdf.entry.js +0 -1
  570. package/dist/ptcw-design/p-5e38a498.entry.js +0 -1
  571. /package/dist/ptcw-design/{p-711bcdad.js → p-240733ce.js} +0 -0
  572. /package/dist/ptcw-design/{p-36665caa.js → p-ea875d9e.js} +0 -0
@@ -1,459 +1,454 @@
1
- import { Host, h, Fragment } from '@stencil/core';
2
- export class PtcPricingPackagingTable {
3
- constructor() {
4
- this.verticalScrollContentClipperHeightOptions = {
5
- withSubNav: {
6
- desktop: 104,
7
- mobile: 80
8
- },
9
- withoutSubNav: {
10
- desktop: 40,
11
- mobile: 24
12
- }
13
- };
14
- this.handleVerticalScroll = () => {
15
- let verticalScrollContentClipper = this.el.shadowRoot.querySelector("#vertical-scroll-content-clipper");
16
- let tableContainer = this.el.shadowRoot.querySelector("#table-container");
17
- let tableBody = this.el.shadowRoot.querySelector("#table-body");
18
- let tableHeaderPlaceholder = this.el.shadowRoot.querySelector("#table-header-placeholder");
19
- let tableHeader = this.el.shadowRoot.querySelector("#table-header");
20
- const scrollTopPosition = window.scrollY || document.documentElement.scrollTop;
21
- if (scrollTopPosition < this.lastScrollTop) {
22
- // Scrolling up
23
- if (tableHeaderPlaceholder.getBoundingClientRect().top >= this.stickyTopAt) {
24
- // Unstick header
25
- this.headerType = "normal";
26
- tableHeader.style.top = '0px';
27
- }
28
- if (this.headerType === "sticky") {
29
- // Scroll the sticky header out of the window along with the table
30
- if (tableContainer.getBoundingClientRect().bottom > tableHeader.getBoundingClientRect().bottom) {
31
- if (tableHeader.getBoundingClientRect().top < this.stickyTopAt) {
32
- tableHeader.style.top = `${Math.min(tableContainer.getBoundingClientRect().bottom - tableHeader.clientHeight, this.stickyTopAt)}px`;
33
- verticalScrollContentClipper.style.top = `${(tableHeader.getBoundingClientRect().top - verticalScrollContentClipper.clientHeight)}px`;
34
- }
35
- }
36
- }
37
- }
38
- else if (scrollTopPosition > this.lastScrollTop) {
39
- // Scrolling down
40
- if (tableHeaderPlaceholder.getBoundingClientRect().top < this.stickyTopAt) {
41
- // Stick header
42
- this.headerType = "sticky";
43
- tableHeader.style.top = `${this.stickyTopAt}px`;
44
- tableHeader.style.width = `${tableBody.getBoundingClientRect().width}px`;
45
- tableHeader.scrollLeft = tableBody.scrollLeft;
46
- }
47
- if (this.headerType === "sticky") {
48
- // Scroll the sticky header back into view along with the table
49
- if (tableContainer.getBoundingClientRect().bottom <= tableHeader.getBoundingClientRect().bottom) {
50
- tableHeader.style.top = `${(tableContainer.getBoundingClientRect().bottom - tableHeader.clientHeight)}px`;
51
- verticalScrollContentClipper.style.top = `${(tableHeader.getBoundingClientRect().top - verticalScrollContentClipper.clientHeight)}px`;
52
- }
53
- }
54
- }
55
- this.lastScrollTop = scrollTopPosition <= 0 ? 0 : scrollTopPosition;
56
- };
57
- this.handleHorizontalScroll = (element) => {
58
- let tableHeader = this.el.shadowRoot.querySelector("#table-header");
59
- let tableBody = this.el.shadowRoot.querySelector("#table-body");
60
- if (element === "body") {
61
- tableHeader.scrollLeft = tableBody.scrollLeft;
62
- }
63
- else if (element === "header") {
64
- tableBody.scrollLeft = tableHeader.scrollLeft;
65
- }
66
- this.handleScrollButtonsVisibility();
67
- };
68
- this.handleScrollButtonsVisibility = () => {
69
- let tableBody = this.el.shadowRoot.querySelector("#table-body");
70
- let previousScrollButton = this.el.shadowRoot.querySelector("#previous-scroll-button");
71
- let nextScrollButton = this.el.shadowRoot.querySelector("#next-scroll-button");
72
- let horizontalScrollShadow = this.el.shadowRoot.querySelector("#horizontal-scroll-shadow");
73
- if (tableBody.scrollLeft === 0) {
74
- previousScrollButton.style.visibility = 'hidden';
75
- horizontalScrollShadow.style.visibility = 'hidden';
76
- }
77
- else {
78
- previousScrollButton.style.visibility = 'visible';
79
- horizontalScrollShadow.style.visibility = 'visible';
80
- }
81
- if ([-1, 0, 1].includes(Math.trunc(tableBody.scrollWidth - tableBody.scrollLeft) - Math.trunc(tableBody.getBoundingClientRect().width))) {
82
- nextScrollButton.style.visibility = 'hidden';
83
- }
84
- else {
85
- nextScrollButton.style.visibility = 'visible';
86
- }
87
- };
88
- this.handleForwardScroll = () => {
89
- let scrollAdded = 0;
90
- let tableBody = this.el.shadowRoot.querySelector("#table-body");
91
- let intervalId = setInterval(() => {
92
- scrollAdded += this.scrollAmount;
93
- if ((scrollAdded == this.scrollLimit) || [-1, 0, 1].includes(Math.trunc(tableBody.scrollWidth - tableBody.scrollLeft) - Math.trunc(tableBody.getBoundingClientRect().width))) {
94
- clearInterval(intervalId);
95
- }
96
- tableBody.scrollLeft += scrollAdded;
97
- }, this.scrollTimeInterval);
98
- };
99
- this.handleBackwardScroll = () => {
100
- let scrollReduced = 0;
101
- let pricingTable = this.el.shadowRoot.querySelector("#pricing-table");
102
- let tableBody = this.el.shadowRoot.querySelector("#table-body");
103
- let intervalId = setInterval(() => {
104
- scrollReduced += this.scrollAmount;
105
- if ((scrollReduced == this.scrollLimit) || (pricingTable.getBoundingClientRect().left >= tableBody.getBoundingClientRect().right)) {
106
- clearInterval(intervalId);
107
- }
108
- tableBody.scrollLeft -= scrollReduced;
109
- }, this.scrollTimeInterval);
110
- };
111
- this.setFillerCellWidth = (fillerWidth) => {
112
- this.el.style.setProperty('--filler-cell-width', `${fillerWidth}px`);
113
- };
114
- this.expandTableCells = () => {
115
- let pricingTable = this.el.shadowRoot.querySelector("#pricing-table");
116
- let desktopHeaderFirstCell = this.el.shadowRoot.querySelector(".desktop-header-first-cell");
117
- let emptySpace = pricingTable.getBoundingClientRect().width - desktopHeaderFirstCell.getBoundingClientRect().width;
118
- let fillerWidth = (emptySpace / this.dataCols);
119
- if (this.isDesktopView) {
120
- this.el.style.setProperty('--cell-width-xxs', `${this.cellWidthXXS}px`);
121
- this.el.style.setProperty('--cell-width-md', `${fillerWidth - this.cellLeftRightPadding}px`);
122
- }
123
- else {
124
- this.el.style.setProperty('--cell-width-xxs', `${fillerWidth - this.cellLeftRightPadding}px`);
125
- this.el.style.setProperty('--cell-width-md', `${this.cellWidthMD}px`);
126
- }
127
- };
128
- this.handleFillEmptySpace = () => {
129
- let pricingTable = this.el.shadowRoot.querySelector("#pricing-table");
130
- let tableHeaderPlaceholder = this.el.shadowRoot.querySelector("#table-header-placeholder");
131
- if (tableHeaderPlaceholder.getBoundingClientRect().right < pricingTable.getBoundingClientRect().right) {
132
- this.hasEmptySpace = true;
133
- this.expandTableCells();
134
- }
135
- };
136
- this.resetWidthVariables = () => {
137
- this.el.style.setProperty('--cell-width-xxs', `${this.cellWidthXXS}px`);
138
- this.el.style.setProperty('--cell-width-md', `${this.cellWidthMD}px`);
139
- };
140
- this.handleTableReset = () => {
141
- let verticalScrollContentClipper = this.el.shadowRoot.querySelector("#vertical-scroll-content-clipper");
142
- let tableHeader = this.el.shadowRoot.querySelector("#table-header");
143
- let tableBody = this.el.shadowRoot.querySelector("#table-body");
144
- let nextScrollButton = this.el.shadowRoot.querySelector("#next-scroll-button");
145
- let desktopHeaderFirstCell = this.el.shadowRoot.querySelector(".desktop-header-first-cell");
146
- let horizontalScrollShadow = this.el.shadowRoot.querySelector("#horizontal-scroll-shadow");
147
- this.isDesktopView = (window.innerWidth >= 992);
148
- this.resetWidthVariables();
149
- if (this.pageWithSubnav) {
150
- if (this.isDesktopView) {
151
- this.stickyTopAt = this.verticalScrollContentClipperHeightOptions["withSubNav"]["desktop"];
152
- }
153
- else {
154
- this.stickyTopAt = this.verticalScrollContentClipperHeightOptions["withSubNav"]["mobile"];
155
- }
156
- }
157
- else {
158
- if (this.isDesktopView) {
159
- this.stickyTopAt = this.verticalScrollContentClipperHeightOptions["withoutSubNav"]["desktop"];
160
- }
161
- else {
162
- this.stickyTopAt = this.verticalScrollContentClipperHeightOptions["withoutSubNav"]["mobile"];
163
- }
164
- }
165
- this.el.style.setProperty('--sticky-stop-at', `${this.stickyTopAt}px`);
166
- const bodyBackgroundColor = window.getComputedStyle(document.body, null).getPropertyValue('background-color');
167
- if (bodyBackgroundColor === ("rgba(0, 0, 0, 0)" || "transparent" || "white")) {
168
- verticalScrollContentClipper.style.backgroundColor = "white";
169
- }
170
- else {
171
- verticalScrollContentClipper.style.backgroundColor = bodyBackgroundColor;
172
- }
173
- verticalScrollContentClipper.style.width = `${tableBody.getBoundingClientRect().width + 20}px`;
174
- verticalScrollContentClipper.style.transform = `translateX(-10px)`;
175
- tableHeader.style.width = `${tableBody.getBoundingClientRect().width}px`;
176
- tableHeader.scrollLeft = tableBody.scrollLeft;
177
- nextScrollButton.style.left = `${tableBody.getBoundingClientRect().width}px`;
178
- horizontalScrollShadow.style.left = `${desktopHeaderFirstCell.getBoundingClientRect().width}px`;
179
- this.handleScrollButtonsVisibility();
180
- this.handleFillEmptySpace();
181
- };
182
- this.pageWithSubnav = false;
183
- this.tableTitle = undefined;
184
- this.tableSubTitle = "";
185
- this.dataRows = undefined;
186
- this.dataCols = undefined;
187
- this.disclaimerCount = 0;
188
- this.isDesktopView = undefined;
189
- this.cellWidthXXS = 180;
190
- this.cellWidthMD = 225;
191
- this.cellLeftRightPadding = 48;
192
- this.headerType = "normal";
193
- this.lastScrollTop = undefined;
194
- this.scrollTimeInterval = 25;
195
- this.scrollAmount = 5;
196
- this.scrollLimit = 50;
197
- this.stickyTopAt = undefined;
198
- this.columnHeaderLinks = [];
199
- this.hasEmptySpace = false;
200
- this.showFillerCells = false;
201
- this.showCtaButtonsRow = undefined;
202
- this.ctaButtons = [];
203
- this.disclaimers = [];
204
- this.tableDescription = undefined;
205
- }
206
- componentWillLoad() {
207
- let tableDescription = this.el.querySelector('[slot="table-description"]');
208
- if (tableDescription) {
209
- this.tableDescription = tableDescription;
210
- }
211
- let desktopHeaderFirstCellSlot = this.el.querySelector('[slot="desktop-header-first-cell"]');
212
- let desktopHeaderFirstCellText = desktopHeaderFirstCellSlot.innerHTML;
213
- this.el.insertAdjacentHTML('afterbegin', `<span slot="placeholder-desktop-header-first-cell">${desktopHeaderFirstCellText}</span>`);
214
- let columnHeaders = this.el.querySelectorAll('[slot^="column-header"]');
215
- for (let i = 0; i < this.dataCols; i++) {
216
- let slotValue = columnHeaders[i].getAttribute('slot');
217
- let headerText = columnHeaders[i].innerHTML;
218
- this.el.insertAdjacentHTML('afterbegin', `<span slot="placeholder-${slotValue}">${headerText}</span>`);
219
- }
220
- let headerLinks = this.el.querySelectorAll('[slot^="header-link"]');
221
- if (headerLinks.length > 0) {
222
- for (let i = 0; i < this.dataCols; i++) {
223
- let linkHref = headerLinks[i].getAttribute('href');
224
- let linkText = headerLinks[i].innerHTML;
225
- let linkTarget = headerLinks[i].getAttribute('target');
226
- this.columnHeaderLinks.push({ linkHref, linkText, linkTarget });
227
- headerLinks[i].remove();
228
- }
229
- }
230
- let rowHeaders = this.el.querySelectorAll('[slot^="row-header"]');
231
- for (let i = 0; i < this.dataRows; i++) {
232
- let slotValue = rowHeaders[i].getAttribute('slot');
233
- let headerText = rowHeaders[i].innerHTML;
234
- this.el.insertAdjacentHTML('afterbegin', `<span slot="desktop-${slotValue}">${headerText}</span><span slot="mobile-${slotValue}">${headerText}</span>`);
235
- rowHeaders[i].remove();
236
- }
237
- let ctaButtons = this.el.querySelectorAll('[slot^="cta-button"]');
238
- this.showCtaButtonsRow = (ctaButtons.length !== 0);
239
- for (let i = 0; i < this.dataCols; i++) {
240
- this.ctaButtons.push({
241
- linkHref: ctaButtons[i].getAttribute('href'),
242
- linkText: ctaButtons[i].innerHTML,
243
- linkTarget: ctaButtons[i].getAttribute('target')
244
- });
245
- ctaButtons[i].remove();
246
- }
247
- let disclaimers = this.el.querySelectorAll('[slot^="disclaimer"]');
248
- for (let i = 0; i < this.disclaimerCount; i++) {
249
- this.disclaimers.push(disclaimers[i].innerHTML);
250
- }
251
- }
252
- componentDidLoad() {
253
- this.handleTableReset();
254
- window.addEventListener("scroll", () => this.handleVerticalScroll());
255
- window.addEventListener("resize", () => this.handleTableReset());
256
- }
257
- render() {
258
- const TableTitle = () => {
259
- 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)
260
- ? h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "x-small" }), h("ptc-spacer", { breakpoint: "x-small", size: "small" }))
261
- : (this.tableDescription)
262
- ? h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))
263
- : null));
264
- };
265
- const TableSubTitle = () => {
266
- 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" })));
267
- };
268
- const TableDescription = () => {
269
- 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.innerText.length <= 500) ?
270
- h("slot", { name: "table-description" }) :
271
- h("ptc-readmore", { "more-text": "More", "less-text": "Less" }, h("slot", { name: "table-description" }))))));
272
- };
273
- const TableHeader = () => {
274
- return h("div", { id: "table-header", class: this.headerType, onScroll: () => this.handleHorizontalScroll("header") }, h("div", { class: `desktop-header-first-cell` }, (this.isDesktopView) ?
275
- 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" }, h("slot", { name: "desktop-header-first-cell" }))
276
- : null, h("div", { class: "scroll-button", id: "previous-scroll-button" }, h("div", { onClick: () => this.handleBackwardScroll() }, 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" }, "More"))), h("div", { class: "scroll-button", id: "next-scroll-button" }, h("div", { onClick: () => this.handleForwardScroll() }, 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" }, "More"), h("icon-asset", { type: "solid", size: "medium", name: "chevron-right", color: "primary-gray" })))), ([...Array(this.dataCols).keys()]).map(col => {
277
- return h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-densest", "para-margin": "margin-flush", "para-z-index": "z-1" }, h("slot", { name: `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: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}" }, this.isDesktopView ?
278
- 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" })
279
- : this.columnHeaderLinks[col].linkText)) : null);
280
- }), h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` }));
281
- };
282
- const TableHeaderPlaceholder = () => {
283
- return h("div", { id: "table-header-placeholder", class: this.headerType }, h("div", { class: `desktop-header-first-cell` }, (this.isDesktopView) ?
284
- 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" }, h("slot", { name: "placeholder-desktop-header-first-cell" }))
285
- : null), ([...Array(this.dataCols).keys()]).map(col => {
286
- return h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-densest", "para-margin": "margin-flush", "para-z-index": "z-1" }, h("slot", { name: `placeholder-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: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}" }, this.isDesktopView ?
287
- 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" })
288
- : this.columnHeaderLinks[col].linkText)) : null);
289
- }), h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` }));
290
- };
291
- const TableDataRows = () => {
292
- return ([...Array(this.dataRows).keys()]).map(row => {
293
- return h(Fragment, null, h("div", { class: "mobile-sticky-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-flush" }, h("slot", { name: `mobile-row-header-${row + 1}` }))), h("div", { class: `table-row ${(this.isDesktopView && (row % 2 != 0)) ? "desktop-alternate-row" : ""}` }, (this.isDesktopView) ?
294
- h("div", { class: `desktop-sticky-row-header ${(this.isDesktopView && (row % 2 != 0)) ? "desktop-alternate-row" : ""}` }, 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-flush" }, h("slot", { name: `desktop-row-header-${row + 1}` }))) : null, ([...Array(this.dataCols).keys()]).map(col => {
295
- return h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, h("slot", { name: `cell-r${row + 1}-c${col + 1}` }));
296
- }), h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` })));
297
- });
298
- };
299
- const TableCtaRow = () => {
300
- return (this.showCtaButtonsRow) ?
301
- h("div", { class: "table-cta-row" }, (this.isDesktopView) ?
302
- h("div", { class: "desktop-sticky-row-header" })
303
- : null, ([...Array(this.dataCols).keys()]).map(col => {
304
- return h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, h("ptc-button", { type: "link", color: "ptc-tertiary", "link-href": this.ctaButtons[col].linkHref, target: `${this.ctaButtons[col].linkTarget}` }, this.isDesktopView ?
305
- 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" })
306
- : this.ctaButtons[col].linkText));
307
- }), h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` })) : null;
308
- };
309
- const TableDisclaimers = () => {
310
- 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) => {
311
- 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" }, h("slot", { name: `disclaimer-${ind + 1}` })), (ind != (this.disclaimerCount - 1)) ? h("ptc-spacer", { size: "xx-small" }) : null);
312
- })));
313
- };
314
- return (h(Host, null, h("div", { id: "pricing-table" }, h(TableTitle, null), h(TableSubTitle, null), h(TableDescription, null), 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: "vertical-scroll-content-clipper", class: this.headerType }), h("div", { id: "table-container" }, h("div", { id: "horizontal-scroll-shadow" }), h("div", { id: "table-body", onScroll: () => this.handleHorizontalScroll("body") }, h(TableHeader, null), h(TableHeaderPlaceholder, null), h(TableDataRows, null), h(TableCtaRow, null))), h(TableDisclaimers, null))));
315
- }
316
- static get is() { return "ptc-pricing-packaging-table"; }
317
- static get encapsulation() { return "shadow"; }
318
- static get originalStyleUrls() {
319
- return {
320
- "$": ["ptc-pricing-packaging-table.scss"]
321
- };
322
- }
323
- static get styleUrls() {
324
- return {
325
- "$": ["ptc-pricing-packaging-table.css"]
326
- };
327
- }
328
- static get properties() {
329
- return {
330
- "pageWithSubnav": {
331
- "type": "boolean",
332
- "mutable": false,
333
- "complexType": {
334
- "original": "boolean",
335
- "resolved": "boolean",
336
- "references": {}
337
- },
338
- "required": false,
339
- "optional": true,
340
- "docs": {
341
- "tags": [],
342
- "text": "[True/False] If the page containing this table has a sticky sub-nav"
343
- },
344
- "attribute": "page-with-subnav",
345
- "reflect": false,
346
- "defaultValue": "false"
347
- },
348
- "tableTitle": {
349
- "type": "string",
350
- "mutable": false,
351
- "complexType": {
352
- "original": "string",
353
- "resolved": "string",
354
- "references": {}
355
- },
356
- "required": false,
357
- "optional": true,
358
- "docs": {
359
- "tags": [],
360
- "text": "Table title (H2)"
361
- },
362
- "attribute": "table-title",
363
- "reflect": false
364
- },
365
- "tableSubTitle": {
366
- "type": "string",
367
- "mutable": false,
368
- "complexType": {
369
- "original": "string",
370
- "resolved": "string",
371
- "references": {}
372
- },
373
- "required": false,
374
- "optional": true,
375
- "docs": {
376
- "tags": [],
377
- "text": "Table title (H3)"
378
- },
379
- "attribute": "table-sub-title",
380
- "reflect": false,
381
- "defaultValue": "\"\""
382
- },
383
- "dataRows": {
384
- "type": "number",
385
- "mutable": false,
386
- "complexType": {
387
- "original": "number",
388
- "resolved": "number",
389
- "references": {}
390
- },
391
- "required": false,
392
- "optional": true,
393
- "docs": {
394
- "tags": [],
395
- "text": "Number of data rows in the table"
396
- },
397
- "attribute": "data-rows",
398
- "reflect": false
399
- },
400
- "dataCols": {
401
- "type": "number",
402
- "mutable": false,
403
- "complexType": {
404
- "original": "number",
405
- "resolved": "number",
406
- "references": {}
407
- },
408
- "required": false,
409
- "optional": true,
410
- "docs": {
411
- "tags": [],
412
- "text": "Number of data columns in the table"
413
- },
414
- "attribute": "data-cols",
415
- "reflect": false
416
- },
417
- "disclaimerCount": {
418
- "type": "number",
419
- "mutable": false,
420
- "complexType": {
421
- "original": "number",
422
- "resolved": "number",
423
- "references": {}
424
- },
425
- "required": false,
426
- "optional": true,
427
- "docs": {
428
- "tags": [],
429
- "text": "Number of disclaimers below the table"
430
- },
431
- "attribute": "disclaimer-count",
432
- "reflect": false,
433
- "defaultValue": "0"
434
- }
435
- };
436
- }
437
- static get states() {
438
- return {
439
- "isDesktopView": {},
440
- "cellWidthXXS": {},
441
- "cellWidthMD": {},
442
- "cellLeftRightPadding": {},
443
- "headerType": {},
444
- "lastScrollTop": {},
445
- "scrollTimeInterval": {},
446
- "scrollAmount": {},
447
- "scrollLimit": {},
448
- "stickyTopAt": {},
449
- "columnHeaderLinks": {},
450
- "hasEmptySpace": {},
451
- "showFillerCells": {},
452
- "showCtaButtonsRow": {},
453
- "ctaButtons": {},
454
- "disclaimers": {},
455
- "tableDescription": {}
456
- };
457
- }
458
- static get elementRef() { return "el"; }
459
- }
1
+ import { Host, h, Fragment } from '@stencil/core';
2
+ export class PtcPricingPackagingTable {
3
+ constructor() {
4
+ this.verticalScrollContentClipperHeightOptions = {
5
+ withSubNav: {
6
+ desktop: 104,
7
+ mobile: 80
8
+ },
9
+ withoutSubNav: {
10
+ desktop: 40,
11
+ mobile: 24
12
+ }
13
+ };
14
+ this.handleVerticalScroll = () => {
15
+ let verticalScrollContentClipper = this.el.shadowRoot.querySelector("#vertical-scroll-content-clipper");
16
+ let tableContainer = this.el.shadowRoot.querySelector("#table-container");
17
+ let tableBody = this.el.shadowRoot.querySelector("#table-body");
18
+ let tableHeaderPlaceholder = this.el.shadowRoot.querySelector("#table-header-placeholder");
19
+ let tableHeader = this.el.shadowRoot.querySelector("#table-header");
20
+ const scrollTopPosition = window.scrollY || document.documentElement.scrollTop;
21
+ if (scrollTopPosition < this.lastScrollTop) {
22
+ // Scrolling up
23
+ if (tableHeaderPlaceholder.getBoundingClientRect().top >= this.stickyTopAt) {
24
+ // Unstick header
25
+ this.headerType = "normal";
26
+ tableHeader.style.top = '0px';
27
+ }
28
+ if (this.headerType === "sticky") {
29
+ // Scroll the sticky header out of the window along with the table
30
+ if (tableContainer.getBoundingClientRect().bottom > tableHeader.getBoundingClientRect().bottom) {
31
+ if (tableHeader.getBoundingClientRect().top < this.stickyTopAt) {
32
+ tableHeader.style.top = `${Math.min(tableContainer.getBoundingClientRect().bottom - tableHeader.clientHeight, this.stickyTopAt)}px`;
33
+ verticalScrollContentClipper.style.top = `${(tableHeader.getBoundingClientRect().top - verticalScrollContentClipper.clientHeight)}px`;
34
+ }
35
+ }
36
+ }
37
+ }
38
+ else if (scrollTopPosition > this.lastScrollTop) {
39
+ // Scrolling down
40
+ if (tableHeaderPlaceholder.getBoundingClientRect().top < this.stickyTopAt) {
41
+ // Stick header
42
+ this.headerType = "sticky";
43
+ tableHeader.style.top = `${this.stickyTopAt}px`;
44
+ tableHeader.style.width = `${tableBody.getBoundingClientRect().width}px`;
45
+ tableHeader.scrollLeft = tableBody.scrollLeft;
46
+ }
47
+ if (this.headerType === "sticky") {
48
+ // Scroll the sticky header back into view along with the table
49
+ if (tableContainer.getBoundingClientRect().bottom <= tableHeader.getBoundingClientRect().bottom) {
50
+ tableHeader.style.top = `${(tableContainer.getBoundingClientRect().bottom - tableHeader.clientHeight)}px`;
51
+ verticalScrollContentClipper.style.top = `${(tableHeader.getBoundingClientRect().top - verticalScrollContentClipper.clientHeight)}px`;
52
+ }
53
+ }
54
+ }
55
+ this.lastScrollTop = scrollTopPosition <= 0 ? 0 : scrollTopPosition;
56
+ };
57
+ this.handleHorizontalScroll = () => {
58
+ let tableHeader = this.el.shadowRoot.querySelector("#table-header");
59
+ let tableBody = this.el.shadowRoot.querySelector("#table-body");
60
+ tableHeader.scrollLeft = tableBody.scrollLeft;
61
+ this.handleScrollButtonsVisibility();
62
+ };
63
+ this.handleScrollButtonsVisibility = () => {
64
+ let tableBody = this.el.shadowRoot.querySelector("#table-body");
65
+ let previousScrollButton = this.el.shadowRoot.querySelector("#previous-scroll-button");
66
+ let nextScrollButton = this.el.shadowRoot.querySelector("#next-scroll-button");
67
+ let horizontalScrollShadow = this.el.shadowRoot.querySelector("#horizontal-scroll-shadow");
68
+ if (tableBody.scrollLeft === 0) {
69
+ previousScrollButton.style.visibility = 'hidden';
70
+ horizontalScrollShadow.style.visibility = 'hidden';
71
+ }
72
+ else {
73
+ previousScrollButton.style.visibility = 'visible';
74
+ horizontalScrollShadow.style.visibility = 'visible';
75
+ }
76
+ if ([-1, 0, 1].includes(Math.trunc(tableBody.scrollWidth - tableBody.scrollLeft) - Math.trunc(tableBody.getBoundingClientRect().width))) {
77
+ nextScrollButton.style.visibility = 'hidden';
78
+ }
79
+ else {
80
+ nextScrollButton.style.visibility = 'visible';
81
+ }
82
+ };
83
+ this.handleForwardScroll = () => {
84
+ let scrollAdded = 0;
85
+ let tableBody = this.el.shadowRoot.querySelector("#table-body");
86
+ let intervalId = setInterval(() => {
87
+ scrollAdded += this.scrollAmount;
88
+ if ((scrollAdded == this.scrollLimit) || [-1, 0, 1].includes(Math.trunc(tableBody.scrollWidth - tableBody.scrollLeft) - Math.trunc(tableBody.getBoundingClientRect().width))) {
89
+ clearInterval(intervalId);
90
+ }
91
+ tableBody.scrollLeft += scrollAdded;
92
+ }, this.scrollTimeInterval);
93
+ };
94
+ this.handleBackwardScroll = () => {
95
+ let scrollReduced = 0;
96
+ let pricingTable = this.el.shadowRoot.querySelector("#pricing-table");
97
+ let tableBody = this.el.shadowRoot.querySelector("#table-body");
98
+ let intervalId = setInterval(() => {
99
+ scrollReduced += this.scrollAmount;
100
+ if ((scrollReduced == this.scrollLimit) || (pricingTable.getBoundingClientRect().left >= tableBody.getBoundingClientRect().right)) {
101
+ clearInterval(intervalId);
102
+ }
103
+ tableBody.scrollLeft -= scrollReduced;
104
+ }, this.scrollTimeInterval);
105
+ };
106
+ this.setFillerCellWidth = (fillerWidth) => {
107
+ this.el.style.setProperty('--filler-cell-width', `${fillerWidth}px`);
108
+ };
109
+ this.expandTableCells = () => {
110
+ let pricingTable = this.el.shadowRoot.querySelector("#pricing-table");
111
+ let desktopHeaderFirstCell = this.el.shadowRoot.querySelector(".desktop-header-first-cell");
112
+ let emptySpace = pricingTable.getBoundingClientRect().width - desktopHeaderFirstCell.getBoundingClientRect().width;
113
+ let fillerWidth = (emptySpace / this.dataCols);
114
+ if (this.isDesktopView) {
115
+ this.el.style.setProperty('--cell-width-xxs', `${this.cellWidthXXS}px`);
116
+ this.el.style.setProperty('--cell-width-md', `${fillerWidth - this.cellLeftRightPadding}px`);
117
+ }
118
+ else {
119
+ this.el.style.setProperty('--cell-width-xxs', `${fillerWidth - this.cellLeftRightPadding}px`);
120
+ this.el.style.setProperty('--cell-width-md', `${this.cellWidthMD}px`);
121
+ }
122
+ };
123
+ this.handleFillEmptySpace = () => {
124
+ let pricingTable = this.el.shadowRoot.querySelector("#pricing-table");
125
+ let tableHeaderPlaceholder = this.el.shadowRoot.querySelector("#table-header-placeholder");
126
+ if (tableHeaderPlaceholder.getBoundingClientRect().right < pricingTable.getBoundingClientRect().right) {
127
+ this.hasEmptySpace = true;
128
+ this.expandTableCells();
129
+ }
130
+ };
131
+ this.resetWidthVariables = () => {
132
+ this.el.style.setProperty('--cell-width-xxs', `${this.cellWidthXXS}px`);
133
+ this.el.style.setProperty('--cell-width-md', `${this.cellWidthMD}px`);
134
+ };
135
+ this.handleTableReset = () => {
136
+ let verticalScrollContentClipper = this.el.shadowRoot.querySelector("#vertical-scroll-content-clipper");
137
+ let tableHeader = this.el.shadowRoot.querySelector("#table-header");
138
+ let tableBody = this.el.shadowRoot.querySelector("#table-body");
139
+ let nextScrollButton = this.el.shadowRoot.querySelector("#next-scroll-button");
140
+ let desktopHeaderFirstCell = this.el.shadowRoot.querySelector(".desktop-header-first-cell");
141
+ let horizontalScrollShadow = this.el.shadowRoot.querySelector("#horizontal-scroll-shadow");
142
+ this.isDesktopView = (window.innerWidth >= 992);
143
+ this.resetWidthVariables();
144
+ if (this.pageWithSubnav) {
145
+ if (this.isDesktopView) {
146
+ this.stickyTopAt = this.verticalScrollContentClipperHeightOptions["withSubNav"]["desktop"];
147
+ }
148
+ else {
149
+ this.stickyTopAt = this.verticalScrollContentClipperHeightOptions["withSubNav"]["mobile"];
150
+ }
151
+ }
152
+ else {
153
+ if (this.isDesktopView) {
154
+ this.stickyTopAt = this.verticalScrollContentClipperHeightOptions["withoutSubNav"]["desktop"];
155
+ }
156
+ else {
157
+ this.stickyTopAt = this.verticalScrollContentClipperHeightOptions["withoutSubNav"]["mobile"];
158
+ }
159
+ }
160
+ this.el.style.setProperty('--sticky-stop-at', `${this.stickyTopAt}px`);
161
+ const bodyBackgroundColor = window.getComputedStyle(document.body, null).getPropertyValue('background-color');
162
+ if (bodyBackgroundColor === ("rgba(0, 0, 0, 0)" || "transparent" || "white")) {
163
+ verticalScrollContentClipper.style.backgroundColor = "white";
164
+ }
165
+ else {
166
+ verticalScrollContentClipper.style.backgroundColor = bodyBackgroundColor;
167
+ }
168
+ verticalScrollContentClipper.style.width = `${tableBody.getBoundingClientRect().width + 20}px`;
169
+ verticalScrollContentClipper.style.transform = `translateX(-10px)`;
170
+ tableHeader.style.width = `${tableBody.getBoundingClientRect().width}px`;
171
+ tableHeader.scrollLeft = tableBody.scrollLeft;
172
+ nextScrollButton.style.left = `${tableBody.getBoundingClientRect().width}px`;
173
+ horizontalScrollShadow.style.left = `${desktopHeaderFirstCell.getBoundingClientRect().width}px`;
174
+ this.handleScrollButtonsVisibility();
175
+ this.handleFillEmptySpace();
176
+ };
177
+ this.pageWithSubnav = false;
178
+ this.tableTitle = undefined;
179
+ this.tableSubTitle = "";
180
+ this.dataRows = undefined;
181
+ this.dataCols = undefined;
182
+ this.disclaimerCount = 0;
183
+ this.isDesktopView = undefined;
184
+ this.cellWidthXXS = 180;
185
+ this.cellWidthMD = 225;
186
+ this.cellLeftRightPadding = 48;
187
+ this.headerType = "normal";
188
+ this.lastScrollTop = undefined;
189
+ this.scrollTimeInterval = 25;
190
+ this.scrollAmount = 5;
191
+ this.scrollLimit = 50;
192
+ this.stickyTopAt = undefined;
193
+ this.columnHeaderLinks = [];
194
+ this.hasEmptySpace = false;
195
+ this.showFillerCells = false;
196
+ this.showCtaButtonsRow = undefined;
197
+ this.ctaButtons = [];
198
+ this.disclaimers = [];
199
+ this.tableDescription = undefined;
200
+ }
201
+ componentWillLoad() {
202
+ let tableDescription = this.el.querySelector('[slot="table-description"]');
203
+ if (tableDescription) {
204
+ this.tableDescription = tableDescription;
205
+ }
206
+ let desktopHeaderFirstCellSlot = this.el.querySelector('[slot="desktop-header-first-cell"]');
207
+ let desktopHeaderFirstCellText = desktopHeaderFirstCellSlot.innerHTML;
208
+ this.el.insertAdjacentHTML('afterbegin', `<span slot="placeholder-desktop-header-first-cell">${desktopHeaderFirstCellText}</span>`);
209
+ let columnHeaders = this.el.querySelectorAll('[slot^="column-header"]');
210
+ for (let i = 0; i < this.dataCols; i++) {
211
+ let slotValue = columnHeaders[i].getAttribute('slot');
212
+ let headerText = columnHeaders[i].innerHTML;
213
+ this.el.insertAdjacentHTML('afterbegin', `<span slot="placeholder-${slotValue}">${headerText}</span>`);
214
+ }
215
+ let headerLinks = this.el.querySelectorAll('[slot^="header-link"]');
216
+ if (headerLinks.length > 0) {
217
+ for (let i = 0; i < this.dataCols; i++) {
218
+ let linkHref = headerLinks[i].getAttribute('href');
219
+ let linkText = headerLinks[i].innerHTML;
220
+ let linkTarget = headerLinks[i].getAttribute('target');
221
+ this.columnHeaderLinks.push({ linkHref, linkText, linkTarget });
222
+ headerLinks[i].remove();
223
+ }
224
+ }
225
+ let rowHeaders = this.el.querySelectorAll('[slot^="row-header"]');
226
+ for (let i = 0; i < this.dataRows; i++) {
227
+ let slotValue = rowHeaders[i].getAttribute('slot');
228
+ let headerText = rowHeaders[i].innerHTML;
229
+ this.el.insertAdjacentHTML('afterbegin', `<span slot="desktop-${slotValue}">${headerText}</span><span slot="mobile-${slotValue}">${headerText}</span>`);
230
+ rowHeaders[i].remove();
231
+ }
232
+ let ctaButtons = this.el.querySelectorAll('[slot^="cta-button"]');
233
+ this.showCtaButtonsRow = (ctaButtons.length !== 0);
234
+ for (let i = 0; i < this.dataCols; i++) {
235
+ this.ctaButtons.push({
236
+ linkHref: ctaButtons[i].getAttribute('href'),
237
+ linkText: ctaButtons[i].innerHTML,
238
+ linkTarget: ctaButtons[i].getAttribute('target')
239
+ });
240
+ ctaButtons[i].remove();
241
+ }
242
+ let disclaimers = this.el.querySelectorAll('[slot^="disclaimer"]');
243
+ for (let i = 0; i < this.disclaimerCount; i++) {
244
+ this.disclaimers.push(disclaimers[i].innerHTML);
245
+ }
246
+ }
247
+ componentDidLoad() {
248
+ this.handleTableReset();
249
+ window.addEventListener("scroll", () => this.handleVerticalScroll());
250
+ window.addEventListener("resize", () => this.handleTableReset());
251
+ }
252
+ render() {
253
+ const TableTitle = () => {
254
+ 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)
255
+ ? h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "x-small" }), h("ptc-spacer", { breakpoint: "x-small", size: "small" }))
256
+ : (this.tableDescription)
257
+ ? h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))
258
+ : null));
259
+ };
260
+ const TableSubTitle = () => {
261
+ 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" })));
262
+ };
263
+ const TableDescription = () => {
264
+ 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.innerText.length <= 500) ?
265
+ h("slot", { name: "table-description" }) :
266
+ h("ptc-readmore", { "more-text": "More", "less-text": "Less" }, h("slot", { name: "table-description" }))))));
267
+ };
268
+ const TableHeader = () => {
269
+ return h("div", { id: "table-header", class: this.headerType, onScroll: () => this.handleHorizontalScroll() }, h("div", { class: `desktop-header-first-cell` }, (this.isDesktopView) ?
270
+ 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" }, h("slot", { name: "desktop-header-first-cell" }))
271
+ : null, h("div", { class: "scroll-button", id: "previous-scroll-button" }, h("div", { onClick: () => this.handleBackwardScroll() }, 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" }, "More"))), h("div", { class: "scroll-button", id: "next-scroll-button" }, h("div", { onClick: () => this.handleForwardScroll() }, 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" }, "More"), h("icon-asset", { type: "solid", size: "medium", name: "chevron-right", color: "primary-gray" })))), ([...Array(this.dataCols).keys()]).map(col => {
272
+ return h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-densest", "para-margin": "margin-flush", "para-z-index": "z-1" }, h("slot", { name: `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: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}" }, this.isDesktopView ?
273
+ 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" })
274
+ : this.columnHeaderLinks[col].linkText)) : null);
275
+ }), h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` }));
276
+ };
277
+ const TableHeaderPlaceholder = () => {
278
+ return h("div", { id: "table-header-placeholder", class: this.headerType }, h("div", { class: `desktop-header-first-cell` }, (this.isDesktopView) ?
279
+ 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" }, h("slot", { name: "placeholder-desktop-header-first-cell" }))
280
+ : null), ([...Array(this.dataCols).keys()]).map(col => {
281
+ return h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-densest", "para-margin": "margin-flush", "para-z-index": "z-1" }, h("slot", { name: `placeholder-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: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}" }, this.isDesktopView ?
282
+ 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" })
283
+ : this.columnHeaderLinks[col].linkText)) : null);
284
+ }), h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` }));
285
+ };
286
+ const TableDataRows = () => {
287
+ return ([...Array(this.dataRows).keys()]).map(row => {
288
+ return h(Fragment, null, h("div", { class: "mobile-sticky-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-flush" }, h("slot", { name: `mobile-row-header-${row + 1}` }))), h("div", { class: `table-row ${(this.isDesktopView && (row % 2 != 0)) ? "desktop-alternate-row" : ""}` }, (this.isDesktopView) ?
289
+ h("div", { class: `desktop-sticky-row-header ${(this.isDesktopView && (row % 2 != 0)) ? "desktop-alternate-row" : ""}` }, 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-flush" }, h("slot", { name: `desktop-row-header-${row + 1}` }))) : null, ([...Array(this.dataCols).keys()]).map(col => {
290
+ return h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, h("slot", { name: `cell-r${row + 1}-c${col + 1}` }));
291
+ }), h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` })));
292
+ });
293
+ };
294
+ const TableCtaRow = () => {
295
+ return (this.showCtaButtonsRow) ?
296
+ h("div", { class: "table-cta-row" }, (this.isDesktopView) ?
297
+ h("div", { class: "desktop-sticky-row-header" })
298
+ : null, ([...Array(this.dataCols).keys()]).map(col => {
299
+ return h("div", { class: `table-cell ${(col + 1) === this.dataCols ? "table-last-cell" : ""}` }, h("ptc-button", { type: "link", color: "ptc-tertiary", "link-href": this.ctaButtons[col].linkHref, target: `${this.ctaButtons[col].linkTarget}` }, this.isDesktopView ?
300
+ 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" })
301
+ : this.ctaButtons[col].linkText));
302
+ }), h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` })) : null;
303
+ };
304
+ const TableDisclaimers = () => {
305
+ 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) => {
306
+ 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" }, h("slot", { name: `disclaimer-${ind + 1}` })), (ind != (this.disclaimerCount - 1)) ? h("ptc-spacer", { size: "xx-small" }) : null);
307
+ })));
308
+ };
309
+ return (h(Host, null, h("div", { id: "pricing-table" }, h(TableTitle, null), h(TableSubTitle, null), h(TableDescription, null), 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: "vertical-scroll-content-clipper", class: this.headerType }), h("div", { id: "table-container" }, h("div", { id: "horizontal-scroll-shadow" }), h("div", { id: "table-body", onScroll: () => this.handleHorizontalScroll() }, h(TableHeader, null), h(TableHeaderPlaceholder, null), h(TableDataRows, null), h(TableCtaRow, null))), h(TableDisclaimers, null))));
310
+ }
311
+ static get is() { return "ptc-pricing-packaging-table"; }
312
+ static get encapsulation() { return "shadow"; }
313
+ static get originalStyleUrls() {
314
+ return {
315
+ "$": ["ptc-pricing-packaging-table.scss"]
316
+ };
317
+ }
318
+ static get styleUrls() {
319
+ return {
320
+ "$": ["ptc-pricing-packaging-table.css"]
321
+ };
322
+ }
323
+ static get properties() {
324
+ return {
325
+ "pageWithSubnav": {
326
+ "type": "boolean",
327
+ "mutable": false,
328
+ "complexType": {
329
+ "original": "boolean",
330
+ "resolved": "boolean",
331
+ "references": {}
332
+ },
333
+ "required": false,
334
+ "optional": true,
335
+ "docs": {
336
+ "tags": [],
337
+ "text": "[True/False] If the page containing this table has a sticky sub-nav"
338
+ },
339
+ "attribute": "page-with-subnav",
340
+ "reflect": false,
341
+ "defaultValue": "false"
342
+ },
343
+ "tableTitle": {
344
+ "type": "string",
345
+ "mutable": false,
346
+ "complexType": {
347
+ "original": "string",
348
+ "resolved": "string",
349
+ "references": {}
350
+ },
351
+ "required": false,
352
+ "optional": true,
353
+ "docs": {
354
+ "tags": [],
355
+ "text": "Table title (H2)"
356
+ },
357
+ "attribute": "table-title",
358
+ "reflect": false
359
+ },
360
+ "tableSubTitle": {
361
+ "type": "string",
362
+ "mutable": false,
363
+ "complexType": {
364
+ "original": "string",
365
+ "resolved": "string",
366
+ "references": {}
367
+ },
368
+ "required": false,
369
+ "optional": true,
370
+ "docs": {
371
+ "tags": [],
372
+ "text": "Table title (H3)"
373
+ },
374
+ "attribute": "table-sub-title",
375
+ "reflect": false,
376
+ "defaultValue": "\"\""
377
+ },
378
+ "dataRows": {
379
+ "type": "number",
380
+ "mutable": false,
381
+ "complexType": {
382
+ "original": "number",
383
+ "resolved": "number",
384
+ "references": {}
385
+ },
386
+ "required": false,
387
+ "optional": true,
388
+ "docs": {
389
+ "tags": [],
390
+ "text": "Number of data rows in the table"
391
+ },
392
+ "attribute": "data-rows",
393
+ "reflect": false
394
+ },
395
+ "dataCols": {
396
+ "type": "number",
397
+ "mutable": false,
398
+ "complexType": {
399
+ "original": "number",
400
+ "resolved": "number",
401
+ "references": {}
402
+ },
403
+ "required": false,
404
+ "optional": true,
405
+ "docs": {
406
+ "tags": [],
407
+ "text": "Number of data columns in the table"
408
+ },
409
+ "attribute": "data-cols",
410
+ "reflect": false
411
+ },
412
+ "disclaimerCount": {
413
+ "type": "number",
414
+ "mutable": false,
415
+ "complexType": {
416
+ "original": "number",
417
+ "resolved": "number",
418
+ "references": {}
419
+ },
420
+ "required": false,
421
+ "optional": true,
422
+ "docs": {
423
+ "tags": [],
424
+ "text": "Number of disclaimers below the table"
425
+ },
426
+ "attribute": "disclaimer-count",
427
+ "reflect": false,
428
+ "defaultValue": "0"
429
+ }
430
+ };
431
+ }
432
+ static get states() {
433
+ return {
434
+ "isDesktopView": {},
435
+ "cellWidthXXS": {},
436
+ "cellWidthMD": {},
437
+ "cellLeftRightPadding": {},
438
+ "headerType": {},
439
+ "lastScrollTop": {},
440
+ "scrollTimeInterval": {},
441
+ "scrollAmount": {},
442
+ "scrollLimit": {},
443
+ "stickyTopAt": {},
444
+ "columnHeaderLinks": {},
445
+ "hasEmptySpace": {},
446
+ "showFillerCells": {},
447
+ "showCtaButtonsRow": {},
448
+ "ctaButtons": {},
449
+ "disclaimers": {},
450
+ "tableDescription": {}
451
+ };
452
+ }
453
+ static get elementRef() { return "el"; }
454
+ }