@ptcwebops/ptcw-design 4.5.9 → 4.6.1

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 (130) hide show
  1. package/dist/cjs/blogs-search-section.cjs.entry.js +190 -0
  2. package/dist/cjs/homepage-clickable-tab.cjs.entry.js +2 -2
  3. package/dist/cjs/homepage-jumbotron.cjs.entry.js +118 -0
  4. package/dist/cjs/homepage-toggled-content.cjs.entry.js +91 -3
  5. package/dist/cjs/icon-asset.cjs.entry.js +53 -0
  6. package/dist/cjs/interfaces-574e6df7.js +15 -0
  7. package/dist/cjs/jumbotron-sub-menu.cjs.entry.js +47 -0
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/max-width-container.cjs.entry.js +54 -0
  10. package/dist/cjs/ptc-background-video.cjs.entry.js +70 -0
  11. package/dist/cjs/ptc-button.cjs.entry.js +79 -0
  12. package/dist/cjs/ptc-card_2.cjs.entry.js +30 -48
  13. package/dist/cjs/ptc-date.cjs.entry.js +61 -0
  14. package/dist/cjs/{ptc-pagenation.cjs.entry.js → ptc-filter-tag_2.cjs.entry.js} +63 -0
  15. package/dist/cjs/ptc-img.cjs.entry.js +133 -0
  16. package/dist/cjs/ptc-info-tile.cjs.entry.js +26 -0
  17. package/dist/cjs/ptc-jumbotron.cjs.entry.js +127 -0
  18. package/dist/cjs/ptc-para.cjs.entry.js +70 -0
  19. package/dist/cjs/ptc-picture.cjs.entry.js +163 -0
  20. package/dist/cjs/ptc-readmore.cjs.entry.js +1 -1
  21. package/dist/cjs/ptc-spacer.cjs.entry.js +38 -0
  22. package/dist/cjs/ptc-tooltip.cjs.entry.js +107 -0
  23. package/dist/cjs/ptcw-design.cjs.js +1 -1
  24. package/dist/collection/collection-manifest.json +1 -0
  25. package/dist/collection/components/homepage-clickable-tab/homepage-clickable-tab.css +9 -9
  26. package/dist/collection/components/homepage-clickable-tab/homepage-clickable-tab.js +1 -1
  27. package/dist/collection/components/organism-bundles/blogs-search-section/blogs-search-section.css +100 -0
  28. package/dist/collection/components/organism-bundles/blogs-search-section/blogs-search-section.js +286 -0
  29. package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.css +38 -18
  30. package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.js +8 -5
  31. package/dist/collection/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.css +128 -16
  32. package/dist/collection/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.js +95 -3
  33. package/dist/collection/components/ptc-card/ptc-card.js +5 -4
  34. package/dist/collection/components/ptc-info-tile/ptc-info-tile.css +5 -1
  35. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +19 -1
  36. package/dist/collection/components/ptc-readmore/ptc-readmore.js +1 -1
  37. package/dist/custom-elements/index.d.ts +6 -0
  38. package/dist/custom-elements/index.js +301 -21
  39. package/dist/esm/blogs-search-section.entry.js +186 -0
  40. package/dist/esm/homepage-clickable-tab.entry.js +2 -2
  41. package/dist/esm/homepage-jumbotron.entry.js +114 -0
  42. package/dist/esm/homepage-toggled-content.entry.js +91 -3
  43. package/dist/esm/icon-asset.entry.js +49 -0
  44. package/dist/esm/interfaces-4caedd26.js +12 -0
  45. package/dist/esm/jumbotron-sub-menu.entry.js +43 -0
  46. package/dist/esm/loader.js +1 -1
  47. package/dist/esm/max-width-container.entry.js +50 -0
  48. package/dist/esm/most-popular-news.entry.js +1 -1
  49. package/dist/esm/my-component.entry.js +1 -1
  50. package/dist/esm/ptc-background-video.entry.js +66 -0
  51. package/dist/esm/ptc-button.entry.js +75 -0
  52. package/dist/esm/ptc-card_2.entry.js +31 -49
  53. package/dist/esm/ptc-collapse-list.entry.js +1 -1
  54. package/dist/esm/ptc-date.entry.js +57 -0
  55. package/dist/esm/{ptc-pagenation.entry.js → ptc-filter-tag_2.entry.js} +64 -2
  56. package/dist/esm/ptc-form-checkbox_2.entry.js +1 -1
  57. package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
  58. package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
  59. package/dist/esm/ptc-img.entry.js +129 -0
  60. package/dist/esm/ptc-info-tile.entry.js +22 -0
  61. package/dist/esm/ptc-jumbotron.entry.js +123 -0
  62. package/dist/esm/ptc-link.entry.js +1 -1
  63. package/dist/esm/ptc-media-card.entry.js +1 -1
  64. package/dist/esm/ptc-multi-select_2.entry.js +1 -1
  65. package/dist/esm/ptc-para.entry.js +66 -0
  66. package/dist/esm/ptc-picture.entry.js +159 -0
  67. package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
  68. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  69. package/dist/esm/ptc-readmore.entry.js +1 -1
  70. package/dist/esm/ptc-spacer.entry.js +34 -0
  71. package/dist/esm/ptc-title.entry.js +1 -1
  72. package/dist/esm/ptc-tooltip.entry.js +103 -0
  73. package/dist/esm/ptcw-design.js +1 -1
  74. package/dist/esm/{utils-4a9e39a7.js → utils-edb0c4d4.js} +1 -1
  75. package/dist/ptcw-design/p-0390c236.entry.js +1 -0
  76. package/dist/ptcw-design/{p-f44eeac7.entry.js → p-055e0d28.entry.js} +1 -1
  77. package/dist/ptcw-design/{p-48ebe929.entry.js → p-057f7b20.entry.js} +1 -1
  78. package/dist/ptcw-design/p-071a6109.entry.js +1 -0
  79. package/dist/ptcw-design/p-07a4b1ca.entry.js +1 -0
  80. package/dist/ptcw-design/p-0c69ea52.entry.js +1 -0
  81. package/dist/ptcw-design/{p-aa042737.entry.js → p-184a4cda.entry.js} +1 -1
  82. package/dist/ptcw-design/p-1d64a5a8.entry.js +1 -0
  83. package/dist/ptcw-design/{p-febec9ac.entry.js → p-25a1d8c5.entry.js} +1 -1
  84. package/dist/ptcw-design/p-25a25451.entry.js +1 -0
  85. package/dist/ptcw-design/p-260ecfef.entry.js +1 -0
  86. package/dist/ptcw-design/p-3885c133.entry.js +1 -0
  87. package/dist/ptcw-design/{p-5557df17.entry.js → p-419abbe1.entry.js} +1 -1
  88. package/dist/ptcw-design/p-463097da.entry.js +1 -0
  89. package/dist/ptcw-design/p-49639b03.entry.js +1 -0
  90. package/dist/ptcw-design/p-4e1088bb.entry.js +1 -0
  91. package/dist/ptcw-design/p-509ba999.entry.js +1 -0
  92. package/dist/ptcw-design/p-62a4a1e1.entry.js +1 -0
  93. package/dist/ptcw-design/p-711bcdad.js +1 -0
  94. package/dist/ptcw-design/p-742d7492.entry.js +1 -0
  95. package/dist/ptcw-design/{p-cdb80c67.entry.js → p-7c3aac08.entry.js} +1 -1
  96. package/dist/ptcw-design/p-7db71d63.entry.js +1 -0
  97. package/dist/ptcw-design/{p-211ece93.entry.js → p-8f5feb90.entry.js} +1 -1
  98. package/dist/ptcw-design/p-9113f580.entry.js +1 -0
  99. package/dist/ptcw-design/{p-3827fcc3.entry.js → p-a1415238.entry.js} +1 -1
  100. package/dist/ptcw-design/{p-e67b618c.entry.js → p-ac504f89.entry.js} +1 -1
  101. package/dist/ptcw-design/{p-41448acc.entry.js → p-ae62e211.entry.js} +1 -1
  102. package/dist/ptcw-design/{p-b8fd8532.js → p-bcbdf9a9.js} +1 -1
  103. package/dist/ptcw-design/p-d3b3d535.entry.js +1 -0
  104. package/dist/ptcw-design/{p-9953eb9e.entry.js → p-d3b615a8.entry.js} +1 -1
  105. package/dist/ptcw-design/p-e21f2874.entry.js +1 -0
  106. package/dist/ptcw-design/p-ed2be934.entry.js +1 -0
  107. package/dist/ptcw-design/p-ee455b1d.entry.js +1 -0
  108. package/dist/ptcw-design/p-f08725b9.entry.js +1 -0
  109. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  110. package/dist/types/components/organism-bundles/blogs-search-section/blogs-search-section.d.ts +21 -0
  111. package/dist/types/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.d.ts +27 -0
  112. package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +4 -0
  113. package/dist/types/components.d.ts +28 -0
  114. package/package.json +1 -1
  115. package/readme.md +1 -1
  116. package/dist/cjs/homepage-jumbotron_13.cjs.entry.js +0 -1017
  117. package/dist/cjs/ptc-filter-tag.cjs.entry.js +0 -69
  118. package/dist/cjs/ptc-preloader-section.cjs.entry.js +0 -42
  119. package/dist/esm/homepage-jumbotron_13.entry.js +0 -1001
  120. package/dist/esm/ptc-filter-tag.entry.js +0 -65
  121. package/dist/esm/ptc-preloader-section.entry.js +0 -38
  122. package/dist/ptcw-design/p-0565de99.entry.js +0 -1
  123. package/dist/ptcw-design/p-10fe1d4f.entry.js +0 -1
  124. package/dist/ptcw-design/p-6491d9b9.entry.js +0 -1
  125. package/dist/ptcw-design/p-6f08fa33.entry.js +0 -1
  126. package/dist/ptcw-design/p-73bfe4e6.entry.js +0 -1
  127. package/dist/ptcw-design/p-8d29f34a.entry.js +0 -1
  128. package/dist/ptcw-design/p-9467e22b.entry.js +0 -1
  129. package/dist/ptcw-design/p-acfbc221.entry.js +0 -1
  130. package/dist/ptcw-design/p-b5d8f7d1.entry.js +0 -1
