@ptcwebops/ptcw-design 0.8.4 → 0.8.7
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/dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/icon-asset.cjs.entry.js +2 -2
- package/dist/cjs/{index-8745a0a3.js → index-c27e52b2.js} +39 -1
- package/dist/cjs/list-item.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/lottie-player.cjs.entry.js +16369 -13058
- package/dist/cjs/max-width-container.cjs.entry.js +40 -0
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/ptc-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/ptc-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ptc-announcement.cjs.entry.js +1 -2
- package/dist/cjs/ptc-background-video.cjs.entry.js +27 -0
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ptc-button.cjs.entry.js +1 -2
- package/dist/cjs/ptc-card-bottom.cjs.entry.js +2 -2
- package/dist/cjs/ptc-card-content.cjs.entry.js +12 -2
- package/dist/cjs/ptc-card-wrapper.cjs.entry.js +35 -2
- package/dist/cjs/ptc-card_6.cjs.entry.js +3 -16
- package/dist/cjs/ptc-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ptc-collapse-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-container.cjs.entry.js +1 -1
- package/dist/cjs/ptc-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ptc-dynamic-card.cjs.entry.js +1 -2
- package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ptc-filter-tag.cjs.entry.js +1 -1
- package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +1 -1
- package/dist/cjs/ptc-hero.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-minimize.cjs.entry.js +1 -1
- package/dist/cjs/ptc-link.cjs.entry.js +1 -1
- package/dist/cjs/ptc-list.cjs.entry.js +1 -2
- package/dist/cjs/ptc-lottie.cjs.entry.js +1 -1
- package/dist/cjs/ptc-media-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-minimized-footer.cjs.entry.js +1 -1
- package/dist/cjs/ptc-minimized-header.cjs.entry.js +1 -1
- package/dist/cjs/ptc-mobile-select.cjs.entry.js +422 -717
- package/dist/cjs/ptc-modal.cjs.entry.js +1 -1
- package/dist/cjs/ptc-overlay.cjs.entry.js +6 -3
- package/dist/cjs/ptc-pagenation.cjs.entry.js +1 -1
- package/dist/cjs/ptc-previous-url.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-block.cjs.entry.js +1 -1
- package/dist/cjs/ptc-quote.cjs.entry.js +1 -1
- package/dist/cjs/ptc-readmore_2.cjs.entry.js +51 -7
- package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/ptc-shopping-cart.cjs.entry.js +1 -1
- package/dist/cjs/ptc-social-share.cjs.entry.js +1 -1
- package/dist/cjs/ptc-span.cjs.entry.js +1 -1
- package/dist/cjs/ptc-sticky-icons.cjs.entry.js +1 -1
- package/dist/cjs/ptc-svg-btn.cjs.entry.js +1 -1
- package/dist/cjs/ptc-tab-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +9 -4
- package/dist/cjs/ptc-title.cjs.entry.js +6 -4
- package/dist/cjs/ptc-two-column-media.cjs.entry.js +1 -1
- package/dist/cjs/ptcw-design.cjs.js +7 -3
- package/dist/cjs/tab-content.cjs.entry.js +1 -1
- package/dist/cjs/tab-header.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/icon-asset/icon-asset.css +2 -2
- package/dist/collection/components/max-width-container/max-width-container.css +7 -0
- package/dist/collection/components/max-width-container/max-width-container.js +80 -0
- package/dist/collection/components/ptc-announcement/ptc-announcement.js +0 -1
- package/dist/collection/components/ptc-background-video/ptc-background-video.css +50 -0
- package/dist/collection/components/ptc-background-video/ptc-background-video.js +102 -0
- package/dist/collection/components/ptc-button/ptc-button.js +0 -1
- package/dist/collection/components/ptc-card/ptc-card.css +1 -1
- package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.css +11 -1
- package/dist/collection/components/ptc-card-content/ptc-card-content.css +10 -2
- package/dist/collection/components/ptc-card-content/ptc-card-content.js +49 -0
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +43 -1
- package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +0 -1
- package/dist/collection/components/ptc-img/ptc-img.js +0 -3
- package/dist/collection/components/ptc-list/ptc-list.js +0 -1
- package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.css +41 -32
- package/dist/collection/components/ptc-overlay/ptc-overlay.css +4 -0
- package/dist/collection/components/ptc-overlay/ptc-overlay.js +29 -3
- package/dist/collection/components/ptc-para/ptc-para.js +0 -8
- package/dist/collection/components/ptc-picture/ptc-picture.js +0 -2
- package/dist/collection/components/ptc-readmore/ptc-readmore.css +58 -3
- package/dist/collection/components/ptc-readmore/ptc-readmore.js +153 -5
- package/dist/collection/components/ptc-spacer/ptc-spacer.css +1 -1
- package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.css +153 -2
- package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +45 -4
- package/dist/collection/components/ptc-title/ptc-title.css +15 -9
- package/dist/collection/components/ptc-title/ptc-title.js +24 -5
- package/dist/collection/components/ptc-tooltip/ptc-tooltip.css +10 -0
- package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +54 -3
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +17120 -13975
- package/dist/esm/dropdown-item.entry.js +1 -1
- package/dist/esm/icon-asset.entry.js +2 -2
- package/dist/esm/{index-0c73b51e.js → index-40bc29fc.js} +39 -2
- package/dist/esm/list-item.entry.js +1 -1
- package/dist/esm/loader.js +4 -3
- package/dist/esm/lottie-player.entry.js +16369 -13058
- package/dist/esm/max-width-container.entry.js +36 -0
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-accordion.entry.js +1 -1
- package/dist/esm/ptc-announcement.entry.js +1 -2
- package/dist/esm/ptc-background-video.entry.js +23 -0
- package/dist/esm/ptc-breadcrumb.entry.js +1 -1
- package/dist/esm/ptc-button.entry.js +1 -2
- package/dist/esm/ptc-card-bottom.entry.js +2 -2
- package/dist/esm/ptc-card-content.entry.js +12 -2
- package/dist/esm/ptc-card-wrapper.entry.js +35 -2
- package/dist/esm/ptc-card_6.entry.js +3 -16
- package/dist/esm/ptc-checkbox.entry.js +1 -1
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-container.entry.js +1 -1
- package/dist/esm/ptc-dropdown.entry.js +1 -1
- package/dist/esm/ptc-dynamic-card.entry.js +1 -2
- package/dist/esm/ptc-ellipsis-dropdown.entry.js +1 -1
- package/dist/esm/ptc-filter-tag.entry.js +1 -1
- package/dist/esm/ptc-hero-footer-cta.entry.js +1 -1
- package/dist/esm/ptc-hero.entry.js +1 -1
- package/dist/esm/ptc-icon-list.entry.js +1 -1
- package/dist/esm/ptc-icon-minimize.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +1 -1
- package/dist/esm/ptc-list.entry.js +1 -2
- package/dist/esm/ptc-lottie.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-minimized-footer.entry.js +1 -1
- package/dist/esm/ptc-minimized-header.entry.js +1 -1
- package/dist/esm/ptc-mobile-select.entry.js +423 -718
- package/dist/esm/ptc-modal.entry.js +1 -1
- package/dist/esm/ptc-overlay.entry.js +6 -3
- package/dist/esm/ptc-pagenation.entry.js +1 -1
- package/dist/esm/ptc-previous-url.entry.js +1 -1
- package/dist/esm/ptc-pricing-block.entry.js +1 -1
- package/dist/esm/ptc-quote.entry.js +1 -1
- package/dist/esm/ptc-readmore_2.entry.js +51 -7
- package/dist/esm/ptc-responsive-wrapper.entry.js +1 -1
- package/dist/esm/ptc-shopping-cart.entry.js +1 -1
- package/dist/esm/ptc-social-share.entry.js +1 -1
- package/dist/esm/ptc-span.entry.js +1 -1
- package/dist/esm/ptc-sticky-icons.entry.js +1 -1
- package/dist/esm/ptc-svg-btn.entry.js +1 -1
- package/dist/esm/ptc-tab-list.entry.js +1 -1
- package/dist/esm/ptc-text-copy-with-background.entry.js +9 -4
- package/dist/esm/ptc-title.entry.js +6 -4
- package/dist/esm/ptc-two-column-media.entry.js +1 -1
- package/dist/esm/ptcw-design.js +4 -3
- package/dist/esm/tab-content.entry.js +1 -1
- package/dist/esm/tab-header.entry.js +1 -1
- package/dist/ptcw-design/{p-1964f1f4.entry.js → p-001a0b9f.entry.js} +1 -1
- package/dist/ptcw-design/{p-14d6a40c.entry.js → p-0099616c.entry.js} +1 -1
- package/dist/ptcw-design/{p-2bd6743a.entry.js → p-013f5355.entry.js} +1 -1
- package/dist/ptcw-design/p-048502c2.entry.js +1 -0
- package/dist/ptcw-design/{p-f2cb8bc4.entry.js → p-049964f4.entry.js} +1 -1
- package/dist/ptcw-design/{p-c4e20f99.entry.js → p-0f937cff.entry.js} +1 -1
- package/dist/ptcw-design/{p-8637cefc.entry.js → p-13b0d8c3.entry.js} +1 -1
- package/dist/ptcw-design/{p-e6ce8733.entry.js → p-159d9a80.entry.js} +1 -1
- package/dist/ptcw-design/{p-97e00dfa.entry.js → p-1def8f3c.entry.js} +1 -1
- package/dist/ptcw-design/{p-29f3c478.entry.js → p-1e92301d.entry.js} +1 -1
- package/dist/ptcw-design/p-2ac518f1.entry.js +1 -0
- package/dist/ptcw-design/{p-8bb41e7c.entry.js → p-2cc97b88.entry.js} +1 -1
- package/dist/ptcw-design/{p-2aeb4687.entry.js → p-2de0f980.entry.js} +1 -1
- package/dist/ptcw-design/{p-d56b953e.entry.js → p-2eb5ef88.entry.js} +1 -1
- package/dist/ptcw-design/{p-82fc0608.entry.js → p-30007bf3.entry.js} +1 -1
- package/dist/ptcw-design/{p-82472007.entry.js → p-31fbba12.entry.js} +1 -1
- package/dist/ptcw-design/{p-e75dc9f4.entry.js → p-31ffd030.entry.js} +1 -1
- package/dist/ptcw-design/{p-adcc9906.entry.js → p-329cc205.entry.js} +1 -1
- package/dist/ptcw-design/{p-4da43d5f.entry.js → p-34db9e46.entry.js} +1 -1
- package/dist/ptcw-design/p-446df289.entry.js +1 -0
- package/dist/ptcw-design/p-450e9eb0.entry.js +1 -0
- package/dist/ptcw-design/p-47d601fc.entry.js +1 -0
- package/dist/ptcw-design/{p-6131b9a1.entry.js → p-50c88717.entry.js} +1 -1
- package/dist/ptcw-design/{p-5bb7354a.entry.js → p-51db2e2e.entry.js} +1 -1
- package/dist/ptcw-design/{p-a749c353.entry.js → p-586d9c9d.entry.js} +1 -1
- package/dist/ptcw-design/{p-00c1343b.entry.js → p-5c295f08.entry.js} +1 -1
- package/dist/ptcw-design/{p-867c711f.entry.js → p-5dc89a74.entry.js} +1 -1
- package/dist/ptcw-design/{p-c3f73953.entry.js → p-62cabff9.entry.js} +1 -1
- package/dist/ptcw-design/{p-1b0d15aa.entry.js → p-63fab352.entry.js} +1 -1
- package/dist/ptcw-design/{p-6065a1d1.entry.js → p-673121e2.entry.js} +1 -1
- package/dist/ptcw-design/p-67a9ed01.entry.js +1 -0
- package/dist/ptcw-design/p-8b5e393e.entry.js +1 -0
- package/dist/ptcw-design/p-8d48362b.entry.js +1 -0
- package/dist/ptcw-design/{p-0aa91ac2.entry.js → p-9024a899.entry.js} +1 -1
- package/dist/ptcw-design/p-91512aeb.entry.js +1 -0
- package/dist/ptcw-design/{p-3f85b469.entry.js → p-96883fd7.entry.js} +1 -1
- package/dist/ptcw-design/p-9fb2ab8c.js +2 -0
- package/dist/ptcw-design/p-a5f20c41.entry.js +1 -0
- package/dist/ptcw-design/p-a7f07147.entry.js +1 -0
- package/dist/ptcw-design/p-b4d92914.entry.js +1 -0
- package/dist/ptcw-design/{p-88e1778e.entry.js → p-bc0181f3.entry.js} +1 -1
- package/dist/ptcw-design/p-c2275f57.entry.js +1 -0
- package/dist/ptcw-design/{p-a05fe3d0.entry.js → p-c325283e.entry.js} +1 -1
- package/dist/ptcw-design/{p-482a8bc9.entry.js → p-c3621686.entry.js} +1 -1
- package/dist/ptcw-design/p-c693e1c5.entry.js +1 -0
- package/dist/ptcw-design/{p-1aa4d596.entry.js → p-c7247cc9.entry.js} +1 -1
- package/dist/ptcw-design/{p-8808ecc8.entry.js → p-ce3627b8.entry.js} +1 -1
- package/dist/ptcw-design/{p-e87bc2cd.entry.js → p-d24446b2.entry.js} +1 -1
- package/dist/ptcw-design/{p-8bb7da0b.entry.js → p-d625bb90.entry.js} +1 -1
- package/dist/ptcw-design/{p-60843852.entry.js → p-dcf0d341.entry.js} +1 -1
- package/dist/ptcw-design/{p-c4107b5d.entry.js → p-de6b444f.entry.js} +1 -1
- package/dist/ptcw-design/{p-afea5c1f.entry.js → p-e353a8e8.entry.js} +1 -1
- package/dist/ptcw-design/{p-36a453d4.entry.js → p-e66a28aa.entry.js} +1 -1
- package/dist/ptcw-design/{p-21e27f2b.entry.js → p-fed5edd3.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.css +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/max-width-container/max-width-container.d.ts +9 -0
- package/dist/types/components/ptc-background-video/ptc-background-video.d.ts +26 -0
- package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +2 -0
- package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +5 -0
- package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +2 -1
- package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +1 -1
- package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +31 -2
- package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +9 -1
- package/dist/types/components/ptc-title/ptc-title.d.ts +7 -3
- package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +4 -0
- package/dist/types/components.d.ts +194 -9
- package/dist/types/stencil-public-runtime.d.ts +48 -3
- package/dist/types/utils/interfaces.d.ts +2 -2
- package/loader/index.d.ts +9 -0
- package/package.json +1 -1
- package/readme.md +10 -2
- package/dist/cjs/_commonjsHelpers-119ffc74.js +0 -17
- package/dist/esm/_commonjsHelpers-8b28c6fa.js +0 -15
- package/dist/ptcw-design/p-009001dc.js +0 -2
- package/dist/ptcw-design/p-0a825561.entry.js +0 -1
- package/dist/ptcw-design/p-2ca0340b.entry.js +0 -1
- package/dist/ptcw-design/p-2dcea9db.entry.js +0 -1
- package/dist/ptcw-design/p-4c1164d8.entry.js +0 -1
- package/dist/ptcw-design/p-556dcafb.entry.js +0 -1
- package/dist/ptcw-design/p-557e8e2a.entry.js +0 -1
- package/dist/ptcw-design/p-67af0abd.entry.js +0 -1
- package/dist/ptcw-design/p-ac9c4ba2.entry.js +0 -1
- package/dist/ptcw-design/p-b68038b5.js +0 -1
- package/dist/ptcw-design/p-c095d100.entry.js +0 -7
- package/dist/ptcw-design/p-ca9efc42.entry.js +0 -1
- package/dist/ptcw-design/p-cf500bc9.entry.js +0 -1
- package/dist/ptcw-design/p-f9694131.entry.js +0 -1
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
"./components/dropdown-item/dropdown-item.js",
|
|
4
4
|
"./components/icon-asset/icon-asset.js",
|
|
5
5
|
"./components/list-item/list-item.js",
|
|
6
|
+
"./components/max-width-container/max-width-container.js",
|
|
6
7
|
"./components/my-component/my-component.js",
|
|
7
8
|
"./components/ptc-accordion/ptc-accordion.js",
|
|
8
9
|
"./components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js",
|
|
9
10
|
"./components/ptc-announcement/ptc-announcement.js",
|
|
11
|
+
"./components/ptc-background-video/ptc-background-video.js",
|
|
10
12
|
"./components/ptc-breadcrumb/ptc-breadcrumb.js",
|
|
11
13
|
"./components/ptc-button/ptc-button.js",
|
|
12
14
|
"./components/ptc-card/ptc-card.js",
|
|
@@ -59,8 +61,8 @@
|
|
|
59
61
|
],
|
|
60
62
|
"compiler": {
|
|
61
63
|
"name": "@stencil/core",
|
|
62
|
-
"version": "2.
|
|
63
|
-
"typescriptVersion": "4.
|
|
64
|
+
"version": "2.22.1",
|
|
65
|
+
"typescriptVersion": "4.9.4"
|
|
64
66
|
},
|
|
65
67
|
"collections": [
|
|
66
68
|
{
|
|
@@ -11,8 +11,8 @@ svg {
|
|
|
11
11
|
transition: all var(--ptc-transition-medium) var(--ptc-ease-inout);
|
|
12
12
|
}
|
|
13
13
|
svg.micro {
|
|
14
|
-
width: calc(var(--ptc-font-size-x-small)/2);
|
|
15
|
-
height: calc(var(--ptc-font-size-x-small)/2);
|
|
14
|
+
width: calc(var(--ptc-font-size-x-small) / 2);
|
|
15
|
+
height: calc(var(--ptc-font-size-x-small) / 2);
|
|
16
16
|
}
|
|
17
17
|
svg.xxx-small {
|
|
18
18
|
width: var(--ptc-font-size-xxx-small);
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { h, Host } from '@stencil/core';
|
|
2
|
+
export class MaxWidthContainer {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.maxWidth = undefined;
|
|
5
|
+
this.breakpoint = 768;
|
|
6
|
+
}
|
|
7
|
+
componentDidLoad() {
|
|
8
|
+
this.handleResize();
|
|
9
|
+
window.addEventListener('resize', this.handleResize.bind(this));
|
|
10
|
+
}
|
|
11
|
+
disconnectedCallback() {
|
|
12
|
+
window.removeEventListener('resize', this.handleResize);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (h(Host, { class: "max-width-container" }, h("slot", null)));
|
|
16
|
+
}
|
|
17
|
+
handleResize() {
|
|
18
|
+
// const selectedContainer = this.el.querySelector('.max-width-container');
|
|
19
|
+
if (this.el) {
|
|
20
|
+
if (window.innerWidth >= this.breakpoint) {
|
|
21
|
+
this.el.style.maxWidth = `${this.maxWidth}px`;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
this.el.style.maxWidth = 'initial';
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
static get is() { return "max-width-container"; }
|
|
29
|
+
static get encapsulation() { return "shadow"; }
|
|
30
|
+
static get originalStyleUrls() {
|
|
31
|
+
return {
|
|
32
|
+
"$": ["max-width-container.css"]
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
static get styleUrls() {
|
|
36
|
+
return {
|
|
37
|
+
"$": ["max-width-container.css"]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
static get properties() {
|
|
41
|
+
return {
|
|
42
|
+
"maxWidth": {
|
|
43
|
+
"type": "number",
|
|
44
|
+
"mutable": false,
|
|
45
|
+
"complexType": {
|
|
46
|
+
"original": "number",
|
|
47
|
+
"resolved": "number",
|
|
48
|
+
"references": {}
|
|
49
|
+
},
|
|
50
|
+
"required": false,
|
|
51
|
+
"optional": false,
|
|
52
|
+
"docs": {
|
|
53
|
+
"tags": [],
|
|
54
|
+
"text": ""
|
|
55
|
+
},
|
|
56
|
+
"attribute": "max-width",
|
|
57
|
+
"reflect": false
|
|
58
|
+
},
|
|
59
|
+
"breakpoint": {
|
|
60
|
+
"type": "number",
|
|
61
|
+
"mutable": false,
|
|
62
|
+
"complexType": {
|
|
63
|
+
"original": "number",
|
|
64
|
+
"resolved": "number",
|
|
65
|
+
"references": {}
|
|
66
|
+
},
|
|
67
|
+
"required": false,
|
|
68
|
+
"optional": false,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [],
|
|
71
|
+
"text": ""
|
|
72
|
+
},
|
|
73
|
+
"attribute": "breakpoint",
|
|
74
|
+
"reflect": false,
|
|
75
|
+
"defaultValue": "768"
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
static get elementRef() { return "el"; }
|
|
80
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
:host video {
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: 0px;
|
|
8
|
+
left: 0px;
|
|
9
|
+
right: 0;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
z-index: -100;
|
|
15
|
+
object-fit: cover;
|
|
16
|
+
}
|
|
17
|
+
:host .video-overlay {
|
|
18
|
+
z-index: 1;
|
|
19
|
+
display: block;
|
|
20
|
+
position: absolute;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
top: 0;
|
|
24
|
+
left: 0;
|
|
25
|
+
opacity: 0.8;
|
|
26
|
+
background-image: linear-gradient(270deg, rgba(30, 38, 38, 0) 26%, #1e2626);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host(.legacy) {
|
|
30
|
+
display: block;
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: 0px;
|
|
33
|
+
left: 0px;
|
|
34
|
+
right: 0;
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 100%;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
z-index: -100;
|
|
40
|
+
}
|
|
41
|
+
:host(.legacy) video {
|
|
42
|
+
object-fit: cover;
|
|
43
|
+
position: absolute;
|
|
44
|
+
top: 0px;
|
|
45
|
+
left: 0px;
|
|
46
|
+
right: 0;
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: 100%;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
|
+
export class PtcBackgroundVideo {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.videoSrc = undefined;
|
|
5
|
+
this.posterSrc = undefined;
|
|
6
|
+
this.overlay = true;
|
|
7
|
+
this.type = 'default';
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h(Host, { class: this.type }, h("video", { src: this.videoSrc, poster: this.posterSrc, autoplay: true, loop: true, muted: true, playsinline: true }), this.overlay
|
|
11
|
+
? h("div", { class: "video-overlay" })
|
|
12
|
+
: "", this.type == 'default'
|
|
13
|
+
? h("slot", null)
|
|
14
|
+
: ""));
|
|
15
|
+
}
|
|
16
|
+
static get is() { return "ptc-background-video"; }
|
|
17
|
+
static get encapsulation() { return "shadow"; }
|
|
18
|
+
static get originalStyleUrls() {
|
|
19
|
+
return {
|
|
20
|
+
"$": ["ptc-background-video.scss"]
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
static get styleUrls() {
|
|
24
|
+
return {
|
|
25
|
+
"$": ["ptc-background-video.css"]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static get properties() {
|
|
29
|
+
return {
|
|
30
|
+
"videoSrc": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"mutable": false,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "string",
|
|
35
|
+
"resolved": "string",
|
|
36
|
+
"references": {}
|
|
37
|
+
},
|
|
38
|
+
"required": false,
|
|
39
|
+
"optional": false,
|
|
40
|
+
"docs": {
|
|
41
|
+
"tags": [],
|
|
42
|
+
"text": "Video url"
|
|
43
|
+
},
|
|
44
|
+
"attribute": "video-src",
|
|
45
|
+
"reflect": false
|
|
46
|
+
},
|
|
47
|
+
"posterSrc": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"mutable": false,
|
|
50
|
+
"complexType": {
|
|
51
|
+
"original": "string",
|
|
52
|
+
"resolved": "string",
|
|
53
|
+
"references": {}
|
|
54
|
+
},
|
|
55
|
+
"required": false,
|
|
56
|
+
"optional": true,
|
|
57
|
+
"docs": {
|
|
58
|
+
"tags": [],
|
|
59
|
+
"text": "Poster url(Placeholder image till the video get the loaded)"
|
|
60
|
+
},
|
|
61
|
+
"attribute": "poster-src",
|
|
62
|
+
"reflect": false
|
|
63
|
+
},
|
|
64
|
+
"overlay": {
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"mutable": false,
|
|
67
|
+
"complexType": {
|
|
68
|
+
"original": "boolean",
|
|
69
|
+
"resolved": "boolean",
|
|
70
|
+
"references": {}
|
|
71
|
+
},
|
|
72
|
+
"required": false,
|
|
73
|
+
"optional": true,
|
|
74
|
+
"docs": {
|
|
75
|
+
"tags": [],
|
|
76
|
+
"text": "Overlay(Optional, By default is true)"
|
|
77
|
+
},
|
|
78
|
+
"attribute": "overlay",
|
|
79
|
+
"reflect": false,
|
|
80
|
+
"defaultValue": "true"
|
|
81
|
+
},
|
|
82
|
+
"type": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "'default' | 'legacy'",
|
|
87
|
+
"resolved": "\"default\" | \"legacy\"",
|
|
88
|
+
"references": {}
|
|
89
|
+
},
|
|
90
|
+
"required": false,
|
|
91
|
+
"optional": false,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": "Video implementation type:\r\n default: Content need to add in tag \r\n Ex: <ptc-background-video>Content </ptc-background-video>\r\n legacy: Add the blank tag in any other setcon having relative parent.\r\n Ex: <div class=\"section\" style=\"position: relative;\">\r\n <ptc-background-video></ptc-background-video>\r\n Content \r\n </div>"
|
|
95
|
+
},
|
|
96
|
+
"attribute": "type",
|
|
97
|
+
"reflect": false,
|
|
98
|
+
"defaultValue": "'default'"
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
border-radius: var(--ptc-border-radius-standard);
|
|
132
132
|
}
|
|
133
133
|
:host(.clip-edge-card) .card-body {
|
|
134
|
-
transform: translateY(calc(
|
|
134
|
+
transform: translateY(calc(-1 * var(--ptc-element-spacing-04)));
|
|
135
135
|
overflow: hidden;
|
|
136
136
|
width: calc(95% - var(--ptc-element-spacing-04) - var(--ptc-element-spacing-04));
|
|
137
137
|
font-size: var(--ptc-font-size-xx-small);
|
|
@@ -28,8 +28,13 @@
|
|
|
28
28
|
cursor: pointer;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
:host(.extra-tall)
|
|
31
|
+
:host(.extra-tall) {
|
|
32
32
|
position: absolute;
|
|
33
|
+
top: 0;
|
|
34
|
+
left: 0;
|
|
35
|
+
}
|
|
36
|
+
:host(.extra-tall) .ptc-card-bottom-wrapper {
|
|
37
|
+
position: relative;
|
|
33
38
|
top: 0px;
|
|
34
39
|
left: 0px;
|
|
35
40
|
bottom: 0px;
|
|
@@ -48,6 +53,11 @@
|
|
|
48
53
|
}
|
|
49
54
|
}
|
|
50
55
|
@media only screen and (min-width: 992px) {
|
|
56
|
+
:host(.extra-tall) .ptc-card-bottom-wrapper {
|
|
57
|
+
padding-top: var(--ptc-layout-spacing-05);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
@media only screen and (min-width: 1200px) {
|
|
51
61
|
:host(.extra-tall) .ptc-card-bottom-wrapper {
|
|
52
62
|
padding-top: calc(var(--ptc-layout-spacing-04) + var(--ptc-layout-spacing-05));
|
|
53
63
|
}
|
|
@@ -203,10 +203,10 @@
|
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
:host(.extra-tall) .ptc-card-content-wrapper {
|
|
206
|
-
height:
|
|
206
|
+
height: auto;
|
|
207
207
|
}
|
|
208
208
|
:host(.extra-tall) .ptc-card-content-wrapper ::slotted(*) {
|
|
209
|
-
height:
|
|
209
|
+
height: auto;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
:host(.color-outlined) {
|
|
@@ -220,6 +220,14 @@
|
|
|
220
220
|
height: 235px;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
@media only screen and (min-width: 480px) {
|
|
224
|
+
:host(.extra-tall) .ptc-card-content-wrapper {
|
|
225
|
+
height: 435px;
|
|
226
|
+
}
|
|
227
|
+
:host(.extra-tall) .ptc-card-content-wrapper ::slotted(*) {
|
|
228
|
+
height: 435px;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
223
231
|
@media only screen and (min-width: 768px) {
|
|
224
232
|
:host(.card-tall) .ptc-card-content-wrapper {
|
|
225
233
|
height: 325px;
|
|
@@ -23,6 +23,16 @@ export class PtcCardContent {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
+
async setHeight(height) {
|
|
27
|
+
this.el.style.height = height + 'px';
|
|
28
|
+
const image = this.el.querySelector('ptc-picture');
|
|
29
|
+
image.style.height = height + 'px';
|
|
30
|
+
}
|
|
31
|
+
async removeInlineHeight() {
|
|
32
|
+
this.el.style.removeProperty('height');
|
|
33
|
+
const image = this.el.querySelector('ptc-picture');
|
|
34
|
+
image.style.removeProperty('height');
|
|
35
|
+
}
|
|
26
36
|
render() {
|
|
27
37
|
const classMap = this.getCssClassMap();
|
|
28
38
|
return (h(Host, { part: "card-content", class: classMap, onMouseEnter: this.hoverEventHandler.bind(this), onMouseLeave: this.leaveEventHandler.bind(this) }, this.styles && h("style", null, this.styles), h("div", { class: "ptc-card-content-wrapper" }, h("slot", null))));
|
|
@@ -133,5 +143,44 @@ export class PtcCardContent {
|
|
|
133
143
|
}
|
|
134
144
|
}];
|
|
135
145
|
}
|
|
146
|
+
static get methods() {
|
|
147
|
+
return {
|
|
148
|
+
"setHeight": {
|
|
149
|
+
"complexType": {
|
|
150
|
+
"signature": "(height: number) => Promise<void>",
|
|
151
|
+
"parameters": [{
|
|
152
|
+
"tags": [],
|
|
153
|
+
"text": ""
|
|
154
|
+
}],
|
|
155
|
+
"references": {
|
|
156
|
+
"Promise": {
|
|
157
|
+
"location": "global"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"return": "Promise<void>"
|
|
161
|
+
},
|
|
162
|
+
"docs": {
|
|
163
|
+
"text": "",
|
|
164
|
+
"tags": []
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"removeInlineHeight": {
|
|
168
|
+
"complexType": {
|
|
169
|
+
"signature": "() => Promise<void>",
|
|
170
|
+
"parameters": [],
|
|
171
|
+
"references": {
|
|
172
|
+
"Promise": {
|
|
173
|
+
"location": "global"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"return": "Promise<void>"
|
|
177
|
+
},
|
|
178
|
+
"docs": {
|
|
179
|
+
"text": "",
|
|
180
|
+
"tags": []
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
}
|
|
136
185
|
static get elementRef() { return "el"; }
|
|
137
186
|
}
|
|
@@ -6,18 +6,35 @@ export class PtcCardPlm {
|
|
|
6
6
|
this.linkTitle = undefined;
|
|
7
7
|
this.linkTarget = '_self';
|
|
8
8
|
}
|
|
9
|
+
/** Internal Screen Size State */
|
|
10
|
+
// @State() mql: MediaQueryList;
|
|
11
|
+
handleResize() {
|
|
12
|
+
this.checkScreenSize();
|
|
13
|
+
}
|
|
9
14
|
hoverEventHandler() {
|
|
10
15
|
if (this.el.classList.contains('extra-tall')) {
|
|
11
16
|
this.hoverEvent.emit();
|
|
12
17
|
this.el.classList.add('extraT-overlay');
|
|
13
18
|
}
|
|
19
|
+
if (this.el.classList.contains('color-outlined')) {
|
|
20
|
+
this.hoverEvent.emit();
|
|
21
|
+
const cardOverlay = this.el.querySelector('ptc-overlay');
|
|
22
|
+
cardOverlay.setOverlay('black-5');
|
|
23
|
+
}
|
|
14
24
|
}
|
|
15
25
|
leaveEventHandler() {
|
|
16
26
|
if (this.el.classList.contains('extra-tall')) {
|
|
17
27
|
this.hoverEvent.emit();
|
|
18
|
-
console.log(this.el.classList);
|
|
19
28
|
this.el.classList.remove('extraT-overlay');
|
|
20
29
|
}
|
|
30
|
+
if (this.el.classList.contains('color-outlined')) {
|
|
31
|
+
this.hoverEvent.emit();
|
|
32
|
+
const cardOverlay = this.el.querySelector('ptc-overlay');
|
|
33
|
+
cardOverlay.setOverlay('black-4');
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
componentDidLoad() {
|
|
37
|
+
this.checkScreenSize();
|
|
21
38
|
}
|
|
22
39
|
render() {
|
|
23
40
|
const classMap = this.getCssClassMap();
|
|
@@ -29,6 +46,22 @@ export class PtcCardPlm {
|
|
|
29
46
|
[this.cardType]: this.cardType ? true : false,
|
|
30
47
|
};
|
|
31
48
|
}
|
|
49
|
+
getBtmContentHeight() {
|
|
50
|
+
const bottomContent = this.el.querySelector('ptc-card-bottom');
|
|
51
|
+
return bottomContent.offsetHeight;
|
|
52
|
+
}
|
|
53
|
+
checkScreenSize() {
|
|
54
|
+
if (window.innerWidth < 768) {
|
|
55
|
+
if (this.cardType === 'extra-tall') {
|
|
56
|
+
const cardContent = this.el.querySelector('ptc-card-content');
|
|
57
|
+
cardContent.setHeight(this.getBtmContentHeight());
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
const cardContent = this.el.querySelector('ptc-card-content');
|
|
62
|
+
cardContent.removeInlineHeight();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
32
65
|
static get is() { return "ptc-card-wrapper"; }
|
|
33
66
|
static get encapsulation() { return "shadow"; }
|
|
34
67
|
static get originalStyleUrls() {
|
|
@@ -148,4 +181,13 @@ export class PtcCardPlm {
|
|
|
148
181
|
}];
|
|
149
182
|
}
|
|
150
183
|
static get elementRef() { return "el"; }
|
|
184
|
+
static get listeners() {
|
|
185
|
+
return [{
|
|
186
|
+
"name": "resize",
|
|
187
|
+
"method": "handleResize",
|
|
188
|
+
"target": "window",
|
|
189
|
+
"capture": false,
|
|
190
|
+
"passive": true
|
|
191
|
+
}];
|
|
192
|
+
}
|
|
151
193
|
}
|
|
@@ -27,7 +27,6 @@ export class PtcImg {
|
|
|
27
27
|
this.setResponsiveBg();
|
|
28
28
|
}
|
|
29
29
|
componentWillUpdate() {
|
|
30
|
-
// console.log('componentWillUpdate!');
|
|
31
30
|
this.addIntersectionObserver();
|
|
32
31
|
this.setResponsiveBg();
|
|
33
32
|
}
|
|
@@ -35,7 +34,6 @@ export class PtcImg {
|
|
|
35
34
|
setResponsiveBg() {
|
|
36
35
|
// Define local variables
|
|
37
36
|
let backgrounds = (this.el || document).querySelectorAll(ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
38
|
-
// console.log('current breakpoint: ' + currentBreakpoint);
|
|
39
37
|
// Loop through all target elements
|
|
40
38
|
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
41
39
|
// Set current variables
|
|
@@ -65,7 +63,6 @@ export class PtcImg {
|
|
|
65
63
|
if (entry.isIntersecting) {
|
|
66
64
|
const image = entry.target;
|
|
67
65
|
image.classList.remove('lazy-bg');
|
|
68
|
-
// console.log('loaded');
|
|
69
66
|
bgObserver.unobserve(image);
|
|
70
67
|
}
|
|
71
68
|
});
|