@ptcwebops/ptcw-design 2.6.0 → 2.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (525) 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 +30 -30
  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/featured-list.cjs.entry.js +83 -83
  8. package/dist/cjs/fl-tab-content_3.cjs.entry.js +40 -40
  9. package/dist/cjs/icon-asset.cjs.entry.js +42 -42
  10. package/dist/cjs/innovator-toggle-container.cjs.entry.js +21 -21
  11. package/dist/cjs/{interfaces-0ecd8027.js → interfaces-574e6df7.js} +9 -9
  12. package/dist/cjs/list-item.cjs.entry.js +22 -22
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/cjs/max-width-container.cjs.entry.js +43 -43
  15. package/dist/cjs/my-component.cjs.entry.js +15 -15
  16. package/dist/cjs/ptc-accordion-item.cjs.entry.js +84 -84
  17. package/dist/cjs/ptc-accordion.cjs.entry.js +39 -39
  18. package/dist/cjs/ptc-announcement.cjs.entry.js +52 -52
  19. package/dist/cjs/ptc-back-to-top.cjs.entry.js +35 -35
  20. package/dist/cjs/ptc-background-video.cjs.entry.js +57 -57
  21. package/dist/cjs/ptc-bio-card.cjs.entry.js +24 -24
  22. package/dist/cjs/ptc-breadcrumb_2.cjs.entry.js +120 -120
  23. package/dist/cjs/ptc-button.cjs.entry.js +39 -39
  24. package/dist/cjs/ptc-card-bottom_3.cjs.entry.js +123 -123
  25. package/dist/cjs/ptc-card-content.cjs.entry.js +57 -57
  26. package/dist/cjs/ptc-card.cjs.entry.js +77 -77
  27. package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +77 -77
  28. package/dist/cjs/ptc-checkbox.cjs.entry.js +50 -50
  29. package/dist/cjs/ptc-collapse-list.cjs.entry.js +397 -397
  30. package/dist/cjs/ptc-container.cjs.entry.js +33 -33
  31. package/dist/cjs/ptc-date.cjs.entry.js +50 -50
  32. package/dist/cjs/ptc-dropdown.cjs.entry.js +64 -64
  33. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +47 -47
  34. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +46 -46
  35. package/dist/cjs/ptc-embedded-quiz.cjs.entry.js +101 -0
  36. package/dist/cjs/ptc-featured-list.cjs.entry.js +82 -82
  37. package/dist/cjs/ptc-filter-tag.cjs.entry.js +57 -57
  38. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +11 -11
  39. package/dist/cjs/ptc-hero.cjs.entry.js +18 -18
  40. package/dist/cjs/ptc-icon-component.cjs.entry.js +60 -60
  41. package/dist/cjs/ptc-icon-list.cjs.entry.js +21 -21
  42. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +43 -43
  43. package/dist/cjs/ptc-image-download-strip.cjs.entry.js +18 -18
  44. package/dist/cjs/ptc-img.cjs.entry.js +122 -122
  45. package/dist/cjs/ptc-link.cjs.entry.js +33 -33
  46. package/dist/cjs/ptc-list.cjs.entry.js +49 -49
  47. package/dist/cjs/ptc-media-card.cjs.entry.js +58 -58
  48. package/dist/cjs/ptc-minimized-nav.cjs.entry.js +12 -12
  49. package/dist/cjs/ptc-mobile-select.cjs.entry.js +62 -62
  50. package/dist/cjs/ptc-modal.cjs.entry.js +150 -150
  51. package/dist/cjs/ptc-nav-card.cjs.entry.js +36 -36
  52. package/dist/cjs/ptc-nav-link.cjs.entry.js +36 -36
  53. package/dist/cjs/ptc-nav-pills.cjs.entry.js +8 -8
  54. package/dist/cjs/ptc-nav-slider.cjs.entry.js +90 -90
  55. package/dist/cjs/ptc-nav-submenu.cjs.entry.js +37 -37
  56. package/dist/cjs/ptc-news.cjs.entry.js +24 -24
  57. package/dist/cjs/ptc-overlay.cjs.entry.js +23 -23
  58. package/dist/cjs/ptc-pagenation.cjs.entry.js +306 -306
  59. package/dist/cjs/ptc-para.cjs.entry.js +51 -51
  60. package/dist/cjs/ptc-picture.cjs.entry.js +152 -152
  61. package/dist/cjs/ptc-podcast-card.cjs.entry.js +11 -11
  62. package/dist/cjs/ptc-previous-url.cjs.entry.js +11 -11
  63. package/dist/cjs/ptc-pricing-add-on-card.cjs.entry.js +16 -16
  64. package/dist/cjs/ptc-pricing-add-on-section.cjs.entry.js +39 -39
  65. package/dist/cjs/ptc-pricing-block.cjs.entry.js +20 -20
  66. package/dist/cjs/ptc-pricing-table.cjs.entry.js +509 -509
  67. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +124 -124
  68. package/dist/cjs/ptc-product-card.cjs.entry.js +22 -22
  69. package/dist/cjs/ptc-product-category.cjs.entry.js +10 -10
  70. package/dist/cjs/ptc-product-dropdown.cjs.entry.js +69 -69
  71. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +12 -12
  72. package/dist/cjs/ptc-product-list.cjs.entry.js +140 -140
  73. package/dist/cjs/ptc-product-sidebar.cjs.entry.js +128 -128
  74. package/dist/cjs/ptc-progress-bar.cjs.entry.js +16 -16
  75. package/dist/cjs/ptc-quote.cjs.entry.js +23 -23
  76. package/dist/cjs/ptc-readmore-char.cjs.entry.js +24 -24
  77. package/dist/cjs/ptc-readmore.cjs.entry.js +77 -77
  78. package/dist/cjs/ptc-related-card-rail.cjs.entry.js +149 -149
  79. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +54 -54
  80. package/dist/cjs/ptc-search-field.cjs.entry.js +71 -71
  81. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +50 -50
  82. package/dist/cjs/ptc-slit-card.cjs.entry.js +25 -25
  83. package/dist/cjs/ptc-social-share.cjs.entry.js +69 -69
  84. package/dist/cjs/ptc-spacer.cjs.entry.js +27 -27
  85. package/dist/cjs/ptc-span.cjs.entry.js +20 -20
  86. package/dist/cjs/ptc-square-card.cjs.entry.js +10 -10
  87. package/dist/cjs/ptc-sticky-icons.cjs.entry.js +32 -32
  88. package/dist/cjs/ptc-sticky-section.cjs.entry.js +30 -30
  89. package/dist/cjs/ptc-sticky-title.cjs.entry.js +23 -23
  90. package/dist/cjs/ptc-subnav-card.cjs.entry.js +15 -15
  91. package/dist/cjs/ptc-subnav.cjs.entry.js +48 -48
  92. package/dist/cjs/ptc-svg-btn.cjs.entry.js +95 -95
  93. package/dist/cjs/ptc-tab-list.cjs.entry.js +143 -143
  94. package/dist/cjs/ptc-tab.cjs.entry.js +20 -20
  95. package/dist/cjs/ptc-tabs.cjs.entry.js +47 -47
  96. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +43 -43
  97. package/dist/cjs/ptc-title.cjs.entry.js +67 -67
  98. package/dist/cjs/ptc-tooltip.cjs.entry.js +95 -95
  99. package/dist/cjs/ptc-two-column-media.cjs.entry.js +15 -15
  100. package/dist/cjs/ptc-value-prop-card.cjs.entry.js +13 -13
  101. package/dist/cjs/ptcw-design.cjs.js +1 -1
  102. package/dist/cjs/sequential-bundle-example.cjs.entry.js +108 -108
  103. package/dist/cjs/sequential-bundle.cjs.entry.js +88 -88
  104. package/dist/cjs/tab-content.cjs.entry.js +27 -27
  105. package/dist/cjs/tab-header.cjs.entry.js +65 -65
  106. package/dist/cjs/{utils-416c94fe.js → utils-9eb22041.js} +90 -90
  107. package/dist/collection/collection-manifest.json +1 -1
  108. package/dist/collection/components/dropdown-item/dropdown-item.js +61 -61
  109. package/dist/collection/components/dynamic-box-bundle/dynamic-box-bundle.js +114 -114
  110. package/dist/collection/components/icon-asset/icon-asset.css +4 -4
  111. package/dist/collection/components/icon-asset/icon-asset.js +199 -199
  112. package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
  113. package/dist/collection/components/icon-asset/media/designer.svg +489 -489
  114. package/dist/collection/components/icon-asset/media/regular.svg +463 -463
  115. package/dist/collection/components/icon-asset/media/solid.svg +3016 -3016
  116. package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
  117. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.js +89 -89
  118. package/dist/collection/components/list-item/list-item.js +144 -144
  119. package/dist/collection/components/max-width-container/max-width-container.css +11 -11
  120. package/dist/collection/components/max-width-container/max-width-container.js +146 -146
  121. package/dist/collection/components/my-component/my-component.css +3 -3
  122. package/dist/collection/components/my-component/my-component.js +82 -82
  123. package/dist/collection/components/organism-bundles/author-listing-example/author-listing-example.css +69 -69
  124. package/dist/collection/components/organism-bundles/author-listing-example/author-listing-example.js +282 -282
  125. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.css +25 -25
  126. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.js +58 -58
  127. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +218 -218
  128. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.js +115 -115
  129. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.css +3 -3
  130. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.js +91 -91
  131. package/dist/collection/components/organism-bundles/sequential-bundle/sequential-bundle.js +116 -116
  132. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.css +90 -90
  133. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.js +160 -160
  134. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +306 -306
  135. package/dist/collection/components/ptc-accordion/ptc-accordion.js +100 -100
  136. package/dist/collection/components/ptc-announcement/ptc-announcement.js +274 -274
  137. package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.js +61 -61
  138. package/dist/collection/components/ptc-background-video/ptc-background-video.js +200 -200
  139. package/dist/collection/components/ptc-bio-card/ptc-bio-card.js +130 -130
  140. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +105 -105
  141. package/dist/collection/components/ptc-button/ptc-button.js +304 -304
  142. package/dist/collection/components/ptc-card/ptc-card.js +442 -442
  143. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +116 -116
  144. package/dist/collection/components/ptc-card-content/ptc-card-content.js +212 -212
  145. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +232 -232
  146. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.js +91 -91
  147. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +152 -152
  148. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +639 -639
  149. package/dist/collection/components/ptc-container/ptc-container.js +138 -138
  150. package/dist/collection/components/ptc-date/ptc-date.js +224 -224
  151. package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +162 -162
  152. package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +15 -15
  153. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +174 -174
  154. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +137 -137
  155. package/dist/collection/components/{ptc-quiz/ptc-quiz.css → ptc-embedded-quiz/ptc-embedded-quiz.css} +1 -1
  156. package/dist/collection/components/{ptc-quiz/ptc-quiz.js → ptc-embedded-quiz/ptc-embedded-quiz.js} +148 -139
  157. package/dist/collection/components/ptc-featured-list/fl-tab-content/fl-tab-content.js +61 -61
  158. package/dist/collection/components/ptc-featured-list/fl-tab-header/fl-tab-header.js +105 -105
  159. package/dist/collection/components/ptc-featured-list/fl-tab-image/fl-tab-image.js +61 -61
  160. package/dist/collection/components/ptc-featured-list/ptc-featured-list.js +115 -115
  161. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +113 -113
  162. package/dist/collection/components/ptc-hero/ptc-hero.js +86 -86
  163. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +78 -78
  164. package/dist/collection/components/ptc-icon-component/ptc-icon-component.js +87 -87
  165. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +127 -127
  166. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +119 -119
  167. package/dist/collection/components/ptc-image-download-strip/ptc-image-download-strip.js +51 -51
  168. package/dist/collection/components/ptc-img/ptc-img.js +311 -311
  169. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +326 -326
  170. package/dist/collection/components/ptc-link/ptc-link.js +207 -207
  171. package/dist/collection/components/ptc-list/ptc-list.js +99 -99
  172. package/dist/collection/components/ptc-media-card/ptc-media-card.js +240 -240
  173. package/dist/collection/components/ptc-minimized-nav/ptc-minimized-nav.js +100 -100
  174. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +199 -199
  175. package/dist/collection/components/ptc-modal/ptc-modal.js +407 -407
  176. package/dist/collection/components/ptc-nav-card/ptc-nav-card.js +224 -224
  177. package/dist/collection/components/ptc-nav-pills/ptc-nav-pills.js +18 -18
  178. package/dist/collection/components/ptc-news/ptc-news.js +176 -176
  179. package/dist/collection/components/ptc-overlay/ptc-overlay.js +131 -131
  180. package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +573 -573
  181. package/dist/collection/components/ptc-para/ptc-para.js +242 -242
  182. package/dist/collection/components/ptc-picture/ptc-picture.js +500 -500
  183. package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.js +78 -78
  184. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +78 -78
  185. package/dist/collection/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.js +120 -120
  186. package/dist/collection/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.js +76 -76
  187. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +70 -70
  188. package/dist/collection/components/ptc-pricing-table/ptc-pricing-table.js +664 -664
  189. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +272 -272
  190. package/dist/collection/components/ptc-product-card/ptc-product-card.js +162 -162
  191. package/dist/collection/components/ptc-product-category/ptc-product-category.js +60 -60
  192. package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.js +185 -185
  193. package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.js +96 -96
  194. package/dist/collection/components/ptc-product-list/ptc-product-list.js +194 -194
  195. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +252 -252
  196. package/dist/collection/components/ptc-progress-bar/ptc-progress-bar.js +42 -42
  197. package/dist/collection/components/ptc-quote/ptc-quote.js +144 -144
  198. package/dist/collection/components/ptc-readmore/ptc-readmore.js +302 -302
  199. package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.js +133 -133
  200. package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.js +190 -190
  201. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
  202. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +65 -65
  203. package/dist/collection/components/ptc-search-field/ptc-search-field.js +247 -247
  204. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +97 -97
  205. package/dist/collection/components/ptc-skeleton/ptc-skeleton.js +139 -139
  206. package/dist/collection/components/ptc-slit-card/ptc-slit-card.js +181 -181
  207. package/dist/collection/components/ptc-social-share/ptc-social-share.js +267 -267
  208. package/dist/collection/components/ptc-spacer/ptc-spacer.css +332 -332
  209. package/dist/collection/components/ptc-spacer/ptc-spacer.js +97 -97
  210. package/dist/collection/components/ptc-span/ptc-span.js +107 -107
  211. package/dist/collection/components/ptc-square-card/ptc-square-card.js +60 -60
  212. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +51 -51
  213. package/dist/collection/components/ptc-sticky-section/ptc-sticky-section.js +49 -49
  214. package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.js +89 -89
  215. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +109 -109
  216. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +214 -214
  217. package/dist/collection/components/ptc-tabs/ptc-tab.js +121 -121
  218. package/dist/collection/components/ptc-tabs/ptc-tabs.js +104 -104
  219. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +199 -199
  220. package/dist/collection/components/ptc-title/ptc-title.js +310 -310
  221. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +342 -342
  222. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +48 -48
  223. package/dist/collection/components/ptc-value-prop-card/ptc-value-prop-card.js +117 -117
  224. package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.js +114 -114
  225. package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.js +133 -133
  226. package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.js +121 -121
  227. package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.js +96 -96
  228. package/dist/collection/components/subnav/ptc-subnav-card/ptc-subnav-card.js +133 -133
  229. package/dist/collection/components/tab-content/tab-content.js +84 -84
  230. package/dist/collection/components/tab-header/tab-header.js +183 -183
  231. package/dist/collection/index.js +1 -1
  232. package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -11
  233. package/dist/collection/media/svg-imgs/close.svg +10 -10
  234. package/dist/collection/media/svg-imgs/nav-active-dotslick.svg +16 -16
  235. package/dist/collection/media/svg-imgs/play-button-dark.svg +20 -20
  236. package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +3 -3
  237. package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +3 -3
  238. package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
  239. package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
  240. package/dist/collection/media/svg-imgs/union.svg +3 -3
  241. package/dist/collection/stories/Accordian.stories.js +205 -205
  242. package/dist/collection/stories/Announcement.stories.js +64 -64
  243. package/dist/collection/stories/BackgroundImage.stories.js +81 -81
  244. package/dist/collection/stories/Breadcrumb.stories.js +50 -50
  245. package/dist/collection/stories/Button.stories.js +119 -119
  246. package/dist/collection/stories/Card.stories.js +234 -234
  247. package/dist/collection/stories/CardWrapper.stories.js +270 -270
  248. package/dist/collection/stories/Checkbox.stories.js +52 -52
  249. package/dist/collection/stories/Date.stories.js +81 -81
  250. package/dist/collection/stories/Dropdown.stories.js +48 -48
  251. package/dist/collection/stories/DynamicCard.stories.js +68 -68
  252. package/dist/collection/stories/FilterTag.stories.js +73 -73
  253. package/dist/collection/stories/Hero.stories.js +119 -119
  254. package/dist/collection/stories/Icon.stories.js +71 -71
  255. package/dist/collection/stories/IconList.stories.js +114 -114
  256. package/dist/collection/stories/IconMinimize.stories.js +40 -40
  257. package/dist/collection/stories/Link.stories.js +101 -101
  258. package/dist/collection/stories/ListItem.stories.js +59 -59
  259. package/dist/collection/stories/MaxWidthContainer.stories.js +32 -32
  260. package/dist/collection/stories/MinimizedHeader.stories.js +37 -37
  261. package/dist/collection/stories/MobileSelect.stories.js +79 -79
  262. package/dist/collection/stories/Modal.stories.js +105 -105
  263. package/dist/collection/stories/Overlay.stories.js +48 -48
  264. package/dist/collection/stories/Pagination.stories.js +101 -101
  265. package/dist/collection/stories/Paragraph.stories.js +95 -95
  266. package/dist/collection/stories/Picture.stories.js +139 -139
  267. package/dist/collection/stories/Quote.stories.js +107 -107
  268. package/dist/collection/stories/ReadMore.stories.js +100 -100
  269. package/dist/collection/stories/SocialShare.stories.js +66 -66
  270. package/dist/collection/stories/Spacer.stories.js +48 -48
  271. package/dist/collection/stories/Span.stories.js +57 -57
  272. package/dist/collection/stories/SvgButton.stories.js +34 -34
  273. package/dist/collection/stories/Tabs.stories.js +213 -213
  274. package/dist/collection/stories/TextCopyWithBackground.stories.js +237 -237
  275. package/dist/collection/stories/Title.stories.js +115 -115
  276. package/dist/collection/stories/Tooltip.stories.js +112 -112
  277. package/dist/collection/utils/component.js +3 -3
  278. package/dist/collection/utils/interfaces.js +11 -11
  279. package/dist/collection/utils/utils.js +92 -92
  280. package/dist/custom-elements/index.d.ts +6 -6
  281. package/dist/custom-elements/index.js +6753 -6745
  282. package/dist/esm/author-listing-example.entry.js +232 -232
  283. package/dist/esm/bundle-example.entry.js +30 -30
  284. package/dist/esm/bundle-jumbotron-example.entry.js +39 -39
  285. package/dist/esm/dropdown-item.entry.js +10 -10
  286. package/dist/esm/dynamic-box-bundle.entry.js +25 -25
  287. package/dist/esm/featured-list.entry.js +83 -83
  288. package/dist/esm/fl-tab-content_3.entry.js +40 -40
  289. package/dist/esm/icon-asset.entry.js +42 -42
  290. package/dist/esm/innovator-toggle-container.entry.js +21 -21
  291. package/dist/esm/{interfaces-3cb94654.js → interfaces-4caedd26.js} +9 -9
  292. package/dist/esm/list-item.entry.js +22 -22
  293. package/dist/esm/loader.js +1 -1
  294. package/dist/esm/max-width-container.entry.js +43 -43
  295. package/dist/esm/my-component.entry.js +15 -15
  296. package/dist/esm/polyfills/core-js.js +0 -0
  297. package/dist/esm/polyfills/dom.js +0 -0
  298. package/dist/esm/polyfills/es5-html-element.js +0 -0
  299. package/dist/esm/polyfills/index.js +0 -0
  300. package/dist/esm/polyfills/system.js +0 -0
  301. package/dist/esm/ptc-accordion-item.entry.js +84 -84
  302. package/dist/esm/ptc-accordion.entry.js +39 -39
  303. package/dist/esm/ptc-announcement.entry.js +52 -52
  304. package/dist/esm/ptc-back-to-top.entry.js +35 -35
  305. package/dist/esm/ptc-background-video.entry.js +57 -57
  306. package/dist/esm/ptc-bio-card.entry.js +24 -24
  307. package/dist/esm/ptc-breadcrumb_2.entry.js +120 -120
  308. package/dist/esm/ptc-button.entry.js +39 -39
  309. package/dist/esm/ptc-card-bottom_3.entry.js +123 -123
  310. package/dist/esm/ptc-card-content.entry.js +57 -57
  311. package/dist/esm/ptc-card.entry.js +77 -77
  312. package/dist/esm/ptc-case-studies-slider.entry.js +77 -77
  313. package/dist/esm/ptc-checkbox.entry.js +50 -50
  314. package/dist/esm/ptc-collapse-list.entry.js +397 -397
  315. package/dist/esm/ptc-container.entry.js +33 -33
  316. package/dist/esm/ptc-date.entry.js +50 -50
  317. package/dist/esm/ptc-dropdown.entry.js +64 -64
  318. package/dist/esm/ptc-dynamic-card.entry.js +47 -47
  319. package/dist/esm/ptc-ellipsis-dropdown.entry.js +46 -46
  320. package/dist/esm/ptc-embedded-quiz.entry.js +97 -0
  321. package/dist/esm/ptc-featured-list.entry.js +82 -82
  322. package/dist/esm/ptc-filter-tag.entry.js +57 -57
  323. package/dist/esm/ptc-hero-footer-cta.entry.js +11 -11
  324. package/dist/esm/ptc-hero.entry.js +18 -18
  325. package/dist/esm/ptc-icon-component.entry.js +60 -60
  326. package/dist/esm/ptc-icon-list.entry.js +21 -21
  327. package/dist/esm/ptc-icon-minimize.entry.js +43 -43
  328. package/dist/esm/ptc-image-download-strip.entry.js +18 -18
  329. package/dist/esm/ptc-img.entry.js +122 -122
  330. package/dist/esm/ptc-link.entry.js +33 -33
  331. package/dist/esm/ptc-list.entry.js +49 -49
  332. package/dist/esm/ptc-media-card.entry.js +58 -58
  333. package/dist/esm/ptc-minimized-nav.entry.js +12 -12
  334. package/dist/esm/ptc-mobile-select.entry.js +62 -62
  335. package/dist/esm/ptc-modal.entry.js +150 -150
  336. package/dist/esm/ptc-nav-card.entry.js +36 -36
  337. package/dist/esm/ptc-nav-link.entry.js +36 -36
  338. package/dist/esm/ptc-nav-pills.entry.js +8 -8
  339. package/dist/esm/ptc-nav-slider.entry.js +90 -90
  340. package/dist/esm/ptc-nav-submenu.entry.js +37 -37
  341. package/dist/esm/ptc-news.entry.js +24 -24
  342. package/dist/esm/ptc-overlay.entry.js +23 -23
  343. package/dist/esm/ptc-pagenation.entry.js +306 -306
  344. package/dist/esm/ptc-para.entry.js +51 -51
  345. package/dist/esm/ptc-picture.entry.js +152 -152
  346. package/dist/esm/ptc-podcast-card.entry.js +11 -11
  347. package/dist/esm/ptc-previous-url.entry.js +11 -11
  348. package/dist/esm/ptc-pricing-add-on-card.entry.js +16 -16
  349. package/dist/esm/ptc-pricing-add-on-section.entry.js +39 -39
  350. package/dist/esm/ptc-pricing-block.entry.js +20 -20
  351. package/dist/esm/ptc-pricing-table.entry.js +509 -509
  352. package/dist/esm/ptc-pricing-tabs.entry.js +124 -124
  353. package/dist/esm/ptc-product-card.entry.js +22 -22
  354. package/dist/esm/ptc-product-category.entry.js +10 -10
  355. package/dist/esm/ptc-product-dropdown.entry.js +69 -69
  356. package/dist/esm/ptc-product-highlight-card.entry.js +12 -12
  357. package/dist/esm/ptc-product-list.entry.js +140 -140
  358. package/dist/esm/ptc-product-sidebar.entry.js +128 -128
  359. package/dist/esm/ptc-progress-bar.entry.js +16 -16
  360. package/dist/esm/ptc-quote.entry.js +23 -23
  361. package/dist/esm/ptc-readmore-char.entry.js +24 -24
  362. package/dist/esm/ptc-readmore.entry.js +77 -77
  363. package/dist/esm/ptc-related-card-rail.entry.js +149 -149
  364. package/dist/esm/ptc-responsive-wrapper.entry.js +54 -54
  365. package/dist/esm/ptc-search-field.entry.js +71 -71
  366. package/dist/esm/ptc-shopping-cart.entry.js +50 -50
  367. package/dist/esm/ptc-slit-card.entry.js +25 -25
  368. package/dist/esm/ptc-social-share.entry.js +69 -69
  369. package/dist/esm/ptc-spacer.entry.js +27 -27
  370. package/dist/esm/ptc-span.entry.js +20 -20
  371. package/dist/esm/ptc-square-card.entry.js +10 -10
  372. package/dist/esm/ptc-sticky-icons.entry.js +32 -32
  373. package/dist/esm/ptc-sticky-section.entry.js +30 -30
  374. package/dist/esm/ptc-sticky-title.entry.js +23 -23
  375. package/dist/esm/ptc-subnav-card.entry.js +15 -15
  376. package/dist/esm/ptc-subnav.entry.js +48 -48
  377. package/dist/esm/ptc-svg-btn.entry.js +95 -95
  378. package/dist/esm/ptc-tab-list.entry.js +143 -143
  379. package/dist/esm/ptc-tab.entry.js +20 -20
  380. package/dist/esm/ptc-tabs.entry.js +47 -47
  381. package/dist/esm/ptc-text-copy-with-background.entry.js +43 -43
  382. package/dist/esm/ptc-title.entry.js +67 -67
  383. package/dist/esm/ptc-tooltip.entry.js +95 -95
  384. package/dist/esm/ptc-two-column-media.entry.js +15 -15
  385. package/dist/esm/ptc-value-prop-card.entry.js +13 -13
  386. package/dist/esm/ptcw-design.js +1 -1
  387. package/dist/esm/sequential-bundle-example.entry.js +108 -108
  388. package/dist/esm/sequential-bundle.entry.js +88 -88
  389. package/dist/esm/tab-content.entry.js +27 -27
  390. package/dist/esm/tab-header.entry.js +65 -65
  391. package/dist/esm/{utils-f937097d.js → utils-38decc43.js} +90 -90
  392. package/dist/ptcw-design/media/brands.svg +1381 -1381
  393. package/dist/ptcw-design/media/designer.svg +489 -489
  394. package/dist/ptcw-design/media/nav-active-dotslick.svg +15 -15
  395. package/dist/ptcw-design/media/regular.svg +463 -463
  396. package/dist/ptcw-design/media/solid.svg +3016 -3016
  397. package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
  398. package/dist/ptcw-design/{p-d0bb26ab.entry.js → p-06f99e11.entry.js} +1 -1
  399. package/dist/ptcw-design/{p-63147b0a.entry.js → p-0f3f83d3.entry.js} +1 -1
  400. package/dist/ptcw-design/{p-804fa554.entry.js → p-1c631848.entry.js} +1 -1
  401. package/dist/ptcw-design/p-34d67b3b.entry.js +1 -0
  402. package/dist/ptcw-design/{p-c49293f0.entry.js → p-7b34bb69.entry.js} +1 -1
  403. package/dist/ptcw-design/{p-d72c0973.entry.js → p-8bf3dad0.entry.js} +1 -1
  404. package/dist/ptcw-design/{p-d3c22e96.entry.js → p-b036ef99.entry.js} +1 -1
  405. package/dist/ptcw-design/{p-726a8b6f.entry.js → p-cf7dc448.entry.js} +1 -1
  406. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  407. package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
  408. package/dist/types/components/dynamic-box-bundle/dynamic-box-bundle.d.ts +10 -10
  409. package/dist/types/components/icon-asset/icon-asset.d.ts +40 -40
  410. package/dist/types/components/innovator-toggle-container/innovator-toggle-container.d.ts +17 -17
  411. package/dist/types/components/list-item/list-item.d.ts +16 -16
  412. package/dist/types/components/max-width-container/max-width-container.d.ts +16 -16
  413. package/dist/types/components/my-component/my-component.d.ts +16 -16
  414. package/dist/types/components/organism-bundles/author-listing-example/author-listing-example.d.ts +12 -12
  415. package/dist/types/components/organism-bundles/bundle-example/bundle-example.d.ts +10 -10
  416. package/dist/types/components/organism-bundles/bundle-featured-list/featured-list.d.ts +12 -12
  417. package/dist/types/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.d.ts +5 -5
  418. package/dist/types/components/organism-bundles/sequential-bundle/sequential-bundle.d.ts +12 -12
  419. package/dist/types/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.d.ts +16 -16
  420. package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +63 -63
  421. package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +17 -17
  422. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +59 -59
  423. package/dist/types/components/ptc-back-to-top/ptc-back-to-top.d.ts +9 -9
  424. package/dist/types/components/ptc-background-video/ptc-background-video.d.ts +45 -45
  425. package/dist/types/components/ptc-bio-card/ptc-bio-card.d.ts +27 -27
  426. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +20 -20
  427. package/dist/types/components/ptc-button/ptc-button.d.ts +64 -64
  428. package/dist/types/components/ptc-card/ptc-card.d.ts +84 -84
  429. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
  430. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +19 -19
  431. package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +28 -28
  432. package/dist/types/components/ptc-case-studies-slider/ptc-case-studies-slider.d.ts +14 -14
  433. package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +14 -14
  434. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +60 -60
  435. package/dist/types/components/ptc-container/ptc-container.d.ts +13 -13
  436. package/dist/types/components/ptc-date/ptc-date.d.ts +46 -46
  437. package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +19 -19
  438. package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +23 -23
  439. package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +15 -15
  440. package/dist/types/components/{ptc-quiz/ptc-quiz.d.ts → ptc-embedded-quiz/ptc-embedded-quiz.d.ts} +22 -21
  441. package/dist/types/components/ptc-featured-list/fl-tab-content/fl-tab-content.d.ts +5 -5
  442. package/dist/types/components/ptc-featured-list/fl-tab-header/fl-tab-header.d.ts +10 -10
  443. package/dist/types/components/ptc-featured-list/fl-tab-image/fl-tab-image.d.ts +5 -5
  444. package/dist/types/components/ptc-featured-list/ptc-featured-list.d.ts +12 -12
  445. package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +17 -17
  446. package/dist/types/components/ptc-hero/ptc-hero.d.ts +16 -16
  447. package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +6 -6
  448. package/dist/types/components/ptc-icon-component/ptc-icon-component.d.ts +17 -17
  449. package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +21 -21
  450. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +12 -12
  451. package/dist/types/components/ptc-image-download-strip/ptc-image-download-strip.d.ts +9 -9
  452. package/dist/types/components/ptc-img/ptc-img.d.ts +55 -55
  453. package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +24 -24
  454. package/dist/types/components/ptc-link/ptc-link.d.ts +40 -40
  455. package/dist/types/components/ptc-list/ptc-list.d.ts +8 -8
  456. package/dist/types/components/ptc-media-card/ptc-media-card.d.ts +52 -52
  457. package/dist/types/components/ptc-minimized-nav/ptc-minimized-nav.d.ts +7 -7
  458. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +36 -36
  459. package/dist/types/components/ptc-modal/ptc-modal.d.ts +71 -71
  460. package/dist/types/components/ptc-nav-card/ptc-nav-card.d.ts +46 -46
  461. package/dist/types/components/ptc-nav-pills/ptc-nav-pills.d.ts +3 -3
  462. package/dist/types/components/ptc-news/ptc-news.d.ts +36 -36
  463. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +21 -21
  464. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +40 -40
  465. package/dist/types/components/ptc-para/ptc-para.d.ts +47 -47
  466. package/dist/types/components/ptc-picture/ptc-picture.d.ts +102 -102
  467. package/dist/types/components/ptc-podcast-card/ptc-podcast-card.d.ts +15 -15
  468. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +9 -9
  469. package/dist/types/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.d.ts +27 -27
  470. package/dist/types/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.d.ts +21 -21
  471. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +7 -7
  472. package/dist/types/components/ptc-pricing-table/ptc-pricing-table.d.ts +109 -109
  473. package/dist/types/components/ptc-pricing-tabs/ptc-pricing-tabs.d.ts +52 -52
  474. package/dist/types/components/ptc-product-card/ptc-product-card.d.ts +37 -37
  475. package/dist/types/components/ptc-product-category/ptc-product-category.d.ts +5 -5
  476. package/dist/types/components/ptc-product-dropdown/ptc-product-dropdown.d.ts +18 -18
  477. package/dist/types/components/ptc-product-highlight-card/ptc-product-highlight-card.d.ts +23 -23
  478. package/dist/types/components/ptc-product-list/ptc-product-list.d.ts +18 -18
  479. package/dist/types/components/ptc-product-sidebar/ptc-product-sidebar.d.ts +31 -31
  480. package/dist/types/components/ptc-progress-bar/ptc-progress-bar.d.ts +5 -5
  481. package/dist/types/components/ptc-quote/ptc-quote.d.ts +29 -29
  482. package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +57 -57
  483. package/dist/types/components/ptc-readmore-char/ptc-readmore-char.d.ts +30 -30
  484. package/dist/types/components/ptc-related-card-rail/ptc-related-card-rail.d.ts +30 -30
  485. package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
  486. package/dist/types/components/ptc-search-field/ptc-search-field.d.ts +23 -23
  487. package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
  488. package/dist/types/components/ptc-skeleton/ptc-skeleton.d.ts +10 -10
  489. package/dist/types/components/ptc-slit-card/ptc-slit-card.d.ts +36 -36
  490. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +37 -37
  491. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
  492. package/dist/types/components/ptc-span/ptc-span.d.ts +20 -20
  493. package/dist/types/components/ptc-square-card/ptc-square-card.d.ts +11 -11
  494. package/dist/types/components/ptc-sticky-icons/ptc-sticky-icons.d.ts +7 -7
  495. package/dist/types/components/ptc-sticky-section/ptc-sticky-section.d.ts +9 -9
  496. package/dist/types/components/ptc-sticky-title/ptc-sticky-title.d.ts +8 -8
  497. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +20 -20
  498. package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +23 -23
  499. package/dist/types/components/ptc-tabs/ptc-tab.d.ts +9 -9
  500. package/dist/types/components/ptc-tabs/ptc-tabs.d.ts +10 -10
  501. package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +38 -38
  502. package/dist/types/components/ptc-title/ptc-title.d.ts +54 -54
  503. package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +59 -59
  504. package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +9 -9
  505. package/dist/types/components/ptc-value-prop-card/ptc-value-prop-card.d.ts +23 -23
  506. package/dist/types/components/subnav/ptc-nav-link/ptc-nav-link.d.ts +21 -21
  507. package/dist/types/components/subnav/ptc-nav-slider/ptc-nav-slider.d.ts +11 -11
  508. package/dist/types/components/subnav/ptc-nav-submenu/ptc-nav-submenu.d.ts +23 -23
  509. package/dist/types/components/subnav/ptc-subnav/ptc-subnav.d.ts +14 -14
  510. package/dist/types/components/subnav/ptc-subnav-card/ptc-subnav-card.d.ts +27 -27
  511. package/dist/types/components/tab-content/tab-content.d.ts +12 -12
  512. package/dist/types/components/tab-header/tab-header.d.ts +22 -22
  513. package/dist/types/components.d.ts +160 -160
  514. package/dist/types/global.d.ts +1072 -1072
  515. package/dist/types/index.d.ts +1 -1
  516. package/dist/types/utils/component.d.ts +1 -1
  517. package/dist/types/utils/interfaces.d.ts +32 -32
  518. package/dist/types/utils/utils.d.ts +5 -5
  519. package/package.json +82 -82
  520. package/readme.md +19 -19
  521. package/dist/cjs/ptc-quiz.cjs.entry.js +0 -93
  522. package/dist/esm/ptc-quiz.entry.js +0 -89
  523. package/dist/ptcw-design/p-859a249e.entry.js +0 -1
  524. /package/dist/ptcw-design/{p-ea875d9e.js → p-36665caa.js} +0 -0
  525. /package/dist/ptcw-design/{p-240733ce.js → p-711bcdad.js} +0 -0