@@ -1,13 +1,35 @@
1
1
  import { h } from '@stencil/core';
2
+ //import { observeInView } from '../../../utils/utils';
3
+ class SliderSettings {
4
+ }
2
5
  export class HomepageToggledContent {
3
6
  constructor() {
4
- this.colors = ['hp-blue', 'hp-green', 'hp-red', 'hp-gray', 'hp-orange'];
7
+ this.colors = ['hp-blue', 'hp-red', 'hp-gray', 'hp-green', 'hp-orange'];
5
8
  this.activeTab = 0;
6
9
  this.dropdownOpen = false;
10
+ this.tileElements = [];
11
+ }
12
+ componentWillLoad() {
13
+ this.updateTileElements(this.activeTab);
14
+ this.sliderSettings = {
15
+ IsMouseDown: false,
16
+ PreventAnchor: false,
17
+ Timeout: undefined,
18
+ StartX: 0,
19
+ ScrollLeft: 0,
20
+ };
21
+ }
22
+ componentDidLoad() {
23
+ this.slider = this.el.shadowRoot.querySelector('.card-section');
24
+ //this.slider.addEventListener('scroll', () => this.onSliderScroll());
25
+ //window.addEventListener('scroll', () => this.onSliderScroll());
26
+ //this.onSliderScroll();
27
+ //observeInView(this.el, '.card-section', true);
7
28
  }
8
29
  handleTabSelected(tabIndex) {
9
30
  this.activeTab = tabIndex;
10
31
  this.dropdownOpen = false; // Close dropdown on selection
32
+ this.updateTileElements(tabIndex);
11
33
  }
12
34
  toggleDropdown() {
13
35
  this.dropdownOpen = !this.dropdownOpen;
@@ -19,11 +41,80 @@ export class HomepageToggledContent {
19
41
  index,
20
42
  }));
