@ptcwebops/ptcw-design 6.3.11 → 6.3.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 (215) hide show
  1. package/dist/cjs/{component-06dda623.js → component-6a178a16.js} +2643 -832
  2. package/dist/cjs/event-jumbotron-example.cjs.entry.js +3 -36
  3. package/dist/cjs/featured-list.cjs.entry.js +1 -1
  4. package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/modal-form-example.cjs.entry.js +94 -0
  7. package/dist/cjs/ptc-bio-card.cjs.entry.js +4 -2
  8. package/dist/cjs/ptc-card_2.cjs.entry.js +5 -10
  9. package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
  10. package/dist/cjs/ptc-close-icon_2.cjs.entry.js +28 -27
  11. package/dist/cjs/ptc-countdown.cjs.entry.js +17 -19
  12. package/dist/cjs/ptc-data-lookup.cjs.entry.js +1 -2
  13. package/dist/cjs/ptc-enhanced-product-listing-card.cjs.entry.js +11 -11
  14. package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
  15. package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +1 -1
  16. package/dist/cjs/{ptc-form-checkbox_2.cjs.entry.js → ptc-form-checkbox_4.cjs.entry.js} +789 -5
  17. package/dist/cjs/ptc-icon-list.cjs.entry.js +1 -1
  18. package/dist/cjs/ptc-jumbotron.cjs.entry.js +2 -3
  19. package/dist/cjs/ptc-mobile-select.cjs.entry.js +10 -1
  20. package/dist/cjs/ptc-office-locations.cjs.entry.js +2 -5
  21. package/dist/cjs/ptc-para.cjs.entry.js +1 -1
  22. package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
  23. package/dist/cjs/ptc-previous-url.cjs.entry.js +10 -2
  24. package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +11 -9
  25. package/dist/cjs/ptc-product-card.cjs.entry.js +1 -1
  26. package/dist/cjs/ptc-product-category.cjs.entry.js +1 -1
  27. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +1 -1
  28. package/dist/cjs/ptc-readmore-char.cjs.entry.js +1 -1
  29. package/dist/cjs/ptc-readmore-v3.cjs.entry.js +1 -1
  30. package/dist/cjs/ptc-tooltip-v2.cjs.entry.js +1 -1
  31. package/dist/cjs/ptc-value-led-layout.cjs.entry.js +1 -3
  32. package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +1 -1
  33. package/dist/cjs/ptc-white-paper.cjs.entry.js +10 -10
  34. package/dist/cjs/ptcw-design.cjs.js +1 -1
  35. package/dist/cjs/storefront-enhanced-product-list-example.cjs.entry.js +1 -1
  36. package/dist/collection/collection-manifest.json +1 -2
  37. package/dist/collection/components/icon-asset/media/designer-v6.0.6.svg +30 -2
  38. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +6 -6
  39. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +3 -3
  40. package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.css +4 -8
  41. package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.js +2 -35
  42. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +26 -0
  43. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +99 -0
  44. package/dist/collection/components/organism-bundles/storefront-enhanced-product-list-example/storefront-enhanced-product-list-example.css +19 -31
  45. package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +6 -6
  46. package/dist/collection/components/ptc-bio-card/ptc-bio-card.js +3 -1
  47. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +6 -6
  48. package/dist/collection/components/ptc-container/ptc-container.js +2 -2
  49. package/dist/collection/components/ptc-countdown/ptc-countdown.js +17 -19
  50. package/dist/collection/components/ptc-enhanced-product-listing-card/ptc-enhanced-product-listing-card.css +1 -29
  51. package/dist/collection/components/ptc-enhanced-product-listing-card/ptc-enhanced-product-listing-card.js +10 -45
  52. package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +6 -6
  53. package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +6 -6
  54. package/dist/collection/components/ptc-icon-list/ptc-icon-list.css +0 -45
  55. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +2 -2
  56. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +6 -24
  57. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +1 -20
  58. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +11 -2
  59. package/dist/collection/components/ptc-modal/ptc-modal.css +8 -4
  60. package/dist/collection/components/ptc-modal/ptc-modal.js +47 -28
  61. package/dist/collection/components/ptc-office-locations/ptc-office-locations.js +2 -5
  62. package/dist/collection/components/ptc-para/ptc-para.css +3 -0
  63. package/dist/collection/components/ptc-para/ptc-para.js +2 -2
  64. package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +6 -6
  65. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +0 -419
  66. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +4 -9
  67. package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +16 -0
  68. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +27 -1
  69. package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +11 -9
  70. package/dist/collection/components/ptc-product-card/ptc-product-card.css +6 -6
  71. package/dist/collection/components/ptc-product-category/ptc-product-category.css +6 -6
  72. package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +6 -6
  73. package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +6 -6
  74. package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +6 -6
  75. package/dist/collection/components/ptc-textfield/ptc-textfield.js +1 -1
  76. package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +6 -6
  77. package/dist/collection/components/ptc-value-led-layout/ptc-value-led-layout.js +1 -3
  78. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +6 -6
  79. package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +6 -6
  80. package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +9 -9
  81. package/dist/collection/stories/BackgroundImage.stories.js +42 -20
  82. package/dist/collection/stories/MobileSelect.stories.js +21 -11
  83. package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +45 -0
  84. package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +47 -0
  85. package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +157 -0
  86. package/dist/custom-elements/index.d.ts +6 -12
  87. package/dist/custom-elements/index.js +227 -293
  88. package/dist/esm/{component-274da230.js → component-80f298b4.js} +2592 -793
  89. package/dist/esm/event-jumbotron-example.entry.js +3 -36
  90. package/dist/esm/featured-list.entry.js +1 -1
  91. package/dist/esm/innovator-toggle-container.entry.js +1 -1
  92. package/dist/esm/loader.js +1 -1
  93. package/dist/esm/modal-form-example.entry.js +90 -0
  94. package/dist/esm/ptc-bio-card.entry.js +4 -2
  95. package/dist/esm/ptc-card_2.entry.js +5 -10
  96. package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
  97. package/dist/esm/ptc-close-icon_2.entry.js +28 -27
  98. package/dist/esm/ptc-countdown.entry.js +17 -19
  99. package/dist/esm/ptc-data-lookup.entry.js +1 -2
  100. package/dist/esm/ptc-enhanced-product-listing-card.entry.js +11 -11
  101. package/dist/esm/ptc-featured-list.entry.js +1 -1
  102. package/dist/esm/ptc-filter-level-theater.entry.js +1 -1
  103. package/dist/esm/{ptc-form-checkbox_2.entry.js → ptc-form-checkbox_4.entry.js} +786 -4
  104. package/dist/esm/ptc-icon-list.entry.js +1 -1
  105. package/dist/esm/ptc-jumbotron.entry.js +2 -3
  106. package/dist/esm/ptc-mobile-select.entry.js +10 -1
  107. package/dist/esm/ptc-office-locations.entry.js +2 -5
  108. package/dist/esm/ptc-para.entry.js +1 -1
  109. package/dist/esm/ptc-podcast-card.entry.js +1 -1
  110. package/dist/esm/ptc-previous-url.entry.js +10 -2
  111. package/dist/esm/ptc-pricing-packaging-table.entry.js +11 -9
  112. package/dist/esm/ptc-product-card.entry.js +1 -1
  113. package/dist/esm/ptc-product-category.entry.js +1 -1
  114. package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
  115. package/dist/esm/ptc-readmore-char.entry.js +1 -1
  116. package/dist/esm/ptc-readmore-v3.entry.js +1 -1
  117. package/dist/esm/ptc-tooltip-v2.entry.js +1 -1
  118. package/dist/esm/ptc-value-led-layout.entry.js +1 -3
  119. package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
  120. package/dist/esm/ptc-white-paper.entry.js +11 -11
  121. package/dist/esm/ptcw-design.js +1 -1
  122. package/dist/esm/storefront-enhanced-product-list-example.entry.js +1 -1
  123. package/dist/ptcw-design/media/designer-v6.0.6.svg +30 -2
  124. package/dist/ptcw-design/p-072a76d3.entry.js +1 -0
  125. package/dist/ptcw-design/{p-7fb155da.entry.js → p-072aa896.entry.js} +1 -1
  126. package/dist/ptcw-design/{p-a791c53a.entry.js → p-0b515839.entry.js} +1 -1
  127. package/dist/ptcw-design/p-0d223232.entry.js +1 -0
  128. package/dist/ptcw-design/p-0de4cd11.entry.js +1 -0
  129. package/dist/ptcw-design/{p-9f194554.entry.js → p-21aa746d.entry.js} +1 -1
  130. package/dist/ptcw-design/p-291072b4.entry.js +1 -0
  131. package/dist/ptcw-design/p-32f64f48.entry.js +1 -0
  132. package/dist/ptcw-design/{p-757954b2.entry.js → p-38b7ca02.entry.js} +1 -1
  133. package/dist/ptcw-design/{p-d089dc37.entry.js → p-3dd0ded9.entry.js} +1 -1
  134. package/dist/ptcw-design/p-42992202.entry.js +1 -0
  135. package/dist/ptcw-design/{p-4d8f6f46.entry.js → p-445329ed.entry.js} +1 -1
  136. package/dist/ptcw-design/p-52e6613f.entry.js +1 -0
  137. package/dist/ptcw-design/p-672a349f.js +336 -0
  138. package/dist/ptcw-design/p-67c248ec.entry.js +1 -0
  139. package/dist/ptcw-design/p-6f5fecae.entry.js +1 -0
  140. package/dist/ptcw-design/p-72825cf6.entry.js +1 -0
  141. package/dist/ptcw-design/p-75390f63.entry.js +1 -0
  142. package/dist/ptcw-design/p-799afee5.entry.js +1 -0
  143. package/dist/ptcw-design/{p-6aa9ed95.entry.js → p-867a808f.entry.js} +1 -1
  144. package/dist/ptcw-design/p-8eb89969.entry.js +1 -0
  145. package/dist/ptcw-design/p-94f99d2d.entry.js +1 -0
  146. package/dist/ptcw-design/p-9501995f.entry.js +1 -0
  147. package/dist/ptcw-design/p-ae50e218.entry.js +1 -0
  148. package/dist/ptcw-design/{p-008307a6.entry.js → p-b5094974.entry.js} +1 -1
  149. package/dist/ptcw-design/p-baff4d44.entry.js +1 -0
  150. package/dist/ptcw-design/p-bd6af63e.entry.js +1 -0
  151. package/dist/ptcw-design/p-d0581b07.entry.js +68 -0
  152. package/dist/ptcw-design/{p-18ac526f.entry.js → p-d73cc053.entry.js} +1 -1
  153. package/dist/ptcw-design/p-de960790.entry.js +1 -0
  154. package/dist/ptcw-design/p-debca892.entry.js +1 -0
  155. package/dist/ptcw-design/p-e6a272d9.entry.js +1 -0
  156. package/dist/ptcw-design/p-fe40421e.entry.js +1 -0
  157. package/dist/ptcw-design/ptcw-design.css +2 -2
  158. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  159. package/dist/types/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.d.ts +0 -2
  160. package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +25 -0
  161. package/dist/types/components/ptc-container/ptc-container.d.ts +1 -1
  162. package/dist/types/components/ptc-enhanced-product-listing-card/ptc-enhanced-product-listing-card.d.ts +0 -3
  163. package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +1 -1
  164. package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +0 -1
  165. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +1 -1
  166. package/dist/types/components/ptc-modal/ptc-modal.d.ts +3 -1
  167. package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
  168. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +2 -0
  169. package/dist/types/components/ptc-white-paper/ptc-white-paper.d.ts +1 -0
  170. package/dist/types/components.d.ts +27 -42
  171. package/package.json +1 -1
  172. package/readme.md +5 -1
  173. package/dist/cjs/component-5b5b6a98.js +0 -1819
  174. package/dist/cjs/ptc-icon-card-slider-example.cjs.entry.js +0 -82
  175. package/dist/cjs/ptc-multi-select_2.cjs.entry.js +0 -672
  176. package/dist/cjs/storefront-enhanced-product-list-alt-example.cjs.entry.js +0 -66
  177. package/dist/cjs/validation-messages-33a4f26b.js +0 -126
  178. package/dist/collection/components/organism-bundles/ptc-icon-card-slider-example/ptc-icon-card-slider-example.css +0 -1143
  179. package/dist/collection/components/organism-bundles/ptc-icon-card-slider-example/ptc-icon-card-slider-example.js +0 -77
  180. package/dist/collection/components/organism-bundles/storefront-enhanced-product-list-example/storefront-enhanced-product-list-alt-example.js +0 -63
  181. package/dist/esm/component-341e4eaa.js +0 -1802
  182. package/dist/esm/ptc-icon-card-slider-example.entry.js +0 -78
  183. package/dist/esm/ptc-multi-select_2.entry.js +0 -667
  184. package/dist/esm/storefront-enhanced-product-list-alt-example.entry.js +0 -62
  185. package/dist/esm/validation-messages-adbb6518.js +0 -124
  186. package/dist/ptcw-design/p-00e21489.entry.js +0 -1
  187. package/dist/ptcw-design/p-076efe50.entry.js +0 -68
  188. package/dist/ptcw-design/p-114d0de7.entry.js +0 -1
  189. package/dist/ptcw-design/p-15758793.entry.js +0 -1
  190. package/dist/ptcw-design/p-18a5a338.js +0 -1
  191. package/dist/ptcw-design/p-1ca8a5bf.entry.js +0 -1
  192. package/dist/ptcw-design/p-2aa19c11.entry.js +0 -1
  193. package/dist/ptcw-design/p-2b32297b.entry.js +0 -1
  194. package/dist/ptcw-design/p-38b782e8.entry.js +0 -1
  195. package/dist/ptcw-design/p-54f6e1a5.entry.js +0 -1
  196. package/dist/ptcw-design/p-593b8eff.entry.js +0 -1
  197. package/dist/ptcw-design/p-68ed2afe.entry.js +0 -1
  198. package/dist/ptcw-design/p-73a853fc.entry.js +0 -1
  199. package/dist/ptcw-design/p-752bba1c.entry.js +0 -1
  200. package/dist/ptcw-design/p-75431fa1.entry.js +0 -1
  201. package/dist/ptcw-design/p-a58698ca.entry.js +0 -1
  202. package/dist/ptcw-design/p-ab3d2934.entry.js +0 -1
  203. package/dist/ptcw-design/p-acdd9a1d.entry.js +0 -1
  204. package/dist/ptcw-design/p-ad821a01.entry.js +0 -1
  205. package/dist/ptcw-design/p-b89de835.entry.js +0 -1
  206. package/dist/ptcw-design/p-bab5bb88.entry.js +0 -1
  207. package/dist/ptcw-design/p-be533f0d.js +0 -134
  208. package/dist/ptcw-design/p-c1513c3f.js +0 -203
  209. package/dist/ptcw-design/p-c8f68292.entry.js +0 -1
  210. package/dist/ptcw-design/p-cc677723.entry.js +0 -1
  211. package/dist/ptcw-design/p-d66debb3.entry.js +0 -1
  212. package/dist/ptcw-design/p-e5369c4d.entry.js +0 -1
  213. package/dist/ptcw-design/p-f9256e3d.entry.js +0 -1
  214. package/dist/types/components/organism-bundles/ptc-icon-card-slider-example/ptc-icon-card-slider-example.d.ts +0 -10
  215. package/dist/types/components/organism-bundles/storefront-enhanced-product-list-example/storefront-enhanced-product-list-alt-example.d.ts +0 -10
