@ptcwebops/ptcw-design 1.4.1 → 1.4.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 (338) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/bundle-example.cjs.entry.js +30 -30
  3. package/dist/cjs/bundle-jumbotron-example_16.cjs.entry.js +1067 -1067
  4. package/dist/cjs/dropdown-item.cjs.entry.js +10 -10
  5. package/dist/cjs/dynamic-box-bundle.cjs.entry.js +25 -25
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/lottie-player.cjs.entry.js +354 -354
  8. package/dist/cjs/my-component.cjs.entry.js +15 -15
  9. package/dist/cjs/ptc-accordion-item.cjs.entry.js +83 -83
  10. package/dist/cjs/ptc-accordion.cjs.entry.js +35 -35
  11. package/dist/cjs/ptc-announcement.cjs.entry.js +50 -50
  12. package/dist/cjs/ptc-bio-card.cjs.entry.js +24 -24
  13. package/dist/cjs/ptc-card-bottom_3.cjs.entry.js +122 -122
  14. package/dist/cjs/ptc-card-content.cjs.entry.js +57 -57
  15. package/dist/cjs/ptc-card.cjs.entry.js +66 -66
  16. package/dist/cjs/ptc-checkbox.cjs.entry.js +50 -50
  17. package/dist/cjs/ptc-collapse-list.cjs.entry.js +346 -346
  18. package/dist/cjs/ptc-container.cjs.entry.js +33 -33
  19. package/dist/cjs/ptc-date.cjs.entry.js +50 -50
  20. package/dist/cjs/ptc-dropdown.cjs.entry.js +64 -64
  21. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +47 -47
  22. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +38 -38
  23. package/dist/cjs/ptc-filter-tag.cjs.entry.js +57 -57
  24. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +11 -11
  25. package/dist/cjs/ptc-hero.cjs.entry.js +18 -18
  26. package/dist/cjs/ptc-icon-list.cjs.entry.js +21 -21
  27. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +43 -43
  28. package/dist/cjs/ptc-link.cjs.entry.js +30 -30
  29. package/dist/cjs/ptc-list.cjs.entry.js +49 -49
  30. package/dist/cjs/ptc-lottie.cjs.entry.js +10 -10
  31. package/dist/cjs/ptc-media-card.cjs.entry.js +58 -58
  32. package/dist/cjs/ptc-minimized-footer.cjs.entry.js +8 -8
  33. package/dist/cjs/ptc-minimized-header.cjs.entry.js +11 -11
  34. package/dist/cjs/ptc-mobile-select.cjs.entry.js +53 -53
  35. package/dist/cjs/ptc-nav-card.cjs.entry.js +36 -36
  36. package/dist/cjs/ptc-nav-link.cjs.entry.js +36 -36
  37. package/dist/cjs/ptc-nav-slider.cjs.entry.js +83 -83
  38. package/dist/cjs/ptc-nav-submenu.cjs.entry.js +18 -18
  39. package/dist/cjs/ptc-overlay.cjs.entry.js +23 -23
  40. package/dist/cjs/ptc-pagenation.cjs.entry.js +272 -213
  41. package/dist/cjs/ptc-previous-url.cjs.entry.js +11 -11
  42. package/dist/cjs/ptc-pricing-block.cjs.entry.js +20 -20
  43. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +124 -124
  44. package/dist/cjs/ptc-quote.cjs.entry.js +23 -23
  45. package/dist/cjs/ptc-readmore.cjs.entry.js +73 -73
  46. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +54 -54
  47. package/dist/cjs/ptc-search-field.cjs.entry.js +71 -71
  48. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +50 -50
  49. package/dist/cjs/ptc-social-share.cjs.entry.js +59 -59
  50. package/dist/cjs/ptc-span.cjs.entry.js +18 -18
  51. package/dist/cjs/ptc-sticky-icons.cjs.entry.js +32 -32
  52. package/dist/cjs/ptc-sticky-section.cjs.entry.js +27 -27
  53. package/dist/cjs/ptc-subnav-card.cjs.entry.js +15 -15
  54. package/dist/cjs/ptc-subnav.cjs.entry.js +21 -21
  55. package/dist/cjs/ptc-tab-list.cjs.entry.js +125 -125
  56. package/dist/cjs/ptc-tab.cjs.entry.js +20 -20
  57. package/dist/cjs/ptc-tabs.cjs.entry.js +47 -47
  58. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +27 -27
  59. package/dist/cjs/ptc-two-column-media.cjs.entry.js +15 -15
  60. package/dist/cjs/ptcw-design.cjs.js +1 -1
  61. package/dist/cjs/sequential-bundle-example.cjs.entry.js +100 -100
  62. package/dist/cjs/sequential-bundle.cjs.entry.js +88 -88
  63. package/dist/cjs/tab-content.cjs.entry.js +27 -27
  64. package/dist/cjs/tab-header.cjs.entry.js +64 -64
  65. package/dist/cjs/{utils-9eb22041.js → utils-416c94fe.js} +90 -90
  66. package/dist/collection/components/dropdown-item/dropdown-item.js +61 -61
  67. package/dist/collection/components/dynamic-box-bundle/dynamic-box-bundle.js +114 -114
  68. package/dist/collection/components/icon-asset/icon-asset.css +4 -4
  69. package/dist/collection/components/icon-asset/icon-asset.js +199 -199
  70. package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
  71. package/dist/collection/components/icon-asset/media/designer.svg +397 -397
  72. package/dist/collection/components/icon-asset/media/regular.svg +463 -463
  73. package/dist/collection/components/icon-asset/media/solid.svg +3013 -3013
  74. package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
  75. package/dist/collection/components/list-item/list-item.js +144 -144
  76. package/dist/collection/components/max-width-container/max-width-container.css +11 -11
  77. package/dist/collection/components/max-width-container/max-width-container.js +105 -105
  78. package/dist/collection/components/my-component/my-component.css +3 -3
  79. package/dist/collection/components/my-component/my-component.js +82 -82
  80. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.css +25 -25
  81. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.js +58 -58
  82. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.css +3 -3
  83. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.js +88 -88
  84. package/dist/collection/components/organism-bundles/sequential-bundle/sequential-bundle.js +116 -116
  85. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.css +89 -89
  86. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.js +152 -152
  87. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +287 -287
  88. package/dist/collection/components/ptc-accordion/ptc-accordion.js +78 -78
  89. package/dist/collection/components/ptc-announcement/ptc-announcement.js +237 -237
  90. package/dist/collection/components/ptc-background-video/ptc-background-video.js +128 -128
  91. package/dist/collection/components/ptc-bio-card/ptc-bio-card.js +130 -130
  92. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +105 -105
  93. package/dist/collection/components/ptc-button/ptc-button.js +283 -283
  94. package/dist/collection/components/ptc-card/ptc-card.js +362 -362
  95. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +116 -116
  96. package/dist/collection/components/ptc-card-content/ptc-card-content.js +212 -212
  97. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +214 -214
  98. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +152 -152
  99. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +586 -586
  100. package/dist/collection/components/ptc-container/ptc-container.js +138 -138
  101. package/dist/collection/components/ptc-date/ptc-date.js +224 -224
  102. package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +162 -162
  103. package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +15 -15
  104. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +174 -174
  105. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +122 -122
  106. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +113 -113
  107. package/dist/collection/components/ptc-hero/ptc-hero.js +86 -86
  108. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +78 -78
  109. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +127 -127
  110. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +119 -119
  111. package/dist/collection/components/ptc-img/ptc-img.js +293 -293
  112. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +303 -303
  113. package/dist/collection/components/ptc-link/ptc-link.js +222 -222
  114. package/dist/collection/components/ptc-list/ptc-list.js +99 -99
  115. package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -5
  116. package/dist/collection/components/ptc-lottie/ptc-lottie.js +62 -62
  117. package/dist/collection/components/ptc-media-card/ptc-media-card.js +240 -240
  118. package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.js +18 -18
  119. package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.js +81 -81
  120. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +190 -190
  121. package/dist/collection/components/ptc-modal/ptc-modal.js +389 -389
  122. package/dist/collection/components/ptc-nav-card/ptc-nav-card.js +224 -224
  123. package/dist/collection/components/ptc-overlay/ptc-overlay.js +131 -131
  124. package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +537 -468
  125. package/dist/collection/components/ptc-para/ptc-para.js +242 -242
  126. package/dist/collection/components/ptc-picture/ptc-picture.js +453 -453
  127. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +78 -78
  128. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +70 -70
  129. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +272 -272
  130. package/dist/collection/components/ptc-quote/ptc-quote.js +144 -144
  131. package/dist/collection/components/ptc-readmore/ptc-readmore.js +298 -298
  132. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
  133. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +65 -65
  134. package/dist/collection/components/ptc-search-field/ptc-search-field.js +247 -247
  135. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +97 -97
  136. package/dist/collection/components/ptc-skeleton/ptc-skeleton.js +139 -139
  137. package/dist/collection/components/ptc-social-share/ptc-social-share.js +239 -239
  138. package/dist/collection/components/ptc-spacer/ptc-spacer.css +332 -332
  139. package/dist/collection/components/ptc-spacer/ptc-spacer.js +97 -97
  140. package/dist/collection/components/ptc-span/ptc-span.js +87 -87
  141. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +51 -51
  142. package/dist/collection/components/ptc-sticky-section/ptc-sticky-section.js +46 -46
  143. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +109 -109
  144. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +177 -177
  145. package/dist/collection/components/ptc-tabs/ptc-tab.js +121 -121
  146. package/dist/collection/components/ptc-tabs/ptc-tabs.js +104 -104
  147. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +166 -166
  148. package/dist/collection/components/ptc-title/ptc-title.js +310 -310
  149. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +270 -270
  150. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +48 -48
  151. package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.js +114 -114
  152. package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.js +126 -126
  153. package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.js +85 -85
  154. package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.js +47 -47
  155. package/dist/collection/components/subnav/ptc-subnav-card/ptc-subnav-card.js +133 -133
  156. package/dist/collection/components/tab-content/tab-content.js +84 -84
  157. package/dist/collection/components/tab-header/tab-header.js +182 -182
  158. package/dist/collection/index.js +1 -1
  159. package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -11
  160. package/dist/collection/media/svg-imgs/close.svg +10 -10
  161. package/dist/collection/media/svg-imgs/play-button-dark.svg +20 -20
  162. package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +3 -3
  163. package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +3 -3
  164. package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
  165. package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
  166. package/dist/collection/media/svg-imgs/union.svg +3 -3
  167. package/dist/collection/utils/component.js +3 -3
  168. package/dist/collection/utils/interfaces.js +11 -11
  169. package/dist/collection/utils/utils.js +92 -92
  170. package/dist/custom-elements/index.js +4760 -4701
  171. package/dist/esm/bundle-example.entry.js +30 -30
  172. package/dist/esm/bundle-jumbotron-example_16.entry.js +1067 -1067
  173. package/dist/esm/dropdown-item.entry.js +10 -10
  174. package/dist/esm/dynamic-box-bundle.entry.js +25 -25
  175. package/dist/esm/loader.js +1 -1
  176. package/dist/esm/lottie-player.entry.js +354 -354
  177. package/dist/esm/my-component.entry.js +15 -15
  178. package/dist/esm/polyfills/core-js.js +0 -0
  179. package/dist/esm/polyfills/dom.js +0 -0
  180. package/dist/esm/polyfills/es5-html-element.js +0 -0
  181. package/dist/esm/polyfills/index.js +0 -0
  182. package/dist/esm/polyfills/system.js +0 -0
  183. package/dist/esm/ptc-accordion-item.entry.js +83 -83
  184. package/dist/esm/ptc-accordion.entry.js +35 -35
  185. package/dist/esm/ptc-announcement.entry.js +50 -50
  186. package/dist/esm/ptc-bio-card.entry.js +24 -24
  187. package/dist/esm/ptc-card-bottom_3.entry.js +122 -122
  188. package/dist/esm/ptc-card-content.entry.js +57 -57
  189. package/dist/esm/ptc-card.entry.js +66 -66
  190. package/dist/esm/ptc-checkbox.entry.js +50 -50
  191. package/dist/esm/ptc-collapse-list.entry.js +346 -346
  192. package/dist/esm/ptc-container.entry.js +33 -33
  193. package/dist/esm/ptc-date.entry.js +50 -50
  194. package/dist/esm/ptc-dropdown.entry.js +64 -64
  195. package/dist/esm/ptc-dynamic-card.entry.js +47 -47
  196. package/dist/esm/ptc-ellipsis-dropdown.entry.js +38 -38
  197. package/dist/esm/ptc-filter-tag.entry.js +57 -57
  198. package/dist/esm/ptc-hero-footer-cta.entry.js +11 -11
  199. package/dist/esm/ptc-hero.entry.js +18 -18
  200. package/dist/esm/ptc-icon-list.entry.js +21 -21
  201. package/dist/esm/ptc-icon-minimize.entry.js +43 -43
  202. package/dist/esm/ptc-link.entry.js +30 -30
  203. package/dist/esm/ptc-list.entry.js +49 -49
  204. package/dist/esm/ptc-lottie.entry.js +10 -10
  205. package/dist/esm/ptc-media-card.entry.js +58 -58
  206. package/dist/esm/ptc-minimized-footer.entry.js +8 -8
  207. package/dist/esm/ptc-minimized-header.entry.js +11 -11
  208. package/dist/esm/ptc-mobile-select.entry.js +53 -53
  209. package/dist/esm/ptc-nav-card.entry.js +36 -36
  210. package/dist/esm/ptc-nav-link.entry.js +36 -36
  211. package/dist/esm/ptc-nav-slider.entry.js +83 -83
  212. package/dist/esm/ptc-nav-submenu.entry.js +18 -18
  213. package/dist/esm/ptc-overlay.entry.js +23 -23
  214. package/dist/esm/ptc-pagenation.entry.js +272 -213
  215. package/dist/esm/ptc-previous-url.entry.js +11 -11
  216. package/dist/esm/ptc-pricing-block.entry.js +20 -20
  217. package/dist/esm/ptc-pricing-tabs.entry.js +124 -124
  218. package/dist/esm/ptc-quote.entry.js +23 -23
  219. package/dist/esm/ptc-readmore.entry.js +73 -73
  220. package/dist/esm/ptc-responsive-wrapper.entry.js +54 -54
  221. package/dist/esm/ptc-search-field.entry.js +71 -71
  222. package/dist/esm/ptc-shopping-cart.entry.js +50 -50
  223. package/dist/esm/ptc-social-share.entry.js +59 -59
  224. package/dist/esm/ptc-span.entry.js +18 -18
  225. package/dist/esm/ptc-sticky-icons.entry.js +32 -32
  226. package/dist/esm/ptc-sticky-section.entry.js +27 -27
  227. package/dist/esm/ptc-subnav-card.entry.js +15 -15
  228. package/dist/esm/ptc-subnav.entry.js +21 -21
  229. package/dist/esm/ptc-tab-list.entry.js +125 -125
  230. package/dist/esm/ptc-tab.entry.js +20 -20
  231. package/dist/esm/ptc-tabs.entry.js +47 -47
  232. package/dist/esm/ptc-text-copy-with-background.entry.js +27 -27
  233. package/dist/esm/ptc-two-column-media.entry.js +15 -15
  234. package/dist/esm/ptcw-design.js +1 -1
  235. package/dist/esm/sequential-bundle-example.entry.js +100 -100
  236. package/dist/esm/sequential-bundle.entry.js +88 -88
  237. package/dist/esm/tab-content.entry.js +27 -27
  238. package/dist/esm/tab-header.entry.js +64 -64
  239. package/dist/esm/{utils-38decc43.js → utils-f937097d.js} +90 -90
  240. package/dist/ptcw-design/media/brands.svg +1381 -1381
  241. package/dist/ptcw-design/media/designer.svg +397 -397
  242. package/dist/ptcw-design/media/nav-active-dotslick.svg +15 -15
  243. package/dist/ptcw-design/media/regular.svg +463 -463
  244. package/dist/ptcw-design/media/solid.svg +3013 -3013
  245. package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
  246. package/dist/ptcw-design/{p-1bd6ad59.entry.js → p-2ae39c65.entry.js} +1 -1
  247. package/dist/ptcw-design/{p-62680bc6.entry.js → p-6219de62.entry.js} +1 -1
  248. package/dist/ptcw-design/{p-4702f4e4.entry.js → p-8a6acf0d.entry.js} +1 -1
  249. package/dist/ptcw-design/p-9b8e26d5.entry.js +1 -0
  250. package/dist/ptcw-design/{p-469482ba.entry.js → p-ed0c7f10.entry.js} +1 -1
  251. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  252. package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
  253. package/dist/types/components/dynamic-box-bundle/dynamic-box-bundle.d.ts +10 -10
  254. package/dist/types/components/icon-asset/icon-asset.d.ts +40 -40
  255. package/dist/types/components/list-item/list-item.d.ts +16 -16
  256. package/dist/types/components/max-width-container/max-width-container.d.ts +11 -11
  257. package/dist/types/components/my-component/my-component.d.ts +16 -16
  258. package/dist/types/components/organism-bundles/bundle-example/bundle-example.d.ts +10 -10
  259. package/dist/types/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.d.ts +5 -5
  260. package/dist/types/components/organism-bundles/sequential-bundle/sequential-bundle.d.ts +12 -12
  261. package/dist/types/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.d.ts +16 -16
  262. package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +59 -59
  263. package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +13 -13
  264. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +51 -51
  265. package/dist/types/components/ptc-background-video/ptc-background-video.d.ts +31 -31
  266. package/dist/types/components/ptc-bio-card/ptc-bio-card.d.ts +27 -27
  267. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +20 -20
  268. package/dist/types/components/ptc-button/ptc-button.d.ts +60 -60
  269. package/dist/types/components/ptc-card/ptc-card.d.ts +71 -71
  270. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
  271. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +19 -19
  272. package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +24 -24
  273. package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +14 -14
  274. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +56 -56
  275. package/dist/types/components/ptc-container/ptc-container.d.ts +13 -13
  276. package/dist/types/components/ptc-date/ptc-date.d.ts +46 -46
  277. package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +19 -19
  278. package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +23 -23
  279. package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +12 -12
  280. package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +17 -17
  281. package/dist/types/components/ptc-hero/ptc-hero.d.ts +16 -16
  282. package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +6 -6
  283. package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +21 -21
  284. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +12 -12
  285. package/dist/types/components/ptc-img/ptc-img.d.ts +51 -51
  286. package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +22 -22
  287. package/dist/types/components/ptc-link/ptc-link.d.ts +44 -44
  288. package/dist/types/components/ptc-list/ptc-list.d.ts +8 -8
  289. package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -12
  290. package/dist/types/components/ptc-media-card/ptc-media-card.d.ts +52 -52
  291. package/dist/types/components/ptc-minimized-footer/ptc-minimized-footer.d.ts +3 -3
  292. package/dist/types/components/ptc-minimized-header/ptc-minimized-header.d.ts +6 -6
  293. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +36 -36
  294. package/dist/types/components/ptc-modal/ptc-modal.d.ts +67 -67
  295. package/dist/types/components/ptc-nav-card/ptc-nav-card.d.ts +46 -46
  296. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +21 -21
  297. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +38 -35
  298. package/dist/types/components/ptc-para/ptc-para.d.ts +47 -47
  299. package/dist/types/components/ptc-picture/ptc-picture.d.ts +93 -93
  300. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +9 -9
  301. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +7 -7
  302. package/dist/types/components/ptc-pricing-tabs/ptc-pricing-tabs.d.ts +52 -52
  303. package/dist/types/components/ptc-quote/ptc-quote.d.ts +29 -29
  304. package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +57 -57
  305. package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
  306. package/dist/types/components/ptc-search-field/ptc-search-field.d.ts +23 -23
  307. package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
  308. package/dist/types/components/ptc-skeleton/ptc-skeleton.d.ts +10 -10
  309. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +33 -33
  310. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
  311. package/dist/types/components/ptc-span/ptc-span.d.ts +16 -16
  312. package/dist/types/components/ptc-sticky-icons/ptc-sticky-icons.d.ts +7 -7
  313. package/dist/types/components/ptc-sticky-section/ptc-sticky-section.d.ts +9 -9
  314. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +20 -20
  315. package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +19 -19
  316. package/dist/types/components/ptc-tabs/ptc-tab.d.ts +9 -9
  317. package/dist/types/components/ptc-tabs/ptc-tabs.d.ts +10 -10
  318. package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +33 -33
  319. package/dist/types/components/ptc-title/ptc-title.d.ts +54 -54
  320. package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +47 -47
  321. package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +9 -9
  322. package/dist/types/components/subnav/ptc-nav-link/ptc-nav-link.d.ts +21 -21
  323. package/dist/types/components/subnav/ptc-nav-slider/ptc-nav-slider.d.ts +11 -11
  324. package/dist/types/components/subnav/ptc-nav-submenu/ptc-nav-submenu.d.ts +18 -18
  325. package/dist/types/components/subnav/ptc-subnav/ptc-subnav.d.ts +7 -7
  326. package/dist/types/components/subnav/ptc-subnav-card/ptc-subnav-card.d.ts +27 -27
  327. package/dist/types/components/tab-content/tab-content.d.ts +12 -12
  328. package/dist/types/components/tab-header/tab-header.d.ts +22 -22
  329. package/dist/types/components.d.ts +130 -130
  330. package/dist/types/global.d.ts +1072 -1072
  331. package/dist/types/index.d.ts +1 -1
  332. package/dist/types/utils/component.d.ts +1 -1
  333. package/dist/types/utils/interfaces.d.ts +31 -31
  334. package/dist/types/utils/utils.d.ts +5 -5
  335. package/package.json +60 -60
  336. package/readme.md +18 -18
  337. package/dist/ptcw-design/p-13a1d14b.entry.js +0 -1
  338. /package/dist/ptcw-design/{p-36665caa.js → p-ea875d9e.js} +0 -0