21
43
  }
44
+ updateTileElements(tabIndex) {
45
+ this.tileElements = Array.from(this.el.querySelectorAll(`[slot^="tab-tile-${tabIndex}"]`));
46
+ }
47
+ onSliderScroll() {
48
+ if (this.slider.scrollLeft === 0 && this.slider.classList.contains('scroll-st')) {
49
+ this.slider.classList.remove('scroll-st');
50
+ }
51
+ else if (this.slider.scrollLeft !== 0 && !this.slider.classList.contains('scroll-st')) {
52
+ this.slider.classList.add('scroll-st');
53
+ }
54
+ if (this.slider.scrollLeft === this.slider.scrollWidth - this.slider.offsetWidth && this.slider.classList.contains('scroll-ed')) {
55
+ this.slider.classList.remove('scroll-ed');
56
+ }
57
+ else if (this.slider.scrollLeft !== this.slider.scrollWidth - this.slider.offsetWidth && !this.slider.classList.contains('scroll-ed')) {
58
+ this.slider.classList.add('scroll-ed');
59
+ }
60
+ }
61
+ onSliderMouseDown(e, slider) {
62
+ e.preventDefault();
63
+ this.sliderSettings.IsMouseDown = true;
64
+ slider.classList.add('active');
65
+ this.sliderSettings.StartX = e.pageX - slider.offsetLeft;
66
+ this.sliderSettings.ScrollLeft = slider.scrollLeft;
67
+ this.sliderSettings.PreventAnchor = false;
68
+ this.sliderSettings.Timeout = setTimeout(() => {
69
+ this.sliderSettings.PreventAnchor = true;
70
+ }, 80);
71
+ }
72
+ onSliderMouseExit(e, slider) {
73
+ e.preventDefault();
74
+ clearTimeout(this.sliderSettings.Timeout);
75
+ this.sliderSettings.IsMouseDown = false;
76
+ slider.classList.remove('active');
77
+ }
78
+ onSliderMouseDrag(e, slider) {
79
+ if (this.sliderSettings.IsMouseDown) {
80
+ e.preventDefault();
81
+ const x = e.pageX - slider.offsetLeft;
82
+ const walk = x - this.sliderSettings.StartX;
83
+ slider.scrollLeft = this.sliderSettings.ScrollLeft - walk;
84
+ }
85
+ }
86
+ onCardMouseDown(e) {
87
+ if (e && e.currentTarget) {
88
+ let anch = e.currentTarget;
89
+ if (anch) {
90
+ anch.classList.add('active');
91
+ }
92
+ }
93
+ }
94
+ onCardMouseUp(e) {
95
+ if (e && e.currentTarget) {
96
+ let anch = e.currentTarget;
97
+ if (anch) {
98
+ anch.classList.remove('active');
99
+ }
100
+ }
101
+ }
22
102
  render() {
23
103
  const upArrow = (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "11", viewBox: "0 0 15 11", fill: "none" }, h("path", { d: "M13 8.5L7.34315 2.71178L1.68629 8.5", stroke: "white", "stroke-width": "3", "stroke-linecap": "round" })));
