@ptcwebops/ptcw-design 2.8.9 → 2.9.1

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