@@ -2,79 +2,79 @@ import { r as registerInstance, h, H as Host, a as getElement } from './index-8e
2
2
 
3
3
  const ptcReadmoreCss = ":host{display:block}.box input{opacity:0;position:absolute;pointer-events:none}.box .read-more-text{display:-webkit-box;-webkit-box-orient:vertical;margin:0;overflow:hidden}.box .line1{-webkit-line-clamp:1}.box .line2{-webkit-line-clamp:2}.box .line3{-webkit-line-clamp:3}.box .line4{-webkit-line-clamp:4}.box .line5{-webkit-line-clamp:5}.box .line10{-webkit-line-clamp:10}.box input~label{display:block;position:relative;cursor:pointer;right:0;margin-top:var(--ptc-element-spacing-02);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest);text-decoration-line:underline;color:var(--color-blue-07);text-align:right;margin-right:var(--ptc-element-spacing-07)}.box .z-auto{z-index:auto}.box .z-1{z-index:1}.box .z-2{z-index:2}.box .z-3{z-index:3}.box .z-999{z-index:999}.box input:checked+.read-more-text{-webkit-line-clamp:unset !important}.box .read-more-text:not(.truncated)~label{display:none}.box .show-less-cta{display:block !important}:host .box.add-icon .read-more-cta-label span{display:inline-block;position:relative;padding-right:var(--ptc-element-spacing-03)}:host .box.add-icon .read-more-cta-label span::after{content:\"\";background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 10 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2300890B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E\");width:10px;height:7px;background-size:cover;position:absolute;right:-5px;bottom:7px}:host .box.add-icon .read-more-cta-label.show-less-cta span::after{transform:rotate(180deg)}:host .box.blue .read-more-cta-label{color:var(--color-blue-07)}:host .box.gray .read-more-cta-label{color:var(--color-gray-10)}:host .box.green .read-more-cta-label{color:var(--color-green-07)}:host .box.initial .read-more-cta-label{color:initial}:host .box.small .read-more-cta-label{font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest)}:host .box.medium .read-more-cta-label{font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-p)}:host .box.large .read-more-cta-label{font-size:var(--ptc-font-size-large);line-height:var(--ptc-line-height-p)}:host .box.large.add-icon .read-more-cta-label span{padding-right:var(--ptc-element-spacing-04)}:host .box.large.add-icon .read-more-cta-label span::after{width:15px;height:10px}";