@@ -72,10 +72,6 @@ ptc-link, ptc-square-card,
72
72
  background: #FFF;
73
73
  box-shadow: var(--ptc-shadow-small);
74
74
  }
75
- :host .card.alternate {
76
- padding: 40px 32px;
77
- min-width: 288px;
78
- }
79
75
  :host .ribbon {
80
76
  position: absolute;
81
77
  top: 32px;
@@ -101,9 +97,6 @@ ptc-link, ptc-square-card,
101
97
  :host .flex-start {
102
98
  padding-top: 48px;
103
99
  }
104
- :host .alternate .flex-start {
105
- padding-top: 0px;
106
- }
107
100
  :host .pricing {
108
101
  display: flex;
109
102
  gap: 4px;
@@ -126,29 +119,8 @@ ptc-link, ptc-square-card,
126
119
  font-weight: var(--ptc-font-weight-extrabold);
127
120
  line-height: 35px;
128
121
  }
129
- @media only screen and (min-width: 480px) {
130
- :host .card.standard {
131
- width: 348px;
132
- }
133
- }
134
- @media only screen and (min-width: 768px) {
135
- :host .card:not(.alternate) {
136
- width: 100%;
137
- }
138
- }
139
- @media only screen and (min-width: 992px) {
140
- :host .card.alternate {
141
- width: 100%;
142
- }
143
- }
144
-
145
- @media only screen and (min-width: 480px) {
146
- :host(.two-card) .card.alternate {
147
- width: 348px;
148
- }
149
- }
150
122
  @media only screen and (min-width: 768px) {
151
- :host(.two-card) .card.alternate {
123
+ :host .card {
152
124
  width: 100%;
153
125
  }
154
126
  }
@@ -1,4 +1,13 @@
1
1
  import { Host, h } from '@stencil/core';
2
+ let iconListTextStyle = `:host .ptc-icon-list .ptc-content-simple {
3
+ color: #323B42;
4
+ font-family: Raleway;
5
+ font-size: 16px;
6
+ font-style: normal;
7
+ font-weight: 600;
8
+ line-height: 20px;
9
+ padding-top: 0;
10
+ }`;
2
11
  export class PtcEnhancedProductListingCard {
3
12
  constructor() {
4
13
  this.ctaFocussedHandler = () => {
@@ -30,8 +39,6 @@ export class PtcEnhancedProductListingCard {
30
39
  }
31
40
  };
32
41
  this.cardIndex = 0;
33
- this.theme = 'standard';
34
- this.disablePriceLabel = undefined;
35
42
  this.featureCallouts = [];
36
43
  this.cta = {
37
44
  href: "",
@@ -41,14 +48,7 @@ export class PtcEnhancedProductListingCard {
41
48
  };
42
49
  }
43
50
  render() {
44
- const classMap = this.getCssClassMap();
45
- return (h(Host, null, h("div", { class: classMap }, this.theme == 'standard' && h("div", { class: "ribbon" }, h("svg", { class: "ribbon-wrap-around", xmlns: "http://www.w3.org/2000/svg", width: "4", height: "4", viewBox: "0 0 4 4", fill: "none" }, h("path", { d: "M4 3.02124L0 0.0212402H4V3.02124Z", fill: "#08283E" })), h("slot", { name: "ribbon-text" })), h("div", { class: "flex-start" }, h("ptc-title", { "seo-compatibility-mode": true, type: "h3", "text-align": "left", "title-size": "large", "title-color": "gray", upperline: "no-upperline", "title-display": "block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7", "is-plm-hub": "false" }, h("h3", null, h("slot", { name: "heading" }))), h("ptc-para", { "seo-compatibility-mode": true, "font-size": "x-small", "font-weight": "w-4", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-bottom-5" }, h("p", null, h("slot", { name: "description" }))), h("div", null, (this.featureCallouts.length > 0) && this.featureCallouts.map((feature, idx) => (h("ptc-icon-list", { "is-last-item": (idx === this.featureCallouts.length - 1) ? "true" : "false", "no-bottom-space": (idx === this.featureCallouts.length - 1) ? "true" : "false", "list-content": feature, "list-type": "feature-callout-list" }, h("icon-asset", { slot: "icon", type: "ptc", size: "x-small", name: "checkmark", color: "ptc-green" })))))), h("div", { class: "flex-end" }, h("div", { class: "pricing" }, !this.disablePriceLabel && h("span", { class: "pricing-label" }, h("slot", { name: "pricing-label" })), h("span", { class: "pricing-value" }, h("slot", { name: "pricing-value" }))), h("ptc-button", { color: "ptc-quaternary", "link-href": this.cta.href, "button-title": this.cta.title || this.cta.text, target: this.cta.target, type: "button", "tracker-id": `eplc${this.cardIndex}-cta` }, this.cta.text)))));
46
- }
47
- getCssClassMap() {
48
- return {
49
- [this.theme]: true,
50
- ['card']: true
51
- };
51
+ return (h(Host, null, h("div", { class: "card" }, h("div", { class: "ribbon" }, h("svg", { class: "ribbon-wrap-around", xmlns: "http://www.w3.org/2000/svg", width: "4", height: "4", viewBox: "0 0 4 4", fill: "none" }, h("path", { d: "M4 3.02124L0 0.0212402H4V3.02124Z", fill: "#08283E" })), h("slot", { name: "ribbon-text" })), h("div", { class: "flex-start" }, h("ptc-title", { "seo-compatibility-mode": true, type: "h3", "text-align": "left", "title-size": "large", "title-color": "gray", upperline: "no-upperline", "title-display": "block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7", "is-plm-hub": "false" }, h("h3", null, h("slot", { name: "heading" }))), h("ptc-para", { "seo-compatibility-mode": true, "font-size": "x-small", "font-weight": "w-4", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-bottom-5" }, h("p", null, h("slot", { name: "description" }))), h("div", null, (this.featureCallouts.length > 0) && this.featureCallouts.map((feature, idx) => (h("ptc-icon-list", { "is-last-item": (idx === this.featureCallouts.length - 1) ? "true" : "false", "no-bottom-space": (idx === this.featureCallouts.length - 1) ? "true" : "false", "list-content": feature, styles: iconListTextStyle, "list-type": "simple-icon-list" }, h("icon-asset", { slot: "icon", type: "ptc", size: "x-small", name: "checkmark", color: "ptc-green" })))))), h("div", { class: "flex-end" }, h("div", { class: "pricing" }, h("span", { class: "pricing-label" }, h("slot", { name: "pricing-label" })), h("span", { class: "pricing-value" }, h("slot", { name: "pricing-value" }))), h("ptc-button", { color: "ptc-quaternary", "link-href": this.cta.href, "link-title": this.cta.title || this.cta.text, target: this.cta.target, type: "button", "tracker-id": `eplc${this.cardIndex}-cta` }, this.cta.text)))));
52
52
  }
53
53
  static get is() { return "ptc-enhanced-product-listing-card"; }
54
54
  static get encapsulation() { return "shadow"; }
@@ -81,41 +81,6 @@ export class PtcEnhancedProductListingCard {
81
81
  "attribute": "card-index",
82
82
  "reflect": false,
83
83
  "defaultValue": "0"
84
- },
85
- "theme": {
86
- "type": "string",
87
- "mutable": false,
88
- "complexType": {
89
- "original": "'standard' | 'alternate'",
90
- "resolved": "\"alternate\" | \"standard\"",
91
- "references": {}
92
- },
93
- "required": false,
94
- "optional": false,
95
- "docs": {
96
- "tags": [],
97
- "text": ""
98
- },
99
- "attribute": "theme",
100
- "reflect": false,
101
- "defaultValue": "'standard'"
102
- },
103
- "disablePriceLabel": {
104
- "type": "boolean",
105
- "mutable": false,
106
- "complexType": {
107
- "original": "boolean",
108
- "resolved": "boolean",
109
- "references": {}
110
- },
111
- "required": false,
112
- "optional": false,
113
- "docs": {
114
- "tags": [],
115
- "text": ""
116
- },
117
- "attribute": "disable-price-label",
118
- "reflect": false
119
84
  }
120
85
  };
121
86
  }
@@ -82,26 +82,26 @@ a:focus-visible {
82
82
  border-radius: var(--ptc-border-radius-standard);
83
83
  }
84
84
 
85
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .background-plm-grey a.light-link {
85
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .background-plm-grey a.light-link {
86
86
  color: var(--color-blue-04);
87
87
  margin: -2px;
88
88
  border: 2px solid transparent;
89
89
  }
90
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .background-plm-grey a.light-link:visited {
90
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .background-plm-grey a.light-link:visited {
91
91
  color: var(--color-blue-06);
92
92
  }
93
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
93
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
94
94
  transition: none;
95
95
  color: var(--color-blue-07);
96
96
  }
97
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
97
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
98
98
  color: var(--color-blue-05);
99
99
  }
100
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .background-plm-grey a.light-link.disabled {
100
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .background-plm-grey a.light-link.disabled {
101
101
  color: var(--color-gray-04) !important;
102
102
  cursor: not-allowed;
103
103
  }
104
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .background-plm-grey a.light-link:focus-visible {
104
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .background-plm-grey a.light-link:focus-visible {
105
105
  border-radius: var(--ptc-border-radius-standard);
106
106
  border: 2px solid white;
107
107
  outline: 5px solid var(--keyboard-nav-outline);
@@ -139,26 +139,26 @@ a:focus-visible {
139
139
  border-radius: var(--ptc-border-radius-standard);
140
140
  }
141
141
 
142
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .background-plm-grey a.light-link {
142
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .background-plm-grey a.light-link {
143
143
  color: var(--color-blue-04);
144
144
  margin: -2px;
145
145
  border: 2px solid transparent;
146
146
  }
147
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .background-plm-grey a.light-link:visited {
147
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .background-plm-grey a.light-link:visited {
148
148
  color: var(--color-blue-06);
149
149
  }
150
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
150
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
151
151
  transition: none;
152
152
  color: var(--color-blue-07);
153
153
  }
154
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
154
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
155
155
  color: var(--color-blue-05);
156
156
  }
157
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .background-plm-grey a.light-link.disabled {
157
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .background-plm-grey a.light-link.disabled {
158
158
  color: var(--color-gray-04) !important;
159
159
  cursor: not-allowed;
160
160
  }
161
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .background-plm-grey a.light-link:focus-visible {
161
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .background-plm-grey a.light-link:focus-visible {
162
162
  border-radius: var(--ptc-border-radius-standard);
163
163
  border: 2px solid white;
164
164
  outline: 5px solid var(--keyboard-nav-outline);
@@ -132,49 +132,4 @@ ptc-link, ptc-square-card,
132
132
  :host(.last-item.no-bottom-space) {
133
133
  padding-bottom: 0;
134
134
  margin-bottom: 0;
135
- }
136
-
137
- :host(.feature-callout-list) {
138
- padding-bottom: var(--ptc-element-spacing-04);
139
- }
140
- :host(.feature-callout-list) .ptc-icon-list .ptc-content-simple {
141
- margin: 0 0 0 var(--ptc-element-spacing-03);
142
- font-size: var(--ptc-font-size-x-small);
143
- font-stretch: normal;
144
- font-style: normal;
145
- letter-spacing: normal;
146
- text-align: left;
147
- color: var(--color-gray-10);
148
- line-height: var(--ptc-line-height-densest);
149
- padding-top: 0;
150
- font-weight: var(--ptc-font-weight-semibold);
151
- word-break: break-word;
152
- hyphens: manual;
153
- -webkit-hyphens: manual;
154
- -moz-hyphens: manual;
155
- -ms-hyphens: manual;
156
- }
157
- @supports (hyphenate-limit-chars: 12 3 3) {
158
- :host(.feature-callout-list) .ptc-icon-list .ptc-content-simple {
159
- hyphens: auto;
160
- -webkit-hyphenate-limit-before: 3;
161
- /* For Safari */
162
- -webkit-hyphenate-limit-after: 3;
163
- /* For Safari */
164
- hyphenate-limit-chars: 12 3 3;
165
- hyphenate-limit-lines: 2;
166
- hyphenate-limit-last: always;
167
- hyphenate-limit-zone: 6%;
168
- -webkit-hyphens: auto;
169
- -webkit-hyphenate-limit-before: 3;
170
- -webkit-hyphenate-limit-after: 3;
171
- -webkit-hyphenate-limit-chars: 12 3 3;
172
- -webkit-hyphenate-limit-lines: 2;
173
- -moz-hyphens: auto;
174
- -moz-hyphenate-limit-chars: 12 3 3;
175
- -moz-hyphenate-limit-lines: 2;
176
- -ms-hyphens: auto;
177
- -ms-hyphenate-limit-chars: 12 3 3;
178
- -ms-hyphenate-limit-lines: 2;
179
- }
180
135
  }
@@ -39,8 +39,8 @@ export class PtcIconList {
39
39
  "type": "string",
40
40
  "mutable": false,
41
41
  "complexType": {
42
- "original": "'simple-icon-list' | 'stat-icon-list' | 'icon-top-align-list' | 'feature-callout-list'",
43
- "resolved": "\"feature-callout-list\" | \"icon-top-align-list\" | \"simple-icon-list\" | \"stat-icon-list\"",
42
+ "original": "'simple-icon-list' | 'stat-icon-list' | 'icon-top-align-list'",
43
+ "resolved": "\"icon-top-align-list\" | \"simple-icon-list\" | \"stat-icon-list\"",
44
44
  "references": {}
45
45
  },
46
46
  "required": false,
@@ -1198,26 +1198,26 @@ a:focus-visible {
1198
1198
  border-radius: var(--ptc-border-radius-standard);
1199
1199
  }
1200
1200
 
1201
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a), .background-plm-grey a.light-link {
1201
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .light-links a.light-link, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .background-grey-10 a.light-link, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a), .background-plm-grey a.light-link {
1202
1202
  color: var(--color-blue-04);
1203
1203
  margin: -2px;
1204
1204
  border: 2px solid transparent;
1205
1205
  }
1206
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited, .background-plm-grey a.light-link:visited {
1206
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .light-links a.light-link:visited, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .background-grey-10 a.light-link:visited, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited, .background-plm-grey a.light-link:visited {
1207
1207
  color: var(--color-blue-06);
1208
1208
  }
1209
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
1209
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .light-links a.light-link:active, .light-links a.light-link:visited:active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .background-grey-10 a.light-link:active, .background-grey-10 a.light-link:visited:active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):active, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:active, .background-plm-grey a.light-link:active, .background-plm-grey a.light-link:visited:active {
1210
1210
  transition: none;
1211
1211
  color: var(--color-blue-07);
1212
1212
  }
1213
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
1213
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .light-links a.light-link:hover, .light-links a.light-link:visited:hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .background-grey-10 a.light-link:hover, .background-grey-10 a.light-link:visited:hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):hover, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):visited:hover, .background-plm-grey a.light-link:hover, .background-plm-grey a.light-link:visited:hover {
1214
1214
  color: var(--color-blue-05);
1215
1215
  }
1216
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a).disabled, .background-plm-grey a.light-link.disabled {
1216
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .light-links a.light-link.disabled, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .background-grey-10 a.light-link.disabled, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a).disabled, .background-plm-grey a.light-link.disabled {
1217
1217
  color: var(--color-gray-04) !important;
1218
1218
  cursor: not-allowed;
1219
1219
  }
1220
- .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .vjs-social-share-links a):focus-visible, .background-plm-grey a.light-link:focus-visible {
1220
+ .light-links a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .light-links a.light-link:focus-visible, .background-grey-10 a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .background-grey-10 a.light-link:focus-visible, .background-plm-grey a:not(.hero-footer-form-wrapper a, ptc-modal inline-form a, .podcast-cta-section a, .vjs-social-share-links a):focus-visible, .background-plm-grey a.light-link:focus-visible {
1221
1221
  border-radius: var(--ptc-border-radius-standard);
1222
1222
  border: 2px solid white;
1223
1223
  outline: 5px solid var(--keyboard-nav-outline);
@@ -1303,20 +1303,6 @@ a:focus-visible {
1303
1303
  z-index: 1;
1304
1304
  }
1305
1305
 
1306
- .logo-frame {
1307
- background-color: transparent;
1308
- margin-top: 24px;
1309
- display: flex;
1310
- width: 152px;
1311
- height: max-content;
1312
- }
1313
- .logo-frame img {
1314
- box-sizing: border-box;
1315
- max-width: 100%;
1316
- height: 100%;
1317
- max-height: 64.02px;
1318
- }
1319
-
1320
1306
  .hp-adjustments {
1321
1307
  background-color: var(--color-black);
1322
1308
  height: auto;
@@ -1539,10 +1525,6 @@ a:focus-visible {
1539
1525
  margin-bottom: 0;
1540
1526
  margin-top: 20px;
1541
1527
  }
1542
- :host(.text-jumbotron) .parent .logo-frame {
1543
- justify-self: center;
1544
- justify-content: center;
1545
- }
1546
1528
 
1547
1529
  :host(.png-jumbotron) .desktop-media-image,
1548
1530
  :host(.png-jumbotron) .mobile-media-image {
@@ -28,7 +28,6 @@ export class PtcJumbotron {
28
28
  this.blogAuthorQueryHref = "";
29
29
  this.blogAuthorQueryTarget = "";
30
30
  this.hasCountdown = false;
31
- this.logo = "";
32
31
  this.styles = undefined;
33
32
  this.defer = undefined;
34
33
  this.hasCtaSlot = undefined;
@@ -70,7 +69,7 @@ export class PtcJumbotron {
70
69
  default:
71
70
  mediaElement = h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" });
72
71
  }
73
- return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("div", { class: { 'parent': true, 'light-links': this.jumbotronType === 'dark' || this.jumbotronType === 'dark-video', 'hp-adjustments': this.isHomepage, 'transitioning': this.isTransitioning } }, h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), h("div", { class: "div2 content-container" }, h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), h("div", { class: { "ptc-container": true, "content-layout": true, 'hp-container': this.isHomepage, 'blog-container': (this.jumbotronType === "blog") } }, h("max-width-container", { "max-width-p": "60", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign, styles: ":host{z-index: 999}" }, h("slot", { name: "breadcrumb" }), !!this.logo && h("div", { class: "logo-frame" }, h("img", { alt: "Logo", src: this.logo })), h("span", { class: "main-content-items" }, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("slot", { name: "main-title" }), h("slot", { name: "hp-sub-title" }), (this.jumbotronType !== 'text' || (this.jumbotronType === 'text' && this.subTitle)) && (!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' && this.isMobile ? 'x-small' : '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' ? 'center' : '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.blogAuthorImageAlt, src: this.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.blogAuthorQueryHref, target: this.blogAuthorQueryTarget, "aria-label": "Other blogs by author" }, this.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 && 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)))));
72
+ return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("div", { class: { 'parent': true, 'light-links': this.jumbotronType === 'dark' || this.jumbotronType === 'dark-video', 'hp-adjustments': this.isHomepage, 'transitioning': this.isTransitioning } }, h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), h("div", { class: "div2 content-container" }, h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), h("div", { class: { "ptc-container": true, "content-layout": true, 'hp-container': this.isHomepage, 'blog-container': (this.jumbotronType === "blog") } }, h("max-width-container", { "max-width-p": "60", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign, styles: ":host{z-index: 999}" }, h("slot", { name: "breadcrumb" }), h("span", { class: "main-content-items" }, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("slot", { name: "main-title" }), h("slot", { name: "hp-sub-title" }), (this.jumbotronType !== 'text' || (this.jumbotronType === 'text' && this.subTitle)) && (!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' && this.isMobile ? 'x-small' : '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' ? 'center' : '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.blogAuthorImageAlt, src: this.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.blogAuthorQueryHref, target: this.blogAuthorQueryTarget, "aria-label": "Other blogs by author" }, this.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 && 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)))));
74
73
  }
75
74
  getCssClassMap() {
76
75
  return {
@@ -556,24 +555,6 @@ export class PtcJumbotron {
556
555
  "reflect": false,
557
556
  "defaultValue": "false"
558
557
  },
559
- "logo": {
560
- "type": "string",
561
- "mutable": false,
562
- "complexType": {
563
- "original": "string",
564
- "resolved": "string",
565
- "references": {}
566
- },
567
- "required": false,
568
- "optional": true,
569
- "docs": {
570
- "tags": [],
571
- "text": ""
572
- },
573
- "attribute": "logo",
574
- "reflect": false,
575
- "defaultValue": "\"\""
576
- },
577
558
  "styles": {
578
559
  "type": "string",
579
560
  "mutable": false,
@@ -50,7 +50,7 @@ export class PtcMobileSelect {
50
50
  let mySelect = new MobileSelect({
51
51
  trigger: `#${this.triggerName}`,
52
52
  title: `${this.listTitle ? this.listTitle : ''}`,
53
- wheels: this.wheelData ? [{ data: this.wheelData }] : [{ data: ['test1', 'test2', 'test3'] }],
53
+ wheels: this.wheelData ? [{ data: this.wheelData }] : [{ data: ['test1', 'test2'] }],
54
54
  position: [0],
55
55
  ensureBtnText: this.ensureBtnText,
56
56
  cancelBtnText: this.cancelBtnText,
@@ -59,6 +59,13 @@ export class PtcMobileSelect {
59
59
  titleColor: 'var(--color-gray-12)',
60
60
  onShow: function (_1, _2, context) {
61
61
  if (that.selectedId) {
62
+ /*let liEle = context.mobileSelect.querySelectorAll('[data-id]'); // document.querySelectorAll('.selectContainer li');
63
+ liEle.forEach((currentValue, currentIndex) => {
64
+ if (currentValue.getAttribute('data-id') == currentId) {
65
+ storeIndex = currentIndex;
66
+ return;
67
+ }
68
+ });*/
62
69
  try {
63
70
  const item = that.getMobileSelectedItem(context);
64
71
  context.locatePosition(0, item.index);
@@ -69,6 +76,7 @@ export class PtcMobileSelect {
69
76
  console.log(error);
70
77
  // debugger
71
78
  }
79
+ //e.locatePosition(0, storeIndex);
72
80
  }
73
81
  else {
74
82
  return;
@@ -91,6 +99,7 @@ export class PtcMobileSelect {
91
99
  context.setTriggerInnerText(selectedItem.value);
92
100
  context.show();
93
101
  }
102
+ //console.log('href: ' + data[0].id + '; indexArr: ' + indexArr);
94
103
  }
95
104
  }.bind(this),
96
105
  });
@@ -168,7 +177,7 @@ export class PtcMobileSelect {
168
177
  "optional": false,
169
178
  "docs": {
170
179
  "tags": [],
171
- "text": "Wheel Data (Mandatory)\r\neg: data: [{ id: \"1\", value: \"English\" }],"
180
+ "text": "Wheel Data (Mandatory)\r\neg: data: [{ id: \"1\", value: \"\u9644\u8FD1\" }],"
172
181
  }
173
182
  },
174
183
  "selectedId": {
@@ -82,6 +82,7 @@ ptc-link, ptc-square-card,
82
82
  align-content: flex-end;
83
83
  z-index: 50020;
84
84
  transform: translateY(-100%);
85
+ position: relative;
85
86
  }
86
87
  @media only screen and (min-width: 992px) {
87
88
  .wrapper .modal-popup {
@@ -97,6 +98,9 @@ ptc-link, ptc-square-card,
97
98
  .wrapper .modal-popup.xl {
98
99
  max-width: 64.0625rem;
99
100
  }
101
+ .wrapper .modal-popup.fit-content {
102
+ max-width: fit-content;
103
+ }
100
104
  .wrapper .modal-popup.max {
101
105
  width: calc(100% - 4rem);
102
106
  max-width: 75rem;
@@ -481,10 +485,10 @@ ptc-link, ptc-square-card,
481
485
  text-decoration-line: underline;
482
486
  line-height: var(--ptc-line-height-densest);
483
487
  }
484
- :host .wrapper .bottom-close span:hover {
485
- color: var(--color-blue-08);
486
- }
487
- :host .wrapper .bottom-close:focus-visible {
488
+ :host .wrapper .bottom-close span:focus-visible {
488
489
  border-radius: var(--ptc-border-radius-standard);
489
490
  outline: 5px solid var(--keyboard-nav-outline);
491
+ }
492
+ :host .wrapper .bottom-close span:hover {
493
+ color: var(--color-blue-08);
490
494
  }
@@ -3,33 +3,37 @@ 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
8
  }
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;
9
+ };
10
+ //change it with @Watch
11
+ // componentDidUpdate() {
12
+ // if (this.show) {
13
+ // this.lastFocusElement = document.activeElement as HTMLElement;
14
+ // this.fireOnOpened(this);
15
+ // } else {
16
+ // this.fireOnClosed(this);
17
+ // }
18
+ // }
19
+ this.trackLastFocusedElement = (event) => {
20
+ if (event.key === "Enter") {
21
+ let activeElement = document.activeElement;
22
+ // Traverse shadow DOM to get the innermost focused element
23
+ while (activeElement === null || activeElement === void 0 ? void 0 : activeElement.shadowRoot) {
24
+ activeElement = activeElement.shadowRoot.activeElement;
25
+ }
26
+ if (activeElement instanceof HTMLElement) {
27
+ this.lastFocusElement = activeElement;
22
28
  }
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
29
  }
29
30
  };
30
31
  this.handleKeyPress = (event) => {
31
32
  if (event.key === 'Enter' || event.key === ' ' || event.key === 'Tab') {
32
33
  this.openedByKeyboard = true;
34
+ if (event.key === 'Enter') {
35
+ this.trackLastFocusedElement(event);
36
+ }
33
37
  }
34
38
  };
35
39
  this.handleMouseDown = () => {
@@ -56,12 +60,13 @@ export class PtcModal {
56
60
  this.headerOnlyText1 = undefined;
57
61
  this.headerOnlyText2 = undefined;
58
62
  this.bottomCloseBtn = undefined;
63
+ this.initialFocus = true;
59
64
  this.openedByKeyboard = false;
60
65
  this.bodyOverflowSetting = undefined;
61
66
  }
62
67
  onShowChange(newValue) {
63
68
  if (newValue) {
64
- this.lastFocusElement = document.activeElement;
69
+ // this.lastFocusElement = document.activeElement as HTMLElement;
65
70
  this.fireOnOpened(this);
66
71
  }
67
72
  else {
@@ -156,7 +161,7 @@ export class PtcModal {
156
161
  }
157
162
  componentDidLoad() {
158
163
  if (this.show) {
159
- this.lastFocusElement = document.activeElement;
164
+ // this.lastFocusElement = document.activeElement as HTMLElement;
160
165
  this.fireOnOpened(this);
161
166
  }
162
167
  if (this.showHeaderFooter) {
@@ -228,16 +233,12 @@ export class PtcModal {
228
233
  this.trap.deactivate();
229
234
  }
230
235
  } })));
231
- let bottomCloseBtnEle = (h("div", { tabindex: "0", class: "bottom-close", id: "modal-bottom-close", onClick: e => {
236
+ let bottomCloseBtnEle = (h("div", { class: "bottom-close", id: "modal-bottom-close", onClick: e => {
232
237
  e.preventDefault();
233
238
  this.close();
234
239
  }, onKeyPress: e => {
235
240
  e.preventDefault();
236
241
  this.close();
237
- this.setReturnFocus();
238
- if (this.trap) {
239
- this.trap.deactivate();
240
- }
241
242
  } }, h("span", null, this.bottomCloseBtn)));
242
243
  if (this.iframeUrl) {
243
244
  content = h("iframe", { src: this.iframeUrl, frameBorder: 0, allowFullScreen: false, height: '100%', width: '100%', scrolling: "no", onLoad: this.resizeIframe });
@@ -332,8 +333,8 @@ export class PtcModal {
332
333
  "type": "string",
333
334
  "mutable": true,
334
335
  "complexType": {
335
- "original": "'sm' | 'md' | 'lg' | 'xl' | 'max' | 'sm-modal'",
336
- "resolved": "\"lg\" | \"max\" | \"md\" | \"sm\" | \"sm-modal\" | \"xl\"",
336
+ "original": "'sm' | 'md' | 'lg' | 'xl' | 'fit-content' | 'max' | 'sm-modal'",
337
+ "resolved": "\"fit-content\" | \"lg\" | \"max\" | \"md\" | \"sm\" | \"sm-modal\" | \"xl\"",
337
338
  "references": {}
338
339
  },
339
340
  "required": false,
@@ -663,6 +664,24 @@ export class PtcModal {
663
664
  },
664
665
  "attribute": "bottom-close-btn",
665
666
  "reflect": false
667
+ },
668
+ "initialFocus": {
669
+ "type": "boolean",
670
+ "mutable": false,
671
+ "complexType": {
672
+ "original": "boolean",
673
+ "resolved": "boolean",
674
+ "references": {}
675
+ },
676
+ "required": false,
677
+ "optional": true,
678
+ "docs": {
679
+ "tags": [],
680
+ "text": ""
681
+ },
682
+ "attribute": "initial-focus",
683
+ "reflect": false,
684
+ "defaultValue": "true"
666
685
  }
667
686
  };
668
687
  }