@ptcwebops/ptcw-design 6.3.60-beta → 6.3.62-beta

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 (101) hide show
  1. package/dist/cjs/embedded-form.cjs.entry.js +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/ptc-button_5.cjs.entry.js +542 -0
  4. package/dist/cjs/ptc-card_2.cjs.entry.js +3 -2
  5. package/dist/cjs/ptc-countdown.cjs.entry.js +7 -10
  6. package/dist/cjs/ptc-form-checkbox_4.cjs.entry.js +5 -3
  7. package/dist/cjs/ptc-img.cjs.entry.js +69 -36
  8. package/dist/cjs/ptc-jumbotron.cjs.entry.js +3 -0
  9. package/dist/cjs/ptcw-design.cjs.js +1 -1
  10. package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +1 -1
  11. package/dist/collection/components/ptc-card/ptc-card.js +21 -2
  12. package/dist/collection/components/ptc-countdown/ptc-countdown.js +7 -10
  13. package/dist/collection/components/ptc-img/ptc-img.css +47 -0
  14. package/dist/collection/components/ptc-img/ptc-img.js +73 -36
  15. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +3 -0
  16. package/dist/collection/components/ptc-textfield/ptc-textfield.css +38 -0
  17. package/dist/collection/components/ptc-textfield/ptc-textfield.js +9 -4
  18. package/dist/custom-elements/index.js +90 -54
  19. package/dist/esm/blog-detail-content_2.entry.js +1 -1
  20. package/dist/esm/blog-detail-layout.entry.js +1 -1
  21. package/dist/esm/blogs-search-section.entry.js +1 -1
  22. package/dist/esm/embedded-form.entry.js +1 -1
  23. package/dist/esm/homepage-jumbotron.entry.js +1 -1
  24. package/dist/esm/homepage-toggled-content.entry.js +1 -1
  25. package/dist/esm/{interfaces-4caedd26.js → interfaces-7c0243be.js} +1 -1
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/esm/most-popular-news.entry.js +1 -1
  28. package/dist/esm/my-component.entry.js +1 -1
  29. package/dist/esm/ptc-accordion-item.entry.js +1 -1
  30. package/dist/esm/ptc-background-video.entry.js +1 -1
  31. package/dist/esm/ptc-button_5.entry.js +534 -0
  32. package/dist/esm/ptc-card_2.entry.js +3 -2
  33. package/dist/esm/ptc-collapse-list.entry.js +1 -1
  34. package/dist/esm/ptc-countdown.entry.js +7 -10
  35. package/dist/esm/ptc-form-checkbox_4.entry.js +6 -4
  36. package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
  37. package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
  38. package/dist/esm/ptc-icon-card.entry.js +1 -1
  39. package/dist/esm/ptc-img.entry.js +70 -37
  40. package/dist/esm/ptc-jumbotron.entry.js +3 -0
  41. package/dist/esm/ptc-link.entry.js +1 -1
  42. package/dist/esm/ptc-media-card.entry.js +1 -1
  43. package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
  44. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  45. package/dist/esm/ptc-social-icons-footer.entry.js +1 -1
  46. package/dist/esm/ptcw-design.js +1 -1
  47. package/dist/esm/{utils-2f12c081.js → utils-7c68b88a.js} +1 -1
  48. package/dist/ptcw-design/{p-901c31b3.entry.js → p-0252726c.entry.js} +1 -1
  49. package/dist/ptcw-design/p-0c4918f5.entry.js +1 -0
  50. package/dist/ptcw-design/{p-45b1f3fc.entry.js → p-16d47ac5.entry.js} +1 -1
  51. package/dist/ptcw-design/{p-a5fc048f.entry.js → p-24a6eefa.entry.js} +1 -1
  52. package/dist/ptcw-design/{p-9dbcfcee.entry.js → p-2ba1ef9d.entry.js} +1 -1
  53. package/dist/ptcw-design/{p-1eb40265.entry.js → p-30bfb2f9.entry.js} +1 -1
  54. package/dist/ptcw-design/{p-f1734520.entry.js → p-37c4f168.entry.js} +1 -1
  55. package/dist/ptcw-design/{p-297a14cb.entry.js → p-4056c365.entry.js} +1 -1
  56. package/dist/ptcw-design/p-4ce6baf6.entry.js +1 -0
  57. package/dist/ptcw-design/{p-b647f7a1.entry.js → p-50770cc0.entry.js} +1 -1
  58. package/dist/ptcw-design/{p-4ca956c1.entry.js → p-531caca4.entry.js} +1 -1
  59. package/dist/ptcw-design/{p-52e17d34.entry.js → p-55e344bc.entry.js} +1 -1
  60. package/dist/ptcw-design/{p-8cea8943.entry.js → p-5bd8b4be.entry.js} +1 -1
  61. package/dist/ptcw-design/{p-257267e3.entry.js → p-673cfd2e.entry.js} +1 -1
  62. package/dist/ptcw-design/{p-8e42a22d.entry.js → p-757e3edb.entry.js} +1 -1
  63. package/dist/ptcw-design/{p-d51438de.entry.js → p-80588c84.entry.js} +1 -1
  64. package/dist/ptcw-design/{p-4702c233.entry.js → p-81e65926.entry.js} +1 -1
  65. package/dist/ptcw-design/{p-80122e26.js → p-826c17e8.js} +1 -1
  66. package/dist/ptcw-design/p-a3977a9e.entry.js +1 -0
  67. package/dist/ptcw-design/{p-8c121480.entry.js → p-a5ad0eff.entry.js} +1 -1
  68. package/dist/ptcw-design/{p-1efb0486.entry.js → p-abf9b25f.entry.js} +3 -3
  69. package/dist/ptcw-design/{p-14b7693f.entry.js → p-dffcfa42.entry.js} +1 -1
  70. package/dist/ptcw-design/{p-76dab076.entry.js → p-e813ea2b.entry.js} +1 -1
  71. package/dist/ptcw-design/p-e94353a4.entry.js +1 -0
  72. package/dist/ptcw-design/{p-711bcdad.js → p-ee1183b2.js} +1 -1
  73. package/dist/ptcw-design/{p-fd87fcd5.entry.js → p-ef5b5890.entry.js} +1 -1
  74. package/dist/ptcw-design/{p-bab5bb88.entry.js → p-f5d8a3b1.entry.js} +1 -1
  75. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  76. package/dist/types/components/ptc-card/ptc-card.d.ts +1 -0
  77. package/dist/types/components/ptc-countdown/ptc-countdown.d.ts +0 -1
  78. package/dist/types/components/ptc-img/ptc-img.d.ts +13 -4
  79. package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +1 -0
  80. package/dist/types/components/ptc-textfield/ptc-textfield.d.ts +2 -2
  81. package/dist/types/components.d.ts +4 -2
  82. package/package.json +1 -1
  83. package/readme.md +1 -1
  84. package/dist/cjs/ptc-button.cjs.entry.js +0 -89
  85. package/dist/cjs/ptc-para.cjs.entry.js +0 -127
  86. package/dist/cjs/ptc-picture.cjs.entry.js +0 -162
  87. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
  88. package/dist/cjs/ptc-title.cjs.entry.js +0 -152
  89. package/dist/esm/ptc-button.entry.js +0 -85
  90. package/dist/esm/ptc-para.entry.js +0 -123
  91. package/dist/esm/ptc-picture.entry.js +0 -158
  92. package/dist/esm/ptc-spacer.entry.js +0 -34
  93. package/dist/esm/ptc-title.entry.js +0 -148
  94. package/dist/ptcw-design/p-0c69ea52.entry.js +0 -1
  95. package/dist/ptcw-design/p-2cc7e2a8.entry.js +0 -1
  96. package/dist/ptcw-design/p-539639ff.entry.js +0 -1
  97. package/dist/ptcw-design/p-a8872ce3.entry.js +0 -1
  98. package/dist/ptcw-design/p-a978cd5b.entry.js +0 -1
  99. package/dist/ptcw-design/p-e4eb925f.entry.js +0 -1
  100. package/dist/ptcw-design/p-e9c5e74e.entry.js +0 -1
  101. package/dist/ptcw-design/p-f74e87ec.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as e,g as s}from"./p-ac75c7ad.js";import{R as a}from"./p-711bcdad.js";const h=class{constructor(i){t(this,i),this.transformParameters=["t=ptcjumbdesklq","t=ptcjumbdeskmq","t=ptcjumbdeskhq"],this.transformIndex=0,this.sizeXs="510x340",this.sizeSm="1240x496",this.sizeMd="1366x500",this.sizeLg="1920x1080",this.imgUrl=void 0,this.imageType="smart-bg",this.borderRadius="",this.loadMode="lazy-bg",this.styles=void 0,this.enableLazyLoad=!1,this.delay=2e3,this.bgSrcLazy=void 0}WindowResize(){this.setResponsiveBg()}render(){const t=this.getCssClassMap();return i(e,null,this.styles&&i("style",null,this.styles),i("div",{class:t,"data-xs":`${this.bgSrcLazy?this.bgSrcLazy:this.imgUrl}`,"data-sm":`${this.bgSrcLazy?this.bgSrcLazy:this.imgUrl}`,"data-md":`${this.bgSrcLazy?this.bgSrcLazy:this.imgUrl}`,"data-lg":`${this.bgSrcLazy?this.bgSrcLazy:this.imgUrl}`},"smart-bg"==this.imageType?i("slot",null):null))}componentWillLoad(){this.enableLazyLoad&&(this.bgSrcLazy=this.imgUrl&&this.imgUrl.includes("?")?`${this.imgUrl}&t=ptcjumbdesklq`:`${this.imgUrl}?t=ptcjumbdesklq`),console.log(this.bgSrcLazy)}componentDidLoad(){if(this.addIntersectionObserver(),this.setResponsiveBg(),this.enableLazyLoad){const t=this;setTimeout((()=>{t.upgradeImageQuality()}),t.delay)}}componentWillUpdate(){this.addIntersectionObserver(),this.setResponsiveBg()}upgradeImageQuality(){const t=this;t.transformIndex++,t.transformIndex<t.transformParameters.length?(this.bgSrcLazy=this.imgUrl&&this.imgUrl.includes("?")?`${this.imgUrl}&${t.transformParameters[t.transformIndex]}`:`${this.imgUrl}?${t.transformParameters[t.transformIndex]}`,setTimeout((()=>{console.log(this.bgSrcLazy),t.upgradeImageQuality()}),t.delay)):t.bgSrcLazy=t.imgUrl}setResponsiveBg(){let t,i,e=(this.el||document).querySelectorAll(a.selector),s=this.getCurrentBreakPoints();for(var h=0,n=e.length;h<n;h++)t=e[h],i=t.getAttribute("data-"+s),null!==i?t.style.backgroundImage="url('"+i+"')":"object"==typeof console&&console.warn("Data attribute: data-"+s+" not found on element:\n\n"+t.outerHTML+"\n\n\n")}addIntersectionObserver(){if(this.imgUrl&&"IntersectionObserver"in window){let t=(this.el||document).querySelectorAll(".lazy-bg"),i=new IntersectionObserver((t=>{t.forEach((t=>{if(t.isIntersecting){const e=t.target;e.classList.remove("lazy-bg"),i.unobserve(e)}}))}));t.forEach((t=>{i.observe(t)}))}}getCssClassMap(){return{[this.imageType]:!0,"ptc-img":!0,[this.borderRadius]:!0,[this.loadMode]:!0}}getCurrentBreakPoints(){let t,i=window.document,e=i.createElement("div");i.body.appendChild(e);for(let s=a.envs.length-1;s>=0;s--)if(t=a.envs[s],e.className="hidden-"+t,null===e.offsetParent)return i.body.removeChild(e),t;return i.body.removeChild(e),this.getFallbackBreakpoint()}getFallbackBreakpoint(){return window.matchMedia("(min-width: 992px)").matches?"lg":window.matchMedia("(min-width: 768px)").matches?"md":window.matchMedia("(min-width: 576px)").matches?"sm":"xs"}get el(){return s(this)}};h.style="h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}.smart-bg{width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.smart-img{position:absolute;display:block;width:100%;height:100%;top:0;left:0;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-standard-top{border-top-left-radius:var(--ptc-border-radius-standard);border-top-right-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.radius-large-top{border-top-left-radius:var(--ptc-border-radius-large);border-top-right-radius:var(--ptc-border-radius-large)}.lazy-bg{background-image:none !important;background-color:var(--color-gray-03)}@media only screen and (min-width: 768px){.hidden-xs{display:none !important}}@media (min-width: 768px) and (max-width: 991px){.hidden-sm{display:none !important}}@media (min-width: 992px) and (max-width: 1199px){.hidden-md{display:none !important}}@media only screen and (min-width: 768px){.hidden-lg{display:none !important}}";export{h as ptc_img}