4
4
 
5
- const PtcReadmore = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.moreText = 'read more';
9
- this.lessText = undefined;
10
- this.readMorePosition = 'right';
11
- this.display = 'inline';
12
- this.visibleLines = 'line2';
13
- this.visibleLinesCustom = undefined;
14
- this.zIndex = 'z-auto';
15
- this.checked = false;
16
- this.size = 'small';
17
- this.isIcon = false;
18
- this.color = 'blue';
19
- }
20
- addBtnTruncated() {
21
- const appRoot = this.el.shadowRoot;
22
- const ps = appRoot.querySelectorAll('.read-more-text');
23
- ps.forEach(p => {
24
- p.classList[p.scrollHeight > p.clientHeight ? 'add' : 'remove']('truncated');
25
- });
26
- }
27
- // Created this function to initialize the truncate function on specific elements like tabs
28
- enableAddTruncatedClass(element) {
29
- const allTabHeaders = document.querySelectorAll(element);
30
- for (const element of Array.from(allTabHeaders)) {
31
- let tabHeader = element;
32
- if (tabHeader) {
33
- tabHeader.addEventListener('click', () => {
34
- setTimeout(() => {
35
- this.addBtnTruncated();
36
- }, 100);
37
- });
38
- }
39
- }
40
- }
41
- componentDidLoad() {
42
- this.addBtnTruncated();
43
- document.addEventListener("readystatechange", () => {
44
- if (document.readyState === "complete") {
45
- this.addBtnTruncated();
46
- }
47
- });
48
- this.enableAddTruncatedClass('tab-header');
49
- this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
50
- }
51
- // click event handler
52
- handleClick(event) {
53
- this.addBtnTruncated();
54
- // check if the input box is checked
55
- this.checked = event.target.checked;
56
- // Getting cta element
57
- const cta = this.el.shadowRoot.querySelector('.read-more-cta-label');
58
- // Updating the cta text
59
- this.checked
60
- ? cta.innerHTML = `<span> ${this.lessText ? this.lessText : ''} </span>`
61
- : cta.innerHTML = `<span> ${this.moreText ? this.moreText : ''}</span>`;
62
- this.checked ? cta.classList.add('show-less-cta') : cta.classList.remove('show-less-cta');
63
- }
64
- render() {
65
- const classMap = this.getCssClassMap();
66
- return (h(Host, { class: this.display }, h("div", { class: classMap }, h("input", { type: "checkbox", id: "expanded", onClick: (e) => this.handleClick(e) }), h("p", { class: `read-more-text ${this.visibleLines}`, style: { WebkitLineClamp: `${this.visibleLinesCustom}` } }, h("slot", null)), h("label", { htmlFor: "expanded", role: "button", class: `${this.zIndex} read-more-cta-label`, style: { textAlign: `${this.readMorePosition}` } }, h("span", null, this.moreText)))));
67
- }
68
- getCssClassMap() {
69
- return {
70
- ['box']: true,
71
- [this.color]: true,
72
- [this.size]: true,
73
- ['add-icon']: this.isIcon
74
- };
75
- }
76
- get el() { return getElement(this); }
77
- };
5
+ const PtcReadmore = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.moreText = 'read more';
9
+ this.lessText = undefined;
10
+ this.readMorePosition = 'right';
11
+ this.display = 'inline';
12
+ this.visibleLines = 'line2';
13
+ this.visibleLinesCustom = undefined;
14
+ this.zIndex = 'z-auto';
15
+ this.checked = false;
16
+ this.size = 'small';
17
+ this.isIcon = false;
18
+ this.color = 'blue';
19
+ }
20
+ addBtnTruncated() {
21
+ const appRoot = this.el.shadowRoot;
22
+ const ps = appRoot.querySelectorAll('.read-more-text');
23
+ ps.forEach(p => {
24
+ p.classList[p.scrollHeight > p.clientHeight ? 'add' : 'remove']('truncated');
25
+ });
26
+ }
27
+ // Created this function to initialize the truncate function on specific elements like tabs
28
+ enableAddTruncatedClass(element) {
29
+ const allTabHeaders = document.querySelectorAll(element);
30
+ for (const element of Array.from(allTabHeaders)) {
31
+ let tabHeader = element;
32
+ if (tabHeader) {
33
+ tabHeader.addEventListener('click', () => {
34
+ setTimeout(() => {
35
+ this.addBtnTruncated();
36
+ }, 100);
37
+ });
38
+ }
39
+ }
40
+ }
41
+ componentDidLoad() {
42
+ this.addBtnTruncated();
43
+ document.addEventListener("readystatechange", () => {
44
+ if (document.readyState === "complete") {
45
+ this.addBtnTruncated();
46
+ }
47
+ });
48
+ this.enableAddTruncatedClass('tab-header');
49
+ this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
50
+ }
51
+ // click event handler
52
+ handleClick(event) {
53
+ this.addBtnTruncated();
54
+ // check if the input box is checked
55
+ this.checked = event.target.checked;
56
+ // Getting cta element
57
+ const cta = this.el.shadowRoot.querySelector('.read-more-cta-label');
58
+ // Updating the cta text
59
+ this.checked
60
+ ? cta.innerHTML = `<span> ${this.lessText ? this.lessText : ''} </span>`
61
+ : cta.innerHTML = `<span> ${this.moreText ? this.moreText : ''}</span>`;
62
+ this.checked ? cta.classList.add('show-less-cta') : cta.classList.remove('show-less-cta');
63
+ }
64
+ render() {
65
+ const classMap = this.getCssClassMap();
66
+ return (h(Host, { class: this.display }, h("div", { class: classMap }, h("input", { type: "checkbox", id: "expanded", onClick: (e) => this.handleClick(e) }), h("p", { class: `read-more-text ${this.visibleLines}`, style: { WebkitLineClamp: `${this.visibleLinesCustom}` } }, h("slot", null)), h("label", { htmlFor: "expanded", role: "button", class: `${this.zIndex} read-more-cta-label`, style: { textAlign: `${this.readMorePosition}` } }, h("span", null, this.moreText)))));
67
+ }
68
+ getCssClassMap() {
69
+ return {
70
+ ['box']: true,
71
+ [this.color]: true,
72
+ [this.size]: true,
73
+ ['add-icon']: this.isIcon
74
+ };
75
+ }
76
+ get el() { return getElement(this); }
77
+ };
78
78
  PtcReadmore.style = ptcReadmoreCss;
