@ptcwebops/ptcw-design 4.6.0 → 4.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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-spacer.cjs.entry.js +38 -0
  21. package/dist/cjs/ptc-tooltip.cjs.entry.js +107 -0
  22. package/dist/cjs/ptc-white-paper.cjs.entry.js +1 -1
  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-white-paper/ptc-white-paper.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-spacer.entry.js +34 -0
  70. package/dist/esm/ptc-title.entry.js +1 -1
  71. package/dist/esm/ptc-tooltip.entry.js +103 -0
  72. package/dist/esm/ptc-white-paper.entry.js +1 -1
  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-9350bfe7.entry.js +1 -0
  100. package/dist/ptcw-design/{p-3827fcc3.entry.js → p-a1415238.entry.js} +1 -1
  101. package/dist/ptcw-design/{p-e67b618c.entry.js → p-ac504f89.entry.js} +1 -1
  102. package/dist/ptcw-design/{p-41448acc.entry.js → p-ae62e211.entry.js} +1 -1
  103. package/dist/ptcw-design/{p-b8fd8532.js → p-bcbdf9a9.js} +1 -1
  104. package/dist/ptcw-design/p-d3b3d535.entry.js +1 -0
  105. package/dist/ptcw-design/{p-9953eb9e.entry.js → p-d3b615a8.entry.js} +1 -1
  106. package/dist/ptcw-design/p-e21f2874.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-73bfe4e6.entry.js +0 -1
  126. package/dist/ptcw-design/p-75a123f1.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
