@ptcwebops/ptcw-design 6.4.11 → 6.4.12-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 (224) hide show
  1. package/dist/cjs/blogs-search-section.cjs.entry.js +4 -1
  2. package/dist/cjs/buying-option-card.cjs.entry.js +1 -1
  3. package/dist/cjs/buying-option-cards-slider.cjs.entry.js +15 -8
  4. package/dist/cjs/{component-35540bfb.js → component-6a178a16.js} +2643 -832
  5. package/dist/cjs/dynamic-box-bundle.cjs.entry.js +3 -1
  6. package/dist/cjs/featured-list.cjs.entry.js +1 -1
  7. package/dist/cjs/homepage-toggled-content.cjs.entry.js +3 -1
  8. package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/modal-form-example.cjs.entry.js +109 -0
  11. package/dist/cjs/ptc-announcement.cjs.entry.js +2 -1
  12. package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
  13. package/dist/cjs/ptc-button.cjs.entry.js +1 -1
  14. package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +3 -17
  15. package/dist/cjs/ptc-card-content.cjs.entry.js +1 -7
  16. package/dist/cjs/ptc-card_2.cjs.entry.js +5 -4
  17. package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
  18. package/dist/cjs/ptc-close-icon_2.cjs.entry.js +24 -24
  19. package/dist/cjs/ptc-data-lookup.cjs.entry.js +1 -2
  20. package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
  21. package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +1 -1
  22. package/dist/cjs/{ptc-form-checkbox_2.cjs.entry.js → ptc-form-checkbox_4.cjs.entry.js} +723 -5
  23. package/dist/cjs/ptc-img.cjs.entry.js +87 -7
  24. package/dist/cjs/ptc-jumbotron.cjs.entry.js +11 -5
  25. package/dist/cjs/ptc-modal-quiz.cjs.entry.js +4 -1
  26. package/dist/cjs/ptc-para.cjs.entry.js +1 -1
  27. package/dist/cjs/ptc-picture.cjs.entry.js +0 -17
  28. package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
  29. package/dist/cjs/ptc-preloader.cjs.entry.js +1 -1
  30. package/dist/cjs/ptc-previous-url.cjs.entry.js +11 -2
  31. package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +25 -9
  32. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
  33. package/dist/cjs/ptc-product-card.cjs.entry.js +1 -1
  34. package/dist/cjs/ptc-product-category.cjs.entry.js +1 -1
  35. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +1 -1
  36. package/dist/cjs/ptc-readmore-char.cjs.entry.js +1 -1
  37. package/dist/cjs/ptc-readmore-v3.cjs.entry.js +1 -1
  38. package/dist/cjs/ptc-subnav-v2.cjs.entry.js +147 -247
  39. package/dist/cjs/ptc-tooltip-v2.cjs.entry.js +1 -1
  40. package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +1 -1
  41. package/dist/cjs/ptc-white-paper.cjs.entry.js +19 -9
  42. package/dist/cjs/ptcw-design.cjs.js +1 -1
  43. package/dist/collection/collection-manifest.json +1 -0
  44. package/dist/collection/components/buying-option-card/buying-option-card.css +2 -0
  45. package/dist/collection/components/buying-option-cards-slider/buying-option-cards-slider.css +9 -35
  46. package/dist/collection/components/buying-option-cards-slider/buying-option-cards-slider.js +14 -7
  47. package/dist/collection/components/dynamic-box-bundle/dynamic-box-bundle.js +3 -1
  48. package/dist/collection/components/icon-asset/media/designer-v6.0.7.svg +30 -2
  49. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +24 -0
  50. package/dist/collection/components/organism-bundles/blogs-search-section/blogs-search-section.js +4 -1
  51. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +24 -0
  52. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +26 -0
  53. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +114 -0
  54. package/dist/collection/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.js +3 -1
  55. package/dist/collection/components/ptc-announcement/ptc-announcement.js +2 -1
  56. package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +24 -0
  57. package/dist/collection/components/ptc-button/ptc-button.css +0 -2
  58. package/dist/collection/components/ptc-card-content/ptc-card-content.css +3 -45
  59. package/dist/collection/components/ptc-card-content/ptc-card-content.js +2 -26
  60. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +3 -17
  61. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +24 -0
  62. package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +24 -0
  63. package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +24 -0
  64. package/dist/collection/components/ptc-img/ptc-img.css +76 -0
  65. package/dist/collection/components/ptc-img/ptc-img.js +132 -7
  66. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +26 -3
  67. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +28 -4
  68. package/dist/collection/components/ptc-modal/ptc-modal.css +5 -0
  69. package/dist/collection/components/ptc-modal/ptc-modal.js +25 -25
  70. package/dist/collection/components/ptc-modal-quiz/ptc-modal-quiz.js +4 -1
  71. package/dist/collection/components/ptc-para/ptc-para.css +3 -0
  72. package/dist/collection/components/ptc-para/ptc-para.js +2 -2
  73. package/dist/collection/components/ptc-picture/ptc-picture.js +0 -40
  74. package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +24 -0
  75. package/dist/collection/components/ptc-preloader/ptc-preloader.css +147 -111
  76. package/dist/collection/components/ptc-preloader/ptc-preloader.js +1 -1
  77. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +1 -2
  78. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +4 -3
  79. package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +16 -0
  80. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +28 -1
  81. package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +25 -9
  82. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +1 -1
  83. package/dist/collection/components/ptc-product-card/ptc-product-card.css +24 -0
  84. package/dist/collection/components/ptc-product-category/ptc-product-category.css +24 -0
  85. package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +24 -0
  86. package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +24 -0
  87. package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +24 -0
  88. package/dist/collection/components/ptc-subnav-v2/ptc-subnav-v2.css +110 -115
  89. package/dist/collection/components/ptc-subnav-v2/ptc-subnav-v2.js +150 -248
  90. package/dist/collection/components/ptc-textfield/ptc-textfield.js +3 -5
  91. package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +24 -0
  92. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +24 -0
  93. package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +27 -3
  94. package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +18 -8
  95. package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +45 -0
  96. package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +47 -0
  97. package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +157 -0
  98. package/dist/collection/stories/organisms/ptc/Subanv New/preview.stories.js +338 -0
  99. package/dist/collection/stories/ptc-subnav-v2/ptc-subnav-v2.stories.js +0 -0
  100. package/dist/custom-elements/index.d.ts +6 -0
  101. package/dist/custom-elements/index.js +496 -390
  102. package/dist/esm/blogs-search-section.entry.js +4 -1
  103. package/dist/esm/buying-option-card.entry.js +1 -1
  104. package/dist/esm/buying-option-cards-slider.entry.js +15 -8
  105. package/dist/esm/{component-8c53e377.js → component-80f298b4.js} +2592 -793
  106. package/dist/esm/dynamic-box-bundle.entry.js +3 -1
  107. package/dist/esm/featured-list.entry.js +1 -1
  108. package/dist/esm/homepage-toggled-content.entry.js +3 -1
  109. package/dist/esm/innovator-toggle-container.entry.js +1 -1
  110. package/dist/esm/loader.js +1 -1
  111. package/dist/esm/modal-form-example.entry.js +105 -0
  112. package/dist/esm/ptc-announcement.entry.js +2 -1
  113. package/dist/esm/ptc-bio-card.entry.js +1 -1
  114. package/dist/esm/ptc-button.entry.js +1 -1
  115. package/dist/esm/ptc-card-bottom_2.entry.js +3 -17
  116. package/dist/esm/ptc-card-content.entry.js +1 -7
  117. package/dist/esm/ptc-card_2.entry.js +5 -4
  118. package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
  119. package/dist/esm/ptc-close-icon_2.entry.js +24 -24
  120. package/dist/esm/ptc-data-lookup.entry.js +1 -2
  121. package/dist/esm/ptc-featured-list.entry.js +1 -1
  122. package/dist/esm/ptc-filter-level-theater.entry.js +1 -1
  123. package/dist/esm/{ptc-form-checkbox_2.entry.js → ptc-form-checkbox_4.entry.js} +722 -6
  124. package/dist/esm/ptc-img.entry.js +87 -7
  125. package/dist/esm/ptc-jumbotron.entry.js +11 -5
  126. package/dist/esm/ptc-modal-quiz.entry.js +4 -1
  127. package/dist/esm/ptc-para.entry.js +1 -1
  128. package/dist/esm/ptc-picture.entry.js +0 -17
  129. package/dist/esm/ptc-podcast-card.entry.js +1 -1
  130. package/dist/esm/ptc-preloader.entry.js +1 -1
  131. package/dist/esm/ptc-previous-url.entry.js +11 -2
  132. package/dist/esm/ptc-pricing-packaging-table.entry.js +25 -9
  133. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  134. package/dist/esm/ptc-product-card.entry.js +1 -1
  135. package/dist/esm/ptc-product-category.entry.js +1 -1
  136. package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
  137. package/dist/esm/ptc-readmore-char.entry.js +1 -1
  138. package/dist/esm/ptc-readmore-v3.entry.js +1 -1
  139. package/dist/esm/ptc-subnav-v2.entry.js +147 -247
  140. package/dist/esm/ptc-tooltip-v2.entry.js +1 -1
  141. package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
  142. package/dist/esm/ptc-white-paper.entry.js +19 -9
  143. package/dist/esm/ptcw-design.js +1 -1
  144. package/dist/ptcw-design/media/designer-v6.0.7.svg +30 -2
  145. package/dist/ptcw-design/{p-614b66d8.entry.js → p-0451b768.entry.js} +1 -1
  146. package/dist/ptcw-design/p-04891836.entry.js +1 -0
  147. package/dist/ptcw-design/p-17b8281a.entry.js +1 -0
  148. package/dist/ptcw-design/p-187ef77b.entry.js +1 -0
  149. package/dist/ptcw-design/p-2670ac97.entry.js +1 -0
  150. package/dist/ptcw-design/p-2c8faf9a.entry.js +1 -0
  151. package/dist/ptcw-design/{p-4b41fe4e.entry.js → p-312c41b8.entry.js} +1 -1
  152. package/dist/ptcw-design/p-32bec5ef.entry.js +1 -0
  153. package/dist/ptcw-design/p-349f43d5.entry.js +1 -0
  154. package/dist/ptcw-design/p-390c0dee.entry.js +1 -0
  155. package/dist/ptcw-design/p-3b40bfbf.entry.js +68 -0
  156. package/dist/ptcw-design/p-502f534b.entry.js +1 -0
  157. package/dist/ptcw-design/p-53a96796.entry.js +1 -0
  158. package/dist/ptcw-design/p-672a349f.js +336 -0
  159. package/dist/ptcw-design/p-6f9f55b3.entry.js +1 -0
  160. package/dist/ptcw-design/{p-365646b8.entry.js → p-7218fe2c.entry.js} +1 -1
  161. package/dist/ptcw-design/{p-2a3c8a30.entry.js → p-7235425a.entry.js} +1 -1
  162. package/dist/ptcw-design/p-74097f89.entry.js +1 -0
  163. package/dist/ptcw-design/{p-af9912b6.entry.js → p-7834cfee.entry.js} +1 -1
  164. package/dist/ptcw-design/p-799afee5.entry.js +1 -0
  165. package/dist/ptcw-design/p-7fe4d383.entry.js +1 -0
  166. package/dist/ptcw-design/p-8fb48953.entry.js +1 -0
  167. package/dist/ptcw-design/p-96f346c4.entry.js +1 -0
  168. package/dist/ptcw-design/{p-db882e62.entry.js → p-9da57f76.entry.js} +1 -1
  169. package/dist/ptcw-design/p-b06bc0a1.entry.js +1 -0
  170. package/dist/ptcw-design/{p-121a9ef6.entry.js → p-b0a16f1a.entry.js} +1 -1
  171. package/dist/ptcw-design/p-b684ca9d.entry.js +1 -0
  172. package/dist/ptcw-design/p-c09a8288.entry.js +1 -0
  173. package/dist/ptcw-design/p-cb0e3ec2.entry.js +1 -0
  174. package/dist/ptcw-design/p-de960790.entry.js +1 -0
  175. package/dist/ptcw-design/p-e3a6ed56.entry.js +1 -0
  176. package/dist/ptcw-design/p-ef870202.entry.js +1 -0
  177. package/dist/ptcw-design/{p-f0958536.entry.js → p-f010c07f.entry.js} +1 -1
  178. package/dist/ptcw-design/p-f6b70f68.entry.js +1 -0
  179. package/dist/ptcw-design/ptcw-design.css +4 -3
  180. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  181. package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +25 -0
  182. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +1 -2
  183. package/dist/types/components/ptc-img/ptc-img.d.ts +29 -1
  184. package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +4 -0
  185. package/dist/types/components/ptc-modal/ptc-modal.d.ts +1 -1
  186. package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
  187. package/dist/types/components/ptc-picture/ptc-picture.d.ts +0 -2
  188. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +2 -0
  189. package/dist/types/components/ptc-subnav-v2/ptc-subnav-v2.d.ts +6 -32
  190. package/dist/types/components.d.ts +53 -11
  191. package/package.json +1 -1
  192. package/readme.md +5 -1
  193. package/dist/cjs/component-1b8ad4d2.js +0 -1819
  194. package/dist/cjs/ptc-multi-select_2.cjs.entry.js +0 -730
  195. package/dist/collection/stories/organisms/ptc/Subnav New/preview.stories.js +0 -360
  196. package/dist/esm/component-9beac35b.js +0 -1802
  197. package/dist/esm/ptc-multi-select_2.entry.js +0 -725
  198. package/dist/ptcw-design/p-009fbf1f.entry.js +0 -1
  199. package/dist/ptcw-design/p-00e21489.entry.js +0 -1
  200. package/dist/ptcw-design/p-14ba0f06.entry.js +0 -1
  201. package/dist/ptcw-design/p-1a853854.entry.js +0 -1
  202. package/dist/ptcw-design/p-1f15239e.entry.js +0 -1
  203. package/dist/ptcw-design/p-1f356fcf.entry.js +0 -1
  204. package/dist/ptcw-design/p-2bfd8371.entry.js +0 -1
  205. package/dist/ptcw-design/p-2e6e2a9d.entry.js +0 -1
  206. package/dist/ptcw-design/p-3ed4a7ed.entry.js +0 -1
  207. package/dist/ptcw-design/p-56a73429.entry.js +0 -1
  208. package/dist/ptcw-design/p-80ee97a2.entry.js +0 -1
  209. package/dist/ptcw-design/p-850a6205.entry.js +0 -1
  210. package/dist/ptcw-design/p-8aeb229a.entry.js +0 -1
  211. package/dist/ptcw-design/p-8ef0e26e.entry.js +0 -68
  212. package/dist/ptcw-design/p-9493dfa0.entry.js +0 -1
  213. package/dist/ptcw-design/p-95efe7ee.entry.js +0 -1
  214. package/dist/ptcw-design/p-98426799.js +0 -203
  215. package/dist/ptcw-design/p-98844b50.js +0 -134
  216. package/dist/ptcw-design/p-a9533f9c.entry.js +0 -1
  217. package/dist/ptcw-design/p-b44f4fb1.entry.js +0 -1
  218. package/dist/ptcw-design/p-b5e849da.entry.js +0 -1
  219. package/dist/ptcw-design/p-b89136c6.entry.js +0 -1
  220. package/dist/ptcw-design/p-c42e9110.entry.js +0 -1
  221. package/dist/ptcw-design/p-cad4b517.entry.js +0 -1
  222. package/dist/ptcw-design/p-e976a798.entry.js +0 -1
  223. package/dist/ptcw-design/p-f13c7959.entry.js +0 -1
  224. package/dist/ptcw-design/p-f3d3c161.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { Host, h, } from "@stencil/core";