24
104
  const downArrow = (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "11", viewBox: "0 0 15 11", fill: "none" }, h("path", { d: "M13 2.5L7.34315 8.28822L1.68629 2.5", stroke: "white", "stroke-width": "3", "stroke-linecap": "round" })));
25
105
  const tabs = this.getTabs();
26
- return (h("div", null, h("div", { class: "header" }, h("h2", null, h("slot", { name: "title" })), h("p", null, h("slot", { name: "description" }))), h("div", { class: "tabs" }, h("div", { class: "tabs-desktop" }, tabs.map(tab => (h("homepage-clickable-tab", { label: tab.label, active: this.activeTab === tab.index, activeColor: this.colors[tab.index], onClick: () => this.handleTabSelected(tab.index) })))), h("div", { class: "tabs-mobile" }, h("button", { class: `dropdown-button ${this.colors[this.activeTab]} ${this.dropdownOpen ? "opened" : ""}`, onClick: () => this.toggleDropdown() }, tabs[this.activeTab].label, h("span", { class: "arrow" }, this.dropdownOpen ? upArrow : downArrow)), this.dropdownOpen && (h("div", { class: "dropdown-menu" }, tabs.map(tab => (h("div", { class: "dropdown-item", onClick: () => this.handleTabSelected(tab.index) }, h("slot", { name: `tab-label-${tab.index}` })))))))), h("div", { class: "content" }, tabs.map((tab, index) => (h("div", { style: { display: this.activeTab === index ? 'flex' : 'none' }, class: "tab-content" }, h("slot", { name: `tab-image-${index}` }), h("div", { class: "content-detail" }, h("div", { hidden: true }, tab.label), h("h2", null, h("slot", { name: `tab-title-${index}` })), h("p", null, h("slot", { name: `tab-content-${index}` })), h("slot", { name: `tab-button-${index}` }), Array.from(this.el.querySelectorAll(`[slot^="tab-tile-title-${index}"]`)).length > 0 ? (h("div", { class: "info-card-wrapper" }, h("ptc-info-tile", { variant: 'text' }, h("div", { slot: "tile-title" }, h("slot", { name: `tab-tile-title-${index}-0` })), h("div", { slot: "tile-description" }, h("slot", { name: `tab-tile-description-${index}-0` }))), h("ptc-info-tile", { variant: 'text' }, h("div", { slot: "tile-title" }, h("slot", { name: `tab-tile-title-${index}-1` })), h("div", { slot: "tile-description" }, h("slot", { name: `tab-tile-description-${index}-1` }))))) : null)))))));
106
+ return (h("div", { class: "wrapper" }, h("div", { class: "header" }, h("h2", null, h("slot", { name: "title" })), h("p", null, h("slot", { name: "description" }))), h("div", { class: "tabs" }, h("div", { class: "tabs-desktop" }, tabs.map(tab => (h("homepage-clickable-tab", { label: tab.label, active: this.activeTab === tab.index, activeColor: this.colors[tab.index], onClick: () => this.handleTabSelected(tab.index) })))), h("div", { class: "tabs-mobile" }, h("button", { class: `dropdown-button ${this.colors[this.activeTab]} ${this.dropdownOpen ? 'opened' : ''}`, onClick: () => this.toggleDropdown() }, tabs[this.activeTab].label, h("span", { class: "arrow" }, this.dropdownOpen ? upArrow : downArrow)), this.dropdownOpen && (h("div", { class: "dropdown-menu" }, tabs.map(tab => (h("div", { class: "dropdown-item", onClick: () => this.handleTabSelected(tab.index) }, h("slot", { name: `tab-label-${tab.index}` })))))))), h("div", { class: "content" }, tabs.map((tab, index) => (h("div", { class: `tab-content ${this.activeTab === index ? 'active-tab' : ''}` }, h("slot", { name: `tab-image-${index}` }), h("div", { class: "content-detail" }, h("div", { hidden: true }, tab.label), h("h2", null, h("slot", { name: `tab-title-${index}` })), h("p", null, h("slot", { name: `tab-content-${index}` })), h("slot", { name: `tab-button-${index}` }), this.activeTab === index && this.tileElements.length > 0 ? (h("div", Object.assign({ class: "info-card-wrapper card-section" }, this.getSliderBindings()), this.tileElements.map((tile, index) => (h("div", { class: `swiper-slide card-link card-link-${index + 1}`, "tab-index": index + 1, key: index, innerHTML: tile.outerHTML, onMouseDown: e => this.onCardMouseDown(e), onMouseUp: e => this.onCardMouseUp(e), onMouseLeave: e => this.onCardMouseUp(e), onTouchEnd: e => {
107
+ console.log('yes');
108
+ this.onCardMouseUp(e);
109
+ } }))))) : null)))))));
110
+ }
111
+ getSliderBindings() {
112
+ return {
113
+ onMouseDown: (e) => { this.onSliderMouseDown(e, this.slider); },
114
+ onMouseUp: (e) => { this.onSliderMouseExit(e, this.slider); },
115
+ onMouseLeave: (e) => { this.onSliderMouseExit(e, this.slider); },
116
+ onMouseMove: (e) => { this.onSliderMouseDrag(e, this.slider); }
117
+ };
27
118
  }
