@ptcwebops/ptcw-design 2.2.3 → 2.2.5
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/loader.cjs.js +1 -1
- package/dist/cjs/ptc-card-bottom_3.cjs.entry.js +3 -2
- package/dist/cjs/ptc-dynamic-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-related-card-rail.cjs.entry.js +160 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/icon-asset/media/designer.svg +7 -0
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.css +13 -0
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +21 -3
- package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +3 -2
- package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.css +137 -0
- package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.js +190 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +163 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ptc-card-bottom_3.entry.js +3 -2
- package/dist/esm/ptc-dynamic-card.entry.js +1 -1
- package/dist/esm/ptc-related-card-rail.entry.js +156 -0
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/media/designer.svg +7 -0
- package/dist/ptcw-design/p-689f0741.entry.js +1 -0
- package/dist/ptcw-design/{p-b3d8e893.entry.js → p-8a60c2b1.entry.js} +1 -1
- package/dist/ptcw-design/p-fe85ac05.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +5 -1
- package/dist/types/components/ptc-related-card-rail/ptc-related-card-rail.d.ts +30 -0
- package/dist/types/components.d.ts +31 -2
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-8b34f2db.entry.js +0 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare class PtcRelatedCardRail {
|
|
2
|
+
/**
|
|
3
|
+
* Card Rail Element
|
|
4
|
+
*/
|
|
5
|
+
el: HTMLElement;
|
|
6
|
+
/**
|
|
7
|
+
* Query selector of page footer above which the related card rail will unstick
|
|
8
|
+
*/
|
|
9
|
+
footerQuerySelector: string;
|
|
10
|
+
closed: boolean;
|
|
11
|
+
cardInView: number;
|
|
12
|
+
data: {
|
|
13
|
+
image: string;
|
|
14
|
+
text: string;
|
|
15
|
+
href: string;
|
|
16
|
+
}[];
|
|
17
|
+
screenBasedProps: {
|
|
18
|
+
contentContainerMargin: string;
|
|
19
|
+
contentCards: number;
|
|
20
|
+
parahFontSize: string;
|
|
21
|
+
};
|
|
22
|
+
setScreenBasedProps: () => void;
|
|
23
|
+
handlePrevClick: () => void;
|
|
24
|
+
handleNextClick: () => void;
|
|
25
|
+
handleOnScrollBehaviour: () => void;
|
|
26
|
+
handleOnResizeBehaviour: () => void;
|
|
27
|
+
componentWillLoad(): void;
|
|
28
|
+
componentDidLoad(): void;
|
|
29
|
+
render(): any;
|
|
30
|
+
}
|
|
@@ -461,7 +461,7 @@ export namespace Components {
|
|
|
461
461
|
/**
|
|
462
462
|
* Card Type
|
|
463
463
|
*/
|
|
464
|
-
"cardType": 'card-video' | 'card-tall' | 'card-wide' | 'speed-bump' | 'card-playlist' | 'card-video-intro' | 'card-2up' | 'extra-tall' | 'color-outlined' | 'result-box';
|
|
464
|
+
"cardType": 'card-video' | 'card-tall' | 'card-wide' | 'speed-bump' | 'card-playlist' | 'card-video-intro' | 'card-2up' | 'extra-tall' | 'color-outlined' | 'result-box' | 'simple-card';
|
|
465
465
|
/**
|
|
466
466
|
* Internal Screen Size State
|
|
467
467
|
*/
|
|
@@ -474,6 +474,10 @@ export namespace Components {
|
|
|
474
474
|
* link Title
|
|
475
475
|
*/
|
|
476
476
|
"linkTitle"?: string;
|
|
477
|
+
/**
|
|
478
|
+
* (optional) Injected CSS Styles
|
|
479
|
+
*/
|
|
480
|
+
"styles"?: string;
|
|
477
481
|
}
|
|
478
482
|
interface PtcCaseStudiesSlider {
|
|
479
483
|
}
|
|
@@ -1391,6 +1395,12 @@ export namespace Components {
|
|
|
1391
1395
|
*/
|
|
1392
1396
|
"readMoreText": string;
|
|
1393
1397
|
}
|
|
1398
|
+
interface PtcRelatedCardRail {
|
|
1399
|
+
/**
|
|
1400
|
+
* Query selector of page footer above which the related card rail will unstick
|
|
1401
|
+
*/
|
|
1402
|
+
"footerQuerySelector": string;
|
|
1403
|
+
}
|
|
1394
1404
|
interface PtcResponsiveWrapper {
|
|
1395
1405
|
}
|
|
1396
1406
|
interface PtcSearchField {
|
|
@@ -2341,6 +2351,12 @@ declare global {
|
|
|
2341
2351
|
prototype: HTMLPtcReadmoreCharElement;
|
|
2342
2352
|
new (): HTMLPtcReadmoreCharElement;
|
|
2343
2353
|
};
|
|
2354
|
+
interface HTMLPtcRelatedCardRailElement extends Components.PtcRelatedCardRail, HTMLStencilElement {
|
|
2355
|
+
}
|
|
2356
|
+
var HTMLPtcRelatedCardRailElement: {
|
|
2357
|
+
prototype: HTMLPtcRelatedCardRailElement;
|
|
2358
|
+
new (): HTMLPtcRelatedCardRailElement;
|
|
2359
|
+
};
|
|
2344
2360
|
interface HTMLPtcResponsiveWrapperElement extends Components.PtcResponsiveWrapper, HTMLStencilElement {
|
|
2345
2361
|
}
|
|
2346
2362
|
var HTMLPtcResponsiveWrapperElement: {
|
|
@@ -2581,6 +2597,7 @@ declare global {
|
|
|
2581
2597
|
"ptc-quote": HTMLPtcQuoteElement;
|
|
2582
2598
|
"ptc-readmore": HTMLPtcReadmoreElement;
|
|
2583
2599
|
"ptc-readmore-char": HTMLPtcReadmoreCharElement;
|
|
2600
|
+
"ptc-related-card-rail": HTMLPtcRelatedCardRailElement;
|
|
2584
2601
|
"ptc-responsive-wrapper": HTMLPtcResponsiveWrapperElement;
|
|
2585
2602
|
"ptc-search-field": HTMLPtcSearchFieldElement;
|
|
2586
2603
|
"ptc-shopping-cart": HTMLPtcShoppingCartElement;
|
|
@@ -3081,7 +3098,7 @@ declare namespace LocalJSX {
|
|
|
3081
3098
|
/**
|
|
3082
3099
|
* Card Type
|
|
3083
3100
|
*/
|
|
3084
|
-
"cardType"?: 'card-video' | 'card-tall' | 'card-wide' | 'speed-bump' | 'card-playlist' | 'card-video-intro' | 'card-2up' | 'extra-tall' | 'color-outlined' | 'result-box';
|
|
3101
|
+
"cardType"?: 'card-video' | 'card-tall' | 'card-wide' | 'speed-bump' | 'card-playlist' | 'card-video-intro' | 'card-2up' | 'extra-tall' | 'color-outlined' | 'result-box' | 'simple-card';
|
|
3085
3102
|
/**
|
|
3086
3103
|
* Internal Screen Size State
|
|
3087
3104
|
*/
|
|
@@ -3096,6 +3113,10 @@ declare namespace LocalJSX {
|
|
|
3096
3113
|
"linkTitle"?: string;
|
|
3097
3114
|
"onHoverEvent"?: (event: PtcCardWrapperCustomEvent<void>) => void;
|
|
3098
3115
|
"onLeaveEvent"?: (event: PtcCardWrapperCustomEvent<void>) => void;
|
|
3116
|
+
/**
|
|
3117
|
+
* (optional) Injected CSS Styles
|
|
3118
|
+
*/
|
|
3119
|
+
"styles"?: string;
|
|
3099
3120
|
}
|
|
3100
3121
|
interface PtcCaseStudiesSlider {
|
|
3101
3122
|
}
|
|
@@ -4043,6 +4064,12 @@ declare namespace LocalJSX {
|
|
|
4043
4064
|
*/
|
|
4044
4065
|
"readMoreText"?: string;
|
|
4045
4066
|
}
|
|
4067
|
+
interface PtcRelatedCardRail {
|
|
4068
|
+
/**
|
|
4069
|
+
* Query selector of page footer above which the related card rail will unstick
|
|
4070
|
+
*/
|
|
4071
|
+
"footerQuerySelector"?: string;
|
|
4072
|
+
}
|
|
4046
4073
|
interface PtcResponsiveWrapper {
|
|
4047
4074
|
}
|
|
4048
4075
|
interface PtcSearchField {
|
|
@@ -4515,6 +4542,7 @@ declare namespace LocalJSX {
|
|
|
4515
4542
|
"ptc-quote": PtcQuote;
|
|
4516
4543
|
"ptc-readmore": PtcReadmore;
|
|
4517
4544
|
"ptc-readmore-char": PtcReadmoreChar;
|
|
4545
|
+
"ptc-related-card-rail": PtcRelatedCardRail;
|
|
4518
4546
|
"ptc-responsive-wrapper": PtcResponsiveWrapper;
|
|
4519
4547
|
"ptc-search-field": PtcSearchField;
|
|
4520
4548
|
"ptc-shopping-cart": PtcShoppingCart;
|
|
@@ -4625,6 +4653,7 @@ declare module "@stencil/core" {
|
|
|
4625
4653
|
"ptc-quote": LocalJSX.PtcQuote & JSXBase.HTMLAttributes<HTMLPtcQuoteElement>;
|
|
4626
4654
|
"ptc-readmore": LocalJSX.PtcReadmore & JSXBase.HTMLAttributes<HTMLPtcReadmoreElement>;
|
|
4627
4655
|
"ptc-readmore-char": LocalJSX.PtcReadmoreChar & JSXBase.HTMLAttributes<HTMLPtcReadmoreCharElement>;
|
|
4656
|
+
"ptc-related-card-rail": LocalJSX.PtcRelatedCardRail & JSXBase.HTMLAttributes<HTMLPtcRelatedCardRailElement>;
|
|
4628
4657
|
"ptc-responsive-wrapper": LocalJSX.PtcResponsiveWrapper & JSXBase.HTMLAttributes<HTMLPtcResponsiveWrapperElement>;
|
|
4629
4658
|
"ptc-search-field": LocalJSX.PtcSearchField & JSXBase.HTMLAttributes<HTMLPtcSearchFieldElement>;
|
|
4630
4659
|
"ptc-shopping-cart": LocalJSX.PtcShoppingCart & JSXBase.HTMLAttributes<HTMLPtcShoppingCartElement>;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# PTC Design 2.2.
|
|
3
|
+
# PTC Design 2.2.4
|
|
4
4
|
The site is the place for documentation on PTC Design System
|
|
5
5
|
|
|
6
6
|
## Building the Site
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as a,h as e,H as o,g as i}from"./p-ce0e4c5c.js";const r=class{constructor(e){t(this,e),this.hoverEvent=a(this,"hoverEvent",7),this.leaveEvent=a(this,"leaveEvent",7),this.cardType=void 0,this.styles=void 0}hoverEventHandler(){this.hoverEvent.emit(),this.el.classList.contains("card-video")||this.el.classList.contains("card-playlist")||this.el.classList.contains("extra-tall")||(this.el.previousElementSibling.classList.add("mouse-hover"),this.el.classList.add("mouse-hover-card-bottom"))}leaveEventHandler(){this.hoverEvent.emit(),this.el.classList.contains("card-video")||this.el.classList.contains("card-playlist")||this.el.classList.contains("extra-tall")||(this.el.previousElementSibling.classList.remove("mouse-hover"),this.el.classList.remove("mouse-hover-card-bottom"))}render(){const t=this.getCssClassMap();return e(o,{part:"card-bottom",class:t,onMouseEnter:this.hoverEventHandler.bind(this),onMouseLeave:this.leaveEventHandler.bind(this)},this.styles&&e("style",null,this.styles),e("div",{class:"ptc-card-bottom-wrapper"},e("slot",null)))}getCssClassMap(){return{[this.cardType]:!!this.cardType}}get el(){return i(this)}};r.style=":host{display:block}:host(.card-tall) .ptc-card-bottom-wrapper,:host(.card-wide) .ptc-card-bottom-wrapper{position:absolute;bottom:0;left:0;padding:0 var(--ptc-element-spacing-07) var(--ptc-element-spacing-07) var(--ptc-element-spacing-06);z-index:2}:host(.card-2up) .ptc-card-bottom-wrapper{position:absolute;bottom:0;left:0;padding:0px 24px 24px 16px}:host(.card-playlist){flex:72% 2 1;align-self:center}:host(.mouse-hover-card-bottom) .ptc-card-bottom-wrapper{z-index:5;cursor:pointer}:host(.extra-tall){position:absolute;top:0;left:0}:host(.extra-tall) .ptc-card-bottom-wrapper{position:relative;top:0px;left:0px;bottom:0px;right:0px;display:flex;flex-direction:column;align-items:center;width:calc(100% - 64px);padding:var(--ptc-layout-spacing-05) var(--ptc-element-spacing-07);padding-bottom:calc(var(--ptc-layout-spacing-03) + var(--ptc-layout-spacing-05));z-index:2}@media only screen and (min-width: 768px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-bottom:var(--ptc-layout-spacing-05)}}@media only screen and (min-width: 992px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-top:var(--ptc-layout-spacing-05)}}@media only screen and (min-width: 1200px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-top:calc(var(--ptc-layout-spacing-04) + var(--ptc-layout-spacing-05))}}@media only screen and (min-width: 1440px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-top:calc(var(--ptc-layout-spacing-05) * 2)}}:host(.color-outlined) .ptc-card-bottom-wrapper{position:absolute;top:50%;transform:translateY(-50%);display:flex;justify-content:center;flex-direction:column;align-items:center;width:calc(100% - 80px);height:100%;padding:0px var(--ptc-element-spacing-08)}@media only screen and (min-width: 768px){:host(.card-2up) .ptc-card-bottom-wrapper{padding:0 32px 32px 24px}}@media only screen and (min-width: 1200px){:host(.card-video-intro){flex:20% 2 1;justify-content:flex-end}:host(.card-video-intro) .ptc-card-bottom-wrapper{display:flex;justify-content:flex-end}}@media only screen and (min-width: 1440px){:host(.card-2up) .ptc-card-bottom-wrapper{width:70%}}@media only screen and (min-width: 1980px){:host(.card-2up) .ptc-card-bottom-wrapper{width:60%}}";const s=class{constructor(e){t(this,e),this.hoverEvent=a(this,"hoverEvent",7),this.leaveEvent=a(this,"leaveEvent",7),this.cardType=void 0,this.cardLink=void 0,this.linkTitle=void 0,this.linkTarget="_self",this.isLoading=!1}handleResize(){this.checkScreenSize()}hoverEventHandler(){this.el.classList.contains("extra-tall")&&(this.hoverEvent.emit(),this.el.classList.add("extraT-overlay")),this.el.classList.contains("color-outlined")&&(this.hoverEvent.emit(),this.el.querySelector("ptc-overlay").setOverlay("black-5"))}leaveEventHandler(){this.el.classList.contains("extra-tall")&&(this.hoverEvent.emit(),this.el.classList.remove("extraT-overlay")),this.el.classList.contains("color-outlined")&&(this.hoverEvent.emit(),this.el.querySelector("ptc-overlay").setOverlay("black-4"))}componentDidLoad(){this.checkScreenSize()}render(){const t=this.getCssClassMap(),a=this.cardLink?"a":"div";return e(o,Object.assign({class:t},this.isLoading?{}:{onMouseEnter:this.hoverEventHandler.bind(this)},this.isLoading?{}:{onMouseLeave:this.leaveEventHandler.bind(this)}),e(a,Object.assign({},this.cardLink&&!this.isLoading?{href:this.cardLink}:{},this.linkTarget&&this.cardLink&&!this.isLoading?{target:this.linkTarget}:{},this.cardLink&&!this.isLoading?{title:this.linkTitle?this.linkTitle:this.cardLink}:{}),e("slot",null)))}getCssClassMap(){return{[this.cardType]:!!this.cardType}}getBtmContentHeight(){return this.el.querySelector("ptc-card-bottom").offsetHeight}checkScreenSize(){if("extra-tall"===this.cardType)if(window.innerWidth<768){const t=this.el.querySelector("ptc-card-content");t&&t.setHeight(this.getBtmContentHeight())}else{const t=this.el.querySelector("ptc-card-content");t&&t.removeInlineHeight()}}get el(){return i(this)}};s.style=':host{display:block}:host(.card-tall),:host(.card-wide),:host(.card-video),:host(.card-playlist),:host(.card-2up){position:relative}:host(.card-tall) a,:host(.card-wide) a,:host(.card-video) a,:host(.card-playlist) a,:host(.card-2up) a{text-decoration:none !important}:host(.card-tall) a:hover,:host(.card-wide) a:hover,:host(.card-video) a:hover,:host(.card-playlist) a:hover,:host(.card-2up) a:hover{text-decoration:none}:host(.card-tall) a:focus,:host(.card-wide) a:focus,:host(.card-video) a:focus,:host(.card-playlist) a:focus,:host(.card-2up) a:focus{outline:none;text-decoration:none}:host(.card-tall) a:focus-visible,:host(.card-wide) a:focus-visible,:host(.card-video) a:focus-visible,:host(.card-playlist) a:focus-visible,:host(.card-2up) a:focus-visible{outline:none;text-decoration:none}:host(.card-playlist) div,:host(.card-playlist) a{display:flex;text-decoration:none;outline:none}:host(.card-playlist) div:hover,:host(.card-playlist) a:hover{text-decoration:none;outline:none}:host(.card-video-intro){border-bottom-left-radius:var(--ptc-border-radius-large);border-bottom-right-radius:var(--ptc-border-radius-large)}:host(.card-video-intro) div{display:block}:host(.card-video-shadow){box-shadow:var(--ptc-shadow-x-small)}:host(.extra-tall){position:relative}:host(.extra-tall) a{position:relative;display:block;width:100%;height:100%;inset:0px}:host(.extra-tall) a::after{content:"";position:absolute;width:100%;height:100%;background:rgba(0, 0, 0, 0);bottom:0;left:0;border-radius:var(--ptc-border-radius-large);transition:background var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.color-outlined){position:relative;border-radius:var(--ptc-border-radius-large)}:host(.card-video-p){padding:var(--ptc-element-spacing-05);padding-bottom:var(--ptc-element-spacing-06)}:host(.card-m-right){margin-right:var(--ptc-element-spacing-02)}:host(.card-m-left){margin-left:var(--ptc-element-spacing-02)}:host(.extraT-overlay) a::after{background:rgba(0, 0, 0, 0.6)}@media only screen and (min-width: 768px){:host(.card-m-right){margin-right:var(--ptc-element-spacing-03)}:host(.card-m-left){margin-left:var(--ptc-element-spacing-03)}}@media only screen and (min-width: 992px){:host(.card-m-right){margin-right:var(--ptc-element-spacing-04)}:host(.card-m-left){margin-left:var(--ptc-element-spacing-04)}}@media only screen and (min-width: 1200px){:host(.card-video-intro) div{display:flex}}:host(.result-box){width:505px;border:1px solid #6A6A6A;padding-top:56px;padding-bottom:56px;border-radius:var(--ptc-border-radius-large)}:host(.result-box) div{display:flex;justify-content:center;align-items:center;flex-direction:column}';const n=class{constructor(a){t(this,a),this.isLoading=!0,this.animated=!1,this.width="100%",this.borderRadius=void 0,this.topMargin="0px",this.btmMargin="0px"}render(){const t=this.borderRadius||getComputedStyle(document.documentElement).getPropertyValue("--ptc-border-radius-large");return e("div",{class:"content "+(this.animated&&this.isLoading?"animated":""),style:{width:this.width,marginTop:this.topMargin,marginBottom:this.btmMargin}},this.isLoading?e("div",{class:"placeholder",style:{borderRadius:t}}):e("slot",null))}get el(){return i(this)}};n.style=".content{display:flex;align-items:center;justify-content:center;height:100%;}.placeholder{width:100%;height:100%;min-height:1em;background:linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.08) 100%);background-size:400% 100%}@keyframes loading{0%{background-position:200% 0}100%{background-position:-200% 0}}.animated .placeholder{animation:loading 2.5s ease-in-out infinite}";export{r as ptc_card_bottom,s as ptc_card_wrapper,n as ptc_skeleton}
|