2
2
  import { ResponsiveBgVariables } from "../../utils/interfaces";
3
3
  export class PtcImg {
4
4
  constructor() {
@@ -11,26 +11,95 @@ export class PtcImg {
11
11
  this.borderRadius = "";
12
12
  this.loadMode = "lazy-bg";
13
13
  this.styles = undefined;
14
+ this.enableLazyLoad = false;
15
+ this.delay = 2000;
16
+ this.bgSrcLazy = undefined;
17
+ this.bgSrcMedium = undefined;
18
+ this.bgSrcHigh = undefined;
19
+ this.isInViewport = false;
20
+ this.isImageUpgraded = false;
14
21
  }
15
- /**
16
- * Image Z Index
17
- */
18
- // @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
19
22
  WindowResize() {
20
23
  this.setResponsiveBg();
21
24
  }
22
25
  render() {
23
26
  const classMap = this.getCssClassMap();
24
- return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { class: classMap, "data-xs": `${this.imgUrl}`, "data-sm": `${this.imgUrl}`, "data-md": `${this.imgUrl}`, "data-lg": `${this.imgUrl}` }, this.imageType == "smart-bg" ? h("slot", null) : null)));
27
+ if (this.enableLazyLoad && this.imgUrl) {
28
+ // Lazy loading functionality
29
+ return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { class: classMap }, h("div", { class: "low-quality", style: {
30
+ backgroundImage: `url(${this.bgSrcLazy})`,
31
+ opacity: "1",
32
+ transition: "opacity 0.5s ease-in-out",
33
+ } }), h("div", { class: "medium-quality", style: {
34
+ opacity: "0",
35
+ transition: "opacity 0.5s ease-in-out",
36
+ } }), h("div", { class: "high-quality", style: {
37
+ opacity: "0",
38
+ transition: "opacity 0.5s ease-in-out",
39
+ } }), this.imageType == "smart-bg" ? h("slot", null) : null)));
40
+ }
41
+ else {
42
+ return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { class: classMap, "data-xs": this.bgSrcLazy || this.imgUrl, "data-sm": this.bgSrcLazy || this.imgUrl, "data-md": this.bgSrcLazy || this.imgUrl, "data-lg": this.bgSrcLazy || this.imgUrl, style: {
43
+ backgroundImage: `url(${this.bgSrcLazy || this.imgUrl})`,
44
+ } }, this.imageType == "smart-bg" ? h("slot", null) : null)));
45
+ }
46
+ }
47
+ componentWillLoad() {
48
+ if (this.enableLazyLoad) {
49
+ this.isInViewport = false;
50
+ }
51
+ if (this.enableLazyLoad && this.imgUrl) {
52
+ this.bgSrcLazy = this.getImageUrl("lq");
53
+ this.bgSrcMedium = this.getImageUrl("mq");
54
+ this.bgSrcHigh = this.getImageUrl("hq");
55
+ }
56
+ else {
57
+ console.warn("Image URL is undefined or invalid.");
58
+ this.bgSrcLazy = "";
59
+ this.bgSrcMedium = "";
60
+ this.bgSrcHigh = "";
61
+ }
25
62
  }