79
79
 
80
80
  export { PtcReadmore as ptc_readmore };
@@ -2,60 +2,60 @@ import { r as registerInstance, h, a as getElement } from './index-8e63c32d.js';
2
2
 
3
3
  const ptcResponsiveWrapperCss = ":host{display:block}";
4
4
 
5
- const PtcResponsiveWrapper = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- }
9
- componentDidLoad() {
10
- this.ro = new ResizeObserver(entries => {
11
- for (const entry of entries) {
12
- this.applySizeClasses(entry.contentRect.width);
13
- }
14
- });
15
- this.ro.observe(this.element);
16
- }
17
- disconnectedCallback() {
18
- this.ro.disconnect();
19
- }
20
- applySizeClasses(size) {
21
- let xsmall = false;
22
- let small = false;
23
- let medium = false;
24
- let large = false;
25
- let xlarge = false;
26
- let xxlarge = false;
27
- let large2k = false;
28
- let large4k = false;
29
- if (size >= 2600)
30
- large4k = true;
31
- else if (size >= 1980)
32
- large2k = true;
33
- else if (size >= 1600)
34
- xxlarge = true;
35
- else if (size >= 1440)
36
- xlarge = true;
37
- else if (size >= 1200)
38
- large = true;
39
- else if (size >= 992)
40
- medium = true;
41
- else if (size >= 768)
42
- small = true;
43
- else
44
- xsmall = true;
45
- this.element.classList.toggle("xsmall", xsmall);
46
- this.element.classList.toggle("small", small);
47
- this.element.classList.toggle("medium", medium);
48
- this.element.classList.toggle("large", large);
49
- this.element.classList.toggle("xlarge", xlarge);
50
- this.element.classList.toggle("xxlarge", xxlarge);
51
- this.element.classList.toggle("large2k", large2k);
52
- this.element.classList.toggle("large4k", large4k);
53
- }
54
- render() {
55
- return (h("div", null, h("slot", null)));
56
- }
57
- get element() { return getElement(this); }
58
- };
5
+ const PtcResponsiveWrapper = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ componentDidLoad() {
10
+ this.ro = new ResizeObserver(entries => {
11
+ for (const entry of entries) {
12
+ this.applySizeClasses(entry.contentRect.width);
13
+ }
14
+ });
15
+ this.ro.observe(this.element);
16
+ }
17
+ disconnectedCallback() {
18
+ this.ro.disconnect();
19
+ }
20
+ applySizeClasses(size) {
21
+ let xsmall = false;
22
+ let small = false;
23
+ let medium = false;
24
+ let large = false;
25
+ let xlarge = false;
26
+ let xxlarge = false;
27
+ let large2k = false;
28
+ let large4k = false;
29
+ if (size >= 2600)
30
+ large4k = true;
31
+ else if (size >= 1980)
32
+ large2k = true;
33
+ else if (size >= 1600)
34
+ xxlarge = true;
35
+ else if (size >= 1440)
36
+ xlarge = true;
37
+ else if (size >= 1200)
38
+ large = true;
39
+ else if (size >= 992)
40
+ medium = true;
41
+ else if (size >= 768)
42
+ small = true;
43
+ else
44
+ xsmall = true;
45
+ this.element.classList.toggle("xsmall", xsmall);
46
+ this.element.classList.toggle("small", small);
47
+ this.element.classList.toggle("medium", medium);
48
+ this.element.classList.toggle("large", large);
49
+ this.element.classList.toggle("xlarge", xlarge);
50
+ this.element.classList.toggle("xxlarge", xxlarge);
51
+ this.element.classList.toggle("large2k", large2k);
52
+ this.element.classList.toggle("large4k", large4k);
53
+ }
54
+ render() {
55
+ return (h("div", null, h("slot", null)));
56
+ }
57
+ get element() { return getElement(this); }
58
+ };
59
59
  PtcResponsiveWrapper.style = ptcResponsiveWrapperCss;
