@ptcwebops/ptcw-design 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/list-item.cjs.entry.js +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/my-component.cjs.entry.js +2 -5
- package/dist/cjs/ptc-card_6.cjs.entry.js +479 -0
- package/dist/cjs/ptc-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ptc-collapse-list.cjs.entry.js +202 -0
- package/dist/cjs/ptc-list.cjs.entry.js +30 -3
- package/dist/cjs/ptc-overlay.cjs.entry.js +31 -0
- package/dist/cjs/ptc-picture.cjs.entry.js +1 -1
- package/dist/cjs/ptc-title.cjs.entry.js +1 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/utils-dc2c222f.js +71 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/icon-asset/media/designer.svg +28 -18
- package/dist/collection/components/list-item/list-item.js +1 -0
- package/dist/collection/components/ptc-card/ptc-card.css +144 -6
- package/dist/collection/components/ptc-card/ptc-card.js +4 -4
- package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +1 -1
- package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.css +121 -0
- package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +288 -0
- package/dist/collection/components/ptc-list/ptc-list.js +31 -4
- package/dist/collection/components/ptc-picture/ptc-picture.css +3 -0
- package/dist/collection/components/ptc-title/ptc-title.css +1 -1
- package/dist/collection/utils/utils.js +62 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +300 -12
- package/dist/esm/{interfaces-c1c73092.js → interfaces-3cb94654.js} +1 -1
- package/dist/esm/list-item.entry.js +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/my-component.entry.js +1 -4
- package/dist/esm/ptc-card_6.entry.js +470 -0
- package/dist/esm/ptc-checkbox.entry.js +1 -1
- package/dist/esm/ptc-collapse-list.entry.js +198 -0
- package/dist/esm/ptc-list.entry.js +31 -4
- package/dist/esm/ptc-overlay.entry.js +27 -0
- package/dist/esm/ptc-picture.entry.js +2 -2
- package/dist/esm/ptc-title.entry.js +1 -1
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/utils-334d53bc.js +67 -0
- package/dist/ptcw-design/media/designer.svg +28 -18
- package/dist/ptcw-design/p-07c07cf9.entry.js +1 -0
- package/dist/ptcw-design/{p-50e52c88.js → p-240733ce.js} +1 -1
- package/dist/ptcw-design/p-2e496d31.js +1 -0
- package/dist/ptcw-design/p-3a972520.entry.js +1 -0
- package/dist/ptcw-design/p-3d3c73b1.entry.js +1 -0
- package/dist/ptcw-design/{p-3a41081a.entry.js → p-44cb62a9.entry.js} +1 -1
- package/dist/ptcw-design/p-46cf7f48.entry.js +1 -0
- package/dist/ptcw-design/{p-9b442487.entry.js → p-818df883.entry.js} +1 -1
- package/dist/ptcw-design/p-b146377a.entry.js +1 -0
- package/dist/ptcw-design/p-d8b48946.entry.js +1 -0
- package/dist/ptcw-design/p-e5bfbb91.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-card/ptc-card.d.ts +1 -1
- package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +39 -0
- package/dist/types/components/ptc-list/ptc-list.d.ts +2 -0
- package/dist/types/components.d.ts +21 -2
- package/dist/types/utils/utils.d.ts +2 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/ptc-card.cjs.entry.js +0 -79
- package/dist/cjs/ptc-date.cjs.entry.js +0 -59
- package/dist/cjs/ptc-img_2.cjs.entry.js +0 -185
- package/dist/cjs/ptc-pagenation.cjs.entry.js +0 -115
- package/dist/cjs/ptc-para.cjs.entry.js +0 -50
- package/dist/cjs/ptc-spacer.cjs.entry.js +0 -46
- package/dist/esm/ptc-card.entry.js +0 -75
- package/dist/esm/ptc-date.entry.js +0 -55
- package/dist/esm/ptc-img_2.entry.js +0 -180
- package/dist/esm/ptc-pagenation.entry.js +0 -111
- package/dist/esm/ptc-para.entry.js +0 -46
- package/dist/esm/ptc-spacer.entry.js +0 -42
- package/dist/ptcw-design/p-1cfc77eb.entry.js +0 -1
- package/dist/ptcw-design/p-42df89de.entry.js +0 -1
- package/dist/ptcw-design/p-51c39418.entry.js +0 -1
- package/dist/ptcw-design/p-679b99ad.entry.js +0 -1
- package/dist/ptcw-design/p-7bcc42e1.entry.js +0 -1
- package/dist/ptcw-design/p-8e27bb6d.entry.js +0 -1
- package/dist/ptcw-design/p-969c178b.entry.js +0 -1
- package/dist/ptcw-design/p-df80470b.entry.js +0 -1
- package/dist/ptcw-design/p-ec10f846.entry.js +0 -1
- package/dist/ptcw-design/p-fa53e5e5.entry.js +0 -1
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-3adcf9f4.js');
|
|
6
|
-
|
|
7
|
-
const ptcParaCss = ":host{z-index:1}p.default{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}p.main{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10)}p.primary-grey{color:var(--color-gray-10)}p.white{color:var(--color-white)}p.xxx-small{font-size:var(--ptc-font-size-xxx-small)}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-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:0}p.margin-top-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}p.margin-top-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}p.margin-top-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}p.margin-top-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}p.margin-top-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}p.margin-bottom-1{margin-bottom:var(--ptc-element-spacing-01);margin-top:0}p.margin-bottom-2{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}p.margin-bottom-3{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}p.margin-bottom-4{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}p.margin-bottom-5{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}p.margin-bottom-6{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}p.margin-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:var(--ptc-element-spacing-01)}p.margin-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}p.margin-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}p.margin-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}p.margin-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}p.margin-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}p.line-height-densest{line-height:var(--ptc-line-height-densest)}p.line-height-denser{line-height:var(--ptc-line-height-denser)}p.line-height-dense{line-height:var(--ptc-line-height-dense)}p.line-height-normal{line-height:var(--ptc-line-height-normal)}p.line-height-loose{line-height:var(--ptc-line-height-loose)}p.line-height-looser{line-height:var(--ptc-line-height-looser)}p.announcement{text-transform:uppercase;font-size:var(--ptc-font-size-small);color:var(--color-gray-07);line-height:var(--ptc-line-height-looser);letter-spacing:var(--ptc-letter-spacing-loose)}";
|
|
8
|
-
|
|
9
|
-
let PtcPara = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
/**
|
|
13
|
-
* Paragraph font size
|
|
14
|
-
**/
|
|
15
|
-
this.fontSize = "x-small";
|
|
16
|
-
/**
|
|
17
|
-
* Paragraph font weight
|
|
18
|
-
**/
|
|
19
|
-
this.fontWeight = 'w-4';
|
|
20
|
-
/**
|
|
21
|
-
* Paragraph Style
|
|
22
|
-
**/
|
|
23
|
-
this.paraStyle = 'default';
|
|
24
|
-
/**
|
|
25
|
-
* Paragraph Color
|
|
26
|
-
*/
|
|
27
|
-
this.paraColor = 'primary-grey';
|
|
28
|
-
/**
|
|
29
|
-
* line height
|
|
30
|
-
*/
|
|
31
|
-
this.paraLineH = 'line-height-normal';
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
const classMap = this.getCssClassMap();
|
|
35
|
-
return (index.h("p", { class: classMap, part: "part-para" }, index.h("slot", null)));
|
|
36
|
-
}
|
|
37
|
-
getCssClassMap() {
|
|
38
|
-
return {
|
|
39
|
-
[this.fontSize]: true,
|
|
40
|
-
[this.fontWeight]: true,
|
|
41
|
-
[this.paraStyle]: true,
|
|
42
|
-
[this.paraMargin]: !!this.paraMargin ? true : false,
|
|
43
|
-
[this.paraColor]: true,
|
|
44
|
-
[this.paraLineH]: true
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
PtcPara.style = ptcParaCss;
|
|
49
|
-
|
|
50
|
-
exports.ptc_para = PtcPara;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-3adcf9f4.js');
|
|
6
|
-
|
|
7
|
-
const ptcSpacerCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.ptc-spacer-horizontal){display:inline-block;height:100% !important}:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.ptc-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.ptc-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.small){width:12px;min-width:12px}}:host(.ptc-spacer-horizontal.medium){height:100%}:host(.ptc-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.large){width:20px;min-width:20px}}:host(.ptc-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.ptc-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.ptc-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.ptc-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.ptc-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.ptc-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.ptc-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.ptc-spacer-vertical.small){height:12px;min-height:12px}}:host(.ptc-spacer-vertical.medium){width:100%}:host(.ptc-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.ptc-spacer-vertical.large){height:20px;min-height:20px}}:host(.ptc-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.ptc-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.ptc-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.ptc-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.ptc-spacer-vertical.space-144){width:100%;height:144px;min-height:144px}:host(.ptc-spacer-vertical.space-120){width:100%;height:120px;min-height:120px}:host(.ptc-spacer-vertical.space-128){width:100%;height:128px;min-height:128px}:host(.ptc-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.ptc-spacer-xx-small){display:block}}:host(.ptc-spacer-x-small){display:none}@media (max-width: 35.9375em){:host(.ptc-spacer-x-small){display:block}}:host(.ptc-spacer-small){display:none}@media (min-width: 36em){:host(.ptc-spacer-small){display:block}}:host(.ptc-spacer-medium){display:none}@media (min-width: 48em){:host(.ptc-spacer-medium){display:block}}:host(.ptc-spacer-large){display:none}@media (min-width: 62em){:host(.ptc-spacer-large){display:block}}:host(.ptc-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.ptc-spacer-x-large){display:block}}:host(.ptc-spacer-xx-large){display:none}@media (min-width: 76.25em){:host(.ptc-spacer-xx-large){display:block}}";
|
|
8
|
-
|
|
9
|
-
let PtcSpacer = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
/**
|
|
13
|
-
* Breakpoint
|
|
14
|
-
*/
|
|
15
|
-
this.breakpoint = '';
|
|
16
|
-
/**
|
|
17
|
-
* Spacing Size
|
|
18
|
-
*/
|
|
19
|
-
this.size = 'medium';
|
|
20
|
-
/**
|
|
21
|
-
* Direction
|
|
22
|
-
*/
|
|
23
|
-
this.direction = 'vertical';
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
const classMap = this.getCssClassMap();
|
|
27
|
-
return (index.h(index.Host, { class: classMap }));
|
|
28
|
-
}
|
|
29
|
-
getCssClassMap() {
|
|
30
|
-
return {
|
|
31
|
-
[this.size]: true,
|
|
32
|
-
['ptc-spacer-horizontal']: this.direction === 'horizontal',
|
|
33
|
-
['ptc-spacer-vertical']: this.direction === 'vertical',
|
|
34
|
-
['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
|
|
35
|
-
['ptc-spacer-x-small']: this.breakpoint === 'x-small',
|
|
36
|
-
['ptc-spacer-small']: this.breakpoint === 'small',
|
|
37
|
-
['ptc-spacer-medium']: this.breakpoint === 'medium',
|
|
38
|
-
['ptc-spacer-large']: this.breakpoint === 'large',
|
|
39
|
-
['ptc-spacer-x-large']: this.breakpoint === 'x-large',
|
|
40
|
-
['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
PtcSpacer.style = ptcSpacerCss;
|
|
45
|
-
|
|
46
|
-
exports.ptc_spacer = PtcSpacer;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-f64012bd.js';
|
|
2
|
-
|
|
3
|
-
const ptcCardCss = ":host{display:block}:host(.lottie-card) .card-border{box-shadow:var(--ptc-shadow-small);border:1px solid var(--color-gray-03);border-radius:10px;position:relative;overflow:hidden}:host(.lottie-card) .card-border::after{content:\"\";height:40%;width:4px;position:absolute;top:30%;right:-2px;background-color:var(--color-green-06);z-index:2;display:block}:host(.lottie-card) .card-border:hover{box-shadow:var(--ptc-shadow-x-large)}:host(.lottie-card) .card-border:hover .card-body h3{border-bottom:2px solid var(--color-green-07)}:host(.lottie-card) .card-layout{display:block}@media only screen and (min-width: 768px){:host(.lottie-card) .card-layout{display:flex;flex-flow:nowrap row;justify-content:center}}:host(.lottie-card) .link-wrapper{outline:none;text-decoration:none}:host(.lottie-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.lottie-card) .card-media{flex-basis:40%;border-right:1px solid var(--color-gray-03);display:flex}:host(.lottie-card) .card-body{flex-basis:60%;align-self:center;padding:0 30px 10px}:host(.lottie-card) .card-body h3{display:inline-block;line-height:var(--ptc-line-height-densest);color:var(--color-gray-10);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-x-small);border-bottom:2px solid transparent;margin-bottom:var(--ptc-element-spacing-02)}:host(.simple-card) .card-layout{display:block}:host(.simple-card) .link-wrapper{outline:none;text-decoration:none}:host(.simple-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.simple-card) .link-wrapper:hover .card-body h3::before{width:100%}:host(.simple-card) .link-wrapper:hover ::slotted([slot=slot-after-heading]){margin-left:var(--ptc-element-spacing-04)}:host(.simple-card) .card-body h3{color:var(--color-gray-10);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-black);line-height:var(--ptc-line-height-dense);position:relative;margin-bottom:var(--ptc-element-spacing-02);display:inline-block}:host(.simple-card) .card-body h3::before{display:block;position:absolute;content:\"\";width:var(--ptc-element-spacing-07);border-bottom:2px solid var(--color-green-06);bottom:1px;transition:width var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.simple-card) ::slotted([slot=slot-after-heading]){margin-left:var(--ptc-element-spacing-01);transition:margin-left var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.clip-edge-card) .card-border{overflow:hidden;filter:drop-shadow(rgba(0, 0, 0, 0.32) 0px 3px 6px);width:100%}:host(.clip-edge-card) .card-border:hover{filter:drop-shadow(rgba(0, 0, 0, 0.32) 0px 6px 12px)}:host(.clip-edge-card) .card-layout{display:block}:host(.clip-edge-card) .link-wrapper{outline:none;text-decoration:none}:host(.clip-edge-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.clip-edge-card) .card-media{position:relative;width:100%;height:124px;overflow:hidden;border-radius:var(--ptc-border-radius-standard)}:host(.clip-edge-card) .card-body{transform:translateY(calc((-1) * var(--ptc-element-spacing-04)));overflow:hidden;width:calc(95% - var(--ptc-element-spacing-04) - var(--ptc-element-spacing-04));font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10);clip-path:var(--ptc-clip-path-bottom-right);background-color:var(--color-white);border-radius:var(--ptc-border-radius-standard);padding:var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-03) var(--ptc-element-spacing-04)}:host(.clip-edge-card) .card-body h3{display:inline-block;margin:0px;font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10);text-decoration:none;border-bottom:2px solid transparent;transition:border-bottom var(--ptc-transition-medium) var(--ptc-ease-inout), margin var(--ptc-transition-medium) var(--ptc-ease-inout);margin:var(--ptc-element-spacing-03) 0 var(--ptc-element-spacing-03) 0}:host(.clip-edge-card) ::slotted([slot=slot-description]){height:0;opacity:0;transition:height var(--ptc-transition-medium) var(--ptc-ease-inout), opacity var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.clip-edge-card) ::slotted([slot=slot-image]){display:block;width:100%;height:100%;transform:scale(1);transition:transform var(--ptc-transition-medium) var(--ptc-ease-inout);transform-origin:top center}:host(.clip-edge-card) ::slotted([slot=slot-after-heading]){position:absolute;top:var(--ptc-element-spacing-03);left:var(--ptc-element-spacing-04);opacity:1;transform:scale(1);height:44px;transform-origin:bottom center;transition:opacity var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.clip-edge-card) ::slotted([slot=slot-before-heading]){display:block;opacity:0;height:24px;transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.clip-edge-card) .link-wrapper:hover .card-body h3{border-bottom:2px solid var(--color-green-06)}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-description]){height:60px;opacity:1}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-image]){transform:scale(1.1)}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-after-heading]){opacity:0;transform:scale(0);height:0}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-before-heading]){opacity:1}:host(.hightlight-card) .card-border{width:100%;border-radius:var(--ptc-border-radius-standard);overflow:hidden}:host(.hightlight-card) .card-border:hover .card-media{transform:scale(1.1)}:host(.hightlight-card) .card-layout{display:block;position:relative}:host(.hightlight-card) .link-wrapper{outline:none;text-decoration:none}:host(.hightlight-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.hightlight-card) .link-wrapper:hover ::slotted([slot=slot-description]){height:var(--ptc-layout-spacing-05);opacity:1}:host(.hightlight-card) .card-media{width:100%;height:auto;min-height:450px;position:relative;transform:scale(1);transform-origin:center bottom;transition:transform var(--ptc-transition-medium) var(--ptc-ease-inout);transition-delay:var(--ptc-delay-5)}:host(.hightlight-card) .card-body{position:absolute;bottom:0;top:auto;left:0;right:auto;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-07);background-color:var(--color-white);box-sizing:border-box}:host(.hightlight-card) .card-body h3{font-size:var(--ptc-font-size-x-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-bold);color:var(--color-gray-10);margin:var(--ptc-element-spacing-04) 0}:host(.hightlight-card) ::slotted([slot=slot-description]){height:0;opacity:0;transition:height var(--ptc-transition-medium) var(--ptc-ease-inout), opacity var(--ptc-transition-fast) var(--ptc-ease-inout);transition-delay:var(--ptc-delay-5)}:host(.listing-card) .card-border{width:100%;overflow:hidden;background:var(--color-white);box-shadow:var(--ptc-shadow-small);border-radius:3px;height:449px;display:flex;flex-direction:row}:host(.listing-card) .card-border:hover{background:var(--color-gray-02);box-shadow:var(--ptc-shadow-large)}:host(.listing-card) .card-layout{display:block;position:relative}:host(.listing-card) .card-layout .ribbon-text{position:absolute;top:0;left:0;margin-right:100px;margin-top:22px;background-color:var(--color-white);padding:4px 22px 5px 23px;font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-loose);color:var(--color-gray-11)}:host(.listing-card) .link-wrapper{outline:none;text-decoration:none}:host(.listing-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.listing-card) .card-media{width:100%;height:224.5px;transform:scale(1);transform-origin:center bottom;transition:transform var(--ptc-transition-medium) var(--ptc-standard-ease);transition-delay:var(--ptc-delay-medium)}:host(.listing-card) .card-body{padding:24px 20px}:host(.listing-card) .card-body .small{font-size:var(--ptc-font-size-x-small)}:host(.listing-card) .card-body h3{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-loose);line-height:21px;color:var(--color-gray-11);margin-bottom:12px;margin-top:0rem}:host(.listing-card) ::slotted([slot=slot-description]){font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-regular);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-dense);color:var(--color-gray-11);margin-bottom:39px}.ptc-h3.uppercase{text-transform:uppercase}.ptc-h3.capitalize{text-transform:capitalize}.ptc-h3.lowercase{text-transform:lowercase}.ptc-h3.none{text-transform:none}";
|
|
4
|
-
|
|
5
|
-
let PtcCard = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
/**
|
|
9
|
-
* Card Type
|
|
10
|
-
* Specify Card Type, default to simple card
|
|
11
|
-
*/
|
|
12
|
-
this.cardType = 'custom-card';
|
|
13
|
-
/**
|
|
14
|
-
* Card Link URL (Optional)
|
|
15
|
-
*/
|
|
16
|
-
this.cardHref = undefined;
|
|
17
|
-
/**
|
|
18
|
-
* (optional) Link card target
|
|
19
|
-
* */
|
|
20
|
-
this.target = '_self';
|
|
21
|
-
/**
|
|
22
|
-
* (optional) Link card rel
|
|
23
|
-
* */
|
|
24
|
-
this.rel = undefined;
|
|
25
|
-
/**
|
|
26
|
-
* If this card has Image
|
|
27
|
-
*/
|
|
28
|
-
this.hasImage = false;
|
|
29
|
-
/**
|
|
30
|
-
* If this card has Video
|
|
31
|
-
*/
|
|
32
|
-
this.hasVideo = false;
|
|
33
|
-
/**
|
|
34
|
-
* If this card has Lottie Image
|
|
35
|
-
*/
|
|
36
|
-
this.hasLottie = false;
|
|
37
|
-
/**
|
|
38
|
-
* Card heading text transform
|
|
39
|
-
*/
|
|
40
|
-
this.headingTransform = 'none';
|
|
41
|
-
}
|
|
42
|
-
render() {
|
|
43
|
-
const Tag = !!this.cardHref ? 'a' : 'div';
|
|
44
|
-
const classMap = this.getCssClassMap();
|
|
45
|
-
return (h(Host, Object.assign({}, (!!this.cardType ? { class: this.cardType } : {})), this.styles && h("style", null, this.styles), h("div", { class: "card-border", part: "border-wrapper" }, h(Tag, Object.assign({ class: classMap, part: "card-layout" }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {}), (!!this.ribbonText ? { rel: this.ribbonText } : {})), this.hasImage || this.hasLottie || this.hasVideo ? (h("div", { class: "card-media", part: "media-wrapper" }, this.getMediaSlot ? h("slot", { name: this.getMediaSlot() }) : null)) : null, !!this.ribbonText && this.cardType == 'listing-card' ? h("div", { class: "ribbon-text" }, `${this.ribbonText}`) : null, h("div", { class: "card-body", part: "body-wrapper" }, !!this.cardDate && this.cardType == 'listing-card' ? h("ptc-date", { "date-string": `${this.cardDate}`, "date-styles": "span{font-weight: 400;font-size: 16px;line-height: 19px;color: #282F35;margin-bottom:24px;display:inline-block;}" }) : null, h("slot", { name: "slot-before-heading" }), !!this.heading
|
|
46
|
-
? [
|
|
47
|
-
h("h3", { class: `ptc-h3 ${this.headingTransform}`, part: "card-heading" }, this.heading),
|
|
48
|
-
h("slot", { name: "slot-after-heading" }),
|
|
49
|
-
]
|
|
50
|
-
: null, h("slot", { name: "slot-description" }), !!this.cardDate && this.cardType != 'listing-card' ? h("ptc-date", { "date-string": `${this.cardDate}`, "date-styles": "span{color:#40434a;font-size:var(--ptc-font-size-x-small);margin-top:var(--ptc-element-spacing-06);display:inline-block;}" }) : null)))));
|
|
51
|
-
}
|
|
52
|
-
getCssClassMap() {
|
|
53
|
-
return {
|
|
54
|
-
['card-layout']: true,
|
|
55
|
-
['link-wrapper']: !!this.cardType ? true : false,
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
getMediaSlot() {
|
|
59
|
-
if (this.hasLottie) {
|
|
60
|
-
return 'slot-lottie';
|
|
61
|
-
}
|
|
62
|
-
else if (this.hasVideo) {
|
|
63
|
-
return 'slot-video';
|
|
64
|
-
}
|
|
65
|
-
else if (this.hasImage) {
|
|
66
|
-
return 'slot-image';
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
PtcCard.style = ptcCardCss;
|
|
74
|
-
|
|
75
|
-
export { PtcCard as ptc_card };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-f64012bd.js';
|
|
2
|
-
|
|
3
|
-
const ptcDateCss = ":host{display:block}:host(.small) span{font-size:var(--ptc-font-size-xx-small)}:host(.medium) span{font-size:var(--ptc-font-size-x-small)}:host(.primary-grey){color:var(--color-primary-gray-new)}:host(.white) span{color:var(--color-white)}:host(.date-m-top){margin-top:var(--ptc-element-spacing-01)}";
|
|
4
|
-
|
|
5
|
-
let PtcDate = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
/**
|
|
9
|
-
* Year
|
|
10
|
-
*/
|
|
11
|
-
this.year = 1900;
|
|
12
|
-
/**
|
|
13
|
-
* Month
|
|
14
|
-
* An integer between 1 (January) and 12 (December) representing the month.If omitted, defaults to 0.
|
|
15
|
-
*/
|
|
16
|
-
this.month = 0;
|
|
17
|
-
/**
|
|
18
|
-
* Day
|
|
19
|
-
* An integer between 1 and 31 representing the day of the month. If omitted, defaults to 1.
|
|
20
|
-
*/
|
|
21
|
-
this.day = 1;
|
|
22
|
-
/**
|
|
23
|
-
* Country
|
|
24
|
-
* examples: en-US, zh-CN, zh-TW, fr-FR, ja-JP, ru-RU, de-DE, ko-KR, it-IT, es-ES
|
|
25
|
-
*/
|
|
26
|
-
this.country = 'en-US';
|
|
27
|
-
/**
|
|
28
|
-
* Date Font Size
|
|
29
|
-
*/
|
|
30
|
-
this.dataSize = 'small';
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
// const newDate = new Date(this.year, this.month, this.day);
|
|
34
|
-
const classMap = this.getCssClassMap();
|
|
35
|
-
return (h(Host, { class: classMap }, this.dateStyles && h("style", null, this.dateStyles), h("span", { part: "part-ptc-date" }, this.getDate().toLocaleDateString(this.country, { year: 'numeric', month: 'short', day: 'numeric' }))));
|
|
36
|
-
}
|
|
37
|
-
getCssClassMap() {
|
|
38
|
-
return {
|
|
39
|
-
[this.dateColor]: !!this.dateColor ? true : false,
|
|
40
|
-
[this.dataSize]: !!this.dataSize ? true : false,
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
getDate() {
|
|
44
|
-
if (this.dateString) {
|
|
45
|
-
let newDate = new Date(this.dateString.replace(/-/g, '/'));
|
|
46
|
-
return newDate;
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
return new Date(this.year, this.month - 1, this.day);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
PtcDate.style = ptcDateCss;
|
|
54
|
-
|
|
55
|
-
export { PtcDate as ptc_date };
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-f64012bd.js';
|
|
2
|
-
import { a as ResponsiveBgVariables } from './interfaces-c1c73092.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-standard{border-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.lazy-bg{background-image:none !important;background-color:var(--color-gray-03)}@media only screen and (min-width: 768px){.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 only screen and (min-width: 768px){.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
|
-
/**
|
|
43
|
-
* Image Z Index
|
|
44
|
-
*/
|
|
45
|
-
// @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
|
|
46
|
-
WindowResize() {
|
|
47
|
-
this.setResponsiveBg();
|
|
48
|
-
}
|
|
49
|
-
render() {
|
|
50
|
-
const classMap = this.getCssClassMap();
|
|
51
|
-
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}` }, this.imageType == 'smart-bg' ? h("slot", null) : null)));
|
|
52
|
-
}
|
|
53
|
-
componentDidLoad() {
|
|
54
|
-
this.addIntersectionObserver();
|
|
55
|
-
this.setResponsiveBg();
|
|
56
|
-
}
|
|
57
|
-
componentWillUpdate() {
|
|
58
|
-
// console.log('componentWillUpdate!');
|
|
59
|
-
this.addIntersectionObserver();
|
|
60
|
-
this.setResponsiveBg();
|
|
61
|
-
}
|
|
62
|
-
//responsive image
|
|
63
|
-
setResponsiveBg() {
|
|
64
|
-
// Define local variables
|
|
65
|
-
let backgrounds = (this.el || document).querySelectorAll(ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
66
|
-
// console.log('current breakpoint: ' + currentBreakpoint);
|
|
67
|
-
// Loop through all target elements
|
|
68
|
-
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
69
|
-
// Set current variables
|
|
70
|
-
el = backgrounds[i];
|
|
71
|
-
elData = el.getAttribute('data-' + currentBreakpoint);
|
|
72
|
-
// If the data attribute exists, set the background
|
|
73
|
-
if (elData !== null) {
|
|
74
|
-
el.style.backgroundImage = "url('" + elData + "')";
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
if (typeof console == 'object') {
|
|
78
|
-
console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
//lazy loading
|
|
84
|
-
addIntersectionObserver() {
|
|
85
|
-
if (!this.imgUrl) {
|
|
86
|
-
console.log('no image!');
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
if ('IntersectionObserver' in window) {
|
|
90
|
-
let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
|
|
91
|
-
let bgObserver = new IntersectionObserver(entries => {
|
|
92
|
-
entries.forEach(entry => {
|
|
93
|
-
if (entry.isIntersecting) {
|
|
94
|
-
const image = entry.target;
|
|
95
|
-
image.classList.remove('lazy-bg');
|
|
96
|
-
// console.log('loaded');
|
|
97
|
-
bgObserver.unobserve(image);
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
lazyLoadBgs.forEach(image => {
|
|
102
|
-
bgObserver.observe(image);
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
getCssClassMap() {
|
|
107
|
-
return {
|
|
108
|
-
[this.imageType]: true,
|
|
109
|
-
'ptc-img': true,
|
|
110
|
-
[this.borderRadius]: true,
|
|
111
|
-
[this.loadMode]: true,
|
|
112
|
-
// [this.imageZIndex] : true
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
getCurrentBreakPoints() {
|
|
116
|
-
// Define local variables
|
|
117
|
-
let doc = window.document, temp = doc.createElement('div'), env;
|
|
118
|
-
// Append test node
|
|
119
|
-
doc.body.appendChild(temp);
|
|
120
|
-
// Loop through breakpoints
|
|
121
|
-
for (let i = ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
|
|
122
|
-
env = ResponsiveBgVariables.envs[i];
|
|
123
|
-
// Add classes
|
|
124
|
-
temp.className = 'hidden-' + env;
|
|
125
|
-
// Found breakpoint
|
|
126
|
-
if (temp.offsetParent === null) {
|
|
127
|
-
// Remove our test node
|
|
128
|
-
doc.body.removeChild(temp);
|
|
129
|
-
console.log('remove test node');
|
|
130
|
-
// Return current breakpoint
|
|
131
|
-
return env;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
// Breakpoint not found, try fallback
|
|
135
|
-
doc.body.removeChild(temp);
|
|
136
|
-
return this.getFallbackBreakpoint();
|
|
137
|
-
}
|
|
138
|
-
getFallbackBreakpoint() {
|
|
139
|
-
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
140
|
-
return 'lg';
|
|
141
|
-
}
|
|
142
|
-
else if (window.matchMedia('(min-width: 768px)').matches) {
|
|
143
|
-
return 'md';
|
|
144
|
-
}
|
|
145
|
-
else if (window.matchMedia('(min-width: 576px)').matches) {
|
|
146
|
-
return 'sm';
|
|
147
|
-
}
|
|
148
|
-
else {
|
|
149
|
-
return 'xs';
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
get el() { return getElement(this); }
|
|
153
|
-
};
|
|
154
|
-
PtcImg.style = ptcImgCss;
|
|
155
|
-
|
|
156
|
-
const ptcOverlayCss = ":host{display:block;position:absolute;top:0;left:0;width:100%;height:100%}:host(.blue){background:linear-gradient(180deg, rgba(25, 123, 192, 0.2) 0%, var(--color-blue-07) 100%)}:host(.red){background:linear-gradient(180deg, rgba(209, 44, 58, 0.2) 0%, var(--color-red-07) 100%)}:host(.orange){background:linear-gradient(180deg, rgba(195, 119, 41, 0.2) 0%, var(--color-orange-07) 100%)}:host(.green){background:linear-gradient(180deg, rgba(0, 137, 11, 0.2) 0%, var(--color-green-07) 100%)}:host(.black-1){background:linear-gradient(270deg, rgba(32, 38, 42, 0.32) 33.33%, var(--color-gray-12) 100%)}:host(.black-2){background:linear-gradient(180deg, rgba(32, 38, 42, 0) 0%, var(--color-gray-12) 100%)}@media only screen and (min-width: 768px){:host(.black-1){background:linear-gradient(270deg, rgba(32, 38, 42, 0) 33.33%, var(--color-gray-12) 100%)}:host(.black-2){background:linear-gradient(180deg, rgba(32, 38, 42, 0) 0%, var(--color-gray-12) 100%)}}:host(.black-3){background:linear-gradient(180deg, var(--color-gray-12) 0%, rgba(32, 38, 42, 0.55) 100%)}:host(.slate-grey){background:linear-gradient(180deg, rgba(97, 116, 128, 0.2) 0%, var(--color-gray-07) 100%)}:host(.radius-standard){border-radius:var(--ptc-border-radius-standard)}:host(.radius-large){border-radius:var(--ptc-border-radius-large)}:host(.z-index-auto){z-index:auto}:host(.z-index-n-1){z-index:-1}:host(.z-index-n-2){z-index:-2}:host(.z-index-p-1){z-index:1}:host(.z-index-p-2){z-index:2}";
|
|
157
|
-
|
|
158
|
-
let PtcOverlay = class {
|
|
159
|
-
constructor(hostRef) {
|
|
160
|
-
registerInstance(this, hostRef);
|
|
161
|
-
/**
|
|
162
|
-
* Overlay z-index
|
|
163
|
-
*/
|
|
164
|
-
this.overlayZIndex = 'z-index-auto';
|
|
165
|
-
}
|
|
166
|
-
render() {
|
|
167
|
-
const classMap = this.getCssClassMap();
|
|
168
|
-
return h(Host, { class: classMap });
|
|
169
|
-
}
|
|
170
|
-
getCssClassMap() {
|
|
171
|
-
return {
|
|
172
|
-
[this.filterColor]: !!this.filterColor ? true : false,
|
|
173
|
-
[this.borderRadius]: !!this.borderRadius ? true : false,
|
|
174
|
-
[this.overlayZIndex]: true
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
PtcOverlay.style = ptcOverlayCss;
|
|
179
|
-
|
|
180
|
-
export { PtcImg as ptc_img, PtcOverlay as ptc_overlay };
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-f64012bd.js';
|
|
2
|
-
|
|
3
|
-
const ptcPagenationCss = ":host{display:block}.events-filter{padding:20px 32px 20px 0;text-align:center}@media (min-width: 992px){.events-filter{padding:10px 40px 10px 0px}}.events-filter .pagenation-arrow{width:40px;height:40px;margin:0 15px;vertical-align:middle}.show-page{display:inline}.hide-page{display:none}.prev-text{display:none}.last-text{display:none}@media (min-width: 992px){.prev-text{display:inline;cursor:pointer}.last-text{display:inline;cursor:pointer}}.events-filter-item{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-semibold);font-stretch:normal;font-style:var(--ptc-font-style-normal);line-height:var(--ptc-line-height-denser);letter-spacing:var(--ptc-letter-spacing-normal);text-align:left;padding:6px;color:var(--color-gray-13);text-decoration:none}.events-filter .active{font-family:var(--ptc-font-latin);border-bottom:2px solid var(--color-green-13);font-weight:var(--ptc-font-weight-semibold)}.events-filter-item:hover,.events-filter-item:focus{text-decoration:none;outline:0;color:var(--color-green-14)}.events-filter .disabled{color:var(--color-white-01)}.events-filter-dots{padding:0rem;font-weight:var(--ptc-font-weight-extrabold);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-xx-small);font-stretch:normal;font-style:var(--ptc-font-style-normal);line-height:var(--ptc-line-height-denser);letter-spacing:var(--ptc-letter-spacing-normal);text-align:left;color:var(--color-gray-13);text-decoration:none}.events-disable-arrows{opacity:0.35}.events-enable-arrows{opacity:1}.events-small-dots{height:60px;margin-top:-25px}@media (min-width: 992px){.events-small-dots{height:80px;margin-top:-40px}}.last-page{transform:rotate(180deg)}";
|
|
4
|
-
|
|
5
|
-
let PtcPagenation = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.pageClicked = createEvent(this, "pageClicked", 7);
|
|
9
|
-
this.numberOfItems = 9; //page size
|
|
10
|
-
this.previousValue = "Previous";
|
|
11
|
-
this.lastValue = "Next";
|
|
12
|
-
this.pageNumbers = [];
|
|
13
|
-
this.minPageNumber = 1;
|
|
14
|
-
this.maxPageNumber = 4;
|
|
15
|
-
this.clickedPageNumber = 1;
|
|
16
|
-
this.appendArray = true;
|
|
17
|
-
this.prevArrowImg = "/dist/ptc/images/sidescroll-left-curved.svg";
|
|
18
|
-
this.nextArrowImg = "/dist/ptc/images/sidescroll-right-curved.svg";
|
|
19
|
-
this.handleClick = () => {
|
|
20
|
-
if (this.clickedPageNumber < this.getPageCount()) {
|
|
21
|
-
if (this.clickedPageNumber + 1 <= this.maxPageNumber) {
|
|
22
|
-
this.handleClickPage(this.clickedPageNumber + 1);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
this.minPageNumber = this.minPageNumber + 4;
|
|
26
|
-
this.clickedPageNumber = this.clickedPageNumber + 1;
|
|
27
|
-
this.appendArray = true;
|
|
28
|
-
this.pageNumbers = [...this.pageNumbers];
|
|
29
|
-
this.pageClicked.emit(this.clickedPageNumber);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
this.handleClickPrev = () => {
|
|
34
|
-
if (this.clickedPageNumber > 1) {
|
|
35
|
-
if (this.clickedPageNumber - 1 >= this.minPageNumber) {
|
|
36
|
-
this.handleClickPage(this.clickedPageNumber - 1);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
this.minPageNumber = this.minPageNumber - 4;
|
|
40
|
-
this.clickedPageNumber = this.clickedPageNumber - 1;
|
|
41
|
-
this.appendArray = true;
|
|
42
|
-
this.pageNumbers = [...this.pageNumbers];
|
|
43
|
-
this.pageClicked.emit(this.clickedPageNumber);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
this.getPageCount = () => {
|
|
48
|
-
let pageCount = 0;
|
|
49
|
-
if (this.totalCount != 0) {
|
|
50
|
-
if (this.totalCount % this.numberOfItems == 0) {
|
|
51
|
-
pageCount = this.totalCount / this.numberOfItems;
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
pageCount = this.totalCount / this.numberOfItems + 1;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return Math.floor(pageCount);
|
|
58
|
-
};
|
|
59
|
-
this.getIndex = (appendarr) => {
|
|
60
|
-
//var games : string[] = [];
|
|
61
|
-
//let games : HTMLElement[] = [];
|
|
62
|
-
//let items: pageItem[] = [];
|
|
63
|
-
if (appendarr) {
|
|
64
|
-
let pageCountVal = this.getPageCount();
|
|
65
|
-
this.maxPageNumber = pageCountVal >= this.minPageNumber + 3 ? this.minPageNumber + 3 : pageCountVal;
|
|
66
|
-
this.pageNumbers = [];
|
|
67
|
-
for (let i = this.minPageNumber; i <= this.maxPageNumber; i++) {
|
|
68
|
-
let id = i + "Id";
|
|
69
|
-
let isItemActive = false;
|
|
70
|
-
if (i == this.clickedPageNumber) {
|
|
71
|
-
isItemActive = true;
|
|
72
|
-
}
|
|
73
|
-
// if (i > 4)
|
|
74
|
-
// {
|
|
75
|
-
// hideShowPageClass = " hide-page";
|
|
76
|
-
// }
|
|
77
|
-
const newPageItem = {
|
|
78
|
-
id: id,
|
|
79
|
-
isActive: isItemActive,
|
|
80
|
-
dataPage: i
|
|
81
|
-
};
|
|
82
|
-
this.pageNumbers = [...this.pageNumbers, newPageItem];
|
|
83
|
-
//games.push(<a href="#" data-url={id} data-page={i} class={classValue}>i</a>);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
return this.pageNumbers;
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
render() {
|
|
90
|
-
let pageCountValue = this.getPageCount();
|
|
91
|
-
this.pageNumbers = [...this.getIndex(this.appendArray)];
|
|
92
|
-
return (h("div", { class: "events-filter" }, h("span", { class: this.clickedPageNumber == 1 ? "events-filter-item disabled prev-text" : "events-filter-item prev-text" }, this.previousValue), h("img", { src: this.prevArrowImg, onClick: this.handleClickPrev, class: this.clickedPageNumber == 1 ? "pagenation-arrow prev-page events-disable-arrows" : "pagenation-arrow prev-page" }), this.pageNumbers.map(anchoritem => {
|
|
93
|
-
return (h("a", { href: "#", "data-url": anchoritem.id, "data-page": anchoritem.dataPage, class: anchoritem.isActive ? "events-filter-item active" : "events-filter-item", onClick: () => this.handleClickPage(anchoritem.dataPage) }, anchoritem.dataPage));
|
|
94
|
-
}), pageCountValue > this.maxPageNumber ? (h("span", { class: "events-filter-dots" }, ". . .")) : null, h("img", { src: this.nextArrowImg, onClick: this.handleClick, class: this.clickedPageNumber == pageCountValue ? "pagenation-arrow last-page events-disable-arrows" : "pagenation-arrow last-page" }), h("span", { class: this.clickedPageNumber == pageCountValue ? "events-filter-item disabled last-text" : "events-filter-item last-text" }, this.lastValue)));
|
|
95
|
-
}
|
|
96
|
-
handleClickPage(clickedPage) {
|
|
97
|
-
this.clickedPageNumber = clickedPage;
|
|
98
|
-
let newArray = [];
|
|
99
|
-
this.appendArray = false;
|
|
100
|
-
newArray = [...this.pageNumbers];
|
|
101
|
-
newArray.map(item => {
|
|
102
|
-
item.dataPage == clickedPage ? item.isActive = true : item.isActive = false;
|
|
103
|
-
});
|
|
104
|
-
this.pageNumbers = null;
|
|
105
|
-
this.pageNumbers = [...newArray];
|
|
106
|
-
this.pageClicked.emit(clickedPage);
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
PtcPagenation.style = ptcPagenationCss;
|
|
110
|
-
|
|
111
|
-
export { PtcPagenation as ptc_pagenation };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-f64012bd.js';
|
|
2
|
-
|
|
3
|
-
const ptcParaCss = ":host{z-index:1}p.default{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}p.main{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10)}p.primary-grey{color:var(--color-gray-10)}p.white{color:var(--color-white)}p.xxx-small{font-size:var(--ptc-font-size-xxx-small)}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-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:0}p.margin-top-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}p.margin-top-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}p.margin-top-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}p.margin-top-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}p.margin-top-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}p.margin-bottom-1{margin-bottom:var(--ptc-element-spacing-01);margin-top:0}p.margin-bottom-2{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}p.margin-bottom-3{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}p.margin-bottom-4{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}p.margin-bottom-5{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}p.margin-bottom-6{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}p.margin-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:var(--ptc-element-spacing-01)}p.margin-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}p.margin-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}p.margin-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}p.margin-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}p.margin-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}p.line-height-densest{line-height:var(--ptc-line-height-densest)}p.line-height-denser{line-height:var(--ptc-line-height-denser)}p.line-height-dense{line-height:var(--ptc-line-height-dense)}p.line-height-normal{line-height:var(--ptc-line-height-normal)}p.line-height-loose{line-height:var(--ptc-line-height-loose)}p.line-height-looser{line-height:var(--ptc-line-height-looser)}p.announcement{text-transform:uppercase;font-size:var(--ptc-font-size-small);color:var(--color-gray-07);line-height:var(--ptc-line-height-looser);letter-spacing:var(--ptc-letter-spacing-loose)}";
|
|
4
|
-
|
|
5
|
-
let PtcPara = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
/**
|
|
9
|
-
* Paragraph font size
|
|
10
|
-
**/
|
|
11
|
-
this.fontSize = "x-small";
|
|
12
|
-
/**
|
|
13
|
-
* Paragraph font weight
|
|
14
|
-
**/
|
|
15
|
-
this.fontWeight = 'w-4';
|
|
16
|
-
/**
|
|
17
|
-
* Paragraph Style
|
|
18
|
-
**/
|
|
19
|
-
this.paraStyle = 'default';
|
|
20
|
-
/**
|
|
21
|
-
* Paragraph Color
|
|
22
|
-
*/
|
|
23
|
-
this.paraColor = 'primary-grey';
|
|
24
|
-
/**
|
|
25
|
-
* line height
|
|
26
|
-
*/
|
|
27
|
-
this.paraLineH = 'line-height-normal';
|
|
28
|
-
}
|
|
29
|
-
render() {
|
|
30
|
-
const classMap = this.getCssClassMap();
|
|
31
|
-
return (h("p", { class: classMap, part: "part-para" }, h("slot", null)));
|
|
32
|
-
}
|
|
33
|
-
getCssClassMap() {
|
|
34
|
-
return {
|
|
35
|
-
[this.fontSize]: true,
|
|
36
|
-
[this.fontWeight]: true,
|
|
37
|
-
[this.paraStyle]: true,
|
|
38
|
-
[this.paraMargin]: !!this.paraMargin ? true : false,
|
|
39
|
-
[this.paraColor]: true,
|
|
40
|
-
[this.paraLineH]: true
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
PtcPara.style = ptcParaCss;
|
|
45
|
-
|
|
46
|
-
export { PtcPara as ptc_para };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-f64012bd.js';
|
|
2
|
-
|
|
3
|
-
const ptcSpacerCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.ptc-spacer-horizontal){display:inline-block;height:100% !important}:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.ptc-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.ptc-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.small){width:12px;min-width:12px}}:host(.ptc-spacer-horizontal.medium){height:100%}:host(.ptc-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.large){width:20px;min-width:20px}}:host(.ptc-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.ptc-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.ptc-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.ptc-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.ptc-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.ptc-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.ptc-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.ptc-spacer-vertical.small){height:12px;min-height:12px}}:host(.ptc-spacer-vertical.medium){width:100%}:host(.ptc-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.ptc-spacer-vertical.large){height:20px;min-height:20px}}:host(.ptc-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.ptc-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.ptc-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.ptc-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.ptc-spacer-vertical.space-144){width:100%;height:144px;min-height:144px}:host(.ptc-spacer-vertical.space-120){width:100%;height:120px;min-height:120px}:host(.ptc-spacer-vertical.space-128){width:100%;height:128px;min-height:128px}:host(.ptc-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.ptc-spacer-xx-small){display:block}}:host(.ptc-spacer-x-small){display:none}@media (max-width: 35.9375em){:host(.ptc-spacer-x-small){display:block}}:host(.ptc-spacer-small){display:none}@media (min-width: 36em){:host(.ptc-spacer-small){display:block}}:host(.ptc-spacer-medium){display:none}@media (min-width: 48em){:host(.ptc-spacer-medium){display:block}}:host(.ptc-spacer-large){display:none}@media (min-width: 62em){:host(.ptc-spacer-large){display:block}}:host(.ptc-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.ptc-spacer-x-large){display:block}}:host(.ptc-spacer-xx-large){display:none}@media (min-width: 76.25em){:host(.ptc-spacer-xx-large){display:block}}";
|
|
4
|
-
|
|
5
|
-
let PtcSpacer = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
/**
|
|
9
|
-
* Breakpoint
|
|
10
|
-
*/
|
|
11
|
-
this.breakpoint = '';
|
|
12
|
-
/**
|
|
13
|
-
* Spacing Size
|
|
14
|
-
*/
|
|
15
|
-
this.size = 'medium';
|
|
16
|
-
/**
|
|
17
|
-
* Direction
|
|
18
|
-
*/
|
|
19
|
-
this.direction = 'vertical';
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
const classMap = this.getCssClassMap();
|
|
23
|
-
return (h(Host, { class: classMap }));
|
|
24
|
-
}
|
|
25
|
-
getCssClassMap() {
|
|
26
|
-
return {
|
|
27
|
-
[this.size]: true,
|
|
28
|
-
['ptc-spacer-horizontal']: this.direction === 'horizontal',
|
|
29
|
-
['ptc-spacer-vertical']: this.direction === 'vertical',
|
|
30
|
-
['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
|
|
31
|
-
['ptc-spacer-x-small']: this.breakpoint === 'x-small',
|
|
32
|
-
['ptc-spacer-small']: this.breakpoint === 'small',
|
|
33
|
-
['ptc-spacer-medium']: this.breakpoint === 'medium',
|
|
34
|
-
['ptc-spacer-large']: this.breakpoint === 'large',
|
|
35
|
-
['ptc-spacer-x-large']: this.breakpoint === 'x-large',
|
|
36
|
-
['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
PtcSpacer.style = ptcSpacerCss;
|
|
41
|
-
|
|
42
|
-
export { PtcSpacer as ptc_spacer };
|