26
63
  componentDidLoad() {
27
64
  this.addIntersectionObserver();
28
65
  this.setResponsiveBg();
66
+ if (this.enableLazyLoad && this.imgUrl) {
67
+ const that = this;
68
+ setTimeout(() => {
69
+ that.upgradeImageQuality();
70
+ }, that.delay);
71
+ }
29
72
  }
30
73
  componentWillUpdate() {
31
74
  this.addIntersectionObserver();
32
75
  this.setResponsiveBg();
33
76
  }
77
+ upgradeImageQuality() {
78
+ if (this.isInViewport && !this.isImageUpgraded) {
79
+ console.log("Low-quality image is visible.");
80
+ this.isImageUpgraded = true;
81
+ setTimeout(() => {
82
+ const mediumLayer = this.el.querySelector(".medium-quality");
83
+ if (mediumLayer) {
84
+ mediumLayer.style.backgroundImage = `url(${this.bgSrcMedium})`;
85
+ mediumLayer.style.opacity = "1";
86
+ console.log("Medium-quality image is now visible.");
87
+ }
88
+ setTimeout(() => {
89
+ const highLayer = this.el.querySelector(".high-quality");
90
+ if (highLayer) {
91
+ highLayer.style.backgroundImage = `url(${this.bgSrcHigh})`;
92
+ highLayer.style.opacity = "1";
93
+ console.log("High-quality image is now visible.");
94
+ }
95
+ if (mediumLayer) {
96
+ mediumLayer.style.opacity = "0";
97
+ console.log("Medium-quality image is hidden.");
98
+ }
99
+ }, this.delay);
100
+ }, this.delay / 2);
101
+ }
102
+ }
34
103
  //responsive image