28
119
  static get is() { return "homepage-toggled-content"; }
29
120
  static get encapsulation() { return "shadow"; }
@@ -40,7 +131,8 @@ export class HomepageToggledContent {
40
131
  static get states() {
41
132
  return {
42
133
  "activeTab": {},
43
- "dropdownOpen": {}
134
+ "dropdownOpen": {},
135
+ "tileElements": {}
44
136
  };
45
137
  }
46
138
  static get elementRef() { return "el"; }
@@ -1,4 +1,4 @@
1
- import { Host, h } from '@stencil/core';
1
+ import { Host, h, Fragment } from '@stencil/core';
2
2
  export class PtcCard {
3
3
  constructor() {
4
4
  this.cardType = 'custom-card';
@@ -23,23 +23,24 @@ export class PtcCard {
23
23
  this.isCreoCard = false;
24
24
  }
25
25
  render() {
26
- const Tag = !!this.cardHref ? 'a' : 'div';
26
+ const Tag = (!!this.cardHref && this.cardType !== 'featured-horizontal-card') ? 'a' : 'div';
27
27
  const classMap = this.getCssClassMap();
28
28
  const cutOff = this.getLineCuttoff();
29
29
  let cutOffTitleClass = '';
30
+ const BodyContainerTag = (!!this.cardHref && !!this.cardType && this.cardType === 'featured-horizontal-card') ? 'a' : Fragment;
30
31
  if (this.titleLineCutOff && this.titleLineCutOff > 0) {
31
32
  cutOffTitleClass = ' clamp-title';
32
33
  }
33
34
  return (h(Host, { class: {
34
35
  [this.cardType]: !!this.cardType,
35
36
  'creo-card-wrap': this.isCreoCard, // Add the cardType class conditionally
36
- } }, this.styles && h("style", null, this.styles), h("slot", { name: "seo-content" }), h("div", { class: "card-border", part: "border-wrapper", style: { overflow: this.cardOverflow } }, h(Tag, Object.assign({ class: classMap, part: "card-layout" }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {}), (!!this.ribbonText ? { rel: this.ribbonText } : {})), this.hasImage || this.hasLottie || this.hasVideo ? (h("div", { class: "card-media", part: "media-wrapper" }, this.getMediaSlot ? h("slot", { name: this.getMediaSlot() }) : null)) : null, (!!this.ribbonText && this.cardType == 'resource-center-card') || (!!this.ribbonText && this.cardType == 'related-card') ? (h("div", { class: "ribbon-text" }, `${this.ribbonText}`)) : null, h("div", { class: "card-body", part: "body-wrapper" }, !!this.cardDate && (this.cardType === 'listing-card' || this.cardType === 'listing-card-horizontal') ? (h("div", { class: "card-date-text" }, !!this.eventType ? (h("span", { class: "small" }, `${this.cardDate}`, "\u00A0\u00A0\u00A0|\u00A0\u00A0\u00A0", `${this.eventType}`)) : (h("span", { class: "small" }, `${this.cardDate}`)))) : null, this.cardType === 'case-studies-card'
37
+ } }, this.styles && h("style", null, this.styles), h("slot", { name: "seo-content" }), h("div", { class: "card-border", part: "border-wrapper", style: { overflow: this.cardOverflow } }, h(Tag, Object.assign({ class: classMap, part: "card-layout" }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {}), (!!this.ribbonText ? { rel: this.ribbonText } : {})), this.hasImage || this.hasLottie || this.hasVideo ? (h("div", { class: "card-media", part: "media-wrapper" }, this.getMediaSlot ? h("slot", { name: this.getMediaSlot() }) : null)) : null, (!!this.ribbonText && this.cardType == 'resource-center-card') || (!!this.ribbonText && this.cardType == 'related-card') ? (h("div", { class: "ribbon-text" }, `${this.ribbonText}`)) : null, h("div", { class: "card-body", part: "body-wrapper" }, h(BodyContainerTag, Object.assign({ class: "link-wrapper" }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {})), !!this.cardDate && (this.cardType === 'listing-card' || this.cardType === 'listing-card-horizontal') ? (h("div", { class: "card-date-text" }, !!this.eventType ? (h("span", { class: "small" }, `${this.cardDate}`, "\u00A0\u00A0\u00A0|\u00A0\u00A0\u00A0", `${this.eventType}`)) : (h("span", { class: "small" }, `${this.cardDate}`)))) : null, this.cardType === 'case-studies-card'
37
38
  ? Object.assign({}, (!!this.cardLogo ? (h("div", { class: "card-logo-container" }, h("ptc-picture", { alt: "", "object-fit": "contain", src: this.cardLogo, height: "40" }))) : (h("div", { class: "card-logo-none" })))) : null, h("slot", { name: "slot-before-heading" }), !!this.heading
38
39
  ? [
39
40
  this.cardType === 'listing-card' ? (h("h3", { class: `ptc-h3 ${this.headingTransform}${cutOffTitleClass}`, part: "card-heading" }, h("ptc-tooltip", { "text-display": "inline", "text-lines": this.maxLines, "max-length": this.maxChars, description: this.heading, position: "bottom", width: "full-width", theme: "standard", "hide-on-mobile": "true", "no-overflow": "true" }))) : this.cardType === 'hightlight-card' ? (h("h2", { class: `${this.headingTransform}${cutOffTitleClass}`, style: cutOff, part: "card-heading" }, this.heading)) : (h("h3", { class: `ptc-h3 ${this.headingTransform}${cutOffTitleClass}`, style: cutOff, part: "card-heading" }, this.heading)),
40
41
  h("slot", { name: "slot-after-heading" }),
41
42
  ]
42
- : null, h("slot", { name: "slot-description" }), !!this.cardDate && this.cardType !== 'listing-card' && this.cardType !== 'listing-card-horizontal' && this.cardType !== 'hightlight-card' ? (h("ptc-date", { "date-string": `${this.cardDate}`, "date-styles": "span{color:#40434a;font-size:var(--ptc-font-size-x-small);margin-top:var(--ptc-element-spacing-06);display:inline-block;}" })) : null, !!this.cardDate && this.cardType === 'hightlight-card' ? (h("ptc-date", { style: { marginBottom: '20px' }, "format-options": '{"year":"numeric","month":"long","day":"numeric"}', "date-string": `${this.cardDate}`, "date-styles": "span{color: #a3a3a3;font-family: Raleway;font-size: 1rem !important;font-stretch: normal;font-style: normal;font-weight: 400;letter-spacing: normal;line-height: 1.03;padding-top: 15px;text-align: left;}", country: this.country })) : null)))));
43
+ : null, h("slot", { name: "slot-description" }), !!this.cardDate && this.cardType !== 'listing-card' && this.cardType !== 'listing-card-horizontal' && this.cardType !== 'hightlight-card' ? (h("ptc-date", { "date-string": `${this.cardDate}`, "date-styles": "span{color:#40434a;font-size:var(--ptc-font-size-x-small);margin-top:var(--ptc-element-spacing-06);display:inline-block;}" })) : null, !!this.cardDate && this.cardType === 'hightlight-card' ? (h("ptc-date", { style: { marginBottom: '20px' }, "format-options": '{"year":"numeric","month":"long","day":"numeric"}', "date-string": `${this.cardDate}`, "date-styles": "span{color: #a3a3a3;font-family: Raleway;font-size: 1rem !important;font-stretch: normal;font-style: normal;font-weight: 400;letter-spacing: normal;line-height: 1.03;padding-top: 15px;text-align: left;}", country: this.country })) : null))))));
43
44
  }
