@ptcwebops/ptcw-design 6.3.48-beta → 6.3.50-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.
@@ -21,6 +21,7 @@ const PtcStickyIcons = class {
21
21
  }
22
22
  setHostLocation() {
23
23
  let width = (window.innerWidth > 0) ? window.innerWidth : screen.width;
24
+ const detailSection = document.querySelector(".cs-detail-section");
24
25
  let currEle = this.el;
25
26
  // get the element
26
27
  const element = document.querySelector("ptc-sticky-icons");
@@ -29,6 +30,14 @@ const PtcStickyIcons = class {
29
30
  if (width < 992) {
30
31
  currEle.parentElement.appendChild(currEle);
31
32
  currEle.parentElement.style.paddingRight = "0px";
33
+ // Code for case study page only
34
+ // Moving sticky icon in the last ptc-section div
35
+ if (detailSection) {
36
+ const lastSection = detailSection.querySelectorAll('.content-section section.ptc-section').length ? detailSection.querySelectorAll('section.ptc-section')[detailSection.querySelectorAll('section.ptc-section').length - 1] : null;
37
+ if (lastSection && !lastSection.contains(element)) {
38
+ lastSection.appendChild(currEle);
39
+ }
40
+ }
32
41
  }
33
42
  else {
34
43
  currEle.parentElement.prepend(currEle);
@@ -3583,6 +3583,115 @@ ptc-link, ptc-square-card,
3583
3583
  margin: 0 5px;
3584
3584
  }
3585
3585
 
3586
+ .preloader-store-detail-page .jumbotron {
3587
+ margin-bottom: 48px;
3588
+ }
3589
+ .preloader-store-detail-page .jumbotron .jumbotron-bg {
3590
+ height: 262px;
3591
+ background-color: var(--color-gray-03);
3592
+ position: relative;
3593
+ }
3594
+ .preloader-store-detail-page .div-body {
3595
+ top: -172px;
3596
+ position: relative;
3597
+ }
3598
+ @media only screen and (min-width: 768px) {
3599
+ .preloader-store-detail-page .div-body {
3600
+ text-align: -webkit-center;
3601
+ }
3602
+ }
3603
+ .preloader-store-detail-page .div-body .div-grid-block {
3604
+ position: relative;
3605
+ z-index: 3;
3606
+ border-radius: 4px;
3607
+ background: #FFF;
3608
+ padding: 40px;
3609
+ }
3610
+ @media only screen and (min-width: 768px) {
3611
+ .preloader-store-detail-page .div-body .div-grid-block {
3612
+ max-width: 890px;
3613
+ width: 70%;
3614
+ display: flex;
3615
+ flex-direction: row;
3616
+ }
3617
+ }
3618
+ @media only screen and (min-width: 768px) {
3619
+ .preloader-store-detail-page .div-body .div-grid-block .div-1 {
3620
+ flex-basis: 50%;
3621
+ padding-right: 40px;
3622
+ display: flex;
3623
+ justify-content: space-between;
3624
+ flex-direction: column;
3625
+ }
3626
+ }
3627
+ .preloader-store-detail-page .div-body .div-grid-block .div-3 {
3628
+ display: none;
3629
+ }
3630
+ @media only screen and (min-width: 768px) {
3631
+ .preloader-store-detail-page .div-body .div-grid-block .div-3 {
3632
+ display: block;
3633
+ }
3634
+ }
3635
+ .preloader-store-detail-page .div-body .div-grid-block .div-2 {
3636
+ display: block;
3637
+ }
3638
+ @media only screen and (min-width: 768px) {
3639
+ .preloader-store-detail-page .div-body .div-grid-block .div-2 {
3640
+ display: none;
3641
+ }
3642
+ }
3643
+ .preloader-store-detail-page .div-body .div-grid-block .thick-block {
3644
+ height: 96px;
3645
+ }
3646
+ .preloader-store-detail-page .div-body .div-grid-block .div-middle {
3647
+ margin: 40px 0;
3648
+ border-radius: 4px;
3649
+ border: 1px solid var(--color-gray-02);
3650
+ padding: 95px 40px;
3651
+ }
3652
+ @media only screen and (min-width: 768px) {
3653
+ .preloader-store-detail-page .div-body .div-grid-block .div-middle {
3654
+ flex-basis: 50%;
3655
+ margin: 0;
3656
+ }
3657
+ }
3658
+ .preloader-store-detail-page .div-body .div-grid-block .div-middle .div-skeleton {
3659
+ align-items: center;
3660
+ }
3661
+ .preloader-store-detail-page .div-body .div-grid-block .div-middle .button-block {
3662
+ width: 125px;
3663
+ height: 48px;
3664
+ }
3665
+ .preloader-store-detail-page .div-content {
3666
+ top: -172px;
3667
+ margin-top: 56px;
3668
+ position: relative;
3669
+ border-radius: 4px;
3670
+ background: #FFF;
3671
+ padding: 40px;
3672
+ }
3673
+ .preloader-store-detail-page .div-content .border-line {
3674
+ margin: 40px 10px;
3675
+ border: 1px solid var(--color-gray-02);
3676
+ }
3677
+ .preloader-store-detail-page .div-content .thick-block {
3678
+ height: 96px;
3679
+ margin-top: 40px;
3680
+ }
3681
+ .preloader-store-detail-page .heading {
3682
+ width: 125px;
3683
+ }
3684
+ .preloader-store-detail-page .para {
3685
+ height: 96px;
3686
+ margin-top: 40px;
3687
+ }
3688
+ @media only screen and (min-width: 768px) {
3689
+ .preloader-store-detail-page .para {
3690
+ width: 65%;
3691
+ height: 192px;
3692
+ }
3693
+ }
3694
+
3586
3695
  @keyframes pulse {
3587
3696
  0% {
3588
3697
  opacity: 0.5;
@@ -96,6 +96,9 @@ export class PtcPreloaderSection {
96
96
  case 'store-listing-page': {
97
97
  return (h("div", { class: "preloader-wrapper preloader-store-listing-page" }, h("div", { class: "ptc-container" }, h("div", { class: "top" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block top-block thin" }))), h("div", { class: "is-grid has-no-col-gap mobile-block" }, h("div", { class: "is-col-7 is-col-8-sm" }, h("div", { class: "search-box" }, h("div", { class: "search-input-box" }), h("div", { class: "skeleton-block search-btn-box" }))), h("div", { class: "is-col-5 is-col-4-sm" }, h("div", { class: "search-btn" }))), h("div", { class: "is-grid has-col-1" }, h("div", { class: "mobile-cards-wrapper" }, h("div", { class: "div-top-lines skeleton" }, h("div", { class: "skeleton-block block-1" }), h("div", { class: "skeleton-block block-2 thick" })), Array.from({ length: 6 }).map(() => (h("div", { class: "cards-div cards-mobile" }, h("div", { class: "skeleton cards-div-block" }, h("div", { class: "skeleton-block block-1" }), h("div", { class: "skeleton-block block-2 thinner" }), h("div", { class: "skeleton-block block-3 thinner" }), h("div", { class: "skeleton-block block-4" }))))), Array.from({ length: 6 }).map(() => (h("div", { class: "cards-div cards-ipad" }, h("div", { class: "is-grid" }, h("div", { class: "is-col-6" }, h("div", { class: "skeleton cards-div-block" }, h("div", { class: "skeleton-block block-1" }), h("div", { class: "skeleton-block block-2 thinner" }), h("div", { class: "skeleton-block block-3 thinner" }), h("div", { class: "skeleton-block block-4" }))), h("div", { class: "is-col-6" }, h("div", { class: "skeleton cards-div-block-right" }, h("div", { class: "skeleton-block block-1" }), h("div", { class: "skeleton-block block-2 thinner" }), h("div", { class: "skeleton-block block-3" }))))))))), h("div", { class: "desktop-grid" }, h("div", { class: "is-grid has-col-gap-md" }, h("div", { class: "is-col-3" }, h("div", { class: "search-box" }, h("div", { class: "search-input-box" }), h("div", { class: "skeleton-block search-btn-box" })), h("div", { class: "search-filters" }, h("div", { class: "div-block-1 skeleton" }, h("div", { class: "skeleton-block block-1" })), Array.from({ length: 4 }).map(() => (h("div", { class: "div-filter" }, h("div", { class: "div-filter-top skeleton" }, h("div", { class: "skeleton-block block-1" }), h("div", { class: "skeleton-block block-2" })), h("div", { class: "div-filter-body skeleton" }, h("div", { class: "skeleton-block block-1" }), h("div", { class: "skeleton-block block-2" })), h("div", { class: "div-filter-body skeleton" }, h("div", { class: "skeleton-block block-1" }), h("div", { class: "skeleton-block block-3" })), h("div", { class: "div-filter-body skeleton" }, h("div", { class: "skeleton-block block-1" }), h("div", { class: "skeleton-block block-2" })), h("div", { class: "div-filter-body skeleton" }, h("div", { class: "skeleton-block block-1" }), h("div", { class: "skeleton-block block-3" }))))))), h("div", { class: "is-col-9" }, h("div", { class: "desktop-cards-wrapper" }, h("div", { class: "div-top-lines skeleton" }, h("div", { class: "skeleton-block block-1" }), h("div", { class: "skeleton-block block-2 thick" })), Array.from({ length: 6 }).map(() => (h("div", { class: "cards-div cards-ipad" }, h("div", { class: "is-grid" }, h("div", { class: "is-col-6" }, h("div", { class: "skeleton cards-div-block" }, h("div", { class: "skeleton-block block-1" }), h("div", { class: "skeleton-block block-2 thinner" }), h("div", { class: "skeleton-block block-3 thinner" }), h("div", { class: "skeleton-block block-4" }))), h("div", { class: "is-col-6" }, h("div", { class: "skeleton cards-div-block-right" }, h("div", { class: "skeleton-block block-1" }), h("div", { class: "skeleton-block block-2 thinner" }), h("div", { class: "skeleton-block block-3" }))))))))))))));
98
98
  }
99
+ case 'store-detail-page': {
100
+ return (h("div", { class: "preloader-wrapper preloader-store-detail-page" }, h("div", { class: "jumbotron " }, h("div", { class: "jumbotron-bg" })), h("div", { class: "div-body" }, h("div", { class: "ptc-container" }, h("div", { class: "div-grid-block" }, h("div", { class: "div-1" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block thin heading" }), h("div", { class: "skeleton-block thick-block" })), h("div", { class: "div-3" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block thin heading" }), h("div", { class: "skeleton-block thick-block" })))), h("div", { class: "div-middle" }, h("div", { class: "is-grid has-no-row-gap" }, h("div", { class: "is-col-12" }, h("div", { class: "skeleton div-skeleton" }, h("div", { class: "skeleton-block button-block" }), h("div", { class: "skeleton-block thick" }), h("div", { class: "skeleton-block button-block" }))))), h("div", { class: "div-2" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block thin heading" }), h("div", { class: "skeleton-block thick-block" })))))), h("div", { class: "ptc-container" }, h("div", { class: "div-content" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block thin heading" })), h("div", { class: "border-line" }), h("div", { class: "skeleton" }, h("div", { class: "skeleton-block thin heading" }), h("div", { class: "skeleton-block para" }))))));
101
+ }
99
102
  default:
100
103
  return (h("div", { class: "ptc-section-standard preload-min-height" }, h("div", { class: "ptc-container" }, h("max-width-container", { "max-width": "960", breakpoint: 1200 }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-header" }, h("div", { class: "skeleton-block bold" }), h("div", { class: "skeleton-block wide bold" }), h("ptc-spacer", { breakpoint: "small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "x-large" }), h("div", { class: "skeleton-block medium" }), h("div", { class: "skeleton-block narrow" }), h("div", { class: "skeleton-block short" })), h("div", { class: "skeleton-image" }), h("div", { class: "skeleton-text" }, h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block long" }), h("div", { class: "skeleton-block narrow" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block medium" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block long" }), h("div", { class: "skeleton-block medium" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block long" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block medium" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block wide" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block short bold" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block wide" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block" }), h("div", { class: "skeleton-block medium" })))))));
101
104
  }
@@ -11,6 +11,7 @@ export class PtcStickyIcons {
11
11
  }
12
12
  setHostLocation() {
13
13
  let width = (window.innerWidth > 0) ? window.innerWidth : screen.width;
14
+ const detailSection = document.querySelector(".cs-detail-section");
14
15
  let currEle = this.el;
15
16
  // get the element
16
17
  const element = document.querySelector("ptc-sticky-icons");
@@ -19,6 +20,14 @@ export class PtcStickyIcons {
19
20
  if (width < 992) {
20
21
  currEle.parentElement.appendChild(currEle);
21
22
  currEle.parentElement.style.paddingRight = "0px";
23
+ // Code for case study page only
24
+ // Moving sticky icon in the last ptc-section div
25
+ if (detailSection) {
26
+ const lastSection = detailSection.querySelectorAll('.content-section section.ptc-section').length ? detailSection.querySelectorAll('section.ptc-section')[detailSection.querySelectorAll('section.ptc-section').length - 1] : null;
27
+ if (lastSection && !lastSection.contains(element)) {
28
+ lastSection.appendChild(currEle);
29
+ }
30
+ }
22
31
  }
23
32
  else {
24
33
  currEle.parentElement.prepend(currEle);