@ptcwebops/ptcw-design 0.7.5 → 0.7.7

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 (380) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/dropdown-item.cjs.entry.js +11 -11
  3. package/dist/cjs/icon-asset.cjs.entry.js +43 -55
  4. package/dist/cjs/{index-b3fabe79.js → index-8745a0a3.js} +486 -255
  5. package/dist/cjs/list-item.cjs.entry.js +20 -20
  6. package/dist/cjs/loader.cjs.js +3 -3
  7. package/dist/cjs/lottie-player.cjs.entry.js +355 -355
  8. package/dist/cjs/my-component.cjs.entry.js +16 -13
  9. package/dist/cjs/ptc-accordion-item.cjs.entry.js +84 -98
  10. package/dist/cjs/ptc-accordion.cjs.entry.js +36 -39
  11. package/dist/cjs/ptc-announcement.cjs.entry.js +53 -39
  12. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +13 -13
  13. package/dist/cjs/ptc-button.cjs.entry.js +35 -66
  14. package/dist/cjs/ptc-card-bottom.cjs.entry.js +34 -32
  15. package/dist/cjs/ptc-card-content.cjs.entry.js +38 -36
  16. package/dist/cjs/ptc-card-plm.cjs.entry.js +20 -17
  17. package/dist/cjs/ptc-card_6.cjs.entry.js +428 -536
  18. package/dist/cjs/ptc-checkbox.cjs.entry.js +34 -32
  19. package/dist/cjs/ptc-collapse-list.cjs.entry.js +347 -336
  20. package/dist/cjs/ptc-container.cjs.entry.js +33 -36
  21. package/dist/cjs/ptc-dropdown.cjs.entry.js +65 -65
  22. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +49 -42
  23. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +39 -38
  24. package/dist/cjs/ptc-filter-tag.cjs.entry.js +58 -57
  25. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +12 -9
  26. package/dist/cjs/ptc-hero.cjs.entry.js +17 -19
  27. package/dist/cjs/ptc-icon-list.cjs.entry.js +21 -33
  28. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +37 -36
  29. package/dist/cjs/ptc-link.cjs.entry.js +27 -43
  30. package/dist/cjs/ptc-list.cjs.entry.js +51 -51
  31. package/dist/cjs/ptc-lottie.cjs.entry.js +11 -13
  32. package/dist/cjs/ptc-minimized-footer.cjs.entry.js +9 -9
  33. package/dist/cjs/ptc-minimized-header.cjs.entry.js +12 -12
  34. package/dist/cjs/ptc-mobile-select.cjs.entry.js +55 -70
  35. package/dist/cjs/ptc-modal.cjs.entry.js +138 -156
  36. package/dist/cjs/ptc-overlay.cjs.entry.js +21 -21
  37. package/dist/cjs/ptc-pagenation.cjs.entry.js +107 -106
  38. package/dist/cjs/ptc-previous-url.cjs.entry.js +11 -9
  39. package/dist/cjs/ptc-pricing-block.cjs.entry.js +17 -16
  40. package/dist/cjs/ptc-quote.cjs.entry.js +24 -26
  41. package/dist/cjs/ptc-readmore_2.cjs.entry.js +85 -0
  42. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +55 -55
  43. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +51 -50
  44. package/dist/cjs/ptc-social-share.cjs.entry.js +58 -65
  45. package/dist/cjs/ptc-span.cjs.entry.js +19 -24
  46. package/dist/cjs/ptc-svg-btn.cjs.entry.js +74 -76
  47. package/dist/cjs/ptc-tab-list.cjs.entry.js +124 -123
  48. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +21 -25
  49. package/dist/cjs/ptc-title.cjs.entry.js +67 -75
  50. package/dist/cjs/ptc-two-column-media.cjs.entry.js +16 -15
  51. package/dist/cjs/ptcw-design.cjs.js +3 -3
  52. package/dist/cjs/tab-content.cjs.entry.js +28 -27
  53. package/dist/cjs/tab-header.cjs.entry.js +45 -44
  54. package/dist/cjs/{utils-2ac2a528.js → utils-5245e89c.js} +79 -79
  55. package/dist/collection/collection-manifest.json +4 -4
  56. package/dist/collection/components/dropdown-item/dropdown-item.js +61 -56
  57. package/dist/collection/components/icon-asset/icon-asset.css +4 -4
  58. package/dist/collection/components/icon-asset/icon-asset.js +199 -217
  59. package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
  60. package/dist/collection/components/icon-asset/media/designer.svg +379 -368
  61. package/dist/collection/components/icon-asset/media/regular.svg +463 -463
  62. package/dist/collection/components/icon-asset/media/solid.svg +3013 -3013
  63. package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
  64. package/dist/collection/components/list-item/list-item.js +107 -103
  65. package/dist/collection/components/my-component/my-component.css +3 -3
  66. package/dist/collection/components/my-component/my-component.js +82 -73
  67. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +287 -296
  68. package/dist/collection/components/ptc-accordion/ptc-accordion.js +78 -74
  69. package/dist/collection/components/ptc-announcement/ptc-announcement.css +86 -80
  70. package/dist/collection/components/ptc-announcement/ptc-announcement.js +239 -210
  71. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +22 -21
  72. package/dist/collection/components/ptc-button/ptc-button.js +264 -293
  73. package/dist/collection/components/ptc-card/ptc-card.css +167 -6
  74. package/dist/collection/components/ptc-card/ptc-card.js +312 -342
  75. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +114 -105
  76. package/dist/collection/components/ptc-card-content/ptc-card-content.js +118 -109
  77. package/dist/collection/components/ptc-card-plm/ptc-card-plm.js +104 -97
  78. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +118 -114
  79. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +570 -557
  80. package/dist/collection/components/ptc-container/ptc-container.js +120 -119
  81. package/dist/collection/components/ptc-date/ptc-date.js +190 -201
  82. package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +162 -157
  83. package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +16 -0
  84. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +4 -0
  85. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +183 -156
  86. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +122 -115
  87. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +113 -105
  88. package/dist/collection/components/ptc-hero/ptc-hero.js +67 -67
  89. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +78 -77
  90. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +126 -145
  91. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +87 -86
  92. package/dist/collection/components/ptc-img/ptc-img.js +296 -313
  93. package/dist/collection/components/ptc-link/ptc-link.js +184 -198
  94. package/dist/collection/components/ptc-list/ptc-list.js +100 -95
  95. package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -5
  96. package/dist/collection/components/ptc-lottie/ptc-lottie.js +62 -58
  97. package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.js +18 -17
  98. package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.js +81 -80
  99. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +209 -221
  100. package/dist/collection/components/ptc-modal/ptc-modal.js +341 -359
  101. package/dist/collection/components/ptc-overlay/ptc-overlay.js +105 -99
  102. package/dist/collection/components/ptc-pagenation/ptc-pagenation.css +10 -2
  103. package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +322 -317
  104. package/dist/collection/components/ptc-para/ptc-para.js +186 -195
  105. package/dist/collection/components/ptc-picture/ptc-picture.js +452 -473
  106. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +60 -54
  107. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +49 -45
  108. package/dist/collection/components/ptc-quote/ptc-quote.js +144 -154
  109. package/dist/collection/components/ptc-readmore/ptc-readmore.css +66 -0
  110. package/dist/collection/components/ptc-readmore/ptc-readmore.js +129 -0
  111. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
  112. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +65 -62
  113. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +97 -91
  114. package/dist/collection/components/ptc-social-share/ptc-social-share.js +201 -206
  115. package/dist/collection/components/ptc-spacer/ptc-spacer.css +322 -322
  116. package/dist/collection/components/ptc-spacer/ptc-spacer.js +96 -99
  117. package/dist/collection/components/ptc-span/ptc-span.js +87 -89
  118. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +72 -71
  119. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +154 -149
  120. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +123 -129
  121. package/dist/collection/components/ptc-title/ptc-title.css +1 -1
  122. package/dist/collection/components/ptc-title/ptc-title.js +291 -297
  123. package/dist/collection/components/ptc-tooltip/ptc-tooltip.css +112 -0
  124. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +163 -0
  125. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +48 -40
  126. package/dist/collection/components/tab-content/tab-content.js +84 -74
  127. package/dist/collection/components/tab-header/tab-header.js +118 -106
  128. package/dist/collection/index.js +1 -1
  129. package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -11
  130. package/dist/collection/media/svg-imgs/close.svg +10 -10
  131. package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +3 -3
  132. package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +3 -3
  133. package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
  134. package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
  135. package/dist/collection/media/svg-imgs/union.svg +3 -3
  136. package/dist/collection/utils/component.js +3 -3
  137. package/dist/collection/utils/interfaces.js +11 -11
  138. package/dist/collection/utils/utils.js +81 -81
  139. package/dist/custom-elements/index.d.ts +12 -12
  140. package/dist/custom-elements/index.js +3158 -3385
  141. package/dist/esm/dropdown-item.entry.js +11 -11
  142. package/dist/esm/icon-asset.entry.js +43 -55
  143. package/dist/esm/{index-5ff11327.js → index-0c73b51e.js} +486 -255
  144. package/dist/esm/list-item.entry.js +20 -20
  145. package/dist/esm/loader.js +3 -3
  146. package/dist/esm/lottie-player.entry.js +355 -355
  147. package/dist/esm/my-component.entry.js +16 -13
  148. package/dist/esm/polyfills/core-js.js +0 -0
  149. package/dist/esm/polyfills/css-shim.js +1 -1
  150. package/dist/esm/polyfills/dom.js +0 -0
  151. package/dist/esm/polyfills/es5-html-element.js +0 -0
  152. package/dist/esm/polyfills/index.js +0 -0
  153. package/dist/esm/polyfills/system.js +0 -0
  154. package/dist/esm/ptc-accordion-item.entry.js +84 -98
  155. package/dist/esm/ptc-accordion.entry.js +36 -39
  156. package/dist/esm/ptc-announcement.entry.js +53 -39
  157. package/dist/esm/ptc-breadcrumb.entry.js +13 -13
  158. package/dist/esm/ptc-button.entry.js +35 -66
  159. package/dist/esm/ptc-card-bottom.entry.js +34 -32
  160. package/dist/esm/ptc-card-content.entry.js +38 -36
  161. package/dist/esm/ptc-card-plm.entry.js +20 -17
  162. package/dist/esm/ptc-card_6.entry.js +428 -536
  163. package/dist/esm/ptc-checkbox.entry.js +34 -32
  164. package/dist/esm/ptc-collapse-list.entry.js +347 -336
  165. package/dist/esm/ptc-container.entry.js +33 -36
  166. package/dist/esm/ptc-dropdown.entry.js +65 -65
  167. package/dist/esm/ptc-dynamic-card.entry.js +49 -42
  168. package/dist/esm/ptc-ellipsis-dropdown.entry.js +39 -38
  169. package/dist/esm/ptc-filter-tag.entry.js +58 -57
  170. package/dist/esm/ptc-hero-footer-cta.entry.js +12 -9
  171. package/dist/esm/ptc-hero.entry.js +17 -19
  172. package/dist/esm/ptc-icon-list.entry.js +21 -33
  173. package/dist/esm/ptc-icon-minimize.entry.js +37 -36
  174. package/dist/esm/ptc-link.entry.js +27 -43
  175. package/dist/esm/ptc-list.entry.js +51 -51
  176. package/dist/esm/ptc-lottie.entry.js +11 -13
  177. package/dist/esm/ptc-minimized-footer.entry.js +9 -9
  178. package/dist/esm/ptc-minimized-header.entry.js +12 -12
  179. package/dist/esm/ptc-mobile-select.entry.js +55 -70
  180. package/dist/esm/ptc-modal.entry.js +138 -156
  181. package/dist/esm/ptc-overlay.entry.js +21 -21
  182. package/dist/esm/ptc-pagenation.entry.js +107 -106
  183. package/dist/esm/ptc-previous-url.entry.js +11 -9
  184. package/dist/esm/ptc-pricing-block.entry.js +17 -16
  185. package/dist/esm/ptc-quote.entry.js +24 -26
  186. package/dist/esm/ptc-readmore_2.entry.js +80 -0
  187. package/dist/esm/ptc-responsive-wrapper.entry.js +55 -55
  188. package/dist/esm/ptc-shopping-cart.entry.js +51 -50
  189. package/dist/esm/ptc-social-share.entry.js +58 -65
  190. package/dist/esm/ptc-span.entry.js +19 -24
  191. package/dist/esm/ptc-svg-btn.entry.js +74 -76
  192. package/dist/esm/ptc-tab-list.entry.js +124 -123
  193. package/dist/esm/ptc-text-copy-with-background.entry.js +21 -25
  194. package/dist/esm/ptc-title.entry.js +67 -75
  195. package/dist/esm/ptc-two-column-media.entry.js +16 -15
  196. package/dist/esm/ptcw-design.js +3 -3
  197. package/dist/esm/tab-content.entry.js +28 -27
  198. package/dist/esm/tab-header.entry.js +45 -44
  199. package/dist/esm/{utils-2dbb41dc.js → utils-646cc62f.js} +79 -79
  200. package/dist/ptcw-design/media/brands.svg +1381 -1381
  201. package/dist/ptcw-design/media/designer.svg +379 -368
  202. package/dist/ptcw-design/media/nav-active-dotslick.svg +16 -0
  203. package/dist/ptcw-design/media/regular.svg +463 -463
  204. package/dist/ptcw-design/media/solid.svg +3013 -3013
  205. package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
  206. package/dist/ptcw-design/p-009001dc.js +2 -0
  207. package/dist/ptcw-design/p-00c1343b.entry.js +1 -0
  208. package/dist/ptcw-design/p-188d69d9.entry.js +1 -0
  209. package/dist/ptcw-design/p-1964f1f4.entry.js +1 -0
  210. package/dist/ptcw-design/p-1cd396ab.entry.js +1 -0
  211. package/dist/ptcw-design/p-1e80c01f.entry.js +1 -0
  212. package/dist/ptcw-design/p-21e27f2b.entry.js +1 -0
  213. package/dist/ptcw-design/p-24321c52.entry.js +1 -0
  214. package/dist/ptcw-design/p-2b6244ad.entry.js +1 -0
  215. package/dist/ptcw-design/{p-7599491c.entry.js → p-2dcea9db.entry.js} +1 -1
  216. package/dist/ptcw-design/p-36a453d4.entry.js +1 -0
  217. package/dist/ptcw-design/p-3db835e4.entry.js +1 -0
  218. package/dist/ptcw-design/p-3f85b469.entry.js +1 -0
  219. package/dist/ptcw-design/p-482a8bc9.entry.js +1 -0
  220. package/dist/ptcw-design/p-4de70656.entry.js +1 -0
  221. package/dist/ptcw-design/p-5105d9e5.entry.js +1 -0
  222. package/dist/ptcw-design/p-58e06eee.entry.js +1 -0
  223. package/dist/ptcw-design/p-5bb7354a.entry.js +1 -0
  224. package/dist/ptcw-design/p-5d585b54.entry.js +1 -0
  225. package/dist/ptcw-design/p-5dbf98a9.entry.js +1 -0
  226. package/dist/ptcw-design/p-60843852.entry.js +1 -0
  227. package/dist/ptcw-design/p-6131b9a1.entry.js +1 -0
  228. package/dist/ptcw-design/p-6b1fdce6.entry.js +1 -0
  229. package/dist/ptcw-design/p-6d713986.entry.js +1 -0
  230. package/dist/ptcw-design/p-8637cefc.entry.js +1 -0
  231. package/dist/ptcw-design/p-8808ecc8.entry.js +1 -0
  232. package/dist/ptcw-design/p-8b197833.entry.js +1 -0
  233. package/dist/ptcw-design/p-8b5b5614.entry.js +1 -0
  234. package/dist/ptcw-design/p-8bb41e7c.entry.js +1 -0
  235. package/dist/ptcw-design/p-9311ee3f.entry.js +1 -0
  236. package/dist/ptcw-design/p-97e00dfa.entry.js +1 -0
  237. package/dist/ptcw-design/p-a05fe3d0.entry.js +1 -0
  238. package/dist/ptcw-design/p-a0f25c98.entry.js +1 -0
  239. package/dist/ptcw-design/p-a4900673.entry.js +1 -0
  240. package/dist/ptcw-design/p-a749c353.entry.js +1 -0
  241. package/dist/ptcw-design/p-adcc9906.entry.js +1 -0
  242. package/dist/ptcw-design/p-b420e81a.entry.js +1 -0
  243. package/dist/ptcw-design/p-b701bbc0.entry.js +1 -0
  244. package/dist/ptcw-design/p-bbbced85.entry.js +1 -0
  245. package/dist/ptcw-design/p-c3f73953.entry.js +1 -0
  246. package/dist/ptcw-design/p-c4e20f99.entry.js +1 -0
  247. package/dist/ptcw-design/p-ca9efc42.entry.js +1 -0
  248. package/dist/ptcw-design/p-d56b953e.entry.js +1 -0
  249. package/dist/ptcw-design/{p-5e845a15.entry.js → p-d910c9d6.entry.js} +2 -2
  250. package/dist/ptcw-design/p-e3280772.entry.js +1 -0
  251. package/dist/ptcw-design/p-e34d194d.entry.js +1 -0
  252. package/dist/ptcw-design/p-e87bc2cd.entry.js +1 -0
  253. package/dist/ptcw-design/p-f2cb8bc4.entry.js +1 -0
  254. package/dist/ptcw-design/p-f9694131.entry.js +1 -0
  255. package/dist/ptcw-design/p-fbd43055.entry.js +1 -0
  256. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  257. package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
  258. package/dist/types/components/icon-asset/icon-asset.d.ts +40 -40
  259. package/dist/types/components/list-item/list-item.d.ts +8 -8
  260. package/dist/types/components/my-component/my-component.d.ts +16 -16
  261. package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +59 -59
  262. package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +13 -13
  263. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +51 -43
  264. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +4 -4
  265. package/dist/types/components/ptc-button/ptc-button.d.ts +56 -56
  266. package/dist/types/components/ptc-card/ptc-card.d.ts +62 -62
  267. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
  268. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +15 -15
  269. package/dist/types/components/ptc-card-plm/ptc-card-plm.d.ts +8 -8
  270. package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +11 -11
  271. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +56 -56
  272. package/dist/types/components/ptc-container/ptc-container.d.ts +12 -12
  273. package/dist/types/components/ptc-date/ptc-date.d.ts +41 -41
  274. package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +19 -19
  275. package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +24 -16
  276. package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +12 -12
  277. package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +17 -17
  278. package/dist/types/components/ptc-hero/ptc-hero.d.ts +12 -12
  279. package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +6 -6
  280. package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +21 -21
  281. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +9 -9
  282. package/dist/types/components/ptc-img/ptc-img.d.ts +51 -51
  283. package/dist/types/components/ptc-link/ptc-link.d.ts +36 -36
  284. package/dist/types/components/ptc-list/ptc-list.d.ts +8 -8
  285. package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -12
  286. package/dist/types/components/ptc-minimized-footer/ptc-minimized-footer.d.ts +3 -3
  287. package/dist/types/components/ptc-minimized-header/ptc-minimized-header.d.ts +6 -6
  288. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +40 -40
  289. package/dist/types/components/ptc-modal/ptc-modal.d.ts +59 -59
  290. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +20 -20
  291. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +27 -27
  292. package/dist/types/components/ptc-para/ptc-para.d.ts +34 -34
  293. package/dist/types/components/ptc-picture/ptc-picture.d.ts +93 -93
  294. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +5 -5
  295. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +5 -5
  296. package/dist/types/components/ptc-quote/ptc-quote.d.ts +29 -29
  297. package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +27 -0
  298. package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
  299. package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
  300. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +25 -25
  301. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
  302. package/dist/types/components/ptc-span/ptc-span.d.ts +16 -16
  303. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +12 -12
  304. package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +15 -15
  305. package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +25 -25
  306. package/dist/types/components/ptc-title/ptc-title.d.ts +50 -50
  307. package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +34 -0
  308. package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +9 -9
  309. package/dist/types/components/tab-content/tab-content.d.ts +12 -12
  310. package/dist/types/components/tab-header/tab-header.d.ts +13 -13
  311. package/dist/types/components.d.ts +230 -149
  312. package/dist/types/global.d.ts +1072 -1072
  313. package/dist/types/index.d.ts +1 -1
  314. package/dist/types/stencil-public-runtime.d.ts +20 -4
  315. package/dist/types/utils/component.d.ts +1 -1
  316. package/dist/types/utils/interfaces.d.ts +31 -31
  317. package/dist/types/utils/utils.d.ts +4 -4
  318. package/loader/package.json +1 -0
  319. package/package.json +61 -59
  320. package/readme.md +11 -11
  321. package/dist/cjs/ptc-nav-item.cjs.entry.js +0 -94
  322. package/dist/cjs/ptc-nav.cjs.entry.js +0 -19
  323. package/dist/collection/components/ptc-nav/ptc-nav.css +0 -29
  324. package/dist/collection/components/ptc-nav/ptc-nav.js +0 -21
  325. package/dist/collection/components/ptc-nav-item/ptc-nav-item.css +0 -81
  326. package/dist/collection/components/ptc-nav-item/ptc-nav-item.js +0 -252
  327. package/dist/esm/ptc-nav-item.entry.js +0 -90
  328. package/dist/esm/ptc-nav.entry.js +0 -15
  329. package/dist/ptcw-design/p-09351f78.entry.js +0 -1
  330. package/dist/ptcw-design/p-10385027.entry.js +0 -1
  331. package/dist/ptcw-design/p-10f6d8ae.entry.js +0 -1
  332. package/dist/ptcw-design/p-15ec8469.entry.js +0 -1
  333. package/dist/ptcw-design/p-1a77a824.entry.js +0 -1
  334. package/dist/ptcw-design/p-1ec512ea.entry.js +0 -1
  335. package/dist/ptcw-design/p-21a381bd.entry.js +0 -1
  336. package/dist/ptcw-design/p-39b8d25b.entry.js +0 -1
  337. package/dist/ptcw-design/p-3a4bb2b1.entry.js +0 -1
  338. package/dist/ptcw-design/p-3b994b78.entry.js +0 -1
  339. package/dist/ptcw-design/p-4355ed7c.js +0 -1
  340. package/dist/ptcw-design/p-446423fc.entry.js +0 -1
  341. package/dist/ptcw-design/p-4ab335ac.entry.js +0 -1
  342. package/dist/ptcw-design/p-4da25d67.entry.js +0 -1
  343. package/dist/ptcw-design/p-53790fb4.entry.js +0 -1
  344. package/dist/ptcw-design/p-5bf5932c.entry.js +0 -1
  345. package/dist/ptcw-design/p-5c02f876.entry.js +0 -1
  346. package/dist/ptcw-design/p-5c5c8f25.entry.js +0 -1
  347. package/dist/ptcw-design/p-5fd37a0e.entry.js +0 -1
  348. package/dist/ptcw-design/p-5fd60b15.entry.js +0 -1
  349. package/dist/ptcw-design/p-6ab5aee9.entry.js +0 -1
  350. package/dist/ptcw-design/p-70d2c46d.entry.js +0 -1
  351. package/dist/ptcw-design/p-74a31734.entry.js +0 -1
  352. package/dist/ptcw-design/p-7a37d762.entry.js +0 -1
  353. package/dist/ptcw-design/p-83a9720c.entry.js +0 -1
  354. package/dist/ptcw-design/p-85e7bbc3.entry.js +0 -1
  355. package/dist/ptcw-design/p-8ba6cef7.entry.js +0 -1
  356. package/dist/ptcw-design/p-8c0ba2d5.entry.js +0 -1
  357. package/dist/ptcw-design/p-8c594b35.entry.js +0 -1
  358. package/dist/ptcw-design/p-8d46a06e.entry.js +0 -1
  359. package/dist/ptcw-design/p-8e2e81c8.entry.js +0 -1
  360. package/dist/ptcw-design/p-96bfb95b.entry.js +0 -1
  361. package/dist/ptcw-design/p-b1bfc20f.entry.js +0 -1
  362. package/dist/ptcw-design/p-baa7d351.entry.js +0 -1
  363. package/dist/ptcw-design/p-bb4485e3.entry.js +0 -1
  364. package/dist/ptcw-design/p-bcfd05dc.entry.js +0 -1
  365. package/dist/ptcw-design/p-be32e928.entry.js +0 -1
  366. package/dist/ptcw-design/p-c05f0c98.entry.js +0 -1
  367. package/dist/ptcw-design/p-c267b720.entry.js +0 -1
  368. package/dist/ptcw-design/p-c26e343e.entry.js +0 -1
  369. package/dist/ptcw-design/p-c460a62d.entry.js +0 -1
  370. package/dist/ptcw-design/p-c91a875b.entry.js +0 -1
  371. package/dist/ptcw-design/p-cd2404f0.entry.js +0 -1
  372. package/dist/ptcw-design/p-ce5ee58d.entry.js +0 -1
  373. package/dist/ptcw-design/p-d39668ca.entry.js +0 -1
  374. package/dist/ptcw-design/p-e955c833.entry.js +0 -1
  375. package/dist/ptcw-design/p-f0cd0fb4.entry.js +0 -1
  376. package/dist/ptcw-design/p-f7d18b93.entry.js +0 -1
  377. package/dist/ptcw-design/p-fce72f70.entry.js +0 -1
  378. package/dist/types/components/ptc-nav/ptc-nav.d.ts +0 -3
  379. package/dist/types/components/ptc-nav-item/ptc-nav-item.d.ts +0 -53
  380. /package/dist/ptcw-design/{p-5e98555a.js → p-e121ff2a.js} +0 -0