44
45
  getCssClassMap() {
45
46
  return {
@@ -63,7 +63,6 @@ ptc-link, ptc-square-card,
63
63
  background-color: white;
64
64
  border-radius: 8px;
65
65
  overflow: hidden;
66
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
67
66
  cursor: pointer;
68
67
  transition: border 0.3s;
69
68
  max-width: 360px;
@@ -76,6 +75,7 @@ ptc-link, ptc-square-card,
76
75
  flex-direction: row;
77
76
  align-items: center;
78
77
  margin: 0 auto;
78
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
79
79
  }
80
80
  .tile.image .tile-content {
81
81
  border-bottom: 2px solid var(--color-white);
@@ -98,6 +98,9 @@ ptc-link, ptc-square-card,
98
98
  width: 268px;
99
99
  }
100
100
  .tile.text:hover {
101
+ border: 1px solid var(--color-gray-07);
102
+ }
103
+ .tile.text:focus, .tile.text:active {
101
104
  background-color: var(--color-gray-01);
102
105
  border: 1px solid var(--color-gray-07);
103
106
  }
@@ -152,6 +155,7 @@ ptc-link, ptc-square-card,
152
155
  font-size: var(--ptc-font-size-xx-small) !important;
153
156
  font-weight: var(--ptc-font-weight-medium) !important;
154
157
  text-align: left !important;
158
+ margin: 0px !important;
155
159
  }