60
60
 
61
61
  export { PtcResponsiveWrapper as ptc_responsive_wrapper };
@@ -2,77 +2,77 @@ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement
2
2
 
3
3
  const ptcSearchFieldCss = ":host .search-div{position:relative;display:flex;align-items:stretch;height:51px;border-radius:var(--ptc-border-radius-standard)}:host .search-div .input-wrap{position:relative;width:100%;box-sizing:border-box}:host .search-div input{background-color:var(--color-white);height:-webkit-fill-available;border:0 solid var(--color-gray-12);border-radius:var(--ptc-border-radius-standard) 0 0 var(--ptc-border-radius-standard);flex-grow:2;padding-left:var(--ptc-element-spacing-04);line-height:var(--ptc-line-height-loose);padding-right:54px;width:100%;box-sizing:border-box;margin-right:0px}:host .search-div input:focus-visible{border-radius:var(--ptc-border-radius-standard) 0 0 var(--ptc-border-radius-standard);outline:none}:host .search-div input::placeholder{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-regular);font-size:var(--ptc-font-size-small);position:relative;top:1px;color:var(--color-gray-10)}:host .search-div .search-btn{cursor:pointer;height:51px;min-width:51px;border-radius:0 var(--ptc-border-radius-standard) var(--ptc-border-radius-standard) 0;background-color:var(--color-gray-12);border:0 solid var(--color-gray-12);transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium)}:host .search-div .search-btn:active{background-color:var(--color-black)}:host .search-div .search-btn:hover{background-color:var(--color-gray-10)}:host .search-div .search-btn:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}:host(.dark){z-index:999;position:relative;margin-top:20px}:host(.dark) .search-div{height:43px;width:208px}@media only screen and (min-width: 992px){:host(.dark) .search-div{width:246px}}:host(.dark) .search-div input{background-color:var(--color-gray-12);border:1px solid var(--color-gray-08);color:var(--color-white);padding-left:unset;text-indent:var(--ptc-element-spacing-04);padding-right:2px}:host(.dark) .search-div input::placeholder{color:var(--color-white);font-size:var(--ptc-font-size-x-small)}:host(.dark) .search-div .search-btn{height:43px;width:43px;background-color:var(--color-gray-10);border:1px solid var(--color-gray-08);border-left:0}:host(.dark) .search-div .search-btn:hover{background-color:var(--color-gray-08)}:host(.x-small) .search-div{box-shadow:var(--ptc-shadow-x-small)}:host(.small) .search-div{box-shadow:var(--ptc-shadow-small)}:host(.medium) .search-div{box-shadow:var(--ptc-shadow-medium)}:host(.large) .search-div{box-shadow:var(--ptc-shadow-large)}:host(.x-large) .search-div{box-shadow:var(--ptc-shadow-x-large)}@media (max-width: 480px){input{width:75%}}.icon-wrapper{padding:16px 20px 0;background-color:var(--color-white);position:absolute;right:0;top:0;height:100%;box-sizing:border-box}.icon-wrapper .cls{cursor:pointer;display:block}:host(.dark) .icon-wrapper{padding:12px 20px 0;background-color:var(--color-gray-12);border:1px solid var(--color-gray-08);border-left-width:0;position:initial;right:auto;top:auto}:host(.dark):host(.enable-clear) input{border-right-width:0}@media only screen and (min-width: 992px){.cls{display:none}}";
4
4
 
5
- const PtcSearchField = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.valueChanged = createEvent(this, "valueChanged", 7);
9
- this.clicked = createEvent(this, "clicked", 7);
10
- this.textValue = undefined;
11
- this.placeholderLabel = undefined;
12
- this.darkTheme = undefined;
13
- this.elevation = 'small';
14
- this.enableClear = false;
15
- this.styles = undefined;
16
- }
17
- textChangedHandler(event) {
18
- this.valueChanged.emit({
19
- 'sender': this,
20
- 'event': event,
21
- 'searchTerm': this.getSearchValue()
22
- });
23
- }
24
- buttonClickHandler(event) {
25
- this.clicked.emit({
26
- 'sender': this,
27
- 'event': event,
28
- 'searchTerm': this.getSearchValue()
29
- });
30
- }
31
- keyDownHandler(event) {
32
- if (event.key == 'Enter') {
33
- this.clicked.emit({
34
- 'sender': this,
35
- 'event': event,
36
- 'searchTerm': this.getSearchValue()
37
- });
38
- }
39
- if (this.getSearchValue() && this.enableClear) ;
40
- }
41
- keyUpHandler() {
42
- if (!this.darkTheme) {
43
- this.enableClear = !(this.getSearchValue() == "");
44
- }
45
- }
46
- getSearchValue() {
47
- let result = '';
48
- let input = this.el.shadowRoot.querySelector('input');
49
- if (input) {
50
- result = input.value;
51
- }
52
- return result;
53
- }
54
- async clearSearchValue() {
55
- this.textValue = "";
56
- let input = this.el.shadowRoot.querySelector('input');
57
- if (input) {
58
- input.value = "";
59
- this.enableClear = false;
60
- }
61
- }
62
- render() {
63
- const classMap = this.getCssClassMap();
64
- const clearIconColor = this.darkTheme ? "white" : "black";
65
- return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("div", { class: "search-div" }, h("div", { class: 'input-wrap' }, h("input", { type: "text", value: this.textValue, placeholder: this.placeholderLabel, onKeyDown: (e) => { this.keyDownHandler(e); }, onKeyUp: () => { this.keyUpHandler(); }, onChange: (e) => { this.textChangedHandler(e); } }), this.enableClear && h("div", { class: "icon-wrapper" }, h("icon-asset", { class: "cls", type: "ptc", color: clearIconColor, name: "times", size: "xxx-small", onClick: (e) => { this.clearSearchValue(); this.buttonClickHandler(e); } }))), h("button", { type: "button", color: "blackgrey", class: "search-btn", onClick: (e) => { this.buttonClickHandler(e); } }, h("icon-asset", { type: "ptc", size: "medium", name: "new-search", color: "white" })))));
66
- }
67
- getCssClassMap() {
68
- return {
69
- ['dark']: this.darkTheme ? true : false,
70
- [this.elevation]: true,
71
- ['enable-clear']: this.enableClear
72
- };
73
- }
74
- get el() { return getElement(this); }
75
- };
5
+ const PtcSearchField = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.valueChanged = createEvent(this, "valueChanged", 7);
9
+ this.clicked = createEvent(this, "clicked", 7);
10
+ this.textValue = undefined;
11
+ this.placeholderLabel = undefined;
12
+ this.darkTheme = undefined;
13
+ this.elevation = 'small';
14
+ this.enableClear = false;
15
+ this.styles = undefined;
16
+ }
17
+ textChangedHandler(event) {
18
+ this.valueChanged.emit({
19
+ 'sender': this,
20
+ 'event': event,
21
+ 'searchTerm': this.getSearchValue()
22
+ });
23
+ }
24
+ buttonClickHandler(event) {
25
+ this.clicked.emit({
26
+ 'sender': this,
27
+ 'event': event,
28
+ 'searchTerm': this.getSearchValue()
29
+ });
30
+ }
31
+ keyDownHandler(event) {
32
+ if (event.key == 'Enter') {
33
+ this.clicked.emit({
34
+ 'sender': this,
35
+ 'event': event,
36
+ 'searchTerm': this.getSearchValue()
37
+ });
38
+ }
39
+ if (this.getSearchValue() && this.enableClear) ;
40
+ }
41
+ keyUpHandler() {
42
+ if (!this.darkTheme) {
43
+ this.enableClear = !(this.getSearchValue() == "");
44
+ }
45
+ }
46
+ getSearchValue() {
47
+ let result = '';
48
+ let input = this.el.shadowRoot.querySelector('input');
49
+ if (input) {
50
+ result = input.value;
51
+ }
52
+ return result;
53
+ }
54
+ async clearSearchValue() {
55
+ this.textValue = "";
56
+ let input = this.el.shadowRoot.querySelector('input');
57
+ if (input) {
58
+ input.value = "";
59
+ this.enableClear = false;
60
+ }
61
+ }
62
+ render() {
63
+ const classMap = this.getCssClassMap();
64
+ const clearIconColor = this.darkTheme ? "white" : "black";
65
+ return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("div", { class: "search-div" }, h("div", { class: 'input-wrap' }, h("input", { type: "text", value: this.textValue, placeholder: this.placeholderLabel, onKeyDown: (e) => { this.keyDownHandler(e); }, onKeyUp: () => { this.keyUpHandler(); }, onChange: (e) => { this.textChangedHandler(e); } }), this.enableClear && h("div", { class: "icon-wrapper" }, h("icon-asset", { class: "cls", type: "ptc", color: clearIconColor, name: "times", size: "xxx-small", onClick: (e) => { this.clearSearchValue(); this.buttonClickHandler(e); } }))), h("button", { type: "button", color: "blackgrey", class: "search-btn", onClick: (e) => { this.buttonClickHandler(e); } }, h("icon-asset", { type: "ptc", size: "medium", name: "new-search", color: "white" })))));
66
+ }
67
+ getCssClassMap() {
68
+ return {
69
+ ['dark']: this.darkTheme ? true : false,
70
+ [this.elevation]: true,
71
+ ['enable-clear']: this.enableClear
72
+ };
73
+ }
74
+ get el() { return getElement(this); }
75
+ };
76
76
  PtcSearchField.style = ptcSearchFieldCss;
