@ptcwebops/ptcw-design 7.1.0 → 7.1.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.
- package/dist/cjs/buying-option-card.cjs.entry.js +1 -1
- package/dist/cjs/buying-option-cards-slider.cjs.entry.js +21 -43
- package/dist/cjs/ptc-card_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +12 -12
- package/dist/collection/components/molecules/buying-option-card/buying-option-card.css +0 -2
- package/dist/collection/components/molecules/buying-option-cards-slider/buying-option-cards-slider.css +26 -9
- package/dist/collection/components/molecules/buying-option-cards-slider/buying-option-cards-slider.js +20 -42
- package/dist/collection/components/molecules/ptc-preloader-section/ptc-preloader-section.css +12 -5
- package/dist/collection/components/molecules/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +12 -12
- package/dist/components/blogs-search-section.js +1 -1
- package/dist/components/buying-option-card.js +1 -1
- package/dist/components/buying-option-cards-slider.js +1 -1
- package/dist/components/news-search-result.js +1 -1
- package/dist/components/{p-BuX1FkIY.js → p-BcGmF5Cj.js} +1 -1
- package/dist/components/ptc-preloader-section.js +1 -1
- package/dist/components/ptc-pricing-packaging-table.js +1 -1
- package/dist/esm/buying-option-card.entry.js +1 -1
- package/dist/esm/buying-option-cards-slider.entry.js +21 -43
- package/dist/esm/ptc-card_2.entry.js +1 -1
- package/dist/esm/ptc-pricing-packaging-table.entry.js +12 -12
- package/dist/ptcw-design/{p-9642d3bc.entry.js → p-16d65d23.entry.js} +1 -1
- package/dist/ptcw-design/p-9f7cd06a.entry.js +1 -0
- package/dist/ptcw-design/{p-a6023db1.entry.js → p-b24e19bf.entry.js} +1 -1
- package/dist/ptcw-design/p-e900933a.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +1 -0
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/molecules/ptc-pricing-packaging-table/ptc-pricing-packaging-table.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ptcw-design/p-61c7e03f.entry.js +0 -1
- package/dist/ptcw-design/p-8d45ff77.entry.js +0 -1
|
@@ -341,6 +341,12 @@ const PtcPricingPackagingTable = class {
|
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
|
+
isSlotEmpty = (slotName) => {
|
|
345
|
+
let isEmpty = true;
|
|
346
|
+
const slotElement = this.el.querySelector(`[slot="${slotName}"]`);
|
|
347
|
+
isEmpty = slotElement && !!!slotElement.innerText;
|
|
348
|
+
return isEmpty;
|
|
349
|
+
};
|
|
344
350
|
preProcessTableDescription = () => {
|
|
345
351
|
let tableDescription = this.el.querySelector('[slot="table-description"]');
|
|
346
352
|
if (tableDescription) {
|
|
@@ -493,24 +499,18 @@ const PtcPricingPackagingTable = class {
|
|
|
493
499
|
return (index.h("div", { id: "table-header", class: this.headerType, onScroll: () => this.handleHorizontalScroll() }, index.h("div", { class: `desktop-header-first-cell` }, this.isDesktopView ? (index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "left", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, index.h("slot", { name: "desktop-header-first-cell" }))) : null, index.h("div", { class: "scroll-button mf-listen", id: "previous-scroll-button" }, index.h("div", { class: "mf-listen", onClick: () => this.handleBackwardScroll(), onKeyDown: (e) => this.handleScrollButtonClick(e, -1), tabIndex: 0, id: `previous-scroll-button-${this.sectionId}` }, index.h("icon-asset", { type: "solid", size: "medium", name: "chevron-left", color: "primary-gray" }), index.h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "justify", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, this.moreText))), index.h("div", { class: "scroll-button mf-listen", id: "next-scroll-button" }, index.h("div", { class: "mf-listen", onClick: () => this.handleForwardScroll(), onKeyDown: (e) => this.handleScrollButtonClick(e, 1), tabIndex: 0, id: `next-scroll-button-${this.sectionId}` }, index.h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "justify", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, this.moreText), index.h("icon-asset", { type: "solid", size: "medium", name: "chevron-right", color: "primary-gray" })))), [...Array(this.dataCols).keys()].map((col) => {
|
|
494
500
|
return (index.h("div", { class: `table-cell ${col + 1 === this.dataCols ? "table-last-cell" : ""}` }, index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-densest", "para-margin": "margin-flush", "para-z-index": "z-1" }, index.h("slot", { name: `column-header-${col + 1}` })), this.columnHeaderLinks.length ===
|
|
495
501
|
this.dataCols &&
|
|
496
|
-
this.columnHeaderLinks[col] ? (index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.h("ptc-link", { "dark-focus-state": true, "font-size": "medium", "font-weight": "w-extrabold", href: `${this.columnHeaderLinks[col].linkHref}`, "link-area": "undefined", target: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}", "link-title": this.columnHeaderLinks[col]
|
|
497
|
-
.linkTitle, onFocus: (e) => this.handleAutoScrollOnFocus(e), "tracker-id": `column-header-${col + 1}-link-${this.sectionId}` }, this.
|
|
498
|
-
|
|
499
|
-
? "last-column-tooltip"
|
|
500
|
-
: "", "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.columnHeaderLinks[col].linkText, position: "top" })) : (this.columnHeaderLinks[col]
|
|
501
|
-
.linkText)))) : null));
|
|
502
|
+
this.columnHeaderLinks[col] ? (index.h(index.Fragment, null, this.isSlotEmpty(`column-header-${col + 1}`) ? null : (index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))), index.h("ptc-link", { "dark-focus-state": true, "font-size": "medium", "font-weight": "w-extrabold", href: `${this.columnHeaderLinks[col].linkHref}`, "link-area": "undefined", target: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}", "link-title": this.columnHeaderLinks[col]
|
|
503
|
+
.linkTitle, onFocus: (e) => this.handleAutoScrollOnFocus(e), "tracker-id": `column-header-${col + 1}-link-${this.sectionId}` }, this.columnHeaderLinks[col]
|
|
504
|
+
.linkText))) : null));
|
|
502
505
|
}), index.h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` })));
|
|
503
506
|
};
|
|
504
507
|
const TableHeaderPlaceholder = () => {
|
|
505
508
|
return (index.h("div", { id: "table-header-placeholder", class: this.headerType }, index.h("div", { class: `desktop-header-first-cell` }, this.isDesktopView ? (index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "left", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, index.h("slot", { name: "placeholder-desktop-header-first-cell" }))) : null), [...Array(this.dataCols).keys()].map((col) => {
|
|
506
509
|
return (index.h("div", { class: `table-cell ${col + 1 === this.dataCols ? "table-last-cell" : ""}` }, index.h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-densest", "para-margin": "margin-flush", "para-z-index": "z-1" }, index.h("slot", { name: `placeholder-column-header-${col + 1}` })), this.columnHeaderLinks.length ===
|
|
507
510
|
this.dataCols &&
|
|
508
|
-
this.columnHeaderLinks[col] ? (index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.h("ptc-link", { "font-size": "medium", "font-weight": "w-extrabold", href: `${this.columnHeaderLinks[col].linkHref}`, "link-area": "undefined", target: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}", "link-title": this.columnHeaderLinks[col]
|
|
509
|
-
.linkTitle, "tab-nav": "-1" }, this.
|
|
510
|
-
|
|
511
|
-
? "last-column-tooltip"
|
|
512
|
-
: "", "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.columnHeaderLinks[col].linkText, position: "top" })) : (this.columnHeaderLinks[col]
|
|
513
|
-
.linkText)))) : null));
|
|
511
|
+
this.columnHeaderLinks[col] ? (index.h(index.Fragment, null, this.isSlotEmpty(`placeholder-column-header-${col + 1}`) ? null : (index.h(index.Fragment, null, index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))), index.h("ptc-link", { "font-size": "medium", "font-weight": "w-extrabold", href: `${this.columnHeaderLinks[col].linkHref}`, "link-area": "undefined", target: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}", "link-title": this.columnHeaderLinks[col]
|
|
512
|
+
.linkTitle, "tab-nav": "-1" }, this.columnHeaderLinks[col]
|
|
513
|
+
.linkText))) : null));
|
|
514
514
|
}), index.h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` })));
|
|
515
515
|
};
|
|
516
516
|
const TableDataRows = () => {
|
|
@@ -10,8 +10,6 @@ buying-option-card {
|
|
|
10
10
|
border-radius: var(--ptc-border-radius-standard);
|
|
11
11
|
color: var(--ptc-color-white);
|
|
12
12
|
background-blend-mode: normal, soft-light, hard-light, normal;
|
|
13
|
-
/* Drop Shadow (X-Large) */
|
|
14
|
-
box-shadow: var(--ptc-shadow-x-large);
|
|
15
13
|
}
|
|
16
14
|
buying-option-card .card-header {
|
|
17
15
|
display: flex;
|
|
@@ -760,21 +760,27 @@ ptc-footer {
|
|
|
760
760
|
buying-option-cards-slider {
|
|
761
761
|
position: relative;
|
|
762
762
|
}
|
|
763
|
+
buying-option-cards-slider .bo-slider .swiper-slide {
|
|
764
|
+
height: auto;
|
|
765
|
+
}
|
|
766
|
+
buying-option-cards-slider .bo-slider .swiper-slide buying-option-card {
|
|
767
|
+
height: 100%;
|
|
768
|
+
}
|
|
763
769
|
buying-option-cards-slider .bo-slider.swiper-horizontal {
|
|
764
770
|
display: flex;
|
|
765
771
|
flex-direction: column;
|
|
766
772
|
align-items: center;
|
|
767
|
-
|
|
773
|
+
clip-path: inset(0px -12px -6px -16px);
|
|
768
774
|
padding-bottom: 1rem;
|
|
769
775
|
position: relative;
|
|
770
776
|
}
|
|
771
777
|
buying-option-cards-slider .bo-slider.swiper-horizontal.scrollbar-present {
|
|
772
|
-
padding-bottom:
|
|
778
|
+
padding-bottom: 60px;
|
|
773
779
|
}
|
|
774
780
|
buying-option-cards-slider .bo-slider.swiper-horizontal .swiper-scrollbar {
|
|
775
781
|
position: absolute;
|
|
776
782
|
left: auto;
|
|
777
|
-
bottom:
|
|
783
|
+
bottom: 13.5px;
|
|
778
784
|
top: auto;
|
|
779
785
|
z-index: 50;
|
|
780
786
|
width: 209px;
|
|
@@ -809,6 +815,17 @@ buying-option-cards-slider .bo-slider.swiper-horizontal .swiper-scrollbar .swipe
|
|
|
809
815
|
border-radius: 999px;
|
|
810
816
|
background: var(--color-gray-10);
|
|
811
817
|
}
|
|
818
|
+
buying-option-cards-slider .bo-slider.swiper-horizontal buying-option-card::after {
|
|
819
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
820
|
+
bottom: 0;
|
|
821
|
+
box-shadow: var(--ptc-shadow-large);
|
|
822
|
+
content: "";
|
|
823
|
+
left: 0;
|
|
824
|
+
position: absolute;
|
|
825
|
+
right: 0;
|
|
826
|
+
top: 0;
|
|
827
|
+
z-index: -1;
|
|
828
|
+
}
|
|
812
829
|
buying-option-cards-slider .swiper-button-prev:after,
|
|
813
830
|
buying-option-cards-slider .swiper-button-next:after {
|
|
814
831
|
content: none;
|
|
@@ -820,11 +837,11 @@ buying-option-cards-slider .swiper-button-next img {
|
|
|
820
837
|
buying-option-cards-slider .swiper-button-prev,
|
|
821
838
|
buying-option-cards-slider .swiper-rtl .swiper-button-next {
|
|
822
839
|
top: auto;
|
|
823
|
-
bottom:
|
|
840
|
+
bottom: 0;
|
|
824
841
|
left: auto;
|
|
825
842
|
right: calc(50% + 126.5px);
|
|
826
|
-
height:
|
|
827
|
-
width:
|
|
843
|
+
height: 36px;
|
|
844
|
+
width: 36px;
|
|
828
845
|
border-radius: 4px;
|
|
829
846
|
}
|
|
830
847
|
buying-option-cards-slider .swiper-button-prev:hover,
|
|
@@ -869,11 +886,11 @@ buying-option-cards-slider .swiper-rtl .swiper-button-next svg {
|
|
|
869
886
|
buying-option-cards-slider .swiper-button-next,
|
|
870
887
|
buying-option-cards-slider .swiper-rtl .swiper-button-prev {
|
|
871
888
|
top: auto;
|
|
872
|
-
bottom:
|
|
889
|
+
bottom: 0;
|
|
873
890
|
right: auto;
|
|
874
891
|
left: calc(50% + 126.5px);
|
|
875
|
-
height:
|
|
876
|
-
width:
|
|
892
|
+
height: 36px;
|
|
893
|
+
width: 36px;
|
|
877
894
|
border-radius: var(--ptc-border-radius-standard);
|
|
878
895
|
}
|
|
879
896
|
buying-option-cards-slider .swiper-button-next:hover,
|
|
@@ -29,6 +29,10 @@ export class BuyingOptionCardsSlider {
|
|
|
29
29
|
this.listSwp = new Swiper(list, {
|
|
30
30
|
// Customize options here
|
|
31
31
|
modules: [Navigation, Pagination, Scrollbar, Mousewheel],
|
|
32
|
+
// Ensure CTA links work on first click
|
|
33
|
+
preventClicks: false,
|
|
34
|
+
preventClicksPropagation: false,
|
|
35
|
+
noSwipingSelector: "ptc-button, a",
|
|
32
36
|
allowTouchMove: shouldEnableTouchMove(),
|
|
33
37
|
slidesPerView: 1,
|
|
34
38
|
initialSlide: 0,
|
|
@@ -86,17 +90,10 @@ export class BuyingOptionCardsSlider {
|
|
|
86
90
|
},
|
|
87
91
|
});
|
|
88
92
|
function toggleNav(swiper) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
: (swiper.slides && swiper.slides.length) || 0;
|
|
94
|
-
const spv = swiper.params && swiper.params.slidesPerView;
|
|
95
|
-
const slidesPerView = typeof spv === "number" ? spv : 1;
|
|
96
|
-
const nextBtn = swiper.navigation && swiper.navigation.nextEl;
|
|
97
|
-
const prevBtn = swiper.navigation && swiper.navigation.prevEl;
|
|
98
|
-
if (!nextBtn || !prevBtn)
|
|
99
|
-
return;
|
|
93
|
+
const totalSlides = swiper.slides.length;
|
|
94
|
+
const slidesPerView = swiper.params.slidesPerView;
|
|
95
|
+
const nextBtn = swiper.navigation.nextEl;
|
|
96
|
+
const prevBtn = swiper.navigation.prevEl;
|
|
100
97
|
if (totalSlides <= slidesPerView) {
|
|
101
98
|
nextBtn.style.display = "none";
|
|
102
99
|
prevBtn.style.display = "none";
|
|
@@ -107,16 +104,14 @@ export class BuyingOptionCardsSlider {
|
|
|
107
104
|
}
|
|
108
105
|
}
|
|
109
106
|
function setEqualHeights(swiper) {
|
|
110
|
-
if
|
|
107
|
+
// Check if swiper and slides exist
|
|
108
|
+
if (!swiper || !swiper.slides || swiper.slides.length === 0) {
|
|
111
109
|
return;
|
|
112
|
-
|
|
110
|
+
}
|
|
113
111
|
let maxCardDetailsHeight = 0;
|
|
114
|
-
const slidesArr = Array.from(swiper.slides || []);
|
|
115
|
-
if (slidesArr.length === 0)
|
|
116
|
-
return;
|
|
117
112
|
// Reset all heights first
|
|
118
|
-
|
|
119
|
-
// Reset slide heights
|
|
113
|
+
swiper.slides.forEach((slide) => {
|
|
114
|
+
// Reset slide heights so flexbox can take over
|
|
120
115
|
slide.style.height = "";
|
|
121
116
|
slide.style.minHeight = "";
|
|
122
117
|
// Reset card-details heights
|
|
@@ -127,40 +122,23 @@ export class BuyingOptionCardsSlider {
|
|
|
127
122
|
}
|
|
128
123
|
});
|
|
129
124
|
// Calculate card-details heights immediately
|
|
130
|
-
|
|
125
|
+
swiper.slides.forEach((slide) => {
|
|
131
126
|
const cardDetails = slide.querySelector(".card-details");
|
|
132
127
|
if (cardDetails) {
|
|
133
|
-
|
|
128
|
+
const rect = cardDetails.getBoundingClientRect();
|
|
129
|
+
maxCardDetailsHeight = Math.max(maxCardDetailsHeight, rect.height);
|
|
134
130
|
}
|
|
135
131
|
});
|
|
136
132
|
// Apply card-details heights immediately
|
|
137
|
-
|
|
133
|
+
swiper.slides.forEach((slide) => {
|
|
138
134
|
const cardDetails = slide.querySelector(".card-details");
|
|
139
135
|
if (cardDetails) {
|
|
140
136
|
cardDetails.style.height = `${maxCardDetailsHeight}px`;
|
|
141
137
|
}
|
|
142
138
|
});
|
|
143
|
-
// Add delay for slide height calculation
|
|
144
|
-
setTimeout(() => {
|
|
145
|
-
if (!swiper || !swiper.slides || swiper.destroyed)
|
|
146
|
-
return;
|
|
147
|
-
const slidesLater = Array.from(swiper.slides || []);
|
|
148
|
-
if (slidesLater.length === 0)
|
|
149
|
-
return;
|
|
150
|
-
// Calculate max slide height
|
|
151
|
-
slidesLater.forEach((slide) => {
|
|
152
|
-
maxSlideHeight = Math.max(maxSlideHeight, slide.offsetHeight);
|
|
153
|
-
});
|
|
154
|
-
// Apply slide heights
|
|
155
|
-
slidesLater.forEach((slide) => {
|
|
156
|
-
slide.style.height = `${maxSlideHeight}px`;
|
|
157
|
-
});
|
|
158
|
-
}, 100);
|
|
159
139
|
}
|
|
160
140
|
function toggleScrollbarClass(swiper) {
|
|
161
|
-
|
|
162
|
-
return;
|
|
163
|
-
const scrollbar = swiper.scrollbar && swiper.scrollbar.el;
|
|
141
|
+
const scrollbar = swiper.scrollbar.el;
|
|
164
142
|
const boSlider = swiper.el;
|
|
165
143
|
if (scrollbar && boSlider) {
|
|
166
144
|
const computedStyle = window.getComputedStyle(scrollbar);
|
|
@@ -172,7 +150,7 @@ export class BuyingOptionCardsSlider {
|
|
|
172
150
|
boSlider.classList.add("scrollbar-present");
|
|
173
151
|
}
|
|
174
152
|
// Check if we need to reinitialize based on current allowTouchMove state
|
|
175
|
-
const currentAllowTouchMove = swiper.params
|
|
153
|
+
const currentAllowTouchMove = swiper.params.allowTouchMove;
|
|
176
154
|
const shouldAllowTouchMove = !isDisplayNone;
|
|
177
155
|
if (currentAllowTouchMove !== shouldAllowTouchMove) {
|
|
178
156
|
// Reinitialize swiper with correct allowTouchMove setting
|
|
@@ -184,7 +162,7 @@ export class BuyingOptionCardsSlider {
|
|
|
184
162
|
}
|
|
185
163
|
}
|
|
186
164
|
render() {
|
|
187
|
-
return (h(Host, { key: '
|
|
165
|
+
return (h(Host, { key: 'ced0541beddb7cff423042091e274aa282cfeb06' }, h("div", { key: 'ac1ea7b6ce282a9d0b522d63d5bd1ed498beb9a5', class: "bo-slider" }, h("div", { key: 'a1194d95f238b32be3f2653ff9c30bc1c04c66b1', class: "swiper-wrapper" }, h("slot", { key: 'bc0646a0cb933d1c90b1828684f675f71be89b3c' })), h("div", { key: 'b3057aa2aa15db2141a93029c2e9e3abfa8b1b68', class: "swiper-scrollbar", ref: (el) => (this.swiperPaginationRef = el) }), h("div", { key: 'e4a18f78ca4c4e89f61481b4e827703d99b1faac', class: "swiper-button-next", ref: (el) => (this.swiperButtonNextRef = el) }, h("svg", { key: 'ca9137b18ab127b9b572ead72cebedbed43ebfc2', width: "14", height: "20", viewBox: "0 0 14 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '4c94dd4aa6c7f82fa3b454bc6b8831d9fa7105ff', d: "M0.75 17.25L8 10L0.75 2.75L3.375 0.125L13.25 10L3.375 19.875L0.75 17.25Z", fill: "#323B42" }))), h("div", { key: 'e319ff9da0d098e58b8cb9e07de7d706f46ef057', class: "swiper-button-prev", ref: (el) => (this.swiperButtonPrevRef = el) }, h("svg", { key: 'e3efa1da93f06eebcffffe9f890bba4667ba3fe9', width: "14", height: "20", viewBox: "0 0 14 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '55980a2d4a4bd6072d6a5ad4bd7ac9af3a8cba17', d: "M13.25 2.75L6 10L13.25 17.25L10.625 19.875L0.749999 10L10.625 0.125L13.25 2.75Z", fill: "#323B42" }))))));
|
|
188
166
|
}
|
|
189
167
|
static get is() { return "buying-option-cards-slider"; }
|
|
190
168
|
static get originalStyleUrls() {
|
package/dist/collection/components/molecules/ptc-preloader-section/ptc-preloader-section.css
CHANGED
|
@@ -8394,16 +8394,13 @@ ptc-footer {
|
|
|
8394
8394
|
margin: 0 5px;
|
|
8395
8395
|
}
|
|
8396
8396
|
|
|
8397
|
-
.preloader-store-detail-page .jumbotron {
|
|
8398
|
-
margin-bottom: 48px;
|
|
8399
|
-
}
|
|
8400
8397
|
.preloader-store-detail-page .jumbotron .jumbotron-bg {
|
|
8401
|
-
height:
|
|
8398
|
+
height: 300px;
|
|
8402
8399
|
background-color: var(--color-gray-03);
|
|
8403
8400
|
position: relative;
|
|
8404
8401
|
}
|
|
8405
8402
|
.preloader-store-detail-page .div-body {
|
|
8406
|
-
top: -
|
|
8403
|
+
top: -100px;
|
|
8407
8404
|
position: relative;
|
|
8408
8405
|
}
|
|
8409
8406
|
@media only screen and (min-width: 768px) {
|
|
@@ -8411,6 +8408,16 @@ ptc-footer {
|
|
|
8411
8408
|
text-align: -webkit-center;
|
|
8412
8409
|
}
|
|
8413
8410
|
}
|
|
8411
|
+
@media only screen and (min-width: 480px) {
|
|
8412
|
+
.preloader-store-detail-page .div-body {
|
|
8413
|
+
top: -125px;
|
|
8414
|
+
}
|
|
8415
|
+
}
|
|
8416
|
+
@media only screen and (min-width: 992px) {
|
|
8417
|
+
.preloader-store-detail-page .div-body {
|
|
8418
|
+
top: -148px;
|
|
8419
|
+
}
|
|
8420
|
+
}
|
|
8414
8421
|
.preloader-store-detail-page .div-body .div-grid-block {
|
|
8415
8422
|
position: relative;
|
|
8416
8423
|
z-index: 3;
|
|
@@ -338,6 +338,12 @@ export class PtcPricingPackagingTable {
|
|
|
338
338
|
break;
|
|
339
339
|
}
|
|
340
340
|
};
|
|
341
|
+
isSlotEmpty = (slotName) => {
|
|
342
|
+
let isEmpty = true;
|
|
343
|
+
const slotElement = this.el.querySelector(`[slot="${slotName}"]`);
|
|
344
|
+
isEmpty = slotElement && !!!slotElement.innerText;
|
|
345
|
+
return isEmpty;
|
|
346
|
+
};
|
|
341
347
|
preProcessTableDescription = () => {
|
|
342
348
|
let tableDescription = this.el.querySelector('[slot="table-description"]');
|
|
343
349
|
if (tableDescription) {
|
|
@@ -490,24 +496,18 @@ export class PtcPricingPackagingTable {
|
|
|
490
496
|
return (h("div", { id: "table-header", class: this.headerType, onScroll: () => this.handleHorizontalScroll() }, h("div", { class: `desktop-header-first-cell` }, this.isDesktopView ? (h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "left", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, h("slot", { name: "desktop-header-first-cell" }))) : null, h("div", { class: "scroll-button mf-listen", id: "previous-scroll-button" }, h("div", { class: "mf-listen", onClick: () => this.handleBackwardScroll(), onKeyDown: (e) => this.handleScrollButtonClick(e, -1), tabIndex: 0, id: `previous-scroll-button-${this.sectionId}` }, h("icon-asset", { type: "solid", size: "medium", name: "chevron-left", color: "primary-gray" }), h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "justify", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, this.moreText))), h("div", { class: "scroll-button mf-listen", id: "next-scroll-button" }, h("div", { class: "mf-listen", onClick: () => this.handleForwardScroll(), onKeyDown: (e) => this.handleScrollButtonClick(e, 1), tabIndex: 0, id: `next-scroll-button-${this.sectionId}` }, h("ptc-para", { "font-size": "small", "font-weight": "w-6", "para-align": "justify", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, this.moreText), h("icon-asset", { type: "solid", size: "medium", name: "chevron-right", color: "primary-gray" })))), [...Array(this.dataCols).keys()].map((col) => {
|
|
491
497
|
return (h("div", { class: `table-cell ${col + 1 === this.dataCols ? "table-last-cell" : ""}` }, h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-densest", "para-margin": "margin-flush", "para-z-index": "z-1" }, h("slot", { name: `column-header-${col + 1}` })), this.columnHeaderLinks.length ===
|
|
492
498
|
this.dataCols &&
|
|
493
|
-
this.columnHeaderLinks[col] ? (h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-link", { "dark-focus-state": true, "font-size": "medium", "font-weight": "w-extrabold", href: `${this.columnHeaderLinks[col].linkHref}`, "link-area": "undefined", target: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}", "link-title": this.columnHeaderLinks[col]
|
|
494
|
-
.linkTitle, onFocus: (e) => this.handleAutoScrollOnFocus(e), "tracker-id": `column-header-${col + 1}-link-${this.sectionId}` }, this.
|
|
495
|
-
|
|
496
|
-
? "last-column-tooltip"
|
|
497
|
-
: "", "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.columnHeaderLinks[col].linkText, position: "top" })) : (this.columnHeaderLinks[col]
|
|
498
|
-
.linkText)))) : null));
|
|
499
|
+
this.columnHeaderLinks[col] ? (h(Fragment, null, this.isSlotEmpty(`column-header-${col + 1}`) ? null : (h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))), h("ptc-link", { "dark-focus-state": true, "font-size": "medium", "font-weight": "w-extrabold", href: `${this.columnHeaderLinks[col].linkHref}`, "link-area": "undefined", target: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}", "link-title": this.columnHeaderLinks[col]
|
|
500
|
+
.linkTitle, onFocus: (e) => this.handleAutoScrollOnFocus(e), "tracker-id": `column-header-${col + 1}-link-${this.sectionId}` }, this.columnHeaderLinks[col]
|
|
501
|
+
.linkText))) : null));
|
|
499
502
|
}), h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` })));
|
|
500
503
|
};
|
|
501
504
|
const TableHeaderPlaceholder = () => {
|
|
502
505
|
return (h("div", { id: "table-header-placeholder", class: this.headerType }, h("div", { class: `desktop-header-first-cell` }, this.isDesktopView ? (h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "left", "para-color": "white", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, h("slot", { name: "placeholder-desktop-header-first-cell" }))) : null), [...Array(this.dataCols).keys()].map((col) => {
|
|
503
506
|
return (h("div", { class: `table-cell ${col + 1 === this.dataCols ? "table-last-cell" : ""}` }, h("ptc-para", { "font-size": "medium", "font-weight": "w-7", "para-align": "center", "para-color": "white", "para-line-h": "line-height-densest", "para-margin": "margin-flush", "para-z-index": "z-1" }, h("slot", { name: `placeholder-column-header-${col + 1}` })), this.columnHeaderLinks.length ===
|
|
504
507
|
this.dataCols &&
|
|
505
|
-
this.columnHeaderLinks[col] ? (h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-link", { "font-size": "medium", "font-weight": "w-extrabold", href: `${this.columnHeaderLinks[col].linkHref}`, "link-area": "undefined", target: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}", "link-title": this.columnHeaderLinks[col]
|
|
506
|
-
.linkTitle, "tab-nav": "-1" }, this.
|
|
507
|
-
|
|
508
|
-
? "last-column-tooltip"
|
|
509
|
-
: "", "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.columnHeaderLinks[col].linkText, position: "top" })) : (this.columnHeaderLinks[col]
|
|
510
|
-
.linkText)))) : null));
|
|
508
|
+
this.columnHeaderLinks[col] ? (h(Fragment, null, this.isSlotEmpty(`placeholder-column-header-${col + 1}`) ? null : (h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))), h("ptc-link", { "font-size": "medium", "font-weight": "w-extrabold", href: `${this.columnHeaderLinks[col].linkHref}`, "link-area": "undefined", target: `${this.columnHeaderLinks[col].linkTarget}`, theme: "d-green-underline", styles: "a.ptc-link {line-height: var(--ptc-line-height-p);}", "link-title": this.columnHeaderLinks[col]
|
|
509
|
+
.linkTitle, "tab-nav": "-1" }, this.columnHeaderLinks[col]
|
|
510
|
+
.linkText))) : null));
|
|
511
511
|
}), h("div", { class: `table-filler-cell ${this.showFillerCells ? "show" : ""}` })));
|
|
512
512
|
};
|
|
513
513
|
const TableDataRows = () => {
|