156
160
 
157
161
  ::slotted(p[slot=tile-description]) {
@@ -19,6 +19,7 @@ export class PtcJumbotron {
19
19
  this.textAlign = 'left';
20
20
  this.isMobile = undefined;
21
21
  this.isTransitioning = undefined;
22
+ this.styles = undefined;
22
23
  this.hasCtaSlot = undefined;
23
24
  }
24
25
  componentWillLoad() {
@@ -55,7 +56,7 @@ export class PtcJumbotron {
55
56
  default:
56
57
  mediaElement = h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" });
57
58
  }
58
- return (h(Host, { class: classMap }, 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 } }, 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", { "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": "w-4", "para-margin": `${this.jumbotronType === 'text' ? 'margin-flush' : 'margin-bottom-6'}`, "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left' }, h("ptc-tooltip", { "text-lines": "8", description: this.subTitle, position: "right", styles: `.ellipsis-by-line-boxing{color: ${this.contentColor};}` }))), 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.jumbotronType === 'png' ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc }), 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)))));
59
+ 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 } }, 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", { "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": "w-4", "para-margin": `${this.jumbotronType === 'text' ? 'margin-flush' : 'margin-bottom-6'}`, "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left' }, h("ptc-tooltip", { "text-lines": "8", description: this.subTitle, position: "right", styles: `.ellipsis-by-line-boxing{color: ${this.contentColor};}` }))), 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.jumbotronType === 'png' ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc }), 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)))));
59
60
  }
