@ptcwebops/ptcw-design 0.2.8 → 0.2.9
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/icon-asset_16.cjs.entry.js +812 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{ptc-announcement_2.cjs.entry.js → ptc-announcement.cjs.entry.js} +0 -25
- package/dist/cjs/ptc-list.cjs.entry.js +2 -3
- package/dist/cjs/ptc-svg-btn.cjs.entry.js +31 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/icon-asset/media/designer.svg +33 -0
- package/dist/collection/components/list-item/list-item.css +39 -1
- package/dist/collection/components/list-item/list-item.js +26 -5
- package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.css +19 -0
- package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +21 -0
- package/dist/collection/components/ptc-button/ptc-button.css +12 -1
- package/dist/collection/components/ptc-button/ptc-button.js +29 -7
- package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.css +12 -0
- package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +41 -0
- package/dist/collection/components/ptc-card-content/ptc-card-content.css +61 -0
- package/dist/collection/components/ptc-card-content/ptc-card-content.js +81 -0
- package/dist/collection/components/ptc-card-plm/ptc-card-plm.css +19 -0
- package/dist/collection/components/ptc-card-plm/ptc-card-plm.js +97 -0
- package/dist/collection/components/ptc-hero/ptc-hero.css +13 -0
- package/dist/collection/components/ptc-hero/ptc-hero.js +43 -0
- package/dist/collection/components/ptc-img/ptc-img.js +6 -1
- package/dist/collection/components/ptc-link/ptc-link.css +25 -3
- package/dist/collection/components/ptc-link/ptc-link.js +3 -2
- package/dist/collection/components/ptc-list/ptc-list.css +8 -4
- package/dist/collection/components/ptc-list/ptc-list.js +5 -8
- package/dist/collection/components/ptc-overlay/ptc-overlay.css +81 -0
- package/dist/collection/components/ptc-overlay/ptc-overlay.js +88 -3
- package/dist/collection/components/ptc-para/ptc-para.css +59 -0
- package/dist/collection/components/ptc-para/ptc-para.js +53 -7
- package/dist/collection/components/ptc-picture/ptc-picture.css +28 -1
- package/dist/collection/components/ptc-picture/ptc-picture.js +27 -9
- package/dist/collection/components/ptc-spacer/ptc-spacer.css +11 -0
- package/dist/collection/components/ptc-spacer/ptc-spacer.js +2 -2
- package/dist/collection/components/ptc-span/ptc-span.css +26 -1
- package/dist/collection/components/ptc-span/ptc-span.js +6 -3
- package/dist/collection/components/ptc-title/ptc-title.css +108 -11
- package/dist/collection/components/ptc-title/ptc-title.js +62 -4
- package/dist/custom-elements/index.d.ts +30 -0
- package/dist/custom-elements/index.js +199 -35
- package/dist/esm/icon-asset_16.entry.js +793 -0
- package/dist/esm/{index-eb8ce23d.js → index-6ce5b664.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottie-player.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/{ptc-announcement_2.entry.js → ptc-announcement.entry.js} +2 -26
- package/dist/esm/ptc-avatar.entry.js +1 -1
- package/dist/esm/ptc-card.entry.js +1 -1
- package/dist/esm/ptc-countdown.entry.js +1 -1
- package/dist/esm/ptc-date.entry.js +1 -1
- package/dist/esm/ptc-footer.entry.js +1 -1
- package/dist/esm/ptc-form.entry.js +1 -1
- package/dist/esm/ptc-input.entry.js +1 -1
- package/dist/esm/ptc-list.entry.js +3 -4
- package/dist/esm/ptc-lottie.entry.js +1 -1
- package/dist/esm/ptc-nav-item.entry.js +1 -1
- package/dist/esm/ptc-nav.entry.js +1 -1
- package/dist/esm/ptc-select.entry.js +1 -1
- package/dist/esm/ptc-svg-btn.entry.js +27 -0
- package/dist/esm/ptcw-design.js +2 -2
- package/dist/ptcw-design/media/designer.svg +33 -0
- package/dist/ptcw-design/{p-63b55aba.entry.js → p-281824f5.entry.js} +1 -1
- package/dist/ptcw-design/p-31b2af1d.entry.js +1 -0
- package/dist/ptcw-design/{p-f94c4594.entry.js → p-3437fbce.entry.js} +1 -1
- package/dist/ptcw-design/{p-e8650244.entry.js → p-542939d4.entry.js} +1 -1
- package/dist/ptcw-design/{p-ef6acb81.entry.js → p-5c78913c.entry.js} +1 -1
- package/dist/ptcw-design/{p-3f42afb6.entry.js → p-5eb74dc3.entry.js} +1 -1
- package/dist/ptcw-design/p-609dec21.entry.js +1 -0
- package/dist/ptcw-design/{p-1b3b0193.entry.js → p-6ff80c95.entry.js} +1 -1
- package/dist/ptcw-design/p-8bbb4277.entry.js +1 -0
- package/dist/ptcw-design/p-9a35c9e2.entry.js +1 -0
- package/dist/ptcw-design/{p-22fd400f.entry.js → p-aafe51df.entry.js} +1 -1
- package/dist/ptcw-design/{p-75dc7328.entry.js → p-ac57feca.entry.js} +1 -1
- package/dist/ptcw-design/{p-2ca3c085.js → p-b1afaef3.js} +1 -1
- package/dist/ptcw-design/p-b85eda19.entry.js +1 -0
- package/dist/ptcw-design/p-bac826ad.entry.js +1 -0
- package/dist/ptcw-design/{p-e4b96b46.entry.js → p-da7ee0ba.entry.js} +1 -1
- package/dist/ptcw-design/{p-32ef3a79.entry.js → p-e2492128.entry.js} +1 -1
- package/dist/ptcw-design/p-e266fc0b.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +2 -2
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/list-item/list-item.d.ts +2 -1
- package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +4 -0
- package/dist/types/components/ptc-button/ptc-button.d.ts +7 -3
- package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +5 -0
- package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +11 -0
- package/dist/types/components/ptc-card-plm/ptc-card-plm.d.ts +8 -0
- package/dist/types/components/ptc-hero/ptc-hero.d.ts +5 -0
- package/dist/types/components/ptc-img/ptc-img.d.ts +3 -0
- package/dist/types/components/ptc-link/ptc-link.d.ts +1 -1
- package/dist/types/components/ptc-list/ptc-list.d.ts +1 -1
- package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +17 -0
- package/dist/types/components/ptc-para/ptc-para.d.ts +11 -3
- package/dist/types/components/ptc-picture/ptc-picture.d.ts +5 -1
- package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +1 -1
- package/dist/types/components/ptc-span/ptc-span.d.ts +4 -1
- package/dist/types/components/ptc-title/ptc-title.d.ts +14 -2
- package/dist/types/components.d.ts +229 -28
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/icon-asset.cjs.entry.js +0 -64
- package/dist/cjs/interfaces-0ecd8027.js +0 -15
- package/dist/cjs/list-item.cjs.entry.js +0 -27
- package/dist/cjs/ptc-button.cjs.entry.js +0 -72
- package/dist/cjs/ptc-img.cjs.entry.js +0 -155
- package/dist/cjs/ptc-link.cjs.entry.js +0 -53
- package/dist/cjs/ptc-overlay.cjs.entry.js +0 -19
- package/dist/cjs/ptc-para.cjs.entry.js +0 -40
- package/dist/cjs/ptc-picture.cjs.entry.js +0 -159
- package/dist/cjs/ptc-spacer.cjs.entry.js +0 -46
- package/dist/cjs/ptc-span.cjs.entry.js +0 -31
- package/dist/cjs/ptc-title.cjs.entry.js +0 -49
- package/dist/esm/icon-asset.entry.js +0 -60
- package/dist/esm/interfaces-3cb94654.js +0 -12
- package/dist/esm/list-item.entry.js +0 -23
- package/dist/esm/ptc-button.entry.js +0 -68
- package/dist/esm/ptc-img.entry.js +0 -151
- package/dist/esm/ptc-link.entry.js +0 -49
- package/dist/esm/ptc-overlay.entry.js +0 -15
- package/dist/esm/ptc-para.entry.js +0 -36
- package/dist/esm/ptc-picture.entry.js +0 -155
- package/dist/esm/ptc-spacer.entry.js +0 -42
- package/dist/esm/ptc-span.entry.js +0 -27
- package/dist/esm/ptc-title.entry.js +0 -45
- package/dist/ptcw-design/p-01f4bf71.entry.js +0 -1
- package/dist/ptcw-design/p-08827128.entry.js +0 -1
- package/dist/ptcw-design/p-1bf9750d.entry.js +0 -1
- package/dist/ptcw-design/p-23d07898.entry.js +0 -1
- package/dist/ptcw-design/p-240733ce.js +0 -1
- package/dist/ptcw-design/p-29c54eb0.entry.js +0 -1
- package/dist/ptcw-design/p-2b59ce7a.entry.js +0 -1
- package/dist/ptcw-design/p-389a5670.entry.js +0 -1
- package/dist/ptcw-design/p-51443fbb.entry.js +0 -1
- package/dist/ptcw-design/p-54794e45.entry.js +0 -1
- package/dist/ptcw-design/p-5ae43421.entry.js +0 -1
- package/dist/ptcw-design/p-6b5c0d9d.entry.js +0 -1
- package/dist/ptcw-design/p-7076b32f.entry.js +0 -1
- package/dist/ptcw-design/p-a86452af.entry.js +0 -1
- package/dist/ptcw-design/p-d3f9852f.entry.js +0 -1
- package/dist/ptcw-design/p-d80b24c9.entry.js +0 -1
- package/dist/ptcw-design/p-fd29d9dd.entry.js +0 -1
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-0b899fc6.js');
|
|
6
|
-
|
|
7
|
-
const ptcTitleCss = "div.center.sc-ptc-title{text-align:center}div.center.dotted.sc-ptc-title h1.sc-ptc-title::before,div.center.dotted.sc-ptc-title h2.sc-ptc-title::before,div.center.dotted.sc-ptc-title h3.sc-ptc-title::before{left:50%;transform:translateX(-50%)}div.left.sc-ptc-title{text-align:left}div.left.dotted.sc-ptc-title h1.sc-ptc-title::before,div.left.dotted.sc-ptc-title h2.sc-ptc-title::before,div.left.dotted.sc-ptc-title h3.sc-ptc-title::before{left:0%}div.right.sc-ptc-title{text-align:right}div.right.dotted.sc-ptc-title h1.sc-ptc-title::before,div.right.dotted.sc-ptc-title h2.sc-ptc-title::before,div.right.dotted.sc-ptc-title h3.sc-ptc-title::before{right:0%}div.dotted.sc-ptc-title h1.sc-ptc-title::before,div.dotted.sc-ptc-title h2.sc-ptc-title::before,div.dotted.sc-ptc-title h3.sc-ptc-title::before{content:\"\";position:absolute;top:-6px;width:30%;display:block;border-top:3px dashed #5bb73b}div.solid.sc-ptc-title h1.sc-ptc-title::before,div.solid.sc-ptc-title h2.sc-ptc-title::before,div.solid.sc-ptc-title h3.sc-ptc-title::before{content:\"\";position:absolute;width:100%;height:0.7px;background-color:var(--color-secondary-grey);opacity:0.9;left:0px}div.solid.sc-ptc-title h1.sc-ptc-title::after,div.solid.sc-ptc-title h2.sc-ptc-title::after,div.solid.sc-ptc-title h3.sc-ptc-title::after{content:\"\";position:absolute;width:20%;height:2px;background-color:var(--color-primary-green);top:-2px;left:0px}div.sc-ptc-title h1.sc-ptc-title,div.sc-ptc-title h2.sc-ptc-title,div.sc-ptc-title h3.sc-ptc-title{display:inline-block;position:relative}div.sc-ptc-title h1.sc-ptc-title{font-size:46px;line-height:52px;font-weight:800;letter-spacing:0px;color:var(--color-primary-grey)}div.sc-ptc-title h2.sc-ptc-title{font-size:28px;line-height:32px;font-weight:800;color:var(--color-primary-grey)}";
|
|
8
|
-
|
|
9
|
-
let PtcTitle = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
/**
|
|
13
|
-
* Title Tag Type
|
|
14
|
-
*/
|
|
15
|
-
this.type = 'h2';
|
|
16
|
-
/**
|
|
17
|
-
* Text Align
|
|
18
|
-
*/
|
|
19
|
-
this.textAlign = 'left';
|
|
20
|
-
/**
|
|
21
|
-
* Upperline Style
|
|
22
|
-
*/
|
|
23
|
-
this.upperline = 'dotted';
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
const classMap = this.getCssClassMap();
|
|
27
|
-
let TagType;
|
|
28
|
-
switch (this.type) {
|
|
29
|
-
case 'h1':
|
|
30
|
-
TagType = 'h1';
|
|
31
|
-
break;
|
|
32
|
-
case 'h3':
|
|
33
|
-
TagType = 'h3';
|
|
34
|
-
break;
|
|
35
|
-
default:
|
|
36
|
-
TagType = 'h2';
|
|
37
|
-
}
|
|
38
|
-
return (index.h(index.Host, null, index.h("div", { class: classMap }, index.h(TagType, null, index.h("slot", null)))));
|
|
39
|
-
}
|
|
40
|
-
getCssClassMap() {
|
|
41
|
-
return {
|
|
42
|
-
[this.textAlign]: true,
|
|
43
|
-
[this.upperline]: true,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
PtcTitle.style = ptcTitleCss;
|
|
48
|
-
|
|
49
|
-
exports.ptc_title = PtcTitle;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, a as getAssetPath, h, H as Host } from './index-eb8ce23d.js';
|
|
2
|
-
|
|
3
|
-
const iconAssetCss = "/*!\n * Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */.svg-inline--fa,svg:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa{display:inline-block;font-size:inherit;height:1em;vertical-align:-.125em}.svg-inline--fa.fa-lg{vertical-align:-.225em}.svg-inline--fa.fa-w-1{width:.0625em}.svg-inline--fa.fa-w-2{width:.125em}.svg-inline--fa.fa-w-3{width:.1875em}.svg-inline--fa.fa-w-4{width:.25em}.svg-inline--fa.fa-w-5{width:.3125em}.svg-inline--fa.fa-w-6{width:.375em}.svg-inline--fa.fa-w-7{width:.4375em}.svg-inline--fa.fa-w-8{width:.5em}.svg-inline--fa.fa-w-9{width:.5625em}.svg-inline--fa.fa-w-10{width:.625em}.svg-inline--fa.fa-w-11{width:.6875em}.svg-inline--fa.fa-w-12{width:.75em}.svg-inline--fa.fa-w-13{width:.8125em}.svg-inline--fa.fa-w-14{width:.875em}.svg-inline--fa.fa-w-15{width:.9375em}.svg-inline--fa.fa-w-16{width:1em}.svg-inline--fa.fa-w-17{width:1.0625em}.svg-inline--fa.fa-w-18{width:1.125em}.svg-inline--fa.fa-w-19{width:1.1875em}.svg-inline--fa.fa-w-20{width:1.25em}.svg-inline--fa.fa-pull-left{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right{margin-left:.3em;width:auto}.svg-inline--fa.fa-border{height:1.5em}.svg-inline--fa.fa-li{width:2em}.svg-inline--fa.fa-fw{width:1.25em}.fa-layers svg.svg-inline--fa{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers svg.svg-inline--fa{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter,.fa-layers-text{display:inline-block;position:absolute;text-align:center}.fa-layers-text{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter{background-color:#ff253a;border-radius:1em;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;height:1.5em;line-height:1;max-width:5em;min-width:1.5em;overflow:hidden;padding:.25em;right:0;text-overflow:ellipsis;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right{bottom:0;right:0;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left{bottom:0;left:0;right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;position:relative;width:2.5em}.fa-stack-1x,.fa-stack-2x{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x{height:2em;width:2.5em}.fa-inverse{color:#fff}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.svg-inline--fa .fa-primary{fill:var(--fa-primary-color,currentColor);opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa .fa-secondary{fill:var(--fa-secondary-color,currentColor)}.svg-inline--fa .fa-secondary,.svg-inline--fa.fa-swap-opacity .fa-primary{opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-secondary{opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa mask .fa-primary,.svg-inline--fa mask .fa-secondary{fill:#000}.fad.fa-inverse{color:#fff}icon-asset{vertical-align:middle}svg.x-small{width:var(--ptc-font-size-x-small);height:var(--ptc-font-size-x-small)}svg.small{width:var(--ptc-font-size-small);height:var(--ptc-font-size-small)}svg.large{width:var(--ptc-font-size-large);height:var(--ptc-font-size-large)}svg.xx-large{width:var(--ptc-font-size-xx-large);height:var(--ptc-font-size-xx-large)}svg.white{fill:var(--color-white)}svg.black{fill:var(--color-black)}svg.ptc-green{fill:var(--color-primary-green)}svg.inherit{fill:inherit}";
|
|
4
|
-
|
|
5
|
-
let IconAsset = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
/**
|
|
9
|
-
* Icon Size
|
|
10
|
-
*/
|
|
11
|
-
this.size = 'small';
|
|
12
|
-
/**
|
|
13
|
-
* Icon Type
|
|
14
|
-
*/
|
|
15
|
-
this.type = 'regular';
|
|
16
|
-
/**
|
|
17
|
-
* Icon Spin Animation (not valid for ptc type)
|
|
18
|
-
*/
|
|
19
|
-
this.spin = '';
|
|
20
|
-
/**
|
|
21
|
-
* Icon Pulse Animation (not valid for ptc type)
|
|
22
|
-
*/
|
|
23
|
-
this.pulse = '';
|
|
24
|
-
/**
|
|
25
|
-
* Icon Color
|
|
26
|
-
*/
|
|
27
|
-
this.color = 'default';
|
|
28
|
-
this.regularSprite = getAssetPath('./media/regular.svg');
|
|
29
|
-
this.solidSprite = getAssetPath('./media/solid.svg');
|
|
30
|
-
this.brandSprite = getAssetPath('./media/brands.svg');
|
|
31
|
-
this.ptcSprite = getAssetPath('./media/designer.svg');
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
const classMap = this.getCssClassMap();
|
|
35
|
-
if (this.type == 'brands') {
|
|
36
|
-
return (h(Host, null, h("svg", { class: classMap }, h("use", { href: `${this.brandSprite}#${this.name}` }))));
|
|
37
|
-
}
|
|
38
|
-
else if (this.type == 'solid') {
|
|
39
|
-
return (h(Host, null, h("svg", { class: classMap }, h("use", { href: `${this.solidSprite}#${this.name}` }))));
|
|
40
|
-
}
|
|
41
|
-
else if (this.type == 'ptc') {
|
|
42
|
-
return (h(Host, null, h("svg", { class: classMap }, h("use", { href: `${this.ptcSprite}#${this.name}` }))));
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return (h(Host, null, h("svg", { class: classMap }, h("use", { href: `${this.regularSprite}#${this.name}` }))));
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
getCssClassMap() {
|
|
49
|
-
return {
|
|
50
|
-
[this.size]: true,
|
|
51
|
-
[this.spin]: true,
|
|
52
|
-
[this.pulse]: true,
|
|
53
|
-
[this.color]: true,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
static get assetsDirs() { return ["media"]; }
|
|
57
|
-
};
|
|
58
|
-
IconAsset.style = iconAssetCss;
|
|
59
|
-
|
|
60
|
-
export { IconAsset as icon_asset };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
let ResponsiveBgVariables = {
|
|
2
|
-
envs: ['xs', 'sm', 'md', 'lg'],
|
|
3
|
-
selector: '.ptc-img',
|
|
4
|
-
interval: 250
|
|
5
|
-
};
|
|
6
|
-
let ResponsivePictureVariables = {
|
|
7
|
-
envs: ['xs', 'sm', 'md', 'lg'],
|
|
8
|
-
selector: '.ptc-picture',
|
|
9
|
-
interval: 250
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { ResponsiveBgVariables as R, ResponsivePictureVariables as a };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-eb8ce23d.js';
|
|
2
|
-
|
|
3
|
-
const listItemCss = ":host{display:block}";
|
|
4
|
-
|
|
5
|
-
let ListItem = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.listType = 'para-list';
|
|
9
|
-
this.linkHref = undefined;
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
const classMap = this.getCssClassMap();
|
|
13
|
-
return (h(Host, { class: classMap }, h("li", null, this.linkHref ? (h("a", Object.assign({}, (this.linkHref ? { href: this.linkHref } : {})), h("slot", null))) : (h("slot", null)))));
|
|
14
|
-
}
|
|
15
|
-
getCssClassMap() {
|
|
16
|
-
return {
|
|
17
|
-
[this.listType]: true,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
ListItem.style = listItemCss;
|
|
22
|
-
|
|
23
|
-
export { ListItem as list_item };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-eb8ce23d.js';
|
|
2
|
-
|
|
3
|
-
const ptcButtonCss = "button.disabled{pointer-events:none;opacity:0.6}button{background-color:var(--color-primary-uigrey);display:inline-block;border-style:solid;border-width:1px;white-space:normal;position:relative;text-decoration:none;cursor:pointer;padding:9.4px 17.5px;border-radius:3px}button.animation-right ::slotted([slot=slot-after-text]),button.animation-right ::slotted([slot=slot-before-text]),button.animation-down ::slotted([slot=slot-after-text]),button.animation-down ::slotted([slot=slot-before-text]){transition:transform var(--ptc-transition-medium) var(--ptc-standard-ease);position:relative;display:inline-block}button:hover.animation-right ::slotted([slot=slot-after-text]),button:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}button:hover.animation-down ::slotted([slot=slot-after-text]),button:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}button span{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:bold;line-height:0.86}.icon-left ::slotted([slot=slot-before-text]){margin-right:var(--ptc-element-spacing-01)}.icon-right ::slotted([slot=slot-after-text]){margin-left:var(--ptc-element-spacing-01)}.blackgrey{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-primary-uigrey);background-image:linear-gradient(285deg, var(--color-primary-uigrey) 155%, #6e717c 62%)}.blackgrey:hover{box-shadow:var(--ptc-shadow-x-large)}.blackgrey span{color:var(--color-white)}.turtlegreen{box-shadow:var(--ptc-shadow-x-small);border:solid 1px #5bb73b;background-image:linear-gradient(285deg, #5bb73b 155%, #178642 62%)}.turtlegreen:hover{box-shadow:var(--ptc-shadow-x-large)}.turtlegreen span{color:var(--color-white)}.offwhite{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-primary-uigrey);background-image:linear-gradient(to right, #ffffff, #d3d3d3, #e5e5e5)}.offwhite:hover{box-shadow:var(--ptc-shadow-x-large)}.offwhite span{color:var(--color-primary-uigrey)}.legacy-green{margin-left:10px;padding:10px 20px;margin-bottom:4px;margin-top:4px;box-shadow:0 0 25.8px 3.2px rgba(0, 0, 0, 0.5);border:solid 2.5px var(--color-secondary-tutlegreen-dark);background-image:linear-gradient(to right, var(--color-secondary-turtlegreen), var(--color-secondary-tutlegreen-dark))}.legacy-green:after{position:absolute;content:\"\";top:-1px;left:0;bottom:0;right:0;width:100%;height:103%;background-image:linear-gradient(to right, var(--color-secondary-tutlegreen-dark), var(--color-secondary-turtlegreen));opacity:0;transition:opacity 0.6s cubic-bezier(0, 0, 0.23, 1);border-radius:2px}.legacy-green:hover{box-shadow:0 0 49px 6.1px rgba(0, 0, 0, 0.55)}.legacy-green:hover span{color:var(--color-white)}.legacy-green:hover:after{opacity:1}.legacy-green span{font-family:var(--ptc-font-secondary-latin);color:var(--color-white);z-index:100;position:relative;text-transform:uppercase;font-weight:var(--ptc-font-weight-bold);letter-spacing:var(--ptc-letter-spacing-normal);font-size:var(--ptc-font-size-medium)}@media screen and (min-width: 768px){.legacy-green span{font-size:19px;letter-spacing:var(--ptc-letter-spacing-loose)}}.legacy-green icon-asset{display:inline}a{border-style:solid;border-width:1px;position:relative;text-decoration:none;padding:9.4px 17.5px;border-radius:3px;text-decoration:none;display:inline-block;position:relative}a.animation-right ::slotted([slot=slot-after-text]),a.animation-right ::slotted([slot=slot-before-text]),a.animation-down ::slotted([slot=slot-after-text]),a.animation-down ::slotted([slot=slot-before-text]){transition:all ease-out 0.25s;position:relative;display:inline-block;margin-left:5px}a:hover.animation-right ::slotted([slot=slot-after-text]),a:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}a:hover.animation-down ::slotted([slot=slot-after-text]),a:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}.nav{font-family:var(--ptc-font-latin);background-color:#323b42;border-radius:var(--ptc-border-radius-medium);border:1px solid var(--color-white);border-bottom-style:solid;border-bottom-width:1px;box-sizing:border-box;color:var(--color-white);display:inline-block;font-size:13px;font-stretch:100%;font-weight:var(--ptc-font-weight-bold);line-height:26px;list-style:none;padding:3px var(--ptc-element-spacing-04);position:relative;text-align:center;text-decoration:none;transition:background-color var(--ptc-transition-medium) var(--ptc-decelerated-ease)}.nav:focus{outline:3px solid #0092d1;outline-offset:2px}.nav:hover{background-color:#20262a}.ptc-primary,.ptc-quaternary,.ptc-secondary,.ptc-tertiary{padding:var(--ptc-font-size-small) var(--ptc-font-size-large);transition:background-color var(--ptc-standard-ease) var(--ptc-transition-medium);line-height:20px}.ptc-primary.disabled,.ptc-quaternary.disabled,.ptc-secondary.disabled,.ptc-tertiary.disabled{pointer-events:none;border-color:#a8aaaf;background:#e1e2e4}.ptc-primary.disabled span,.ptc-quaternary.disabled span,.ptc-secondary.disabled span,.ptc-tertiary.disabled span{color:#a8aaaf}.ptc-primary.disabled ::slotted([slot=slot-after-text]),.ptc-quaternary.disabled ::slotted([slot=slot-after-text]),.ptc-secondary.disabled ::slotted([slot=slot-after-text]),.ptc-tertiary.disabled ::slotted([slot=slot-after-text]){fill:#a8aaaf !important}.ptc-primary:focus,.ptc-quaternary:focus,.ptc-secondary:focus,.ptc-tertiary:focus{outline:3px solid #0092d1;outline-offset:2px}.ptc-primary span,.ptc-quaternary span,.ptc-secondary span,.ptc-tertiary span{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-bold);font-size:17px;line-height:20px;letter-spacing:normal}.ptc-primary{background:#1f2024;border:2px solid #5bb73a;border-radius:var(--ptc-border-radius-medium)}.ptc-primary:hover{background-color:#33353a}.ptc-primary:active{background-color:var(--color-black)}.ptc-primary span{color:var(--color-white)}.ptc-primary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-secondary{background:#1f2024;border:2px solid #6d707b;border-radius:var(--ptc-border-radius-medium)}.ptc-secondary:hover{background-color:#33353a}.ptc-secondary:active{background-color:var(--color-black)}.ptc-secondary span{color:var(--color-white)}.ptc-secondary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-tertiary{background:var(--color-white);border:2px solid var(--color-primary-grey);border-radius:var(--ptc-border-radius-medium)}.ptc-tertiary:hover{background-color:#e1e2e4}.ptc-tertiary:active{background-color:#c5c5ca}.ptc-tertiary span{color:var(--color-primary-grey)}.ptc-tertiary ::slotted([slot=slot-after-text]){fill:var(--color-primary-grey) !important}.ptc-quaternary{background:#158542;border:2px solid #459e67;border-radius:var(--ptc-border-radius-medium)}.ptc-quaternary:hover{background-color:#17713a}.ptc-quaternary:active{background-color:#186135}.ptc-quaternary span{color:var(--color-white)}.ptc-quaternary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}";
|
|
4
|
-
|
|
5
|
-
let PtcButton = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.clickEvent = createEvent(this, "clickEvent", 7);
|
|
9
|
-
/**
|
|
10
|
-
* Disabled button
|
|
11
|
-
*/
|
|
12
|
-
this.disabled = false;
|
|
13
|
-
/**
|
|
14
|
-
* Button type
|
|
15
|
-
*/
|
|
16
|
-
this.type = 'button';
|
|
17
|
-
/**
|
|
18
|
-
* Button theme color
|
|
19
|
-
*/
|
|
20
|
-
this.color = 'ptc-primary';
|
|
21
|
-
/**
|
|
22
|
-
* Icon Animation
|
|
23
|
-
*/
|
|
24
|
-
this.iconAnimation = '';
|
|
25
|
-
/**
|
|
26
|
-
* Icon Position
|
|
27
|
-
*/
|
|
28
|
-
this.iconPosition = 'icon-right';
|
|
29
|
-
/**
|
|
30
|
-
* Link URL (Optional)
|
|
31
|
-
*/
|
|
32
|
-
this.linkHref = undefined;
|
|
33
|
-
/**
|
|
34
|
-
* (optional) Link target
|
|
35
|
-
* */
|
|
36
|
-
this.target = '_self';
|
|
37
|
-
/**
|
|
38
|
-
* (optional) Link rel
|
|
39
|
-
* */
|
|
40
|
-
this.rel = undefined;
|
|
41
|
-
/**
|
|
42
|
-
* (optional) tab-nav.
|
|
43
|
-
* indicates that its element can be focused, and where it participates in sequential keyboard navigation.
|
|
44
|
-
* A negative value (usually tabindex="-1") means that the element is not reachable via sequential keyboard navigation
|
|
45
|
-
*/
|
|
46
|
-
this.tabNav = 0;
|
|
47
|
-
}
|
|
48
|
-
clickEventHandler() {
|
|
49
|
-
this.clickEvent.emit();
|
|
50
|
-
//console.log('click!');
|
|
51
|
-
}
|
|
52
|
-
render() {
|
|
53
|
-
const classMap = this.getCssClassMap();
|
|
54
|
-
const Tag = !!this.linkHref ? 'a' : 'button';
|
|
55
|
-
return (h(Host, null, this.styles && h("style", null, this.styles), h(Tag, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 })), h("span", null, h("slot", { name: "slot-before-text" }), h("slot", null), h("slot", { name: "slot-after-text" })))));
|
|
56
|
-
}
|
|
57
|
-
getCssClassMap() {
|
|
58
|
-
return {
|
|
59
|
-
[this.color]: true,
|
|
60
|
-
[this.iconAnimation]: true,
|
|
61
|
-
[this.iconPosition]: true,
|
|
62
|
-
['disabled']: this.disabled ? true : false,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
PtcButton.style = ptcButtonCss;
|
|
67
|
-
|
|
68
|
-
export { PtcButton as ptc_button };
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-eb8ce23d.js';
|
|
2
|
-
import { R as ResponsiveBgVariables } from './interfaces-3cb94654.js';
|
|
3
|
-
|
|
4
|
-
const ptcImgCss = ".smart-bg{width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.smart-img{position:absolute;display:block;width:100%;height:100%;top:0;left:0;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.radius-sm{border-radius:var(--ptc-border-radius-small)}.radius-md{border-radius:var(--ptc-border-radius-medium)}.radius-lg{border-radius:var(--ptc-border-radius-large)}.lazy-bg{background-image:none !important;background-color:var(--color-primary-lightgrey)}@media (max-width: 767px){.hidden-xs{display:none !important}}@media (min-width: 768px) and (max-width: 991px){.hidden-sm{display:none !important}}@media (min-width: 992px) and (max-width: 1199px){.hidden-md{display:none !important}}@media (min-width: 1200px){.hidden-lg{display:none !important}}";
|
|
5
|
-
|
|
6
|
-
let PtcImg = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
/**
|
|
10
|
-
* Image size for smallest screen
|
|
11
|
-
* <=767px
|
|
12
|
-
*/
|
|
13
|
-
this.sizeXs = '510x340';
|
|
14
|
-
/**
|
|
15
|
-
* Image size for small screen
|
|
16
|
-
* >=768px and <=991px
|
|
17
|
-
*/
|
|
18
|
-
this.sizeSm = '1240x496';
|
|
19
|
-
/**
|
|
20
|
-
* Image size for medium screen
|
|
21
|
-
* >=992px and <=1199px
|
|
22
|
-
*/
|
|
23
|
-
this.sizeMd = '1366x500';
|
|
24
|
-
/**
|
|
25
|
-
* Image solution for large screen
|
|
26
|
-
* >=1200px
|
|
27
|
-
*/
|
|
28
|
-
this.sizeLg = '1920x1080';
|
|
29
|
-
/**
|
|
30
|
-
* Image type
|
|
31
|
-
*/
|
|
32
|
-
this.imageType = 'smart-bg';
|
|
33
|
-
/**
|
|
34
|
-
* Image border shape
|
|
35
|
-
*/
|
|
36
|
-
this.borderRadius = '';
|
|
37
|
-
/**
|
|
38
|
-
* Lazy loading option
|
|
39
|
-
*/
|
|
40
|
-
this.loadMode = 'lazy-bg';
|
|
41
|
-
}
|
|
42
|
-
WindowResize() {
|
|
43
|
-
this.setResponsiveBg();
|
|
44
|
-
}
|
|
45
|
-
render() {
|
|
46
|
-
const classMap = this.getCssClassMap();
|
|
47
|
-
return (h(Host, null, h("div", { class: classMap, "data-xs": `${this.imgUrl}:${this.sizeXs}`, "data-sm": `${this.imgUrl}:${this.sizeSm}`, "data-md": `${this.imgUrl}:${this.sizeMd}`, "data-lg": `${this.imgUrl}:${this.sizeLg}` })));
|
|
48
|
-
}
|
|
49
|
-
componentDidLoad() {
|
|
50
|
-
this.addIntersectionObserver();
|
|
51
|
-
this.setResponsiveBg();
|
|
52
|
-
}
|
|
53
|
-
componentWillUpdate() {
|
|
54
|
-
// console.log('componentWillUpdate!');
|
|
55
|
-
this.addIntersectionObserver();
|
|
56
|
-
this.setResponsiveBg();
|
|
57
|
-
}
|
|
58
|
-
//responsive image
|
|
59
|
-
setResponsiveBg() {
|
|
60
|
-
// Define local variables
|
|
61
|
-
let backgrounds = (this.el || document).querySelectorAll(ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
62
|
-
// console.log('current breakpoint: ' + currentBreakpoint);
|
|
63
|
-
// Loop through all target elements
|
|
64
|
-
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
65
|
-
// Set current variables
|
|
66
|
-
el = backgrounds[i];
|
|
67
|
-
elData = el.getAttribute('data-' + currentBreakpoint);
|
|
68
|
-
// If the data attribute exists, set the background
|
|
69
|
-
if (elData !== null) {
|
|
70
|
-
el.style.backgroundImage = "url('" + elData + "')";
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
if (typeof console == 'object') {
|
|
74
|
-
console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
//lazy loading
|
|
80
|
-
addIntersectionObserver() {
|
|
81
|
-
if (!this.imgUrl) {
|
|
82
|
-
console.log('no image!');
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
if ('IntersectionObserver' in window) {
|
|
86
|
-
let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
|
|
87
|
-
let bgObserver = new IntersectionObserver(entries => {
|
|
88
|
-
entries.forEach(entry => {
|
|
89
|
-
if (entry.isIntersecting) {
|
|
90
|
-
const image = entry.target;
|
|
91
|
-
image.classList.remove('lazy-bg');
|
|
92
|
-
// console.log('loaded');
|
|
93
|
-
bgObserver.unobserve(image);
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
lazyLoadBgs.forEach(image => {
|
|
98
|
-
bgObserver.observe(image);
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
getCssClassMap() {
|
|
103
|
-
return {
|
|
104
|
-
[this.imageType]: true,
|
|
105
|
-
'ptc-img': true,
|
|
106
|
-
[this.borderRadius]: true,
|
|
107
|
-
[this.loadMode]: true,
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
getCurrentBreakPoints() {
|
|
111
|
-
// Define local variables
|
|
112
|
-
let doc = window.document, temp = doc.createElement('div'), env;
|
|
113
|
-
// Append test node
|
|
114
|
-
doc.body.appendChild(temp);
|
|
115
|
-
// Loop through breakpoints
|
|
116
|
-
for (let i = ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
|
|
117
|
-
env = ResponsiveBgVariables.envs[i];
|
|
118
|
-
// Add classes
|
|
119
|
-
temp.className = 'hidden-' + env;
|
|
120
|
-
// Found breakpoint
|
|
121
|
-
if (temp.offsetParent === null) {
|
|
122
|
-
// Remove our test node
|
|
123
|
-
doc.body.removeChild(temp);
|
|
124
|
-
console.log('remove test node');
|
|
125
|
-
// Return current breakpoint
|
|
126
|
-
return env;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
// Breakpoint not found, try fallback
|
|
130
|
-
doc.body.removeChild(temp);
|
|
131
|
-
return this.getFallbackBreakpoint();
|
|
132
|
-
}
|
|
133
|
-
getFallbackBreakpoint() {
|
|
134
|
-
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
135
|
-
return 'lg';
|
|
136
|
-
}
|
|
137
|
-
else if (window.matchMedia('(min-width: 768px)').matches) {
|
|
138
|
-
return 'md';
|
|
139
|
-
}
|
|
140
|
-
else if (window.matchMedia('(min-width: 576px)').matches) {
|
|
141
|
-
return 'sm';
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
return 'xs';
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
get el() { return getElement(this); }
|
|
148
|
-
};
|
|
149
|
-
PtcImg.style = ptcImgCss;
|
|
150
|
-
|
|
151
|
-
export { PtcImg as ptc_img };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-eb8ce23d.js';
|
|
2
|
-
|
|
3
|
-
const ptcLinkCss = ":host{display:block}.disabled{pointer-events:none;cursor:default;text-decoration:none}.ptc-link{display:inline-block;color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal);margin-bottom:var(--ptc-element-spacing-01);outline:none;text-decoration:none}.simple::after{content:\"\";position:absolute;width:100%;left:0px;bottom:2px;transition:opacity var(--ptc-transition-fast) var(--ptc-standard-ease);border-bottom:2px solid var(--color-primary-green);opacity:0}.simple:hover.simple::after{opacity:1}.arrow{margin-right:var(--ptc-element-spacing-01)}.arrow::after{position:absolute;display:block;content:\"\";width:var(--ptc-element-spacing-06);border-bottom:2px solid var(--color-primary-green);bottom:1px;transition:width var(--ptc-transition-fast) var(--ptc-standard-ease)}.arrow:hover.arrow::after{width:100%}.uppercase{text-transform:uppercase}.small{font-size:var(--ptc-font-size-small)}.medium{font-size:var(--ptc-font-size-medium)}.large{font-size:var(--ptc-font-size-large)}icon-asset{position:absolute;right:-25px;transition:transform var(--ptc-transition-fast) var(--ptc-standard-ease)}icon-asset svg{fill:var(--color-primary-green) !important}.ptc-link:hover.arrow icon-asset{transform:translateX(var(--ptc-element-spacing-04))}.nav-title:focus,.nav-title-link:focus,.primary-nav-link:focus,.secondary-nav-link:focus,.footer-nav-link:focus,.copyright-link:focus{outline:3px solid #0092d1;outline-offset:2px}.nav-title{box-sizing:border-box;color:var(--color-white);display:inline-block;font-size:15px;font-stretch:100%;font-weight:var(--ptc-font-weight-extrabold);letter-spacing:0.15px;line-height:25.05px;list-style:none;margin-bottom:10px;text-align:left}.primary-nav-link{background-color:transparent;box-sizing:border-box;color:#f3f3f4;display:inline-block;font-size:15px;font-stretch:100%;font-weight:var(--ptc-font-weight-extrabold);letter-spacing:0.3px;line-height:25.95px;list-style:none;margin:var(--ptc-element-spacing-01) var(--ptc-element-spacing-03);padding:var(--ptc-element-spacing-02) var(--ptc-element-spacing-05);padding-bottom:7px;position:relative;text-decoration:none;transition:background-color var(--ptc-transition-medium) var(--ptc-decelerated-ease)}.primary-nav-link:hover{border-radius:4px;background-color:#20262a;text-decoration:none;outline:none}.nav-title-link{background-color:transparent;box-sizing:border-box;color:var(--color-white);font-size:var(--ptc-font-size-x-small);font-stretch:100%;font-weight:var(--ptc-font-weight-extrabold);line-height:15px;list-style:none;text-align:left;text-decoration-color:var(--color-white);text-decoration:none;transition:border-color var(--ptc-transition-medium) var(--ptc-decelerated-ease);border-bottom:1.5px solid transparent;display:inline-block}.nav-title-link:hover{color:var(--color-white);border-bottom:1.5px solid var(--color-secondary-turtlegreen)}.secondary-nav-link{display:inline-block;background-color:transparent;box-sizing:border-box;color:var(--color-white);font-size:var(--ptc-font-size-x-small);font-stretch:100%;font-style:normal;font-weight:var(--ptc-font-weight-semibold);letter-spacing:0.12px;line-height:14.4px;list-style:none;margin-bottom:12px;text-align:left;text-decoration:none;transition:border-color var(--ptc-transition-medium) var(--ptc-decelerated-ease);border-bottom:1.5px solid transparent;white-space:nowrap}.secondary-nav-link:hover{color:var(--color-white);border-bottom:1.5px solid #74c34d;border-radius:0;text-decoration:none}.footer-nav-link{color:var(--color-white);transition:border var(--ptc-transition-medium) var(--ptc-standard-ease), color var(--ptc-transition-medium) var(--ptc-standard-ease);border-bottom:1px solid transparent;outline:none;text-decoration:none;font-weight:var(--ptc-font-weight-semibold);line-height:1.73;letter-spacing:1.13px;text-align:left;font-size:15px}.footer-nav-link:hover{outline:none;text-decoration:none;border-bottom:0.1rem solid var(--color-secondary-turtlegreen);color:var(--color-secondary-turtlegreen)}.copyright-link{color:var(--color-white);font-size:13px;font-weight:var(--ptc-font-weight-normal);line-height:2;display:inline-block}";
|
|
4
|
-
|
|
5
|
-
let PtcLink = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
/**
|
|
9
|
-
* Disabled link
|
|
10
|
-
*/
|
|
11
|
-
this.disabled = false;
|
|
12
|
-
/**
|
|
13
|
-
* Rxternal link
|
|
14
|
-
* */
|
|
15
|
-
this.external = false;
|
|
16
|
-
/**
|
|
17
|
-
* Target
|
|
18
|
-
*/
|
|
19
|
-
this.target = '_self';
|
|
20
|
-
/**
|
|
21
|
-
* Theme
|
|
22
|
-
*/
|
|
23
|
-
this.theme = 'simple';
|
|
24
|
-
/**
|
|
25
|
-
* Uppercase
|
|
26
|
-
*/
|
|
27
|
-
this.uppercase = false;
|
|
28
|
-
/**
|
|
29
|
-
* Font Size
|
|
30
|
-
*/
|
|
31
|
-
this.fontSize = 'medium';
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
const classMap = this.getCssClassMap();
|
|
35
|
-
return (h(Host, null, h("a", { class: classMap, href: this.href, target: this.external ? '_blank' : this.target, title: this.linkTitle }, this.theme == 'arrow' ? h("icon-asset", { type: "solid", size: "small", name: "arrow-right" }) : '', h("slot", null))));
|
|
36
|
-
}
|
|
37
|
-
getCssClassMap() {
|
|
38
|
-
return {
|
|
39
|
-
['ptc-link']: true,
|
|
40
|
-
[this.theme]: true,
|
|
41
|
-
['uppercase']: this.uppercase,
|
|
42
|
-
['disabled']: this.disabled,
|
|
43
|
-
[this.fontSize]: true,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
PtcLink.style = ptcLinkCss;
|
|
48
|
-
|
|
49
|
-
export { PtcLink as ptc_link };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-eb8ce23d.js';
|
|
2
|
-
|
|
3
|
-
const ptcOverlayCss = ":host{display:block}";
|
|
4
|
-
|
|
5
|
-
let PtcOverlay = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
return (h(Host, null, h("slot", null)));
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
PtcOverlay.style = ptcOverlayCss;
|
|
14
|
-
|
|
15
|
-
export { PtcOverlay as ptc_overlay };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-eb8ce23d.js';
|
|
2
|
-
|
|
3
|
-
const ptcParaCss = "p.default{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-primary-grey)}p.xx-small{font-size:var(--ptc-font-size-xx-small)}p.x-small{font-size:var(--ptc-font-size-x-small)}p.small{font-size:var(--ptc-font-size-small)}p.medium{font-size:var(--ptc-font-size-medium)}p.large{font-size:var(--ptc-font-size-large)}p.x-large{font-size:var(--ptc-font-size-x-large)}p.xx-large{font-size:var(--ptc-font-size-xx-large)}p.xxx-large{font-size:var(--ptc-font-size-xxx-large)}p.xxxx-large{font-size:var(--ptc-font-size-xxxx-large)}p.w-3{font-weight:var(--ptc-font-weight-thin)}p.w-4{font-weight:var(--ptc-font-weight-regular)}p.w-5{font-weight:var(--ptc-font-weight-medium)}p.w-6{font-weight:var(--ptc-font-weight-semibold)}p.w-7{font-weight:var(--ptc-font-weight-bold)}p.w-8{font-weight:var(--ptc-font-weight-extrabold)}p.w-9{font-weight:var(--ptc-font-weight-black)}p.margin-flush{margin-top:0;margin-bottom:0}p.margin-top-3{margin-top:var(--ptc-element-spacing-03)}p.margin-top-4{margin-top:var(--ptc-element-spacing-04)}p.margin-top-5{margin-top:var(--ptc-element-spacing-05)}p.margin-top-6{margin-top:var(--ptc-element-spacing-06)}p.margin-bottom-3{margin-bottom:var(--ptc-element-spacing-03)}p.margin-bottom-4{margin-bottom:var(--ptc-element-spacing-04)}p.margin-bottom-5{margin-bottom:var(--ptc-element-spacing-05)}p.margin-bottom-6{margin-bottom:var(--ptc-element-spacing-06)}p.announcement{text-transform:uppercase;font-size:var(--ptc-font-size-small);color:var(--color-secondary-grey);line-height:var(--ptc-line-height-looser);letter-spacing:1px}";
|
|
4
|
-
|
|
5
|
-
let PtcPara = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
/**
|
|
9
|
-
* Paragraph font size
|
|
10
|
-
**/
|
|
11
|
-
this.fontSize = "medium";
|
|
12
|
-
/**
|
|
13
|
-
* Paragraph font weight
|
|
14
|
-
**/
|
|
15
|
-
this.fontWeight = 'w-4';
|
|
16
|
-
/**
|
|
17
|
-
* Paragraph Style
|
|
18
|
-
**/
|
|
19
|
-
this.paraStyle = 'default';
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
const classMap = this.getCssClassMap();
|
|
23
|
-
return (h("p", { class: classMap, part: "part-para" }, h("slot", null)));
|
|
24
|
-
}
|
|
25
|
-
getCssClassMap() {
|
|
26
|
-
return {
|
|
27
|
-
[this.fontSize]: true,
|
|
28
|
-
[this.fontWeight]: true,
|
|
29
|
-
[this.paraStyle]: true,
|
|
30
|
-
[this.paraMargin]: true,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
PtcPara.style = ptcParaCss;
|
|
35
|
-
|
|
36
|
-
export { PtcPara as ptc_para };
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-eb8ce23d.js';
|
|
2
|
-
import { a as ResponsivePictureVariables } from './interfaces-3cb94654.js';
|
|
3
|
-
|
|
4
|
-
const ptcPictureCss = ":host{display:block;overflow:hidden}img{max-width:100%;height:auto}.cover{object-fit:cover}.fill{object-fit:fill}.contain{object-fit:contain}.scale-down{object-fit:scale-down}.none{object-fit:none}.initial{object-fit:initial}.inherit{object-fit:inherit}";
|
|
5
|
-
|
|
6
|
-
let PtcPicture = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
/**
|
|
10
|
-
* Image alt
|
|
11
|
-
*/
|
|
12
|
-
this.alt = "image";
|
|
13
|
-
/**
|
|
14
|
-
* Image size for smallest screen
|
|
15
|
-
* <=767px
|
|
16
|
-
*/
|
|
17
|
-
this.sizeXs = '510x340';
|
|
18
|
-
/**
|
|
19
|
-
* Image size for small screen
|
|
20
|
-
* >=768px and <=991px
|
|
21
|
-
*/
|
|
22
|
-
this.sizeSm = '1240x496';
|
|
23
|
-
/**
|
|
24
|
-
* Image size for medium screen
|
|
25
|
-
* >=992px and <=1199px
|
|
26
|
-
*/
|
|
27
|
-
this.sizeMd = '1366x500';
|
|
28
|
-
/**
|
|
29
|
-
* Image solution for large screen
|
|
30
|
-
* >=1200px
|
|
31
|
-
*/
|
|
32
|
-
this.sizeLg = '1920x1080';
|
|
33
|
-
/**
|
|
34
|
-
* Image border shape
|
|
35
|
-
*/
|
|
36
|
-
this.borderRadius = '';
|
|
37
|
-
/**
|
|
38
|
-
* Object Fit
|
|
39
|
-
* Default: cover
|
|
40
|
-
*/
|
|
41
|
-
this.objectFit = 'cover';
|
|
42
|
-
}
|
|
43
|
-
WindowResize() {
|
|
44
|
-
this.addIntersectionObserver();
|
|
45
|
-
}
|
|
46
|
-
componentDidLoad() {
|
|
47
|
-
this.addIntersectionObserver();
|
|
48
|
-
}
|
|
49
|
-
componentWillUpdate() {
|
|
50
|
-
if (this.src !== this.oldSrc) {
|
|
51
|
-
this.addIntersectionObserver();
|
|
52
|
-
}
|
|
53
|
-
this.oldSrc = this.src;
|
|
54
|
-
}
|
|
55
|
-
//lazy-loading
|
|
56
|
-
addIntersectionObserver() {
|
|
57
|
-
if (!this.src) {
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
if ('IntersectionObserver' in window) {
|
|
61
|
-
let lazyLoadImages = new IntersectionObserver(entries => {
|
|
62
|
-
entries.forEach(entry => {
|
|
63
|
-
if (entry.isIntersecting) {
|
|
64
|
-
const image = this.el.shadowRoot.querySelector('img');
|
|
65
|
-
image.src = this.setResponsiveBg();
|
|
66
|
-
console.log('loaded');
|
|
67
|
-
lazyLoadImages.unobserve(image);
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
lazyLoadImages.observe(this.el.shadowRoot.querySelector('img'));
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
// fall back to setTimeout for Safari and IE
|
|
75
|
-
setTimeout(() => {
|
|
76
|
-
const image = this.el.shadowRoot.querySelector('img');
|
|
77
|
-
image.src = this.setResponsiveBg();
|
|
78
|
-
image.onload = () => {
|
|
79
|
-
image.removeAttribute('data-src');
|
|
80
|
-
console.log('loaded fallback');
|
|
81
|
-
};
|
|
82
|
-
}, 5000);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
//responsive image
|
|
86
|
-
setResponsiveBg() {
|
|
87
|
-
// Define local variables
|
|
88
|
-
let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
89
|
-
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
90
|
-
// Set current variables
|
|
91
|
-
el = backgrounds[i];
|
|
92
|
-
elData = el.getAttribute('data-' + currentBreakpoint);
|
|
93
|
-
if (elData !== null) {
|
|
94
|
-
// console.log('img src= ' + elData);
|
|
95
|
-
return elData;
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
if (typeof console == 'object') {
|
|
99
|
-
console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
render() {
|
|
105
|
-
const classMap = this.getCssClassMap();
|
|
106
|
-
return (h(Host, null, this.styles && h("style", null, this.styles), h("img", Object.assign({ class: classMap, "data-xs": !!this.sizeXs ? `${this.src}:${this.sizeXs}` : `${this.src}`, "data-sm": !!this.sizeSm ? `${this.src}:${this.sizeSm}` : `${this.src}`, "data-md": !!this.sizeMd ? `${this.src}:${this.sizeMd}` : `${this.src}`, "data-lg": !!this.sizeLg ? `${this.src}:${this.sizeLg}` : `${this.src}` }, (!!this.width ? { width: this.width } : {}), (!!this.height ? { height: this.height } : {}), { alt: this.alt }))));
|
|
107
|
-
}
|
|
108
|
-
getCurrentBreakPoints() {
|
|
109
|
-
// Define local variables
|
|
110
|
-
let doc = window.document, temp = doc.createElement('div'), env;
|
|
111
|
-
// Append test node
|
|
112
|
-
doc.body.appendChild(temp);
|
|
113
|
-
// Loop through breakpoints
|
|
114
|
-
for (let i = ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
|
|
115
|
-
env = ResponsivePictureVariables.envs[i];
|
|
116
|
-
// Add classes
|
|
117
|
-
temp.className = 'hidden-' + env;
|
|
118
|
-
// Found breakpoint
|
|
119
|
-
if (temp.offsetParent === null) {
|
|
120
|
-
// Remove our test node
|
|
121
|
-
doc.body.removeChild(temp);
|
|
122
|
-
console.log('remove test node');
|
|
123
|
-
// Return current breakpoint
|
|
124
|
-
return env;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
// Breakpoint not found, try fallback
|
|
128
|
-
doc.body.removeChild(temp);
|
|
129
|
-
return this.getFallbackBreakpoint();
|
|
130
|
-
}
|
|
131
|
-
getFallbackBreakpoint() {
|
|
132
|
-
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
133
|
-
return 'lg';
|
|
134
|
-
}
|
|
135
|
-
else if (window.matchMedia('(min-width: 768px)').matches) {
|
|
136
|
-
return 'md';
|
|
137
|
-
}
|
|
138
|
-
else if (window.matchMedia('(min-width: 576px)').matches) {
|
|
139
|
-
return 'sm';
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
return 'xs';
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
getCssClassMap() {
|
|
146
|
-
return {
|
|
147
|
-
[this.borderRadius]: true,
|
|
148
|
-
[this.objectFit]: true,
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
get el() { return getElement(this); }
|
|
152
|
-
};
|
|
153
|
-
PtcPicture.style = ptcPictureCss;
|
|
154
|
-
|
|
155
|
-
export { PtcPicture as ptc_picture };
|