35
104
  setResponsiveBg() {
36
105
  // Define local variables
@@ -68,6 +137,8 @@ export class PtcImg {
68
137
  const image = entry.target;
69
138
  image.classList.remove("lazy-bg");
70
139
  bgObserver.unobserve(image);
140
+ this.isInViewport = true;
141
+ this.upgradeImageQuality();
71
142
  }
72
143
  });
73
144
  });
@@ -81,12 +152,21 @@ export class PtcImg {
81
152
  // }, 5000);
82
153
  }
83
154
  }
155
+ getImageUrl(quality) {
156
+ if (this.imgUrl && this.imgUrl.includes("?")) {
157
+ return `${this.imgUrl}&t=ptcjumbdesk${quality}`;
158
+ }
159
+ else {
160
+ return `${this.imgUrl}?t=ptcjumbdesk${quality}`;
161
+ }
162
+ }
84
163
  getCssClassMap() {
85
164
  return {
86
165
  [this.imageType]: true,
87
- "ptc-img": true,
166
+ 'ptc-img': true,
88
167
  [this.borderRadius]: true,
89
168
  [this.loadMode]: true,
169
+ [this.enableLazyLoad ? 'ptc-img--lazy' : '']: true,
90
170
  // [this.imageZIndex] : true
91
171
  };
92
172
  }
@@ -298,9 +378,54 @@ export class PtcImg {
298
378
  },
299
379
  "attribute": "styles",
300
380
  "reflect": false
381
+ },
382
+ "enableLazyLoad": {
383
+ "type": "boolean",
384
+ "mutable": false,
385
+ "complexType": {
386
+ "original": "boolean",
387
+ "resolved": "boolean",
388
+ "references": {}
389
+ },
390
+ "required": false,
391
+ "optional": false,
392
+ "docs": {
393
+ "tags": [],
394
+ "text": "(optional) enable lazy loading"
395
+ },
396
+ "attribute": "enable-lazy-load",
397
+ "reflect": false,
398
+ "defaultValue": "false"
399
+ },
400
+ "delay": {
401
+ "type": "number",
402
+ "mutable": false,
403
+ "complexType": {
404
+ "original": "number",
405
+ "resolved": "number",
406
+ "references": {}
407
+ },
408
+ "required": false,
409
+ "optional": false,
410
+ "docs": {
411
+ "tags": [],
412
+ "text": "(optional) setTimeout delay fro Lazy loading"
413
+ },
414
+ "attribute": "delay",
415
+ "reflect": false,
416
+ "defaultValue": "2000"
301
417
  }