60
61
  getCssClassMap() {
61
62
  return {
@@ -369,6 +370,23 @@ export class PtcJumbotron {
369
370
  "attribute": "is-transitioning",
370
371
  "reflect": false
371
372
  },
373
+ "styles": {
374
+ "type": "string",
375
+ "mutable": false,
376
+ "complexType": {
377
+ "original": "string",
378
+ "resolved": "string",
379
+ "references": {}
380
+ },
381
+ "required": false,
382
+ "optional": true,
383
+ "docs": {
384
+ "tags": [],
385
+ "text": "(optional) Injected CSS styles"
386
+ },
387
+ "attribute": "styles",
388
+ "reflect": false
389
+ },
372
390
  "hasCtaSlot": {
373
391
  "type": "boolean",
374
392
  "mutable": true,
@@ -52,7 +52,7 @@ export class PtcReadmore {
52
52
  });
53
53
  this.enableAddTruncatedClass('tab-header');
54
54
  this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
55
- this.enableAddTruncatedClass('ptc-product-highlight-card');
55
+ this.enableAddTruncatedClass('ptc-product-card');
56
56
  }
57
57
  // click event handler
58
58
  handleClick(event) {
@@ -14,6 +14,12 @@ export const AuthorListingExample: {
14
14
  new (): AuthorListingExample;
15
15
  };
16
16
 
17
+ interface BlogsSearchSection extends Components.BlogsSearchSection, HTMLElement {}
18
+ export const BlogsSearchSection: {
19
+ prototype: BlogsSearchSection;
20
+ new (): BlogsSearchSection;
21
+ };
22
+
17
23
  interface BundleExample extends Components.BundleExample, HTMLElement {}
18
24
  export const BundleExample: {
19
25
  prototype: BundleExample;