@@ -1,87 +1,87 @@
1
- import { Host, h } from '@stencil/core';
2
- import Swiper, { Navigation, Pagination, Scrollbar } from 'swiper';
3
- export class PtcIconComponent {
4
- constructor() {
5
- this.isMobile = undefined;
6
- }
7
- handleResize() {
8
- this.isMobile = window.innerWidth < 768;
9
- }
10
- componentWillLoad() {
11
- this.isMobile = window.innerWidth < 768;
12
- }
13
- componentDidLoad() {
14
- this.renderSlides();
15
- this.initSlider();
16
- }
17
- renderSlides() {
18
- const slidesList = Array.from(this.hostElement.querySelectorAll('.icon-component'));
19
- if (slidesList.length > 0) {
20
- const swiperWrapper = this.hostElement.shadowRoot.querySelector('.swiper-wrapper');
21
- slidesList.forEach((node) => {
22
- const slideElement = document.createElement('div');
23
- slideElement.classList.add('swiper-slide');
24
- let cloneNode = node.cloneNode(true);
25
- slideElement.appendChild(cloneNode);
26
- swiperWrapper.appendChild(slideElement);
27
- });
28
- }
29
- }
30
- initSlider() {
31
- if (this.swiperWrapperRef) {
32
- this.iconSwiper = new Swiper(this.swiperWrapperRef, {
33
- // Customize options here
34
- modules: [Navigation, Pagination, Scrollbar],
35
- slidesPerView: 1,
36
- loop: true,
37
- pagination: {
38
- el: this.swiperPaginationRef,
39
- clickable: true
40
- },
41
- navigation: {
42
- nextEl: this.swiperButtonNextRef,
43
- prevEl: this.swiperButtonPrevRef,
44
- },
45
- });
46
- console.log("running swiper");
47
- }
48
- }
49
- disconnectedCallback() {
50
- console.log("Running disconnectedCb");
51
- //window.removeEventListener('resize', this.handleResize);
52
- if (this.iconSwiper) {
53
- this.iconSwiper.destroy(true, true);
54
- this.iconSwiper = null;
55
- }
56
- }
57
- render() {
58
- return (h(Host, { class: this.isMobile ? 'mobileView' : 'desktopView' }, h("div", { class: "icon-component-row" }, h("slot", null)), h("div", { class: "swiper-container", ref: el => this.swiperWrapperRef = el }, h("div", { class: "swiper-wrapper" }), h("div", { class: "swiper-pagination", ref: el => this.swiperPaginationRef = el }), h("div", { class: "swiper-button-next", ref: el => this.swiperButtonNextRef = el }, h("svg", { width: "14", height: "20", viewBox: "0 0 14 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.75 17.25L8 10L0.75 2.75L3.375 0.125L13.25 10L3.375 19.875L0.75 17.25Z", fill: "#323B42" }))), h("div", { class: "swiper-button-prev", ref: el => this.swiperButtonPrevRef = el }, h("svg", { width: "14", height: "20", viewBox: "0 0 14 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M13.25 2.75L6 10L13.25 17.25L10.625 19.875L0.749999 10L10.625 0.125L13.25 2.75Z", fill: "#323B42" }))))));
59
- }
60
- static get is() { return "ptc-icon-component"; }
61
- static get encapsulation() { return "shadow"; }
62
- static get originalStyleUrls() {
63
- return {
64
- "$": ["ptc-icon-component.scss"]
65
- };
66
- }
67
- static get styleUrls() {
68
- return {
69
- "$": ["ptc-icon-component.css"]
70
- };
71
- }
72
- static get states() {
73
- return {
74
- "isMobile": {}
75
- };
76
- }
77
- static get elementRef() { return "hostElement"; }
78
- static get listeners() {
79
- return [{
80
- "name": "resize",
81
- "method": "handleResize",
82
- "target": "window",
83
- "capture": false,
84
- "passive": true
85
- }];
86
- }
87
- }
1
+ import { Host, h } from '@stencil/core';
2
+ import Swiper, { Navigation, Pagination, Scrollbar } from 'swiper';
3
+ export class PtcIconComponent {
4
+ constructor() {
5
+ this.isMobile = undefined;
6
+ }
7
+ handleResize() {
8
+ this.isMobile = window.innerWidth < 768;
9
+ }
10
+ componentWillLoad() {
11
+ this.isMobile = window.innerWidth < 768;
12
+ }
13
+ componentDidLoad() {
14
+ this.renderSlides();
15
+ this.initSlider();
16
+ }
17
+ renderSlides() {
18
+ const slidesList = Array.from(this.hostElement.querySelectorAll('.icon-component'));
19
+ if (slidesList.length > 0) {
20
+ const swiperWrapper = this.hostElement.shadowRoot.querySelector('.swiper-wrapper');
21
+ slidesList.forEach((node) => {
22
+ const slideElement = document.createElement('div');
23
+ slideElement.classList.add('swiper-slide');
24
+ let cloneNode = node.cloneNode(true);
25
+ slideElement.appendChild(cloneNode);
26
+ swiperWrapper.appendChild(slideElement);
27
+ });
28
+ }
29
+ }
30
+ initSlider() {
31
+ if (this.swiperWrapperRef) {
32
+ this.iconSwiper = new Swiper(this.swiperWrapperRef, {
33
+ // Customize options here
34
+ modules: [Navigation, Pagination, Scrollbar],
35
+ slidesPerView: 1,
36
+ loop: true,
37
+ pagination: {
38
+ el: this.swiperPaginationRef,
39
+ clickable: true
40
+ },
41
+ navigation: {
42
+ nextEl: this.swiperButtonNextRef,
43
+ prevEl: this.swiperButtonPrevRef,
44
+ },
45
+ });
46
+ console.log("running swiper");
47
+ }
48
+ }
49
+ disconnectedCallback() {
50
+ console.log("Running disconnectedCb");
51
+ //window.removeEventListener('resize', this.handleResize);
52
+ if (this.iconSwiper) {
53
+ this.iconSwiper.destroy(true, true);
54
+ this.iconSwiper = null;
55
+ }
56
+ }
57
+ render() {
58
+ return (h(Host, { class: this.isMobile ? 'mobileView' : 'desktopView' }, h("div", { class: "icon-component-row" }, h("slot", null)), h("div", { class: "swiper-container", ref: el => this.swiperWrapperRef = el }, h("div", { class: "swiper-wrapper" }), h("div", { class: "swiper-pagination", ref: el => this.swiperPaginationRef = el }), h("div", { class: "swiper-button-next", ref: el => this.swiperButtonNextRef = el }, h("svg", { width: "14", height: "20", viewBox: "0 0 14 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.75 17.25L8 10L0.75 2.75L3.375 0.125L13.25 10L3.375 19.875L0.75 17.25Z", fill: "#323B42" }))), h("div", { class: "swiper-button-prev", ref: el => this.swiperButtonPrevRef = el }, h("svg", { width: "14", height: "20", viewBox: "0 0 14 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M13.25 2.75L6 10L13.25 17.25L10.625 19.875L0.749999 10L10.625 0.125L13.25 2.75Z", fill: "#323B42" }))))));
59
+ }
60
+ static get is() { return "ptc-icon-component"; }
61
+ static get encapsulation() { return "shadow"; }
62
+ static get originalStyleUrls() {
63
+ return {
64
+ "$": ["ptc-icon-component.scss"]
65
+ };
66
+ }
67
+ static get styleUrls() {
68
+ return {
69
+ "$": ["ptc-icon-component.css"]
70
+ };
71
+ }
72
+ static get states() {
73
+ return {
74
+ "isMobile": {}
75
+ };
76
+ }
77
+ static get elementRef() { return "hostElement"; }
78
+ static get listeners() {
79
+ return [{
80
+ "name": "resize",
81
+ "method": "handleResize",
82
+ "target": "window",
83
+ "capture": false,
84
+ "passive": true
85
+ }];
86
+ }
87
+ }
@@ -1,127 +1,127 @@
1
- import { Host, h } from '@stencil/core';
2
- export class PtcIconList {
3
- constructor() {
4
- this.listType = 'simple-icon-list';
5
- this.valueWithUnit = '';
6
- this.valueText = '';
7
- this.listContent = '';
8
- this.isLastItem = false;
9
- }
10
- render() {
11
- const classMap = this.getCssClassMap();
12
- return (h(Host, { class: classMap }, this.listType == "stat-icon-list" ? (h("div", { class: "ptc-icon-list" }, h("slot", { name: "icon" }), h("div", { class: "ptc-numbered-values" }, h("span", { class: "value-text" }, this.valueText, "\u00A0"), h("span", { class: "ptc-numbered-subtitle" }, this.valueWithUnit)), h("p", { class: "ptc-content" }, "- \u00A0", this.listContent))) : (h("div", { class: "ptc-icon-list" }, h("slot", { name: "icon" }), h("p", { class: "ptc-content-simple" }, this.listContent, !this.listContent &&
13
- h("slot", null))))));
14
- }
15
- getCssClassMap() {
16
- return {
17
- [this.listType]: this.listType ? true : false,
18
- ['last-item']: this.isLastItem ? true : false
19
- };
20
- }
21
- static get is() { return "ptc-icon-list"; }
22
- static get encapsulation() { return "shadow"; }
23
- static get originalStyleUrls() {
24
- return {
25
- "$": ["ptc-icon-list.scss"]
26
- };
27
- }
28
- static get styleUrls() {
29
- return {
30
- "$": ["ptc-icon-list.css"]
31
- };
32
- }
33
- static get properties() {
34
- return {
35
- "listType": {
36
- "type": "string",
37
- "mutable": false,
38
- "complexType": {
39
- "original": "'simple-icon-list' | 'stat-icon-list' | 'icon-top-align-list'",
40
- "resolved": "\"icon-top-align-list\" | \"simple-icon-list\" | \"stat-icon-list\"",
41
- "references": {}
42
- },
43
- "required": false,
44
- "optional": false,
45
- "docs": {
46
- "tags": [],
47
- "text": "List item type"
48
- },
49
- "attribute": "list-type",
50
- "reflect": false,
51
- "defaultValue": "'simple-icon-list'"
52
- },
53
- "valueWithUnit": {
54
- "type": "string",
55
- "mutable": false,
56
- "complexType": {
57
- "original": "string",
58
- "resolved": "string",
59
- "references": {}
60
- },
61
- "required": false,
62
- "optional": true,
63
- "docs": {
64
- "tags": [],
65
- "text": "List value with unit Example: 60%"
66
- },
67
- "attribute": "value-with-unit",
68
- "reflect": false,
69
- "defaultValue": "''"
70
- },
71
- "valueText": {
72
- "type": "string",
73
- "mutable": false,
74
- "complexType": {
75
- "original": "string",
76
- "resolved": "string",
77
- "references": {}
78
- },
79
- "required": false,
80
- "optional": true,
81
- "docs": {
82
- "tags": [],
83
- "text": "List value text Example: up to"
84
- },
85
- "attribute": "value-text",
86
- "reflect": false,
87
- "defaultValue": "''"
88
- },
89
- "listContent": {
90
- "type": "string",
91
- "mutable": false,
92
- "complexType": {
93
- "original": "string",
94
- "resolved": "string",
95
- "references": {}
96
- },
97
- "required": false,
98
- "optional": false,
99
- "docs": {
100
- "tags": [],
101
- "text": "List value with unit Example: Increase in Operator Productivity"
102
- },
103
- "attribute": "list-content",
104
- "reflect": false,
105
- "defaultValue": "''"
106
- },
107
- "isLastItem": {
108
- "type": "boolean",
109
- "mutable": false,
110
- "complexType": {
111
- "original": "boolean",
112
- "resolved": "boolean",
113
- "references": {}
114
- },
115
- "required": false,
116
- "optional": false,
117
- "docs": {
118
- "tags": [],
119
- "text": ""
120
- },
121
- "attribute": "is-last-item",
122
- "reflect": false,
123
- "defaultValue": "false"
124
- }
125
- };
126
- }
127
- }
1
+ import { Host, h } from '@stencil/core';
2
+ export class PtcIconList {
3
+ constructor() {
4
+ this.listType = 'simple-icon-list';
5
+ this.valueWithUnit = '';
6
+ this.valueText = '';
7
+ this.listContent = '';
8
+ this.isLastItem = false;
9
+ }
10
+ render() {
11
+ const classMap = this.getCssClassMap();
12
+ return (h(Host, { class: classMap }, this.listType == "stat-icon-list" ? (h("div", { class: "ptc-icon-list" }, h("slot", { name: "icon" }), h("div", { class: "ptc-numbered-values" }, h("span", { class: "value-text" }, this.valueText, "\u00A0"), h("span", { class: "ptc-numbered-subtitle" }, this.valueWithUnit)), h("p", { class: "ptc-content" }, "- \u00A0", this.listContent))) : (h("div", { class: "ptc-icon-list" }, h("slot", { name: "icon" }), h("p", { class: "ptc-content-simple" }, this.listContent, !this.listContent &&
13
+ h("slot", null))))));
14
+ }
15
+ getCssClassMap() {
16
+ return {
17
+ [this.listType]: this.listType ? true : false,
18
+ ['last-item']: this.isLastItem ? true : false
19
+ };
20
+ }
21
+ static get is() { return "ptc-icon-list"; }
22
+ static get encapsulation() { return "shadow"; }
23
+ static get originalStyleUrls() {
24
+ return {
25
+ "$": ["ptc-icon-list.scss"]
26
+ };
27
+ }
28
+ static get styleUrls() {
29
+ return {
30
+ "$": ["ptc-icon-list.css"]
31
+ };
32
+ }
33
+ static get properties() {
34
+ return {
35
+ "listType": {
36
+ "type": "string",
37
+ "mutable": false,
38
+ "complexType": {
39
+ "original": "'simple-icon-list' | 'stat-icon-list' | 'icon-top-align-list'",
40
+ "resolved": "\"icon-top-align-list\" | \"simple-icon-list\" | \"stat-icon-list\"",
41
+ "references": {}
42
+ },
43
+ "required": false,
44
+ "optional": false,
45
+ "docs": {
46
+ "tags": [],
47
+ "text": "List item type"
48
+ },
49
+ "attribute": "list-type",
50
+ "reflect": false,
51
+ "defaultValue": "'simple-icon-list'"
52
+ },
53
+ "valueWithUnit": {
54
+ "type": "string",
55
+ "mutable": false,
56
+ "complexType": {
57
+ "original": "string",
58
+ "resolved": "string",
59
+ "references": {}
60
+ },
61
+ "required": false,
62
+ "optional": true,
63
+ "docs": {
64
+ "tags": [],
65
+ "text": "List value with unit Example: 60%"
66
+ },
67
+ "attribute": "value-with-unit",
68
+ "reflect": false,
69
+ "defaultValue": "''"
70
+ },
71
+ "valueText": {
72
+ "type": "string",
73
+ "mutable": false,
74
+ "complexType": {
75
+ "original": "string",
76
+ "resolved": "string",
77
+ "references": {}
78
+ },
79
+ "required": false,
80
+ "optional": true,
81
+ "docs": {
82
+ "tags": [],
83
+ "text": "List value text Example: up to"
84
+ },
85
+ "attribute": "value-text",
86
+ "reflect": false,
87
+ "defaultValue": "''"
88
+ },
89
+ "listContent": {
90
+ "type": "string",
91
+ "mutable": false,
92
+ "complexType": {
93
+ "original": "string",
94
+ "resolved": "string",
95
+ "references": {}
96
+ },
97
+ "required": false,
98
+ "optional": false,
99
+ "docs": {
100
+ "tags": [],
101
+ "text": "List value with unit Example: Increase in Operator Productivity"
102
+ },
103
+ "attribute": "list-content",
104
+ "reflect": false,
105
+ "defaultValue": "''"
106
+ },
107
+ "isLastItem": {
108
+ "type": "boolean",
109
+ "mutable": false,
110
+ "complexType": {
111
+ "original": "boolean",
112
+ "resolved": "boolean",
113
+ "references": {}
114
+ },
115
+ "required": false,
116
+ "optional": false,
117
+ "docs": {
118
+ "tags": [],
119
+ "text": ""
120
+ },
121
+ "attribute": "is-last-item",
122
+ "reflect": false,
123
+ "defaultValue": "false"
124
+ }
125
+ };
126
+ }
127
+ }
@@ -1,119 +1,119 @@
1
- import { h } from '@stencil/core';
2
- export class PtcIconMinimize {
3
- constructor() {
4
- this.heading = undefined;
5
- this.opened = true;
6
- this.timeStamp = undefined;
7
- }
8
- componentWillLoad() {
9
- this.timeStamp = Date.now().toString();
10
- }
11
- componentDidLoad() {
12
- let content = this.host.shadowRoot.querySelector('.content');
13
- if (this.opened && !content.style.maxHeight) {
14
- content.style.maxHeight = content.scrollHeight + "px";
15
- }
16
- }
17
- dropdownToggle() {
18
- this.opened = !this.opened;
19
- }
20
- getScrollHeight() {
21
- let result = undefined;
22
- let content = this.host.shadowRoot.querySelector('.content');
23
- if (this.opened && content) {
24
- result = { 'max-height': content.scrollHeight + "px" };
25
- }
26
- else if (this.opened) {
27
- result = { 'max-height': 350 + "px" };
28
- }
29
- else if (content && content.style.maxHeight) {
30
- content.style.removeProperty('max-height');
31
- }
32
- return result;
33
- }
34
- async Refresh() {
35
- this.timeStamp = Date.now().toString();
36
- }
37
- render() {
38
- let scrollHeight = this.getScrollHeight();
39
- let icon = this.opened ? 'minus' : 'plus';
40
- return (h("div", { class: "ptc-icon-minimize" }, h("div", { class: "header" }, h("div", { class: "title" }, this.heading), h("div", { class: "icon", onClick: () => this.dropdownToggle() }, h("icon-asset", { type: "ptc", color: "black", size: "xxx-small", name: icon }))), h("div", { class: "content", style: scrollHeight }, h("slot", null))));
41
- }
42
- static get is() { return "ptc-icon-minimize"; }
43
- static get encapsulation() { return "shadow"; }
44
- static get originalStyleUrls() {
45
- return {
46
- "$": ["ptc-icon-minimize.scss"]
47
- };
48
- }
49
- static get styleUrls() {
50
- return {
51
- "$": ["ptc-icon-minimize.css"]
52
- };
53
- }
54
- static get properties() {
55
- return {
56
- "heading": {
57
- "type": "string",
58
- "mutable": true,
59
- "complexType": {
60
- "original": "string",
61
- "resolved": "string",
62
- "references": {}
63
- },
64
- "required": false,
65
- "optional": false,
66
- "docs": {
67
- "tags": [],
68
- "text": ""
69
- },
70
- "attribute": "heading",
71
- "reflect": false
72
- },
73
- "opened": {
74
- "type": "boolean",
75
- "mutable": true,
76
- "complexType": {
77
- "original": "boolean",
78
- "resolved": "boolean",
79
- "references": {}
80
- },
81
- "required": false,
82
- "optional": false,
83
- "docs": {
84
- "tags": [],
85
- "text": ""
86
- },
87
- "attribute": "opened",
88
- "reflect": false,
89
- "defaultValue": "true"
90
- }
91
- };
92
- }
93
- static get states() {
94
- return {
95
- "timeStamp": {}
96
- };
97
- }
98
- static get methods() {
99
- return {
100
- "Refresh": {
101
- "complexType": {
102
- "signature": "() => Promise<void>",
103
- "parameters": [],
104
- "references": {
105
- "Promise": {
106
- "location": "global"
107
- }
108
- },
109
- "return": "Promise<void>"
110
- },
111
- "docs": {
112
- "text": "",
113
- "tags": []
114
- }
115
- }
116
- };
117
- }
118
- static get elementRef() { return "host"; }
119
- }
1
+ import { h } from '@stencil/core';
2
+ export class PtcIconMinimize {
3
+ constructor() {
4
+ this.heading = undefined;
5
+ this.opened = true;
6
+ this.timeStamp = undefined;
7
+ }
8
+ componentWillLoad() {
9
+ this.timeStamp = Date.now().toString();
10
+ }
11
+ componentDidLoad() {
12
+ let content = this.host.shadowRoot.querySelector('.content');
13
+ if (this.opened && !content.style.maxHeight) {
14
+ content.style.maxHeight = content.scrollHeight + "px";
15
+ }
16
+ }
17
+ dropdownToggle() {
18
+ this.opened = !this.opened;
19
+ }
20
+ getScrollHeight() {
21
+ let result = undefined;
22
+ let content = this.host.shadowRoot.querySelector('.content');
23
+ if (this.opened && content) {
24
+ result = { 'max-height': content.scrollHeight + "px" };
25
+ }
26
+ else if (this.opened) {
27
+ result = { 'max-height': 350 + "px" };
28
+ }
29
+ else if (content && content.style.maxHeight) {
30
+ content.style.removeProperty('max-height');
31
+ }
32
+ return result;
33
+ }
34
+ async Refresh() {
35
+ this.timeStamp = Date.now().toString();
36
+ }
37
+ render() {
38
+ let scrollHeight = this.getScrollHeight();
39
+ let icon = this.opened ? 'minus' : 'plus';
40
+ return (h("div", { class: "ptc-icon-minimize" }, h("div", { class: "header" }, h("div", { class: "title" }, this.heading), h("div", { class: "icon", onClick: () => this.dropdownToggle() }, h("icon-asset", { type: "ptc", color: "black", size: "xxx-small", name: icon }))), h("div", { class: "content", style: scrollHeight }, h("slot", null))));
41
+ }
42
+ static get is() { return "ptc-icon-minimize"; }
43
+ static get encapsulation() { return "shadow"; }
44
+ static get originalStyleUrls() {
45
+ return {
46
+ "$": ["ptc-icon-minimize.scss"]
47
+ };
48
+ }
49
+ static get styleUrls() {
50
+ return {
51
+ "$": ["ptc-icon-minimize.css"]
52
+ };
53
+ }
54
+ static get properties() {
55
+ return {
56
+ "heading": {
57
+ "type": "string",
58
+ "mutable": true,
59
+ "complexType": {
60
+ "original": "string",
61
+ "resolved": "string",
62
+ "references": {}
63
+ },
64
+ "required": false,
65
+ "optional": false,
66
+ "docs": {
67
+ "tags": [],
68
+ "text": ""
69
+ },
70
+ "attribute": "heading",
71
+ "reflect": false
72
+ },
73
+ "opened": {
74
+ "type": "boolean",
75
+ "mutable": true,
76
+ "complexType": {
77
+ "original": "boolean",
78
+ "resolved": "boolean",
79
+ "references": {}
80
+ },
81
+ "required": false,
82
+ "optional": false,
83
+ "docs": {
84
+ "tags": [],
85
+ "text": ""
86
+ },
87
+ "attribute": "opened",
88
+ "reflect": false,
89
+ "defaultValue": "true"
90
+ }
91
+ };
92
+ }
93
+ static get states() {
94
+ return {
95
+ "timeStamp": {}
96
+ };
97
+ }
98
+ static get methods() {
99
+ return {
100
+ "Refresh": {
101
+ "complexType": {
102
+ "signature": "() => Promise<void>",
103
+ "parameters": [],
104
+ "references": {
105
+ "Promise": {
106
+ "location": "global"
107
+ }
108
+ },
109
+ "return": "Promise<void>"
110
+ },
111
+ "docs": {
112
+ "text": "",
113
+ "tags": []
114
+ }
115
+ }
116
+ };
117
+ }
118
+ static get elementRef() { return "host"; }
119
+ }