@@ -0,0 +1,286 @@
1
+ import { Host, h, Fragment } from '@stencil/core';
2
+ var FilterTagTypes;
3
+ (function (FilterTagTypes) {
4
+ FilterTagTypes["SEARCH"] = "search";
5
+ FilterTagTypes["FILTER"] = "filter";
6
+ })(FilterTagTypes || (FilterTagTypes = {}));
7
+ export class BlogsSearchSection {
8
+ constructor() {
9
+ this.getCardsPerPage = () => {
10
+ let innerWidth = window.innerWidth;
11
+ switch (true) {
12
+ case (0 <= innerWidth && innerWidth < 480): return 5;
13
+ case (480 <= innerWidth && innerWidth < 992): return 10;
14
+ default: return 15;
15
+ }
16
+ };
17
+ this.removeFilterTag = (tagValue) => {
18
+ let filters = this.filters;
19
+ filters = filters.filter(value => value !== tagValue);
20
+ this.filters = [...filters];
21
+ };
22
+ this._runSearch = (search = "", filter = "", remove = false) => {
23
+ if (filter) {
24
+ if (remove) {
25
+ this.removeFilterTag(filter);
26
+ }
27
+ else {
28
+ this.filters.push(filter);
29
+ }
30
+ }
31
+ else {
32
+ this.search = search;
33
+ }
34
+ this.isLoading = true;
35
+ this.getResults();
36
+ };
37
+ this.handleRemoveSearchTag = () => {
38
+ this.search = "";
39
+ const blogsSearchFields = this.el.querySelectorAll('.blogs-search-field');
40
+ blogsSearchFields === null || blogsSearchFields === void 0 ? void 0 : blogsSearchFields.forEach((search) => {
41
+ search.clearSearchValue();
42
+ });
43
+ this.isLoading = true;
44
+ this.getResults();
45
+ };
46
+ this.handleRemoveFilterTag = (e) => {
47
+ let dataValue = e.target.getAttribute("data-value");
48
+ this.removeFilterTag(dataValue);
49
+ this.isLoading = true;
50
+ this.getResults();
51
+ };
52
+ this.connectedCallback = () => {
53
+ var _a;
54
+ const blogsSearchFields = this.el.querySelectorAll('.blogs-search-field');
55
+ const desktopFilters = (_a = this.el.querySelector('#desktop-filters')) === null || _a === void 0 ? void 0 : _a.querySelector('ptc-container');
56
+ const desktopFiltersCheckboxes = desktopFilters === null || desktopFilters === void 0 ? void 0 : desktopFilters.querySelectorAll('ptc-checkbox');
57
+ const desktopFiltersModalClearBtn = desktopFilters === null || desktopFilters === void 0 ? void 0 : desktopFilters.querySelector('ptc-filter-tag');
58
+ const mobileFiltersModalCta = document.querySelector('.mobile-filters-modal-cta');
59
+ const mobileFiltersModal = this.el.querySelector('#mobile-filters');
60
+ const mobileFiltersCheckboxes = mobileFiltersModal === null || mobileFiltersModal === void 0 ? void 0 : mobileFiltersModal.querySelectorAll('ptc-checkbox');
61
+ const mobileFiltersModalClearBtn = mobileFiltersModal === null || mobileFiltersModal === void 0 ? void 0 : mobileFiltersModal.querySelector('.modal-clear-btn');
62
+ const mobileFiltersModalApplyBtn = mobileFiltersModal === null || mobileFiltersModal === void 0 ? void 0 : mobileFiltersModal.querySelector('.modal-apply-btn');
63
+ if (blogsSearchFields.length > 0) {
64
+ blogsSearchFields.forEach((search) => {
65
+ search.addEventListener('clicked', (event) => {
66
+ // search.clearSearchValue();
67
+ let searchText = event.detail.searchTerm;
68
+ if (searchText) {
69
+ this._runSearch(event.detail.searchTerm, "", false);
70
+ }
71
+ else {
72
+ this._runSearch("", "", true);
73
+ }
74
+ });
75
+ });
76
+ }
77
+ if (desktopFiltersCheckboxes) {
78
+ desktopFiltersCheckboxes.forEach(checkbox => {
79
+ checkbox.addEventListener('checkedChanged', (sender) => {
80
+ let checked = sender.detail.checked;
81
+ let value = sender.detail.value;
82
+ if (checked === "checked") {
83
+ this.runSearch("", value, false);
84
+ }
85
+ else {
86
+ this.runSearch("", value, true);
87
+ }
88
+ });
89
+ });
90
+ }
91
+ desktopFiltersModalClearBtn.addEventListener('clicked', () => {
92
+ desktopFiltersCheckboxes.forEach(checkbox => {
93
+ checkbox.setAttribute('checked', 'unchecked');
94
+ let value = checkbox.value;
95
+ this.removeFilterTag(value);
96
+ });
97
+ this.isLoading = true;
98
+ this.getResults();
99
+ });
100
+ mobileFiltersModalCta.addEventListener('clicked', () => {
101
+ console.log("Modal open");
102
+ mobileFiltersModal.setAttribute('show', 'true');
103
+ });
104
+ mobileFiltersModal.addEventListener('opened', () => {
105
+ mobileFiltersModal.querySelectorAll('ptc-icon-minimize').forEach(pim => {
106
+ pim.Refresh();
107
+ });
108
+ mobileFiltersCheckboxes.forEach(checkbox => {
109
+ checkbox.addEventListener('checkedChanged', (sender) => {
110
+ let checked = sender.detail.checked;
111
+ let value = sender.detail.value;
112
+ if (checked === "checked") {
113
+ this.filters.push(value);
114
+ }
115
+ else {
116
+ this.removeFilterTag(value);
117
+ }
118
+ });
119
+ });
120
+ });
121
+ mobileFiltersModalClearBtn.addEventListener('click', () => {
122
+ let mobileFiltersCheckboxes = mobileFiltersModal.querySelectorAll('ptc-checkbox');
123
+ mobileFiltersCheckboxes.forEach(checkbox => {
124
+ checkbox.setAttribute('checked', 'unchecked');
125
+ let value = checkbox.value;
126
+ this.removeFilterTag(value);
127
+ });
128
+ });
129
+ mobileFiltersModalApplyBtn.addEventListener('click', () => {
130
+ mobileFiltersModal.setAttribute('show', 'false');
131
+ this.isLoading = true;
132
+ this.getResults();
133
+ });
134
+ };
135
+ this.componentWillLoad = () => {
136
+ this.isLoading = true;
137
+ };
138
+ this.componentDidLoad = () => {
139
+ this.getResults();
140
+ };
141
+ this.noResultH3 = "No Results Found";
142
+ this.noResultP = "Try changing or removing some of your filters" //@("Try changing or removing some of your filters".GetSitecoreLocalizedStringOrDefault())
143
+ ;
144
+ this.noResultButton = "Clear Filters" //@("Clear Filters".GetSitecoreLocalizedStringOrDefault())
145
+ ;
146
+ this.isLoading = false;
147
+ this.data = [];
148
+ this.search = "";
149
+ this.filters = [];
150
+ }
151
+ // Methods
152
+ async runSearch(search = "", filter = "", remove) {
153
+ this._runSearch(search, filter, remove);
154
+ }
155
+ getResults() {
156
+ setTimeout(() => {
157
+ this.isLoading = false;
158
+ this.data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20];
159
+ }, 1000);
160
+ }
161
+ render() {
162
+ const NoResultSection = () => {
163
+ return h("div", { class: "no-result-section" }, h("ptc-title", { "seo-compatibility-mode": true, "text-align": 'center', upperline: "no-upperline", "title-margin": "margin-flush", "title-height": "densest", "title-size": "large", "title-weight": "w-7" }, h("h3", null, this.noResultH3)), h("ptc-spacer", { breakpoint: 'x-small', size: 'small' }), h("ptc-spacer", { breakpoint: 'small', size: 'x-small' }), h("ptc-para", { "seo-compatibility-mode": true, "para-align": "center", "font-size": "x-small", "font-weight": "w-4", "para-margin": "margin-flush", "para-line-h": "line-height-p" }, h("p", null, this.noResultP)), h("div", { class: "clear-button-container" }, h("ptc-button", { type: "button", class: "clear-btn", color: "ptc-quaternary", "title-weight": "w-7" }, this.noResultButton)));
164
+ };
165
+ const ResultSection = () => {
166
+ return h("div", { class: "result-section" }, h("div", { class: "is-grid has-col-gap-lg has-row-gap-lg" }, this.data.map(_ => {
167
+ return h("div", { class: "is-col-12 is-col-6-md is-col-4-xl" }, h("ptc-card", { "card-href": "http://www.google.com", "card-type": "listing-card", "has-image": "true", heading: "2022 SoCal RUG Event", "heading-transform": "none", target: "_blank" }, h("ptc-img", { slot: "slot-image", "img-url": "http://s7d1.scene7.com/is/image/ptcinc/cs-boeing-planes-runway", "image-type": "smart-img", "load-mode": "lazy-bg" }), h("div", { slot: "slot-description" }, h("ptc-para", { "font-size": "medium", "font-weight": "w-4", "para-line-h": "line-height-19" }, "Join us for live presentations and hear about the latest updates for Creo, Windchill PLM, and Thingworx IOT and Augmented Reality."))));
168
+ })));
169
+ };
170
+ return (h(Host, null, h("div", { class: "blogs-serach-section" }, h("slot", { name: "mobile-search-and-filter" }), h("div", { class: "is-grid has-col-gap-lg" }, h("div", { class: "is-col-4-lg is-col-3-xl" }, h("slot", { name: "blogs-desktop-filters" })), h("div", { class: "is-col-12 is-col-8-lg is-col-9-xl" }, this.isLoading ?
171
+ h("ptc-preloader-section", { "section-type": "cards", "number-of-cards": "9" }) :
172
+ h("div", null, h("div", { class: `search-results-and-tags ${this.search || this.filters.length > 0 ? "show" : ""}` }, h("div", null, h("div", { class: "results-label" }, h("ptc-para", { "font-size": "x-small", "font-weight": "w-4", "para-margin": "margin-flush", "para-style": "main" }, this.data.length, " Results")), h("div", { class: "results-divider is-desktop" }), h("div", { class: "filter-list is-desktop" }, this.search && h("ptc-filter-tag", { theme: "bubble", onClicked: this.handleRemoveSearchTag, "data-type": FilterTagTypes.FILTER, "data-value": this.search }, `Search: "${this.search}"`), this.filters.map((filter) => {
173
+ return h("ptc-filter-tag", { theme: "bubble", onClicked: this.handleRemoveFilterTag, "data-type": FilterTagTypes.SEARCH, "data-value": filter }, filter);
174
+ })))), (this.data && this.data.length > 0) ?
175
+ h(Fragment, null, h(ResultSection, null), (this.data.length > this.getCardsPerPage()) ?
176
+ h(Fragment, null, h("ptc-spacer", { breakpoint: "x-small", size: "xxxx-large" }), h("ptc-spacer", { breakpoint: "small", size: "xxx-large" }), h("ptc-pagenation", { "clicked-page-number": "1", "last-value": "Next", "next-arrow-img": "//www.ptc.com/dist/ptc/images/sidescroll-left-curved.svg", "number-of-items": this.getCardsPerPage(), "prev-arrow-img": "//www.ptc.com/dist/ptc/images/sidescroll-right-curved.svg", "previous-value": "Previous", theme: "standard", "total-count": this.data.length })) : null) : h(NoResultSection, null)))), h("slot", { name: "blogs-mobile-filters" }))));
177
+ }
178
+ static get is() { return "blogs-search-section"; }
179
+ static get encapsulation() { return "shadow"; }
180
+ static get originalStyleUrls() {
181
+ return {
182
+ "$": ["blogs-search-section.scss"]
183
+ };
184
+ }
185
+ static get styleUrls() {
186
+ return {
187
+ "$": ["blogs-search-section.css"]
188
+ };
189
+ }
190
+ static get properties() {
191
+ return {
192
+ "noResultH3": {
193
+ "type": "string",
194
+ "mutable": false,
195
+ "complexType": {
196
+ "original": "string",
197
+ "resolved": "string",
198
+ "references": {}
199
+ },
200
+ "required": false,
201
+ "optional": false,
202
+ "docs": {
203
+ "tags": [],
204
+ "text": ""
205
+ },
206
+ "attribute": "no-result-h-3",
207
+ "reflect": false,
208
+ "defaultValue": "\"No Results Found\""
209
+ },
210
+ "noResultP": {
211
+ "type": "string",
212
+ "mutable": false,
213
+ "complexType": {
214
+ "original": "string",
215
+ "resolved": "string",
216
+ "references": {}
217
+ },
218
+ "required": false,
219
+ "optional": false,
220
+ "docs": {
221
+ "tags": [],
222
+ "text": ""
223
+ },
224
+ "attribute": "no-result-p",
225
+ "reflect": false,
226
+ "defaultValue": "\"Try changing or removing some of your filters\""
227
+ },
228
+ "noResultButton": {
229
+ "type": "string",
230
+ "mutable": false,
231
+ "complexType": {
232
+ "original": "string",
233
+ "resolved": "string",
234
+ "references": {}
235
+ },
236
+ "required": false,
237
+ "optional": false,
238
+ "docs": {
239
+ "tags": [],
240
+ "text": ""
241
+ },
242
+ "attribute": "no-result-button",
243
+ "reflect": false,
244
+ "defaultValue": "\"Clear Filters\""
245
+ }
246
+ };
247
+ }
248
+ static get states() {
249
+ return {
250
+ "isLoading": {},
251
+ "data": {},
252
+ "search": {},
253
+ "filters": {}
254
+ };
255
+ }
256
+ static get methods() {
257
+ return {
258
+ "runSearch": {
259
+ "complexType": {
260
+ "signature": "(search: string, filter: string, remove: any) => Promise<void>",
261
+ "parameters": [{
262
+ "tags": [],
263
+ "text": ""
264
+ }, {
265
+ "tags": [],
266
+ "text": ""
267
+ }, {
268
+ "tags": [],
269
+ "text": ""
270
+ }],
271
+ "references": {
272
+ "Promise": {
273
+ "location": "global"
274
+ }
275
+ },
276
+ "return": "Promise<void>"
277
+ },
278
+ "docs": {
279
+ "text": "",
280
+ "tags": []
281
+ }
282
+ }
283
+ };
284
+ }
285
+ static get elementRef() { return "el"; }
286
+ }
@@ -761,15 +761,6 @@ ptc-link, ptc-square-card,
761
761
  overflow: hidden;