@@ -1,19 +1,22 @@
1
- import { r as registerInstance, h } from './index-5ff11327.js';
2
- import { f as format } from './utils-2dbb41dc.js';
1
+ import { r as registerInstance, h } from './index-0c73b51e.js';
2
+ import { f as format } from './utils-646cc62f.js';
3
3
 
4
4
  const myComponentCss = ":host{display:block}";
5
5
 
6
- let MyComponent = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- }
10
- getText() {
11
- return format(this.first, this.middle, this.last);
12
- }
13
- render() {
14
- return h("div", null, "Hello, World! I'm ", this.getText());
15
- }
16
- };
6
+ const MyComponent = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.first = undefined;
10
+ this.middle = undefined;
11
+ this.last = undefined;
12
+ }
13
+ getText() {
14
+ return format(this.first, this.middle, this.last);
15
+ }
16
+ render() {
17
+ return h("div", null, "Hello, World! I'm ", this.getText());
18
+ }
19
+ };
17
20
  MyComponent.style = myComponentCss;
18
21
 
19
22
  export { MyComponent as my_component };
File without changes
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.substr(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\."+t,"."+r)}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t=s.scopeId+"-"+this.count,o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
1
+ var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
File without changes
File without changes
File without changes
File without changes
@@ -1,106 +1,92 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5ff11327.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0c73b51e.js';
2
2
 
3
- const hasSlot = (parentEl, slotName) => {
4
- return !!parentEl.querySelector(':scope > [slot="' + slotName + '"'); // cast boolean
3
+ const hasSlot = (parentEl, slotName) => {
4
+ return !!parentEl.querySelector(':scope > [slot="' + slotName + '"'); // cast boolean
5
5
  };
6
6
 
7
7
  const ptcAccordionItemCss = ":host{display:block}:host .heading{display:flex;align-items:center;justify-content:initial;width:100%;border:none;text-align:left;padding:var(--ptc-element-spacing-06);padding-left:0;cursor:pointer;transition:border-radius var(--ptc-transition-fast) ease var(--ptc-transition-fast);background-color:transparent;border-bottom:1px solid var(--color-gray-03)}:host .heading .heading-text{color:var(--color-gray-10);margin:0;font-weight:var(--ptc-font-weight-bold);flex:1;font-size:var(--ptc-font-size-large);font-family:var(--ptc-font-latin)}:host .heading .arrow{color:var(--color-green-06);margin-right:var(--ptc-element-spacing-05);transition:transform var(--ptc-transition-fast) ease-in-out}:host .heading .arrow svg{width:34px;height:34px}:host .heading .arrow svg path{fill:currentColor}:host .body-container{overflow:hidden;max-height:0;transition:max-height var(--ptc-transition-fast) ease-in-out;scrollbar-width:none;}:host .body-container::-webkit-scrollbar{display:none;}:host .body-container .body{border-top-left-radius:0;border-top-right-radius:0;overflow:hidden;padding:var(--ptc-layout-spacing-02)}:host(.autoHeight) .body-container{overflow:hidden}:host(.active) .heading{border-bottom-left-radius:0;border-bottom-right-radius:0;transition:border-radius 0s ease;border-color:var(--color-gray-02)}:host(.active) .heading .arrow{transform:rotate(180deg)}:host(.active) .heading .arrow svg{color:var(--color-gray-03)}:host(.active) .body-container{max-height:var(--ptc-accordion-item-body-max-height)}";
8
8
 
9
- let PtcAccordionItem = class {
10
- constructor(hostRef) {
11
- registerInstance(this, hostRef);
12
- this.opened = createEvent(this, "opened", 7);
13
- this.opening = createEvent(this, "opening", 7);
14
- this.closed = createEvent(this, "closed", 7);
15
- this.closing = createEvent(this, "closing", 7);
16
- /**
17
- * Heading text.
18
- * This will be overwritten by `heading` slot
19
- */
20
- this.heading = null;
21
- /**
22
- * The HTML tag to be applied to the heading text.
23
- * This will be overwritten by `heading` slot
24
- */
25
- this.headingTag = 'h3';
26
- /**
27
- * If expanded height should be automatically calculated. If set, the `--ptc-accordion-item-body-max-height` CSS variable will be set automatically to the content height
28
- */
29
- this.autoHeight = false;
30
- /**
31
- * If the accordion item should be opened by default
32
- */
33
- this.active = false;
34
- this.hasHeadingSlot = true;
35
- this.hasArrowSlot = true;
36
- }
37
- componentWillLoad() {
38
- this.hasHeadingSlot = hasSlot(this.el, 'heading');
39
- this.hasArrowSlot = hasSlot(this.el, 'arrow');
40
- }
41
- componentDidLoad() {
42
- if (this.autoHeight) {
43
- this.bodyEl.style.setProperty('--ptc-accordion-item-body-max-height', this.bodyEl.scrollHeight + 2 + 'px');
44
- }
45
- this.onTransitionEnd();
46
- this.bodyEl.addEventListener('transitionstart', () => {
47
- this.onTransitionStart();
48
- });
49
- this.bodyEl.addEventListener('transitionend', () => {
50
- this.onTransitionEnd();
51
- });
52
- this.hasHeadingSlot = hasSlot(this.el, 'heading');
53
- this.hasArrowSlot = hasSlot(this.el, 'arrow');
54
- }
55
- onTransitionEnd() {
56
- if (this.active) {
57
- this.bodyEl.style.overflow = 'auto';
58
- this.opened.emit();
59
- }
60
- else {
61
- this.bodyEl.style.overflow = 'hidden';
62
- this.bodyEl.style.visibility = 'hidden';
63
- this.closed.emit();
64
- }
65
- }
66
- onTransitionStart() {
67
- if (this.active) {
68
- this.bodyEl.style.visibility = 'visible';
69
- this.opening.emit();
70
- }
71
- else {
72
- this.closing.emit();
73
- }
74
- }
75
- /**
76
- * Toggle open state of accordion item
77
- */
78
- async toggle() {
79
- if (this.active) {
80
- this.close();
81
- }
82
- else {
83
- this.open();
84
- }
85
- }
86
- /**
87
- * Closes the accordion item
88
- */
89
- async close() {
90
- this.active = false;
91
- }
92
- /**
93
- * Opens the accordion item.
94
- */
95
- async open() {
96
- this.active = true;
97
- }
98
- render() {
99
- const { active, autoHeight, headingTag: HeadingTag } = this;
100
- return (h(Host, { class: { active, autoHeight } }, h("button", { class: "heading", role: "button", onClick: () => this.toggle() }, h("span", { class: "arrow" }, this.hasArrowSlot ? (h("slot", { name: "arrow" })) : (h("svg", { focusable: "false", viewBox: "0 0 24 24", "aria-hidden": "true" }, h("path", { d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" })))), this.hasHeadingSlot ? (h("slot", { name: "heading" })) : (h(HeadingTag, { class: "heading-text" }, this.heading))), h("div", { class: "body-container", ref: el => (this.bodyEl = el) }, h("div", { class: "body" }, h("slot", null)))));
101
- }
102
- get el() { return getElement(this); }
103
- };
9
+ const PtcAccordionItem = class {
10
+ constructor(hostRef) {
11
+ registerInstance(this, hostRef);
12
+ this.opened = createEvent(this, "opened", 7);
13
+ this.opening = createEvent(this, "opening", 7);
14
+ this.closed = createEvent(this, "closed", 7);
15
+ this.closing = createEvent(this, "closing", 7);
16
+ this.heading = null;
17
+ this.headingTag = 'h3';
18
+ this.autoHeight = false;
19
+ this.active = false;
20
+ this.hasHeadingSlot = true;
21
+ this.hasArrowSlot = true;
22
+ }
23
+ componentWillLoad() {
24
+ this.hasHeadingSlot = hasSlot(this.el, 'heading');
25
+ this.hasArrowSlot = hasSlot(this.el, 'arrow');
26
+ }
27
+ componentDidLoad() {
28
+ if (this.autoHeight) {
29
+ this.bodyEl.style.setProperty('--ptc-accordion-item-body-max-height', this.bodyEl.scrollHeight + 2 + 'px');
30
+ }
31
+ this.onTransitionEnd();
32
+ this.bodyEl.addEventListener('transitionstart', () => {
33
+ this.onTransitionStart();
34
+ });
35
+ this.bodyEl.addEventListener('transitionend', () => {
36
+ this.onTransitionEnd();
37
+ });
38
+ this.hasHeadingSlot = hasSlot(this.el, 'heading');
39
+ this.hasArrowSlot = hasSlot(this.el, 'arrow');
40
+ }
41
+ onTransitionEnd() {
42
+ if (this.active) {
43
+ this.bodyEl.style.overflow = 'auto';
44
+ this.opened.emit();
45
+ }
46
+ else {
47
+ this.bodyEl.style.overflow = 'hidden';
48
+ this.bodyEl.style.visibility = 'hidden';
49
+ this.closed.emit();
50
+ }
51
+ }
52
+ onTransitionStart() {
53
+ if (this.active) {
54
+ this.bodyEl.style.visibility = 'visible';
55
+ this.opening.emit();
56
+ }
57
+ else {
58
+ this.closing.emit();
59
+ }
60
+ }
61
+ /**
62
+ * Toggle open state of accordion item
63
+ */
64
+ async toggle() {
65
+ if (this.active) {
66
+ this.close();
67
+ }
68
+ else {
69
+ this.open();
70
+ }
71
+ }
72
+ /**
73
+ * Closes the accordion item
74
+ */
75
+ async close() {
76
+ this.active = false;
77
+ }
78
+ /**
79
+ * Opens the accordion item.
80
+ */
81
+ async open() {
82
+ this.active = true;
83
+ }
84
+ render() {
85
+ const { active, autoHeight, headingTag: HeadingTag } = this;
86
+ return (h(Host, { class: { active, autoHeight } }, h("button", { class: "heading", role: "button", onClick: () => this.toggle() }, h("span", { class: "arrow" }, this.hasArrowSlot ? (h("slot", { name: "arrow" })) : (h("svg", { focusable: "false", viewBox: "0 0 24 24", "aria-hidden": "true" }, h("path", { d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" })))), this.hasHeadingSlot ? (h("slot", { name: "heading" })) : (h(HeadingTag, { class: "heading-text" }, this.heading))), h("div", { class: "body-container", ref: el => (this.bodyEl = el) }, h("div", { class: "body" }, h("slot", null)))));
87
+ }
88
+ get el() { return getElement(this); }
89
+ };
104
90
  PtcAccordionItem.style = ptcAccordionItemCss;
105
91
 
106
92
  export { PtcAccordionItem as ptc_accordion_item };
@@ -1,45 +1,42 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-5ff11327.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-0c73b51e.js';
2
2
 
3
3
  const ptcAccordionCss = ":host{--ptc-accordion-item-body-max-height:100vh}";
4
4
 
5
- let PtcAccordion = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- /**
9
- * If multiple `<ptc-accordion-item>`s can open at the same time
10
- */
11
- this.multiple = false;
12
- }
13
- componentWillLoad() {
14
- this.items = this.el.querySelectorAll(':scope > ptc-accordion-item');
15
- if (!this.multiple) {
16
- this.activeItem = this.el.querySelector(':scope > ptc-accordion-item[active]');
17
- if (this.activeItem) {
18
- this.activeItem.open();
19
- }
20
- this.closeNonActive();
21
- }
22
- }
23
- openHandler(e) {
24
- e.stopPropagation();
25
- const eventTarget = e.target;
26
- if (!this.multiple) {
27
- this.activeItem = eventTarget;
28
- this.closeNonActive();
29
- }
30
- }
31
- closeNonActive() {
32
- this.items.forEach(item => {
33
- if (!item.isEqualNode(this.activeItem)) {
34
- item.close();
35
- }
36
- });
37
- }
38
- render() {
39
- return (h(Host, null, h("slot", null)));
40
- }
41
- get el() { return getElement(this); }
42
- };
5
+ const PtcAccordion = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.multiple = false;
9
+ }
10
+ componentWillLoad() {
11
+ this.items = this.el.querySelectorAll(':scope > ptc-accordion-item');
12
+ if (!this.multiple) {
13
+ this.activeItem = this.el.querySelector(':scope > ptc-accordion-item[active]');
14
+ if (this.activeItem) {
15
+ this.activeItem.open();
16
+ }
17
+ this.closeNonActive();
18
+ }
19
+ }
20
+ openHandler(e) {
21
+ e.stopPropagation();
22
+ const eventTarget = e.target;
23
+ if (!this.multiple) {
24
+ this.activeItem = eventTarget;
25
+ this.closeNonActive();
26
+ }
27
+ }
28
+ closeNonActive() {
29
+ this.items.forEach(item => {
30
+ if (!item.isEqualNode(this.activeItem)) {
31
+ item.close();
32
+ }
33
+ });
34
+ }
35
+ render() {
36
+ return (h(Host, null, h("slot", null)));
37
+ }
38
+ get el() { return getElement(this); }
39
+ };
43
40
  PtcAccordion.style = ptcAccordionCss;
44
41
 
45
42
  export { PtcAccordion as ptc_accordion };
@@ -1,44 +1,58 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-5ff11327.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-0c73b51e.js';
2
2
 
3
- const ptcAnnouncementCss = ":host{display:block}.announcement{width:100%;position:relative;background-color:var(--color-gray-02);z-index:860;background-size:cover;background-repeat:repeat-x;border:1px solid var(--color-green-06);box-shadow:var(--ptc-shadow-small);z-index:999;display:none}.visible{display:block}.content-wrapper{display:flex;padding:var(--ptc-element-spacing-02) var(--ptc-element-spacing-03);margin:0 auto;align-items:center;justify-content:space-between}@media only screen and (min-width: 768px){.content-wrapper{padding:var(--ptc-element-spacing-02) var(--ptc-element-spacing-04)}}@media only screen and (min-width: 768px){.temp-container{width:750px}}@media only screen and (min-width: 992px){.temp-container{width:970px}}@media only screen and (min-width: 1200px){.temp-container{width:1170px}}@media only screen and (min-width: 1440px){.temp-container{width:1400px}}@media only screen and (min-width: 1600px){.temp-container{width:1560px}}.left-content{display:flex;flex-basis:82%;flex-direction:column}@media only screen and (min-width: 768px){.left-content{align-items:flex-start;justify-content:flex-start}}.title{flex-basis:17%;font-family:Raleway;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-extrabold);font-stretch:normal;font-style:normal;line-height:var(--ptc-line-height-looser);letter-spacing:var(--ptc-letter-spacing-loose);text-align:left;color:var(--color-gray-10);text-transform:uppercase}.ptc-svg-btn{flex-basis:18%}.bar-close{padding-right:var(--ptc-element-spacing-04)}.description{flex-basis:82%;font-family:Raleway;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-medium);font-stretch:normal;font-style:normal;line-height:var(--ptc-line-height-denser);letter-spacing:normal;text-align:left;color:var(--color-gray-10)}a{color:var(--color-blue-07);-webkit-transition:color var(--ptc-transition-slow) var(--ptc-ease-inout);-o-transition:color var(--ptc-transition-slow) var(--ptc-ease-inout);transition:color var(--ptc-transition-slow) var(--ptc-ease-inout);font-weight:var(--ptc-font-weight-bold);text-decoration:underline;white-space:nowrap;margin-left:var(--ptc-element-spacing-04)}a:hover{color:var(--color-blue-08)}a:focus{outline:3px solid var(--color-blue-07);outline-offset:0.25rem;border-radius:var(--ptc-border-radius-standard)}a:visited{color:var(--color-blue-09)}@media only screen and (min-width: 768px){.bar-close{padding-right:0px}}@media only screen and (min-width: 992px){.left-content{flex-direction:row;align-items:center}.title{font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-dense);letter-spacing:var(--ptc-letter-spacing-loose);padding-left:var(--ptc-element-spacing-03)}.description{font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense)}}";
3
+ const ptcAnnouncementCss = ":host{display:block}.announcement{width:100%;position:relative;background-color:var(--color-gray-02);z-index:860;background-size:cover;background-repeat:repeat-x;border-top:3px solid var(--color-green-07);box-shadow:var(--ptc-shadow-medium);z-index:999;display:none}.visible{display:block}.content-wrapper{display:flex;padding:var(--ptc-element-spacing-03) var(--ptc-element-spacing-06) var(--ptc-element-spacing-03) var(--ptc-element-spacing-05);margin:0 auto;align-items:center;justify-content:space-between;max-width:1200px}@media only screen and (min-width: 768px){.content-wrapper{padding:var(--ptc-element-spacing-03) var(--ptc-element-spacing-06)}}@media only screen and (min-width: 1200px){.content-wrapper{padding:var(--ptc-element-spacing-03) 44px var(--ptc-element-spacing-03) 67px}}.left-content{max-width:calc(100% - 76px);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;position:relative}.title{font-family:Raleway;font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-densest);letter-spacing:var(--ptc-letter-spacing-dense);text-align:left;color:var(--color-gray-10);margin-bottom:var(--ptc-element-spacing-02);max-width:100%}.description{font-family:Raleway;font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-regular);line-height:var(--ptc-line-height-densest);letter-spacing:var(--ptc-letter-spacing-normal);text-align:left;color:var(--color-gray-10);max-width:100%}.description div{display:inline-block;padding-right:var(--ptc-element-spacing-01);vertical-align:middle}.cta-link{color:var(--color-blue-07);font-size:var(--ptc-font-size-x-small);-webkit-transition:color var(--ptc-transition-slow) var(--ptc-ease-inout);-o-transition:color var(--ptc-transition-slow) var(--ptc-ease-inout);transition:color var(--ptc-transition-slow) var(--ptc-ease-inout);font-weight:var(--ptc-font-weight-bold);text-decoration:underline;display:inline-block;vertical-align:middle;cursor:pointer}.cta-link::before{content:\"\";position:absolute;width:100%;height:100%;left:50%;top:50%;transform:translate(-50%, -50%);z-index:1}.cta-link:link{color:var(--color-blue-07)}.cta-link:hover{color:var(--color-blue-08)}.cta-link:active{color:var(--color-gray-09)}.cta-link:focus{outline:2px solid var(--color-blue-07);outline-offset:0.25rem}.bar-close{max-width:36px;cursor:pointer;margin-left:var(--ptc-element-spacing-08);position:relative}.bar-close::before{content:\"\";position:absolute;width:44px;height:44px;left:50%;top:50%;transform:translate(-50%, -50%);z-index:1}@media only screen and (min-width: 992px){.left-content{flex-direction:row;max-width:calc(100% - 58px);flex:1 1 1032px}.bar-close{max-width:18px}.bar-close::before{width:34px;height:34px}.title{margin-right:var(--ptc-element-spacing-04);margin-bottom:0;flex:0 1 auto;max-width:248px}.title.max-title{max-width:unset !important;flex:2 1 560px}.description{flex:1 1 768px}}";
4
4
 
5
- let PtcAnnouncement = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.close = createEvent(this, "close", 7);
9
- /**
10
- * bar title
11
- */
12
- this.barTitle = "";
13
- /**
14
- * bar description
15
- */
16
- this.Description = "";
17
- /**
18
- * Link Url
19
- */
20
- this.linkUrl = '#';
21
- /**
22
- * Target
23
- */
24
- this.target = '_self';
25
- this.closeClick = () => {
26
- this.visible = false;
27
- this.close.emit();
28
- };
29
- }
30
- render() {
31
- var _a;
32
- const classMap = this.getCssClassMap();
33
- return (h(Host, null, h("div", { class: classMap, part: "part-announcement" }, h("div", { class: this.tempContainer ? 'content-wrapper temp-container' : 'content-wrapper' }, h("div", { class: "left-content", part: "part-left-content" }, !!this.barTitle ? h("div", { class: "title" }, this.barTitle) : null, h("div", { class: "description" }, !!this.Description ? h("span", null, this.Description) : null, !!this.linkText ? (h("a", { href: this.linkUrl, title: (_a = this.linkTitle) !== null && _a !== void 0 ? _a : this.linkText, target: this.target }, this.linkText)) : null)), h("ptc-svg-btn", { class: "bar-close", "svg-name": "close", onClick: this.closeClick })))));
34
- }
35
- getCssClassMap() {
36
- return {
37
- ['announcement']: true,
38
- [this.visible ? 'visible' : '']: true,
39
- };
40
- }
41
- };
5
+ const PtcAnnouncement = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.close = createEvent(this, "close", 7);
9
+ this.closeClick = () => {
10
+ this.visible = false;
11
+ this.close.emit();
12
+ };
13
+ this.getIconSize = () => {
14
+ return this.windowSize === 'mobile' ? 'xxx-large' : 'small';
15
+ };
16
+ this.isMaxWidthTitle = () => {
17
+ return !!this.description ? '' : ' max-title';
18
+ };
19
+ this.barTitle = '';
20
+ this.description = '';
21
+ this.linkText = undefined;
22
+ this.linkTitle = undefined;
23
+ this.visible = undefined;
24
+ this.linkUrl = '#';
25
+ this.insideContainer = undefined;
26
+ this.target = '_self';
27
+ this.windowSize = 'mobile';
28
+ }
29
+ handleResize() {
30
+ //console.log('window width:', window.innerWidth);
31
+ if (window.innerWidth < 992) {
32
+ this.windowSize = 'mobile';
33
+ }
34
+ else {
35
+ this.windowSize = 'desktop';
36
+ }
37
+ }
38
+ componentWillLoad() {
39
+ this.handleResize();
40
+ }
41
+ render() {
42
+ var _a, _b;
43
+ const classMap = this.getCssClassMap();
44
+ return (h(Host, null, h("div", { class: classMap, part: "part-announcement" }, h("div", { class: this.insideContainer ? 'content-wrapper ptc-container' : 'content-wrapper' }, h("div", { class: "left-content", part: "part-left-content" }, !!this.barTitle ? (h("div", { class: `title${this.isMaxWidthTitle()}` }, this.windowSize === 'mobile' ? (this.barTitle) : (h("ptc-tooltip", { "text-display": "inline", "max-length": "60", "z-index": "z-2", description: this.barTitle, position: "bottom" })))) : null, this.windowSize === 'mobile' ? ( //mobile view
45
+ Object.assign({}, (!!this.description || !!this.linkUrl ? (h("ptc-readmore", { "visible-lines": "line4", "z-index": "z-3" }, !!this.description ? `${this.description + ' '}` : null, !!this.linkText ? (h("a", { class: "cta-link", href: this.linkUrl, title: (_a = this.linkTitle) !== null && _a !== void 0 ? _a : this.linkText, target: this.target }, this.linkText)) : null)) : null))) : (
46
+ //desktop view
47
+ h("div", { class: "description" }, !!this.description ? h("ptc-tooltip", { "text-display": "inline", "max-length": "165", "z-index": "z-2", description: this.description + " ", position: "bottom" }) : null, !!this.linkText ? (h("a", { class: "cta-link", href: this.linkUrl, title: (_b = this.linkTitle) !== null && _b !== void 0 ? _b : this.linkText, target: this.target }, h("ptc-tooltip", { "text-display": "inline", "max-length": "25", "z-index": "z-2", description: this.linkText, position: "bottom" }))) : null))), h("icon-asset", { color: "inherit", name: "close-button-flat", type: "ptc", size: this.getIconSize(), onClick: this.closeClick, class: "bar-close" })))));
48
+ }
49
+ getCssClassMap() {
50
+ return {
51
+ ['announcement']: true,
52
+ [this.visible ? 'visible' : '']: true,
53
+ };
54
+ }
55
+ };
42
56
  PtcAnnouncement.style = ptcAnnouncementCss;
43
57
 
44
58
  export { PtcAnnouncement as ptc_announcement };
@@ -1,19 +1,19 @@
1
- import { r as registerInstance, h, H as Host } from './index-5ff11327.js';
1
+ import { r as registerInstance, h, H as Host } from './index-0c73b51e.js';
2
2
 
3
3
  const ptcBreadcrumbCss = ":host{display:block;margin-top:var(--ptc-element-spacing-05)}::slotted(*){transform:translate(-2px, -2px)}";
4
4
 
5
- let PtcBreadcrumb = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- }
9
- render() {
10
- const classMap = this.getCssClassMap();
11
- return (h(Host, { class: classMap }, h("list-item", { listType: 'breadcrumb', flushBefore: true, "link-href": "https://www.ptc.com" }, h("icon-asset", { type: "ptc", size: "medium", name: "icon-home", color: "white" })), h("slot", null)));
12
- }
13
- getCssClassMap() {
14
- return {};
15
- }
16
- };
5
+ const PtcBreadcrumb = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ render() {
10
+ const classMap = this.getCssClassMap();
11
+ return (h(Host, { class: classMap }, h("list-item", { listType: 'breadcrumb', flushBefore: true, "link-href": "https://www.ptc.com" }, h("icon-asset", { type: "ptc", size: "medium", name: "icon-home", color: "white" })), h("slot", null)));
12
+ }
13
+ getCssClassMap() {
14
+ return {};
15
+ }
16
+ };
17
17
  PtcBreadcrumb.style = ptcBreadcrumbCss;
18
18
 
19
19
  export { PtcBreadcrumb as ptc_breadcrumb };