77
77
 
78
78
  export { PtcSearchField as ptc_search_field };
@@ -1,61 +1,61 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-8e63c32d.js';
2
2
 
3
- const ShoppingCartBlack = `<svg width="26" height="24" viewBox="0 0 26 24" fill="none" xmlns="http://www.w3.org/2000/svg">
4
- <path fill-rule="evenodd" clip-rule="evenodd" d="M22.0047 16.9625H7.80762L6.89267 18.9387H22.1419V20.4358H21.288C21.5163 20.7841 21.6448 21.1863 21.66 21.6002C21.6753 22.0141 21.5767 22.4243 21.3747 22.7879C21.1726 23.1514 20.8746 23.4548 20.5118 23.6662C20.1491 23.8776 19.735 23.9892 19.3132 23.9892C18.8914 23.9892 18.4773 23.8776 18.1146 23.6662C17.7518 23.4548 17.4538 23.1514 17.2517 22.7879C17.0497 22.4243 16.9511 22.0141 16.9663 21.6002C16.9816 21.1863 17.1101 20.7841 17.3384 20.4358H9.27155C9.47218 20.7382 9.59773 21.0825 9.63811 21.4412C9.67848 21.7998 9.63255 22.1627 9.50401 22.5008C9.37547 22.8388 9.16791 23.1425 8.89803 23.3875C8.62815 23.6324 8.30348 23.8117 7.95014 23.911C7.5968 24.0103 7.22465 24.0268 6.86364 23.9591C6.50263 23.8915 6.16283 23.7416 5.87158 23.5215C5.58033 23.3014 5.34576 23.0173 5.18674 22.692C5.02772 22.3667 4.94869 22.0093 4.95601 21.6485C4.96201 21.221 5.08301 20.8027 5.30675 20.4358H4.33079L6.49619 14.9713H18.6041V13.7137H6.23695L2.33314 2.08101L0 1.25759V0L3.20235 1.10788L4.43754 4.49139H26L22.0047 16.9625ZM6.64528 22.5946C6.83586 22.7196 7.05993 22.7863 7.28915 22.7863C7.59652 22.7863 7.8913 22.6665 8.10865 22.4531C8.32599 22.2397 8.44809 21.9503 8.44809 21.6485C8.44809 21.4235 8.38012 21.2035 8.25278 21.0164C8.12543 20.8293 7.94443 20.6834 7.73266 20.5973C7.52089 20.5112 7.28786 20.4887 7.06305 20.5326C6.83824 20.5765 6.63173 20.6848 6.46965 20.844C6.30757 21.0031 6.19719 21.2058 6.15247 21.4265C6.10776 21.6473 6.13071 21.876 6.21843 22.0839C6.30614 22.2919 6.45469 22.4696 6.64528 22.5946ZM18.6769 22.5946C18.8675 22.7196 19.0916 22.7863 19.3208 22.7863C19.6282 22.7863 19.923 22.6665 20.1403 22.4531C20.3577 22.2397 20.4798 21.9503 20.4798 21.6485C20.4798 21.4235 20.4118 21.2035 20.2845 21.0164C20.1571 20.8293 19.9761 20.6834 19.7643 20.5973C19.5526 20.5112 19.3195 20.4887 19.0947 20.5326C18.8699 20.5765 18.6634 20.6848 18.5013 20.844C18.3392 21.0031 18.2289 21.2058 18.1841 21.4265C18.1394 21.6473 18.1624 21.876 18.2501 22.0839C18.3378 22.2919 18.4864 22.4696 18.6769 22.5946ZM19.3206 21.1395C19.2138 21.1365 19.1086 21.1651 19.0185 21.2215C18.9284 21.278 18.8577 21.3596 18.8154 21.456C18.7731 21.5523 18.7613 21.6589 18.7814 21.7619C18.8015 21.8649 18.8526 21.9596 18.9282 22.0338C19.0037 22.108 19.1002 22.1582 19.2051 22.1779C19.3101 22.1977 19.4186 22.186 19.5167 22.1445C19.6149 22.103 19.698 22.0336 19.7555 21.9451C19.813 21.8567 19.8421 21.7534 19.8391 21.6485C19.8391 21.5135 19.7845 21.384 19.6872 21.2886C19.59 21.1931 19.4581 21.1395 19.3206 21.1395ZM7.28896 21.1395C7.18276 21.1395 7.07899 21.1707 6.99092 21.2289C6.90285 21.2872 6.83449 21.3699 6.79458 21.4665C6.75467 21.5632 6.74503 21.6693 6.76689 21.7713C6.78875 21.8734 6.84111 21.9667 6.91729 22.0393C6.99347 22.112 7.08999 22.1607 7.1945 22.1791C7.29902 22.1976 7.40678 22.1851 7.504 22.1431C7.60122 22.1012 7.68348 22.0317 7.74025 21.9436C7.79702 21.8555 7.82572 21.7527 7.82269 21.6485C7.81872 21.5121 7.76074 21.3827 7.66107 21.2876C7.56141 21.1926 7.42791 21.1394 7.28896 21.1395Z" fill="#20262A"/>
5
- </svg>
3
+ const ShoppingCartBlack = `<svg width="26" height="24" viewBox="0 0 26 24" fill="none" xmlns="http://www.w3.org/2000/svg">
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M22.0047 16.9625H7.80762L6.89267 18.9387H22.1419V20.4358H21.288C21.5163 20.7841 21.6448 21.1863 21.66 21.6002C21.6753 22.0141 21.5767 22.4243 21.3747 22.7879C21.1726 23.1514 20.8746 23.4548 20.5118 23.6662C20.1491 23.8776 19.735 23.9892 19.3132 23.9892C18.8914 23.9892 18.4773 23.8776 18.1146 23.6662C17.7518 23.4548 17.4538 23.1514 17.2517 22.7879C17.0497 22.4243 16.9511 22.0141 16.9663 21.6002C16.9816 21.1863 17.1101 20.7841 17.3384 20.4358H9.27155C9.47218 20.7382 9.59773 21.0825 9.63811 21.4412C9.67848 21.7998 9.63255 22.1627 9.50401 22.5008C9.37547 22.8388 9.16791 23.1425 8.89803 23.3875C8.62815 23.6324 8.30348 23.8117 7.95014 23.911C7.5968 24.0103 7.22465 24.0268 6.86364 23.9591C6.50263 23.8915 6.16283 23.7416 5.87158 23.5215C5.58033 23.3014 5.34576 23.0173 5.18674 22.692C5.02772 22.3667 4.94869 22.0093 4.95601 21.6485C4.96201 21.221 5.08301 20.8027 5.30675 20.4358H4.33079L6.49619 14.9713H18.6041V13.7137H6.23695L2.33314 2.08101L0 1.25759V0L3.20235 1.10788L4.43754 4.49139H26L22.0047 16.9625ZM6.64528 22.5946C6.83586 22.7196 7.05993 22.7863 7.28915 22.7863C7.59652 22.7863 7.8913 22.6665 8.10865 22.4531C8.32599 22.2397 8.44809 21.9503 8.44809 21.6485C8.44809 21.4235 8.38012 21.2035 8.25278 21.0164C8.12543 20.8293 7.94443 20.6834 7.73266 20.5973C7.52089 20.5112 7.28786 20.4887 7.06305 20.5326C6.83824 20.5765 6.63173 20.6848 6.46965 20.844C6.30757 21.0031 6.19719 21.2058 6.15247 21.4265C6.10776 21.6473 6.13071 21.876 6.21843 22.0839C6.30614 22.2919 6.45469 22.4696 6.64528 22.5946ZM18.6769 22.5946C18.8675 22.7196 19.0916 22.7863 19.3208 22.7863C19.6282 22.7863 19.923 22.6665 20.1403 22.4531C20.3577 22.2397 20.4798 21.9503 20.4798 21.6485C20.4798 21.4235 20.4118 21.2035 20.2845 21.0164C20.1571 20.8293 19.9761 20.6834 19.7643 20.5973C19.5526 20.5112 19.3195 20.4887 19.0947 20.5326C18.8699 20.5765 18.6634 20.6848 18.5013 20.844C18.3392 21.0031 18.2289 21.2058 18.1841 21.4265C18.1394 21.6473 18.1624 21.876 18.2501 22.0839C18.3378 22.2919 18.4864 22.4696 18.6769 22.5946ZM19.3206 21.1395C19.2138 21.1365 19.1086 21.1651 19.0185 21.2215C18.9284 21.278 18.8577 21.3596 18.8154 21.456C18.7731 21.5523 18.7613 21.6589 18.7814 21.7619C18.8015 21.8649 18.8526 21.9596 18.9282 22.0338C19.0037 22.108 19.1002 22.1582 19.2051 22.1779C19.3101 22.1977 19.4186 22.186 19.5167 22.1445C19.6149 22.103 19.698 22.0336 19.7555 21.9451C19.813 21.8567 19.8421 21.7534 19.8391 21.6485C19.8391 21.5135 19.7845 21.384 19.6872 21.2886C19.59 21.1931 19.4581 21.1395 19.3206 21.1395ZM7.28896 21.1395C7.18276 21.1395 7.07899 21.1707 6.99092 21.2289C6.90285 21.2872 6.83449 21.3699 6.79458 21.4665C6.75467 21.5632 6.74503 21.6693 6.76689 21.7713C6.78875 21.8734 6.84111 21.9667 6.91729 22.0393C6.99347 22.112 7.08999 22.1607 7.1945 22.1791C7.29902 22.1976 7.40678 22.1851 7.504 22.1431C7.60122 22.1012 7.68348 22.0317 7.74025 21.9436C7.79702 21.8555 7.82572 21.7527 7.82269 21.6485C7.81872 21.5121 7.76074 21.3827 7.66107 21.2876C7.56141 21.1926 7.42791 21.1394 7.28896 21.1395Z" fill="#20262A"/>
5
+ </svg>
6
6
  `;
7
7
 
8
- const ShoppingCartWhite = `<svg width="26" height="24" viewBox="0 0 26 24" fill="none" xmlns="http://www.w3.org/2000/svg">
9
- <path fill-rule="evenodd" clip-rule="evenodd" d="M22.0047 16.9625H7.80762L6.89267 18.9387H22.1419V20.4358H21.288C21.5163 20.7841 21.6448 21.1863 21.66 21.6002C21.6753 22.0141 21.5767 22.4243 21.3747 22.7879C21.1726 23.1514 20.8746 23.4548 20.5118 23.6662C20.1491 23.8776 19.735 23.9892 19.3132 23.9892C18.8914 23.9892 18.4773 23.8776 18.1146 23.6662C17.7518 23.4548 17.4538 23.1514 17.2517 22.7879C17.0497 22.4243 16.9511 22.0141 16.9663 21.6002C16.9816 21.1863 17.1101 20.7841 17.3384 20.4358H9.27155C9.47218 20.7382 9.59773 21.0825 9.63811 21.4412C9.67848 21.7998 9.63255 22.1627 9.50401 22.5008C9.37547 22.8388 9.16791 23.1425 8.89803 23.3875C8.62815 23.6324 8.30348 23.8117 7.95014 23.911C7.5968 24.0103 7.22465 24.0268 6.86364 23.9591C6.50263 23.8915 6.16283 23.7416 5.87158 23.5215C5.58033 23.3014 5.34576 23.0173 5.18674 22.692C5.02772 22.3667 4.94869 22.0093 4.95601 21.6485C4.96201 21.221 5.08301 20.8027 5.30675 20.4358H4.33079L6.49619 14.9713H18.6041V13.7137H6.23695L2.33314 2.08101L0 1.25759V0L3.20235 1.10788L4.43754 4.49139H26L22.0047 16.9625ZM6.64528 22.5946C6.83586 22.7196 7.05993 22.7863 7.28915 22.7863C7.59652 22.7863 7.8913 22.6665 8.10865 22.4531C8.32599 22.2397 8.44809 21.9503 8.44809 21.6485C8.44809 21.4235 8.38012 21.2035 8.25278 21.0164C8.12543 20.8293 7.94443 20.6834 7.73266 20.5973C7.52089 20.5112 7.28786 20.4887 7.06305 20.5326C6.83824 20.5765 6.63173 20.6848 6.46965 20.844C6.30757 21.0031 6.19719 21.2058 6.15247 21.4265C6.10776 21.6473 6.13071 21.876 6.21843 22.0839C6.30614 22.2919 6.45469 22.4696 6.64528 22.5946ZM18.6769 22.5946C18.8675 22.7196 19.0916 22.7863 19.3208 22.7863C19.6282 22.7863 19.923 22.6665 20.1403 22.4531C20.3577 22.2397 20.4798 21.9503 20.4798 21.6485C20.4798 21.4235 20.4118 21.2035 20.2845 21.0164C20.1571 20.8293 19.9761 20.6834 19.7643 20.5973C19.5526 20.5112 19.3195 20.4887 19.0947 20.5326C18.8699 20.5765 18.6634 20.6848 18.5013 20.844C18.3392 21.0031 18.2289 21.2058 18.1841 21.4265C18.1394 21.6473 18.1624 21.876 18.2501 22.0839C18.3378 22.2919 18.4864 22.4696 18.6769 22.5946ZM19.3206 21.1395C19.2138 21.1365 19.1086 21.1651 19.0185 21.2215C18.9284 21.278 18.8577 21.3596 18.8154 21.456C18.7731 21.5523 18.7613 21.6589 18.7814 21.7619C18.8015 21.8649 18.8526 21.9596 18.9282 22.0338C19.0037 22.108 19.1002 22.1582 19.2051 22.1779C19.3101 22.1977 19.4186 22.186 19.5167 22.1445C19.6149 22.103 19.698 22.0336 19.7555 21.9451C19.813 21.8567 19.8421 21.7534 19.8391 21.6485C19.8391 21.5135 19.7845 21.384 19.6872 21.2886C19.59 21.1931 19.4581 21.1395 19.3206 21.1395ZM7.28896 21.1395C7.18276 21.1395 7.07899 21.1707 6.99092 21.2289C6.90285 21.2872 6.83449 21.3699 6.79458 21.4665C6.75467 21.5632 6.74503 21.6693 6.76689 21.7713C6.78875 21.8734 6.84111 21.9667 6.91729 22.0393C6.99347 22.112 7.08999 22.1607 7.1945 22.1791C7.29902 22.1976 7.40678 22.1851 7.504 22.1431C7.60122 22.1012 7.68348 22.0317 7.74025 21.9436C7.79702 21.8555 7.82572 21.7527 7.82269 21.6485C7.81872 21.5121 7.76074 21.3827 7.66107 21.2876C7.56141 21.1926 7.42791 21.1394 7.28896 21.1395Z" fill="white"/>
10
- </svg>
8
+ const ShoppingCartWhite = `<svg width="26" height="24" viewBox="0 0 26 24" fill="none" xmlns="http://www.w3.org/2000/svg">
9
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M22.0047 16.9625H7.80762L6.89267 18.9387H22.1419V20.4358H21.288C21.5163 20.7841 21.6448 21.1863 21.66 21.6002C21.6753 22.0141 21.5767 22.4243 21.3747 22.7879C21.1726 23.1514 20.8746 23.4548 20.5118 23.6662C20.1491 23.8776 19.735 23.9892 19.3132 23.9892C18.8914 23.9892 18.4773 23.8776 18.1146 23.6662C17.7518 23.4548 17.4538 23.1514 17.2517 22.7879C17.0497 22.4243 16.9511 22.0141 16.9663 21.6002C16.9816 21.1863 17.1101 20.7841 17.3384 20.4358H9.27155C9.47218 20.7382 9.59773 21.0825 9.63811 21.4412C9.67848 21.7998 9.63255 22.1627 9.50401 22.5008C9.37547 22.8388 9.16791 23.1425 8.89803 23.3875C8.62815 23.6324 8.30348 23.8117 7.95014 23.911C7.5968 24.0103 7.22465 24.0268 6.86364 23.9591C6.50263 23.8915 6.16283 23.7416 5.87158 23.5215C5.58033 23.3014 5.34576 23.0173 5.18674 22.692C5.02772 22.3667 4.94869 22.0093 4.95601 21.6485C4.96201 21.221 5.08301 20.8027 5.30675 20.4358H4.33079L6.49619 14.9713H18.6041V13.7137H6.23695L2.33314 2.08101L0 1.25759V0L3.20235 1.10788L4.43754 4.49139H26L22.0047 16.9625ZM6.64528 22.5946C6.83586 22.7196 7.05993 22.7863 7.28915 22.7863C7.59652 22.7863 7.8913 22.6665 8.10865 22.4531C8.32599 22.2397 8.44809 21.9503 8.44809 21.6485C8.44809 21.4235 8.38012 21.2035 8.25278 21.0164C8.12543 20.8293 7.94443 20.6834 7.73266 20.5973C7.52089 20.5112 7.28786 20.4887 7.06305 20.5326C6.83824 20.5765 6.63173 20.6848 6.46965 20.844C6.30757 21.0031 6.19719 21.2058 6.15247 21.4265C6.10776 21.6473 6.13071 21.876 6.21843 22.0839C6.30614 22.2919 6.45469 22.4696 6.64528 22.5946ZM18.6769 22.5946C18.8675 22.7196 19.0916 22.7863 19.3208 22.7863C19.6282 22.7863 19.923 22.6665 20.1403 22.4531C20.3577 22.2397 20.4798 21.9503 20.4798 21.6485C20.4798 21.4235 20.4118 21.2035 20.2845 21.0164C20.1571 20.8293 19.9761 20.6834 19.7643 20.5973C19.5526 20.5112 19.3195 20.4887 19.0947 20.5326C18.8699 20.5765 18.6634 20.6848 18.5013 20.844C18.3392 21.0031 18.2289 21.2058 18.1841 21.4265C18.1394 21.6473 18.1624 21.876 18.2501 22.0839C18.3378 22.2919 18.4864 22.4696 18.6769 22.5946ZM19.3206 21.1395C19.2138 21.1365 19.1086 21.1651 19.0185 21.2215C18.9284 21.278 18.8577 21.3596 18.8154 21.456C18.7731 21.5523 18.7613 21.6589 18.7814 21.7619C18.8015 21.8649 18.8526 21.9596 18.9282 22.0338C19.0037 22.108 19.1002 22.1582 19.2051 22.1779C19.3101 22.1977 19.4186 22.186 19.5167 22.1445C19.6149 22.103 19.698 22.0336 19.7555 21.9451C19.813 21.8567 19.8421 21.7534 19.8391 21.6485C19.8391 21.5135 19.7845 21.384 19.6872 21.2886C19.59 21.1931 19.4581 21.1395 19.3206 21.1395ZM7.28896 21.1395C7.18276 21.1395 7.07899 21.1707 6.99092 21.2289C6.90285 21.2872 6.83449 21.3699 6.79458 21.4665C6.75467 21.5632 6.74503 21.6693 6.76689 21.7713C6.78875 21.8734 6.84111 21.9667 6.91729 22.0393C6.99347 22.112 7.08999 22.1607 7.1945 22.1791C7.29902 22.1976 7.40678 22.1851 7.504 22.1431C7.60122 22.1012 7.68348 22.0317 7.74025 21.9436C7.79702 21.8555 7.82572 21.7527 7.82269 21.6485C7.81872 21.5121 7.76074 21.3827 7.66107 21.2876C7.56141 21.1926 7.42791 21.1394 7.28896 21.1395Z" fill="white"/>
10
+ </svg>
11
11
  `;