762
762
  }
763
763
 
764
- ptc-jumbotron {
765
- height: fit-content;
766
- }
767
- @media screen and (min-width: 992px) {
768
- ptc-jumbotron {
769
- height: 86vh;
770
- }
771
- }
772
-
773
764
  .hp-sub-title {
774
765
  color: var(--color-white);
775
766
  /* Paragraph Large */
@@ -792,23 +783,52 @@ ptc-jumbotron {
792
783
  z-index: 999;
793
784
  width: 100%;
794
785
  height: 100%;
795
- transform: translateY(-20px);
796
- max-width: 1200px;
786
+ transform: translateY(-24px);
787
+ top: 0px;
788
+ padding-right: 24px;
789
+ padding-left: 24px;
797
790
  margin: 0 auto;
798
791
  }
799
792
 
800
- @media screen and (min-width: 1200px) {
801
- .swiper-wrapper {
802
- justify-content: center;
803
- }
804
- }
805
-
806
793
  .swiper-slide {
807
794
  display: flex;
808
- justify-content: center;
795
+ width: unset;
796
+ justify-content: flex-start;
809
797
  align-items: center;
798
+ margin-right: 24px;
799
+ }
800
+ .swiper-slide:last-of-type {
801
+ margin-right: 0px;
810
802
  }
811
803
 
804
+ @media screen and (min-width: 1200px) {
805
+ .swiper-container {
806
+ max-width: 1136px;
807
+ padding-left: 0;
808
+ padding-right: 0;
809
+ }
810
+
811
+ .swiper-slide {
812
+ margin-right: 28px;
813
+ }
814
+ .swiper-slide:last-of-type {
815
+ margin-right: 0px;
816
+ }
817
+ }
818
+ @media screen and (min-width: 1440px) {
819
+ .swiper-container {
820
+ max-width: 1200px;
821
+ padding-left: 0;
822
+ padding-right: 0;
823
+ }
824
+
825
+ .swiper-slide {
826
+ margin-right: 60px;
827
+ }
828
+ .swiper-slide:last-of-type {
829
+ margin-right: 0px;
830
+ }
831
+ }
812
832
  .swiper-button-next,
813
833
  .swiper-button-prev {
814
834
  color: transparent;
@@ -27,9 +27,9 @@ export class HomepageJumbotron {
27
27
  initSlider() {
28
28
  if (this.swiperContainerRef) {
29
29
  this.mySwiper = new Swiper(this.swiperContainerRef, {
30
- slidesPerView: 1,
31
- //spaceBetween: 2,
30
+ slidesPerView: "auto",
32
31
  initialSlide: 0,
32
+ spaceBetween: 0,
33
33
  loop: false,
34
34
  pagination: {
35
35
  el: '.swiper-pagination',
@@ -38,11 +38,14 @@ export class HomepageJumbotron {
38
38
  breakpoints: {
39
39
  768: {
40
40
  initialSlide: 0,
41
- slidesPerView: 2,
41
+ slidesPerView: 'auto',
42
+ spaceBetween: 0,
42
43
  },
43
44
  1200: {
45
+ width: 1080,
44
46
  initialSlide: 1,
45
47
  slidesPerView: 3,
48
+ spaceBetween: 0,
46
49
  },
47
50
  },
48
51
  });
@@ -82,7 +85,7 @@ export class HomepageJumbotron {
82
85
  this.activeButton = activeButtonElement ? activeButtonElement.innerHTML : '';
83
86
  //this.tileCount = this.el.querySelectorAll(`[slot^="jumbotron-tile-image-${this.activeTab}"]`).length;
84
87
  //console.log('sub tile counts: ' + this.tileCount + '; this active tab: ' + this.activeTab);
85
- this.updateTileElements();
88
+ //this.updateTileElements();
86
89
  }
87
90
  updateTileElements() {
88
91
  const tiles = Array.from(this.el.querySelectorAll(`[slot^="jumbotron-tile-${this.activeTab}"]`));
@@ -97,7 +100,7 @@ export class HomepageJumbotron {
97
100
  }, 250);
98
101
  }
99
102
  render() {
100
- return (h(Host, null, h("ptc-jumbotron", Object.assign({ "jumbotron-type": this.jumbotron }, (!!this.activeBgVideoSrc && { bgVideoSrc: this.activeBgVideoSrc }), (!this.bgVideoSrc && !!this.bgSrc && { bgSrc: this.bgSrc }), { "is-iframe": this.isIframe, "is-homepage": "true", "is-transitioning": this.isTransitioning, "sub-title": "" //sub title is coming from slot here
103
+ return (h(Host, null, h("ptc-jumbotron", Object.assign({ styles: ".parent{min-height:700px; max-height:1000px;}", "jumbotron-type": this.jumbotron }, (!!this.activeBgVideoSrc && { bgVideoSrc: this.activeBgVideoSrc }), (!this.bgVideoSrc && !!this.bgSrc && { bgSrc: this.bgSrc }), { "is-iframe": this.isIframe, "is-homepage": "true", "is-transitioning": this.isTransitioning, "sub-title": "" //sub title is coming from slot here
101
104
  ,
102
105
  "play-button-title": this.playBtnText, "pause-button-title": this.pauseBtnText, "button-location": "allbp-bottom-right" }), h("slot", { name: "breadcrumb" }), h("h1", { slot: "main-title", class: "hp-h1" }, this.activeMainTitle), h("p", { slot: "hp-sub-title", class: "hp-sub-title" }, this.activeSubTitle), h("div", { slot: "j-cta", innerHTML: this.activeButton })), h("div", { class: "swiper-container", ref: el => (this.swiperContainerRef = el) }, h("div", { class: "swiper-wrapper" }, this.tileElements.map((tile, index) => (h("div", { class: "swiper-slide", key: index, innerHTML: tile.outerHTML })))), h("div", { class: "swiper-pagination" }))));
103
106
  }
@@ -55,25 +55,41 @@ ptc-link, ptc-square-card,
55
55
  }
56
56
 
57
57
  ::slotted(.title) {
58
- color: var(--color-gray-10);
59
- font-family: Raleway;
60
- font-size: 32px;
61
- font-style: normal;
62
- font-weight: 800;
63
- line-height: 40px;
58
+ color: var(--color-gray-10) !important;
59
+ font-family: Raleway !important;
60
+ font-size: 24px !important;
61
+ font-style: normal !important;
62
+ font-weight: 700 !important;
63
+ line-height: 30px !important;
64
+ margin-top: 0px !important;
65
+ margin-bottom: 16px !important;
64
66
  /* 125% */
65
67
  }
66
68
 
67
69
  ::slotted(.description) {
68
- color: var(--color-gray-10);
69
- font-family: Raleway;
70
- font-size: 18px;
71
- font-style: normal;
72
- font-weight: 400;
73
- line-height: 27px;
70
+ color: var(--color-gray-10) !important;
71
+ font-family: Raleway !important;
72
+ font-size: 18px !important;
73
+ font-style: normal !important;
74
+ font-weight: 400 !important;
75
+ line-height: 27px !important;
76
+ margin-top: 0px !important;
77
+ margin-bottom: 0px !important;
74
78
  /* 150% */
75
79
  }
76
80
 
81
+ ::slotted(.tab-slot-image) {
82
+ height: 500px;
83
+ width: auto;
84
+ margin-bottom: 32px;
85
+ }
86
+ @media screen and (min-width: 992px) {
87
+ ::slotted(.tab-slot-image) {
88
+ margin-bottom: unset;
89
+ height: auto;
90
+ }
91
+ }
92
+
77
93
  .header {
78
94
  text-align: center;
79
95
  margin-bottom: 20px;
@@ -88,6 +104,8 @@ ptc-link, ptc-square-card,
88
104
  display: flex;
89
105
  justify-content: center;
90
106
  margin-bottom: 64px;
107
+ position: relative;
108
+ z-index: 99;
91
109
  }
92
110
 
93
111
  .tabs-desktop {
@@ -191,12 +209,18 @@ ptc-link, ptc-square-card,
191
209
  }
192
210
 
193
211
  .tab-content {
194
- display: flex;
212
+ display: none;
213
+ opacity: 0;
195
214
  flex-direction: column;
215
+ width: 100%;
216
+ animation: fadeIn var(--ptc-transition-medium) ease-in-out forwards;
217
+ }
218
+ .tab-content.active-tab {
219
+ display: flex;
220
+ opacity: 1;
196
221
  }
197
222
  @media only screen and (min-width: 992px) {
198
223
  .tab-content {
199
- display: flex;
200
224
  flex-wrap: nowrap;
201
225
  flex-direction: row;
202
226
  width: 100%;
@@ -245,6 +269,94 @@ ptc-link, ptc-square-card,
245
269
  .info-card-wrapper {
246
270
  margin-top: 72px;
247
271
  display: flex;
248
- flex-wrap: wrap;
249
- gap: 24px;
272
+ justify-content: center;
273
+ align-items: center;
274
+ width: 100%;
275
+ }
276
+
277
+ .card-section {
278
+ display: flex;
279
+ position: relative;
280
+ flex-wrap: nowrap;
281
+ flex-shrink: 0;
282
+ -ms-overflow-style: none;
283
+ scrollbar-width: none;
284
+ transition: box-shadow var(--ptc-transition-medium) var(--ptc-ease-out);
285
+ justify-content: flex-start;
286
+ }
287
+ .card-section::-webkit-scrollbar {
288
+ display: none;
289
+ }
290
+ .card-section .card-link {
291
+ display: inline-flex;
292
+ position: relative;
293
+ text-decoration: none;
294
+ z-index: 10;
295
+ align-items: center;
296
+ gap: 16px;
297
+ margin-right: 24px;
298
+ }
299
+ .card-section .card-link .link-text {
300
+ display: block;
301
+ inline-size: 190px;
302
+ white-space: break-spaces;
303
+ }
304
+ .card-section:before {
305
+ position: absolute;
306
+ width: 32px;
307
+ background: linear-gradient(85deg, rgba(255, 255, 255, 0) 0%, white 100.13%);
308
+ top: 16px;
309
+ right: 0;
310
+ bottom: 0;
311
+ z-index: 12;
312
+ }
313
+ .card-section.scroll-st {
314
+ box-shadow: inset 2px 0px 0px rgba(255, 255, 255, 0.3);
315
+ }
316
+ .card-section.scroll-ed {
317
+ box-shadow: inset -2px 0px 0px rgba(255, 255, 255, 0.3);
318
+ }
319
+ .card-section.scroll-ed.scroll-st {
320
+ box-shadow: inset 2px 0px 0px rgba(255, 255, 255, 0.3), inset -2px 0px 0px rgba(255, 255, 255, 0.3);
321
+ }
322
+ @media only screen and (min-width: 1200px) {
323
+ .card-section {
324
+ align-items: flex-start;
325
+ justify-content: flex-start;
326
+ align-content: flex-start;
327
+ }
328
+ .card-section.scroll-st, .card-section.scroll-ed, .card-section.scroll-ed.scroll-st {
329
+ box-shadow: unset;
330
+ }
331
+ .card-section .card-link {
332
+ flex: unset;
333
+ }
334
+ .card-section .card-link:first-child {
335
+ margin-left: 0;
336
+ }
337
+ .card-section .card-link:last-child {
338
+ margin-right: 0;
339
+ }
340
+ }
341
+ .card-section {
342
+ overflow: inherit;
343
+ overflow-x: scroll;
344
+ overflow-y: hidden;
345
+ animation-duration: 0ms;
346
+ animation-delay: 1000ms;
347
+ animation-fill-mode: forwards;
348
+ }
349
+ @media only screen and (min-width: 1200px) {
350
+ .card-section {
351
+ overflow-x: scroll;
352
+ }
353
+ }
354
+
355
+ @keyframes fadeIn {
356
+ from {
357
+ opacity: 0;
358
+ }
359
+ to {
360
+ opacity: 1;
361
+ }
250
362
  }