302
418
  };
303
419
  }
420
+ static get states() {
421
+ return {
422
+ "bgSrcLazy": {},
423
+ "bgSrcMedium": {},
424
+ "bgSrcHigh": {},
425
+ "isInViewport": {},
426
+ "isImageUpgraded": {}
427
+ };
428
+ }
304
429
  static get elementRef() { return "el"; }
305
430
  static get listeners() {
306
431
  return [{
@@ -1220,14 +1220,17 @@ a:focus-visible {
1220
1220
 
1221
1221
  .light-links a:not(.hero-footer-form-wrapper a,
1222
1222
  ptc-modal inline-form a,
1223
+ .podcast-cta-section a,
1223
1224
  .vjs-social-share-links a),
1224
1225
  .light-links a.light-link,
1225
1226
  .background-grey-10 a:not(.hero-footer-form-wrapper a,
1226
1227
  ptc-modal inline-form a,
1228
+ .podcast-cta-section a,
1227
1229
  .vjs-social-share-links a),
1228
1230
  .background-grey-10 a.light-link,
1229
1231
  .background-plm-grey a:not(.hero-footer-form-wrapper a,
1230
1232
  ptc-modal inline-form a,
1233
+ .podcast-cta-section a,
1231
1234
  .vjs-social-share-links a),
1232
1235
  .background-plm-grey a.light-link {
1233
1236
  color: var(--color-blue-04);
@@ -1236,38 +1239,47 @@ ptc-modal inline-form a,
1236
1239
  }
1237
1240
  .light-links a:not(.hero-footer-form-wrapper a,
1238
1241
  ptc-modal inline-form a,
1242
+ .podcast-cta-section a,
1239
1243
  .vjs-social-share-links a):visited,
1240
1244
  .light-links a.light-link:visited,
1241
1245
  .background-grey-10 a:not(.hero-footer-form-wrapper a,
1242
1246
  ptc-modal inline-form a,
1247
+ .podcast-cta-section a,
1243
1248
  .vjs-social-share-links a):visited,
1244
1249
  .background-grey-10 a.light-link:visited,
1245
1250
  .background-plm-grey a:not(.hero-footer-form-wrapper a,
1246
1251
  ptc-modal inline-form a,
1252
+ .podcast-cta-section a,
1247
1253
  .vjs-social-share-links a):visited,
1248
1254
  .background-plm-grey a.light-link:visited {
1249
1255
  color: var(--color-blue-06);
1250
1256
  }
1251
1257
  .light-links a:not(.hero-footer-form-wrapper a,
1252
1258
  ptc-modal inline-form a,
1259
+ .podcast-cta-section a,
1253
1260
  .vjs-social-share-links a):active, .light-links a:not(.hero-footer-form-wrapper a,
1254
1261
  ptc-modal inline-form a,
1262
+ .podcast-cta-section a,
1255
1263
  .vjs-social-share-links a):visited:active,
1256
1264
  .light-links a.light-link:active,
1257
1265
  .light-links a.light-link:visited:active,
1258
1266
  .background-grey-10 a:not(.hero-footer-form-wrapper a,
1259
1267
  ptc-modal inline-form a,
1268
+ .podcast-cta-section a,
1260
1269
  .vjs-social-share-links a):active,
1261
1270
  .background-grey-10 a:not(.hero-footer-form-wrapper a,
1262
1271
  ptc-modal inline-form a,
1272
+ .podcast-cta-section a,
1263
1273
  .vjs-social-share-links a):visited:active,
1264
1274
  .background-grey-10 a.light-link:active,
1265
1275
  .background-grey-10 a.light-link:visited:active,
1266
1276
  .background-plm-grey a:not(.hero-footer-form-wrapper a,
1267
1277
  ptc-modal inline-form a,
1278
+ .podcast-cta-section a,
1268
1279
  .vjs-social-share-links a):active,
1269
1280
  .background-plm-grey a:not(.hero-footer-form-wrapper a,
1270
1281
  ptc-modal inline-form a,
1282
+ .podcast-cta-section a,
1271
1283
  .vjs-social-share-links a):visited:active,
1272
1284
  .background-plm-grey a.light-link:active,
1273
1285
  .background-plm-grey a.light-link:visited:active {
@@ -1276,24 +1288,30 @@ ptc-modal inline-form a,
1276
1288
  }
1277
1289
  .light-links a:not(.hero-footer-form-wrapper a,
1278
1290
  ptc-modal inline-form a,
1291
+ .podcast-cta-section a,
1279
1292
  .vjs-social-share-links a):hover, .light-links a:not(.hero-footer-form-wrapper a,
1280
1293
  ptc-modal inline-form a,
1294
+ .podcast-cta-section a,
1281
1295
  .vjs-social-share-links a):visited:hover,
1282
1296
  .light-links a.light-link:hover,
1283
1297
  .light-links a.light-link:visited:hover,
1284
1298
  .background-grey-10 a:not(.hero-footer-form-wrapper a,
1285
1299
  ptc-modal inline-form a,
1300
+ .podcast-cta-section a,
1286
1301
  .vjs-social-share-links a):hover,
1287
1302
  .background-grey-10 a:not(.hero-footer-form-wrapper a,
1288
1303
  ptc-modal inline-form a,
1304
+ .podcast-cta-section a,
1289
1305
  .vjs-social-share-links a):visited:hover,
1290
1306
  .background-grey-10 a.light-link:hover,
1291
1307
  .background-grey-10 a.light-link:visited:hover,
1292
1308
  .background-plm-grey a:not(.hero-footer-form-wrapper a,
1293
1309
  ptc-modal inline-form a,
1310
+ .podcast-cta-section a,
1294
1311
  .vjs-social-share-links a):hover,
1295
1312
  .background-plm-grey a:not(.hero-footer-form-wrapper a,
1296
1313
  ptc-modal inline-form a,
1314
+ .podcast-cta-section a,
1297
1315
  .vjs-social-share-links a):visited:hover,
1298
1316
  .background-plm-grey a.light-link:hover,
1299
1317
  .background-plm-grey a.light-link:visited:hover {
@@ -1301,14 +1319,17 @@ ptc-modal inline-form a,
1301
1319
  }
1302
1320
  .light-links a:not(.hero-footer-form-wrapper a,
1303
1321
  ptc-modal inline-form a,
1322
+ .podcast-cta-section a,
1304
1323
  .vjs-social-share-links a).disabled,
1305
1324
  .light-links a.light-link.disabled,
1306
1325
  .background-grey-10 a:not(.hero-footer-form-wrapper a,
1307
1326
  ptc-modal inline-form a,
1327
+ .podcast-cta-section a,
1308
1328
  .vjs-social-share-links a).disabled,
1309
1329
  .background-grey-10 a.light-link.disabled,
1310
1330
  .background-plm-grey a:not(.hero-footer-form-wrapper a,
1311
1331
  ptc-modal inline-form a,
1332
+ .podcast-cta-section a,
1312
1333
  .vjs-social-share-links a).disabled,
1313
1334
  .background-plm-grey a.light-link.disabled {
1314
1335
  color: var(--color-gray-04) !important;
@@ -1316,14 +1337,17 @@ ptc-modal inline-form a,
1316
1337
  }
1317
1338
  .light-links a:not(.hero-footer-form-wrapper a,
1318
1339
  ptc-modal inline-form a,
1340
+ .podcast-cta-section a,
1319
1341
  .vjs-social-share-links a):focus-visible,
1320
1342
  .light-links a.light-link:focus-visible,
1321
1343
  .background-grey-10 a:not(.hero-footer-form-wrapper a,
1322
1344
  ptc-modal inline-form a,
1345
+ .podcast-cta-section a,
1323
1346
  .vjs-social-share-links a):focus-visible,
1324
1347
  .background-grey-10 a.light-link:focus-visible,
1325
1348
  .background-plm-grey a:not(.hero-footer-form-wrapper a,
1326
1349
  ptc-modal inline-form a,
1350
+ .podcast-cta-section a,
1327
1351
  .vjs-social-share-links a):focus-visible,
1328
1352
  .background-plm-grey a.light-link:focus-visible {
1329
1353
  border-radius: var(--ptc-border-radius-standard);
@@ -1804,8 +1828,7 @@ ptc-info-tile:focus-visible {
1804
1828
  outline-offset: 2px;
1805
1829
  }
1806
1830
 
1807
- :host(.light-video-jumbotron) .bg-overlay,
1808
- :host(.light-jumbotron) .bg-overlay {
1831
+ :host(.light-video-jumbotron),
1832
+ :host(.light-jumbotron) {
1809
1833
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
1810
- box-sizing: border-box;
1811
1834
  }
@@ -30,6 +30,7 @@ export class PtcJumbotron {
30
30
  this.hasCountdown = false;
31
31
  this.logo = "";
32
32
  this.styles = undefined;
33
+ this.enableLazy = false;
33
34
  this.defer = undefined;
34
35
  this.hasCtaSlot = undefined;
35
36
  }
@@ -68,10 +69,10 @@ export class PtcJumbotron {
68
69
  break;
69
70
  case "dark":
70
71
  case "light":
71
- mediaElement = (h("div", { class: "dl-img-wrap" }, h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" }), this.hasPopupVideo && this.isMobile ? (h("div", { class: "mobile-modal-play-btn" }, " ", h("slot", { name: "video" }))) : null));
72
+ mediaElement = (h("div", { class: "dl-img-wrap" }, h("ptc-img", { "img-url": this.bgSrc, "enable-lazy-load": this.enableLazy, styles: ".smart-bg{background-position:right !important;}" }), this.hasPopupVideo && this.isMobile ? (h("div", { class: "mobile-modal-play-btn" }, " ", h("slot", { name: "video" }))) : null));
72
73
  break;
73
74
  default:
74
- mediaElement = (h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" }));
75
+ mediaElement = (h("ptc-img", { "img-url": this.bgSrc, "enable-lazy-load": this.enableLazy, styles: ".smart-bg{background-position:right !important;}" }));
75
76
  }
76
77
  return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("div", { class: {
77
78
  parent: true,
@@ -92,14 +93,19 @@ export class PtcJumbotron {
92
93
  !this.isHomepage && (h("div", null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))), !this.isHomepage && (h("ptc-para", { styles: `p{color: ${this.contentColor}!important;}`, "font-size": this.jumbotronType === "text" &&
93
94
  this.isMobile
94
95
  ? "x-small"
95
- : "small", "font-weight": "w-4", "para-margin": `${this.jumbotronType === "text" || this.jumbotronType === "blog" ? "margin-flush" : "margin-bottom-6"}`, "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === "text"
96
+ : "small", "font-weight": "w-4", "para-margin": `${this.jumbotronType === "text" ||
97
+ this.jumbotronType === "blog"
98
+ ? "margin-flush"
99
+ : "margin-bottom-6"}`, "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === "text"
96
100
  ? "center"
97
101
  : "left", "seo-compatibility-mode": true }, h("p", { innerHTML: this.subTitle, style: { margin: "0" } }), h("p", { style: { margin: "0" } }, h("slot", { name: "blog-date" })), this.jumbotronType === "blog" && (h("div", null, h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("div", { id: "header-blog-author", slot: "blog-author" }, h("div", { class: "image" }, h("img", { alt: this
98
102
  .blogAuthorImageAlt, src: this
99
103
  .blogAuthorImage })), h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, h("a", { class: "blog-author-name mf-listen", tabindex: "0", href: this
100
104
  .blogAuthorQueryHref, target: this
101
105
  .blogAuthorQueryTarget, "aria-label": "Other blogs by author" }, this
102
- .blogAuthorName))))))), this.hasCtaSlot && (h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === "text" ? " text-adjustment" : ""}` }, h("slot", { name: "j-cta" }))))), this.hasPopupVideo &&
106
+ .blogAuthorName))))))), this.hasCtaSlot && (h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === "text"
107
+ ? " text-adjustment"
108
+ : ""}` }, h("slot", { name: "j-cta" }))))), this.hasPopupVideo &&
103
109
  this.jumbotronType !== "png" ? (h("slot", { name: "video" })) : null, this.hasCountdown ? (h("slot", { name: "countdown" })) : null, this.jumbotronType === "png" ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc, styles: `img {${this.pngImgStyles}}` }), this.hasPopupVideo ? (h("slot", { name: "video" })) : null))) : null, this.jumbotronType === "gif" ? (h("div", { class: "desktop-media-image desk-gif-adjustment" }, h("img", { src: this.gifSrc }))) : null, this.jumbotronType === "blog" ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc, styles: "img {height: 100%;}" })))) : null)))));