12
12
 
13
13
  const ptcShoppingCartCss = ":host{height:20px}:host .cart{border-radius:4px;display:inline-block;padding:0.45rem;max-height:28px}:host .cart .cart__count{position:relative;background:#D33E3E;height:20px;width:20px;text-align:center;border-radius:50%;color:white;left:18px;bottom:38px;vertical-align:middle;display:flex;justify-content:center;align-items:center;text-align:center;font-family:Raleway;font-size:14px;font-weight:600;line-height:21px;letter-spacing:0em}:host .cart.black-background{background:rgba(0, 0, 0, 0.54)}:host .cart.clear-background{background:rgba(0, 0, 0, 0)}";
14
14
 
15
- const PtcShoppingCart = class {
16
- constructor(hostRef) {
17
- registerInstance(this, hostRef);
18
- this.cartCount = undefined;
19
- this.color = 'white';
20
- }
21
- render() {
22
- const classMap = this.getCssClassMap();
23
- const svg = this.color == 'black' ? ShoppingCartBlack : ShoppingCartWhite;
24
- const svgClass = this.color == 'black' ? "cart clear-background" : "cart black-background";
25
- return (h(Host, { class: classMap }, this.cartCount ? (h("div", { class: svgClass, innerHTML: svg }, h("div", { class: "cart__count" }, this.cartCount))) : (h("div", { class: svgClass, innerHTML: svg }))));
26
- /*
27
- if(this.color == 'black'){
28
- return (
29
- <Host class={classMap}>
30
- {this.cartCount ? (
31
- <div class="cart" innerHTML={ShoppingCartBlack}>
32
- <div class="cart__count">{this.cartCount}</div>
33
- </div>
34
- ) : (
35
- <div innerHTML={ShoppingCartBlack}></div>)
36
- }
37
- </Host>
38
- );
39
- } else if(this.color == 'white'){
40
- return(
41
- <Host class={classMap}>
42
- {this.cartCount ? (
43
- <div class="cart black-background" innerHTML={ShoppingCartWhite}>
44
- <div class="cart__count">{this.cartCount}</div>
45
- </div>
46
- ) : (
47
- <div innerHTML={ShoppingCartWhite} class="black-background"></div>)
48
- }
49
- </Host>
50
- );
51
- }*/
52
- }
53
- getCssClassMap() {
54
- return {
55
- ['ptc-shopping-cart']: true,
56
- };
57
- }
58
- };
15
+ const PtcShoppingCart = class {
16
+ constructor(hostRef) {
17
+ registerInstance(this, hostRef);
18
+ this.cartCount = undefined;
19
+ this.color = 'white';
20
+ }
21
+ render() {
22
+ const classMap = this.getCssClassMap();
23
+ const svg = this.color == 'black' ? ShoppingCartBlack : ShoppingCartWhite;
24
+ const svgClass = this.color == 'black' ? "cart clear-background" : "cart black-background";
25
+ return (h(Host, { class: classMap }, this.cartCount ? (h("div", { class: svgClass, innerHTML: svg }, h("div", { class: "cart__count" }, this.cartCount))) : (h("div", { class: svgClass, innerHTML: svg }))));
26
+ /*
27
+ if(this.color == 'black'){
28
+ return (
29
+ <Host class={classMap}>
30
+ {this.cartCount ? (
31
+ <div class="cart" innerHTML={ShoppingCartBlack}>
32
+ <div class="cart__count">{this.cartCount}</div>
33
+ </div>
34
+ ) : (
35
+ <div innerHTML={ShoppingCartBlack}></div>)
36
+ }
37
+ </Host>
38
+ );
39
+ } else if(this.color == 'white'){
40
+ return(
41
+ <Host class={classMap}>
42
+ {this.cartCount ? (
43
+ <div class="cart black-background" innerHTML={ShoppingCartWhite}>
44
+ <div class="cart__count">{this.cartCount}</div>
45
+ </div>
46
+ ) : (
47
+ <div innerHTML={ShoppingCartWhite} class="black-background"></div>)
48
+ }
49
+ </Host>
50
+ );
51
+ }*/
52
+ }
53
+ getCssClassMap() {
54
+ return {
55
+ ['ptc-shopping-cart']: true,
56
+ };
57
+ }
58
+ };
59
59
  PtcShoppingCart.style = ptcShoppingCartCss;
60
60
 
61
61
  export { PtcShoppingCart as ptc_shopping_cart };