104
110
  }
105
111
  getCssClassMap() {
@@ -623,6 +629,24 @@ export class PtcJumbotron {
623
629
  "attribute": "styles",
624
630
  "reflect": false
625
631
  },
632
+ "enableLazy": {
633
+ "type": "boolean",
634
+ "mutable": false,
635
+ "complexType": {
636
+ "original": "boolean",
637
+ "resolved": "boolean",
638
+ "references": {}
639
+ },
640
+ "required": false,
641
+ "optional": false,
642
+ "docs": {
643
+ "tags": [],
644
+ "text": "(optional) to enable lazy loading"
645
+ },
646
+ "attribute": "enable-lazy",
647
+ "reflect": false,
648
+ "defaultValue": "false"
649
+ },
626
650
  "defer": {
627
651
  "type": "boolean",
628
652
  "mutable": false,
@@ -86,6 +86,7 @@ ptc-footer {
86
86
  align-content: flex-end;
87
87
  z-index: 50020;
88
88
  transform: translateY(-100%);
89
+ position: relative;
89
90
  }
90
91
  @media only screen and (min-width: 992px) {
91
92
  .wrapper .modal-popup {
@@ -101,6 +102,10 @@ ptc-footer {
101
102
  .wrapper .modal-popup.xl {
102
103
  max-width: 64.0625rem;
103
104
  }
105
+ .wrapper .modal-popup.fit-content {
106
+ max-width: -moz-fit-content;
107
+ max-width: fit-content;
108
+ }
104
109
  .wrapper .modal-popup.max {
105
110
  width: calc(100% - 4rem);
106
111
  max-width: 75rem;
@@ -3,33 +3,19 @@ import { createFocusTrap } from "focus-trap";
3
3
  export class PtcModal {
4
4
  constructor() {
5
5
  this.setReturnFocus = () => {
6
- var _a, _b;
7
- if (!this.lastFocusElement)
8
- return;
9
- // Try focusing the last focused element directly
10
- if (this.lastFocusElement.tabIndex === 0) {
6
+ if (this.lastFocusElement instanceof HTMLElement) {
11
7
  this.lastFocusElement.focus();
12
- return;
13
- }
14
- // If it's inside a shadow DOM, try finding a focusable child
15
- const shadowRoot = this.lastFocusElement.shadowRoot;
16
- if (shadowRoot) {
17
- const focusableElementList = shadowRoot.querySelectorAll('button, [tabindex]:not([tabindex="-1"])');
18
- if (focusableElementList) {
19
- let focusableElement = focusableElementList[focusableElementList.length - 1];
20
- focusableElement.focus();
21
- return;
22
- }
23
- }
24
- // As a fallback, try to find a focusable child within the element
25
- const fallbackElement = (_b = (_a = this.lastFocusElement).querySelector) === null || _b === void 0 ? void 0 : _b.call(_a, 'button, [tabindex]:not([tabindex="-1"])');
26
- if (fallbackElement instanceof HTMLElement) {
27
- fallbackElement.focus();
28
8
  }
29
9
  };
30
10
  this.handleKeyPress = (event) => {
31
11
  if (event.key === "Enter" || event.key === " " || event.key === "Tab") {
32
12
  this.openedByKeyboard = true;
13
+ // if (event.key === 'Enter') {
14
+ // if (!this.show) {
15
+ // const id= (event.target as HTMLElement).getAttribute('id');
16
+ // localStorage.setItem('modalId', id);
17
+ // }
18
+ // }
33
19
  }
34
20
  };
35
21
  this.handleMouseDown = () => {
@@ -62,7 +48,7 @@ export class PtcModal {
62
48
  }
63
49
  onShowChange(newValue) {
64
50
  if (newValue) {
65
- this.lastFocusElement = document.activeElement;
51
+ // this.lastFocusElement = document.activeElement as HTMLElement;
66
52
  this.fireOnOpened(this);
67
53
  }
68
54
  else {
@@ -159,7 +145,7 @@ export class PtcModal {
159
145
  }
160
146
  componentDidLoad() {
161
147
  if (this.show) {
162
- this.lastFocusElement = document.activeElement;
148
+ // this.lastFocusElement = document.activeElement as HTMLElement;
163
149
  this.fireOnOpened(this);
164
150
  }
165
151
  if (this.showHeaderFooter) {
@@ -240,6 +226,20 @@ export class PtcModal {
240
226
  if (this.trap) {
241
227
  this.trap.deactivate();
242
228
  }
229
+ // // Code for returning the focus to the element which opened the modal
230
+ // const modalId = localStorage.getItem('modalId');
231
+ // if (!modalId) return;
232
+ // const focusItem = document.querySelector<HTMLElement>(`#${modalId}`);
233
+ // if (!focusItem || focusItem.id !== modalId) return;
234
+ // // Focus the host element
235
+ // focusItem.focus();
236
+ // // If it's a PTC-BUTTON, try focusing the internal native <button>
237
+ // if (focusItem.tagName === 'PTC-BUTTON' && focusItem.shadowRoot) {
238
+ // const innerButton = focusItem.shadowRoot.querySelector<HTMLElement>('button');
239
+ // innerButton?.focus();
240
+ // }
241
+ // // Clean up localStorage
242
+ // localStorage.removeItem('modalId');
243
243
  } })));
244
244
  let bottomCloseBtnEle = (h("div", { tabindex: "0", class: "bottom-close", id: "modal-bottom-close", onClick: (e) => {
245
245
  e.preventDefault();
@@ -355,8 +355,8 @@ export class PtcModal {
355
355
  "type": "string",
356
356
  "mutable": true,
357
357
  "complexType": {
358
- "original": "| \"sm\"\r\n\t\t| \"md\"\r\n\t\t| \"lg\"\r\n\t\t| \"xl\"\r\n\t\t| \"max\"\r\n\t\t| \"sm-modal\"",
359
- "resolved": "\"lg\" | \"max\" | \"md\" | \"sm\" | \"sm-modal\" | \"xl\"",
358
+ "original": "| \"sm\"\r\n\t\t| \"md\"\r\n\t\t| \"lg\"\r\n\t\t| \"xl\"\r\n\t\t| \"fit-content\"\r\n\t\t| \"max\"\r\n\t\t| \"sm-modal\"",
359
+ "resolved": "\"fit-content\" | \"lg\" | \"max\" | \"md\" | \"sm\" | \"sm-modal\" | \"xl\"",
360
360
  "references": {}
361
361
  },
362
362
  "required": false,
@@ -144,7 +144,10 @@ export class PtcModalQuiz {
144
144
  render() {
145
145
  const ProgressDots = () => {
146
146
  return (h("div", { class: "dot-progress-bar" }, [...Array(this.totalQuestions).keys()].map((questionNumber) => {
147
- return (h("div", null, h("div", { class: `dot-progress-circle ${questionNumber === this.currentQuestion - 1 ? "active" : ""}` }), questionNumber <
147
+ return (h("div", null, h("div", { class: `dot-progress-circle ${questionNumber ===
148
+ this.currentQuestion - 1
149
+ ? "active"
150
+ : ""}` }), questionNumber <
148
151
  this.totalQuestions - 1 ? (h("div", { class: "dot-progress-dash" }, h("div", { class: "dashed-line" }))) : null));
149
152
  })));
150
153
  };
@@ -108,6 +108,9 @@ p.main {
108
108
  p.primary-grey {
109
109
  color: var(--color-gray-10);
110
110
  }
111
+ p.primary-green {
112
+ color: var(--color-green-06);
113
+ }
111
114
  p.gray-darker {
112
115
  color: var(--color-gray-11);
113
116
  }
@@ -196,8 +196,8 @@ export class PtcPara {
196
196
  "type": "string",
197
197
  "mutable": false,
198
198
  "complexType": {
199
- "original": "\"primary-grey\" | \"white\" | \"gray-darker\"",
200
- "resolved": "\"gray-darker\" | \"primary-grey\" | \"white\"",
199
+ "original": "| \"primary-grey\"\r\n\t\t| \"primary-green\"\r\n\t\t| \"white\"\r\n\t\t| \"gray-darker\"",
200
+ "resolved": "\"gray-darker\" | \"primary-green\" | \"primary-grey\" | \"white\"",
201
201
  "references": {}
202
202
  },
203
203
  "required": false,
@@ -61,7 +61,6 @@ export class PtcPicture {
61
61
  if (tempImg) {
62
62
  lazyLoadImages.observe(tempImg);
63
63
  }
64
- this.observer = lazyLoadImages;
65
64
  }
66
65
  else {
67
66
  // fall back to setTimeout for Safari and IE
@@ -96,22 +95,6 @@ export class PtcPicture {
96
95
  }
97
96
  }
98
97
  }
99
- //manually load image
100
- async LoadImage() {
101
- const image = this.el.shadowRoot.querySelector("img");
102
- if (!image) {
103
- return;
104
- }
105
- if (!image.src) {
106
- image.src = this.setResponsiveBg();
107
- image.onload = () => {
108
- image.removeAttribute("data-src");
109
- };
110
- }
111
- if (this.observer) {
112
- this.observer.unobserve(image);
113
- }
114
- }
115
98
  render() {
116
99
  const classMap = this.getCssClassMap();
117
100
  const classMapHost = this.getCssClassMapHost();
@@ -509,29 +492,6 @@ export class PtcPicture {
509
492
  "oldSrc": {}
510
493
  };
511
494
  }
512
- static get methods() {
513
- return {
514
- "LoadImage": {
515
- "complexType": {
516
- "signature": "() => Promise<void>",
517
- "parameters": [],
518
- "references": {
519
- "Promise": {
520
- "location": "global"
521
- },
522
- "HTMLImageElement": {
523
- "location": "global"
524
- }
525
- },
526
- "return": "Promise<void>"
527
- },
528
- "docs": {
529
- "text": "",
530
- "tags": []
531
- }
532
- }
533
- };
534
- }
535
495
  static get elementRef() { return "el"; }
536
496
  static get listeners() {
537
497
  return [{