@ptcwebops/ptcw-design 1.6.9 → 1.7.1
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 +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +12 -4
- package/dist/cjs/ptc-readmore.cjs.entry.js +2 -2
- package/dist/cjs/ptc-tab-list.cjs.entry.js +20 -4
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.css +58 -3
- package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +19 -4
- package/dist/collection/components/ptc-para/ptc-para.css +8 -0
- package/dist/collection/components/ptc-para/ptc-para.js +2 -2
- package/dist/collection/components/ptc-readmore/ptc-readmore.js +2 -2
- package/dist/collection/components/ptc-tab-list/ptc-tab-list.css +8 -4
- package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +21 -3
- package/dist/collection/stories/ReadMore.stories.js +100 -0
- package/dist/collection/stories/Tooltip.stories.js +112 -0
- package/dist/custom-elements/index.js +37 -13
- package/dist/esm/icon-asset_16.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ptc-ellipsis-dropdown.entry.js +12 -4
- package/dist/esm/ptc-readmore.entry.js +2 -2
- package/dist/esm/ptc-tab-list.entry.js +20 -4
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/p-b6b63e22.entry.js +1 -0
- package/dist/ptcw-design/p-fa62c1b1.entry.js +1 -0
- package/dist/ptcw-design/p-fe438f03.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-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +3 -0
- package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
- package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +2 -0
- package/dist/types/components.d.ts +2 -2
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-32efd536.entry.js +0 -1
- package/dist/ptcw-design/p-7bc132c4.entry.js +0 -1
- package/dist/ptcw-design/p-f958e8c7.entry.js +0 -1
|
@@ -20,7 +20,7 @@ export class PtcReadmore {
|
|
|
20
20
|
p.classList[p.scrollHeight > p.clientHeight ? 'add' : 'remove']('truncated');
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
// Created this function to initialize the truncate function on specific elements like tabs
|
|
23
|
+
// Created this function to initialize the truncate function on specific elements like tabs
|
|
24
24
|
enableAddTruncatedClass(element) {
|
|
25
25
|
const allTabHeaders = document.querySelectorAll(element);
|
|
26
26
|
for (const element of Array.from(allTabHeaders)) {
|
|
@@ -52,7 +52,7 @@ export class PtcReadmore {
|
|
|
52
52
|
this.checked = event.target.checked;
|
|
53
53
|
// Getting cta element
|
|
54
54
|
const cta = this.el.shadowRoot.querySelector('.read-more-cta-label');
|
|
55
|
-
// Updating the cta text
|
|
55
|
+
// Updating the cta text
|
|
56
56
|
this.checked
|
|
57
57
|
? cta.innerHTML = `<span> ${this.lessText ? this.lessText : ''} </span>`
|
|
58
58
|
: cta.innerHTML = `<span> ${this.moreText ? this.moreText : ''}</span>`;
|
|
@@ -4,7 +4,7 @@ ptc-tab-list {
|
|
|
4
4
|
color: var(--color-gray-12);
|
|
5
5
|
}
|
|
6
6
|
ptc-tab-list.tab-with-banner {
|
|
7
|
-
background-color:
|
|
7
|
+
background-color: var(--color-white);
|
|
8
8
|
padding: 20px 10px;
|
|
9
9
|
}
|
|
10
10
|
@media only screen and (min-width: 480px) {
|
|
@@ -42,11 +42,15 @@ ptc-tab-list.tab-with-banner .tabs-content p, ptc-tab-list.tab-with-banner .tabs
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.ellipsis-btn {
|
|
45
|
-
position: absolute;
|
|
46
|
-
top: var(--ptc-element-spacing-01);
|
|
47
|
-
right: 1rem;
|
|
48
45
|
display: none;
|
|
49
46
|
}
|
|
47
|
+
@media only screen and (min-width: 768px) {
|
|
48
|
+
.ellipsis-btn {
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: var(--ptc-element-spacing-01);
|
|
51
|
+
right: 1rem;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
50
54
|
.ellipsis-btn.active {
|
|
51
55
|
display: block;
|
|
52
56
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
|
+
//import { forEach } from 'lodash';
|
|
2
3
|
export class PtcTabList {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.type = undefined;
|
|
6
|
+
this.isMobile = undefined;
|
|
5
7
|
this.selectedValue = undefined;
|
|
6
8
|
}
|
|
9
|
+
componentWillLoad() {
|
|
10
|
+
this.isMobile = window.innerWidth < 768;
|
|
11
|
+
}
|
|
7
12
|
componentDidLoad() {
|
|
8
13
|
this.createGroup();
|
|
9
14
|
this.calculateHeaderTabsRendering();
|
|
@@ -26,15 +31,27 @@ export class PtcTabList {
|
|
|
26
31
|
let tabs = header.children;
|
|
27
32
|
let activateDropDown = false;
|
|
28
33
|
let hiddenTabs = [];
|
|
34
|
+
this.isMobile = window.innerWidth < 768;
|
|
29
35
|
header.classList.remove('active');
|
|
30
36
|
for (let index = 0; index < tabs.length; index++) {
|
|
31
37
|
tabs[index].style.removeProperty('display');
|
|
32
38
|
}
|
|
33
39
|
for (let index = tabs.length - 1; index >= 0; index--) {
|
|
34
40
|
let tab = tabs[index];
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
let isSelectedTab = tab.getAttribute('name') === this.selectedValue;
|
|
42
|
+
if (this.isMobile) {
|
|
43
|
+
let text = tab.querySelector('.text-cont').textContent;
|
|
44
|
+
header.style.display = 'none';
|
|
45
|
+
activateDropDown = true;
|
|
46
|
+
hiddenTabs.push({
|
|
47
|
+
value: tab.getAttribute('name'),
|
|
48
|
+
text: text,
|
|
49
|
+
isSelected: isSelectedTab
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
header.style.display = 'flex';
|
|
54
|
+
if (header.scrollWidth > header.clientWidth) {
|
|
38
55
|
tab.style.display = 'none';
|
|
39
56
|
let text = tab.querySelector('.text-cont').textContent;
|
|
40
57
|
activateDropDown = true;
|
|
@@ -155,6 +172,7 @@ export class PtcTabList {
|
|
|
155
172
|
}
|
|
156
173
|
static get states() {
|
|
157
174
|
return {
|
|
175
|
+
"isMobile": {},
|
|
158
176
|
"selectedValue": {}
|
|
159
177
|
};
|
|
160
178
|
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
|
|
2
|
+
import { html } from 'lit';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Atoms/ptc-readmore',
|
|
5
|
+
tags: ['autodocs'],
|
|
6
|
+
component: Readmore,
|
|
7
|
+
argTypes: {
|
|
8
|
+
content: {
|
|
9
|
+
name: 'Read more content',
|
|
10
|
+
description: "Set content in the follwing textarea"
|
|
11
|
+
},
|
|
12
|
+
moreText : {
|
|
13
|
+
name: 'Read More *',
|
|
14
|
+
description: "Set read more label",
|
|
15
|
+
defaultValue: { summary: 'read more' }
|
|
16
|
+
},
|
|
17
|
+
lessText : {
|
|
18
|
+
name: 'Read Less',
|
|
19
|
+
description: "Set read less label. If read less label is not set then the it will be removed from component"
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
readMorePosition: {
|
|
23
|
+
name: 'Read more position',
|
|
24
|
+
description: 'Set the location of the "Read more label" below the text',
|
|
25
|
+
control: { type: 'select' },
|
|
26
|
+
options: ['left', 'right', 'center'],
|
|
27
|
+
defaultValue: { summary: 'right' }
|
|
28
|
+
},
|
|
29
|
+
visibleLines: {
|
|
30
|
+
name: 'Visible lines',
|
|
31
|
+
description: "Set the visible line from follwing options",
|
|
32
|
+
control: { type: 'select' },
|
|
33
|
+
options: ['line1','line2','line3','line4','line5' ,'line10'],
|
|
34
|
+
defaultValue: { summary: 'line2' }
|
|
35
|
+
},
|
|
36
|
+
visibleLinesCustom: {
|
|
37
|
+
name: 'Visible lines Custom',
|
|
38
|
+
description: "Set the visible line number",
|
|
39
|
+
control: { type: 'number'}
|
|
40
|
+
},
|
|
41
|
+
size: {
|
|
42
|
+
name: 'Size of the read more/less text',
|
|
43
|
+
description: "Set the size of the read more/less text",
|
|
44
|
+
control: {type: 'select'},
|
|
45
|
+
options: ['small','medium','large'],
|
|
46
|
+
defaultValue: { summary: 'small' }
|
|
47
|
+
},
|
|
48
|
+
color: {
|
|
49
|
+
name: 'Color: Read more text',
|
|
50
|
+
description: "Set the color of the read more/less text",
|
|
51
|
+
control: {type: 'select'},
|
|
52
|
+
options: ['blue','gray','green','initial'],
|
|
53
|
+
defaultValue: { summary: 'blue' }
|
|
54
|
+
},
|
|
55
|
+
isIcon: {
|
|
56
|
+
name: 'Arrow Icon',
|
|
57
|
+
description: "Set the arrow besides read more text",
|
|
58
|
+
control: {type: 'boolean'},
|
|
59
|
+
defaultValue: { summary: false }
|
|
60
|
+
},
|
|
61
|
+
display: {
|
|
62
|
+
name: 'Text Display css property',
|
|
63
|
+
description: "Set display propety inline ",
|
|
64
|
+
control: { type: 'select' },
|
|
65
|
+
options: ['inline', 'block'],
|
|
66
|
+
defaultValue: { summary: 'inline' },
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const Template = args => { return html `<ptc-readmore
|
|
72
|
+
more-text="${args.moreText}"
|
|
73
|
+
less-text="${args.lessText}"
|
|
74
|
+
size="${args.size}"
|
|
75
|
+
read-more-position="${args.readMorePosition}"
|
|
76
|
+
visible-lines="${args.visibleLines}"
|
|
77
|
+
visible-lines-custom="${args.visibleLinesCustom}"
|
|
78
|
+
color="${args.color}"
|
|
79
|
+
is-icon="${args.isIcon}"
|
|
80
|
+
display=${args.display}>
|
|
81
|
+
${args.content}
|
|
82
|
+
</ptc-readmore>`};
|
|
83
|
+
|
|
84
|
+
export const Readmore = Template.bind({});
|
|
85
|
+
Readmore.args={
|
|
86
|
+
moreText : 'Read more',
|
|
87
|
+
lessText : 'Read less',
|
|
88
|
+
readMorePosition: 'right',
|
|
89
|
+
visibleLines: 'line2',
|
|
90
|
+
visibleLinesCustom: 2,
|
|
91
|
+
size: 'small',
|
|
92
|
+
color: 'blue',
|
|
93
|
+
isIcon: false,
|
|
94
|
+
display: 'inline',
|
|
95
|
+
content: 'tes Nulla ut nunc id nulla aliquam feugiat. Maecenas quis dui rhoncus, mattis risus ac, tincidunt massa. Cras dictum aliquet eleifend. Etiam condimentum suscipit vulputate. In tempus ante at eros elementum volutpat. Ut aliquam mattis velit, sed malesuada lorem. Donec eu posuere nisl, eget scelerisque lectus. Donec id nibh quis lectus euismod semper eget in sem. Ut vulputate cursus libero ut pharetra.Ut aliquam mattis velit, sed malesuada lorem. Donec eu posuere nisl, eget scelerisque lectus. Donec id nibh quis lectus euismod semper eget in sem. Ut vulputate cursus libero ut pharetra.'
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Atoms/ptc-tooltip',
|
|
5
|
+
tags: ['autodocs'],
|
|
6
|
+
argTypes: {
|
|
7
|
+
textLines: {
|
|
8
|
+
name: 'Maximum lines',
|
|
9
|
+
description: "Set maximum length in lines of content",
|
|
10
|
+
|
|
11
|
+
},
|
|
12
|
+
maxLength: {
|
|
13
|
+
name: 'Maximum chars',
|
|
14
|
+
description: "Set maximum length in chars of content",
|
|
15
|
+
defaultValue: { summary: 45 }
|
|
16
|
+
},
|
|
17
|
+
position: {
|
|
18
|
+
name: 'Position',
|
|
19
|
+
description: "Set position of the the tooltip box",
|
|
20
|
+
control: { type: 'select' },
|
|
21
|
+
options: ['left', 'right', 'bottom', 'bottom-right', 'top'],
|
|
22
|
+
defaultValue: { summary: 'bottom' }
|
|
23
|
+
},
|
|
24
|
+
width: {
|
|
25
|
+
name: 'width',
|
|
26
|
+
description: "Fill-width will make the tooltip box full-width relative to its parent",
|
|
27
|
+
control: { type: 'select' },
|
|
28
|
+
options: ['full-width', 'default'],
|
|
29
|
+
defaultValue: { summary: 'default' }
|
|
30
|
+
|
|
31
|
+
},
|
|
32
|
+
theme: {
|
|
33
|
+
name: 'Theme',
|
|
34
|
+
description: "Set the theme",
|
|
35
|
+
control: { type: 'select' },
|
|
36
|
+
options: ['standard', 'danger'],
|
|
37
|
+
defaultValue: { summary: 'standard' },
|
|
38
|
+
},
|
|
39
|
+
zIndex: {
|
|
40
|
+
name: 'zIndex',
|
|
41
|
+
description: "Set the zIndex of tooltip box",
|
|
42
|
+
control: { type: 'select' },
|
|
43
|
+
options: ['z-auto', 'z-1', 'z-2', 'z-3', 'z-999'],
|
|
44
|
+
defaultValue: { summary: 'z-auto' },
|
|
45
|
+
},
|
|
46
|
+
hideOnMobile: {
|
|
47
|
+
name: 'Hide tooltip box on mobile',
|
|
48
|
+
description: "Set true to hide the tooltip on mobile",
|
|
49
|
+
control: { type: 'boolean' },
|
|
50
|
+
defaultValue: { summary: false },
|
|
51
|
+
},
|
|
52
|
+
textDisplay: {
|
|
53
|
+
name: 'Text Display css property',
|
|
54
|
+
description: "Set textDisplay propety inline or block for tooltip text",
|
|
55
|
+
control: { type: 'select' },
|
|
56
|
+
options: ['inline', 'block'],
|
|
57
|
+
defaultValue: { summary: 'inline' },
|
|
58
|
+
},
|
|
59
|
+
description: {
|
|
60
|
+
name: 'Tooltip content',
|
|
61
|
+
description: "Set content in the follwing textarea",
|
|
62
|
+
defaultValue: { summary: 'This is a tooltip text placeholder' },
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const Template = args => {
|
|
69
|
+
return html `<ptc-tooltip
|
|
70
|
+
text-display="${args.textDisplay}"
|
|
71
|
+
text-lines="${args.textLines}"
|
|
72
|
+
max-length="${args.maxLength}"
|
|
73
|
+
description="${args.description}"
|
|
74
|
+
position="${args.position}"
|
|
75
|
+
width="${args.width}"
|
|
76
|
+
zIndex="${args.zIndex}"
|
|
77
|
+
theme="${args.theme}"
|
|
78
|
+
hide-on-mobile="${args.hideOnMobile}"
|
|
79
|
+
></ptc-tooltip>`
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
export const TooltipWithLinesLimit = Template.bind({});
|
|
84
|
+
TooltipWithLinesLimit.args = {
|
|
85
|
+
textLines: 2,
|
|
86
|
+
position: 'bottom',
|
|
87
|
+
width: "default",
|
|
88
|
+
theme: "standard",
|
|
89
|
+
hideOnMobile: false,
|
|
90
|
+
zIndex: "z-auto",
|
|
91
|
+
textDisplay: "inline",
|
|
92
|
+
description: "Nulla ut nunc id nulla aliquam feugiat. Maecenas quis dui rhoncus, mattis risus ac, tincidunt massa. Cras dictum aliquet eleifend. Etiam condimentum suscipit vulputate. In tempus ante at eros elementum volutpat. Ut aliquam mattis velit, sed malesuada lorem. Donec eu posuere nisl, eget scelerisque lectus. Donec id nibh quis lectus euismod semper eget in sem. Ut vulputate cursus libero ut pharetra. Aliquam convallis vulputate dignissim. Mauris vel elit sit amet nibh porta cursus eu id urna.",
|
|
93
|
+
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
export const TooltipWithCharLimit = Template.bind({});
|
|
98
|
+
TooltipWithCharLimit.args = {
|
|
99
|
+
maxLength: 45,
|
|
100
|
+
position: 'bottom',
|
|
101
|
+
width: "default",
|
|
102
|
+
theme: "standard",
|
|
103
|
+
hideOnMobile: false,
|
|
104
|
+
zIndex: "z-auto",
|
|
105
|
+
textDisplay: "inline",
|
|
106
|
+
description: "Nulla ut nunc id nulla aliquam feugiat. Maecenas quis dui rhoncus, mattis risus ac, tincidunt massa. Cras dictum ",
|
|
107
|
+
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
@@ -23889,7 +23889,7 @@ const PtcDynamicCard$1 = class extends HTMLElement$1 {
|
|
|
23889
23889
|
static get style() { return ptcDynamicCardCss; }
|
|
23890
23890
|
};
|
|
23891
23891
|
|
|
23892
|
-
const ptcEllipsisDropdownCss = ".ellipsis-icon{border:1px solid #6E717C;border-radius:2px;vertical-align:middle;height:18px;width:18px;text-align:center;display:flex;align-items:center;justify-content:center;transition:background-color var(--ptc-ease-out) var(--ptc-transition-medium), border-color var(--ptc-ease-out) var(--ptc-transition-medium)}.ellipsis-icon:hover{background-color:var(--color-gray-04);border-color:var(--color-gray-04)}.ellipsis-icon icon-asset{display:inline-block}.ellipsis-icon icon-asset svg{margin:0 auto;display:block}.ellipsis-icon.active{background-color:var(--color-green-07);border-color:var(--color-green-07)}.ptc-ellipsis-dropdown{position:relative;display:inline-block;padding:0 7px 7px;
|
|
23892
|
+
const ptcEllipsisDropdownCss = ".ellipsis-icon{border:1px solid #6E717C;border-radius:2px;vertical-align:middle;height:18px;width:18px;text-align:center;display:flex;align-items:center;justify-content:center;transition:background-color var(--ptc-ease-out) var(--ptc-transition-medium), border-color var(--ptc-ease-out) var(--ptc-transition-medium)}.ellipsis-icon:hover{background-color:var(--color-gray-04);border-color:var(--color-gray-04)}.ellipsis-icon icon-asset{display:inline-block}.ellipsis-icon icon-asset svg{margin:0 auto;display:block}.ellipsis-icon.active{background-color:var(--color-green-07);border-color:var(--color-green-07)}.ellipsis-icon.active::after{content:\"\";width:32px;height:2px;display:inline-block;background-color:var(--color-green-07);position:absolute;bottom:-9.6px}.ptc-ellipsis-dropdown{position:relative;display:inline-block;cursor:pointer;padding:0 0 14px 0;border-bottom:2px solid var(--color-green-07);margin:0 1rem -1px 1rem;box-sizing:border-box}@media only screen and (min-width: 768px){.ptc-ellipsis-dropdown{padding:0 7px 7px;border-bottom:none;margin:0}}.ptc-ellipsis-dropdown .mob-drop{color:var(--color-gray-10);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-p);font-family:\"Raleway\";font-style:normal;display:flex;align-items:center}.ptc-ellipsis-dropdown .mob-drop svg{display:inline-block;vertical-align:middle;margin:4px 0px 0px 8px;min-width:12px}.dropdown-container{display:none;margin-top:16px;box-shadow:0 6px 16px rgba(0, 0, 0, 0.24);border-radius:4px;position:absolute;z-index:1010;background:var(--color-white);padding:0.8rem 0;right:auto;left:0;min-width:max-content;width:100%}@media only screen and (min-width: 768px){.dropdown-container{right:0;left:auto}}.dropdown-container .selected-drop .dropdown-item span{position:relative;font-weight:var(--ptc-font-weight-bold)}.dropdown-container .selected-drop .dropdown-item span::before{content:\"\";width:2px;height:60%;background:var(--color-green-07);display:block;left:16px;position:absolute;top:20%}.show .dropdown-container{display:inline-block}";
|
|
23893
23893
|
|
|
23894
23894
|
const PtcEllipsisDropdown$1 = class extends HTMLElement$1 {
|
|
23895
23895
|
constructor() {
|
|
@@ -23900,6 +23900,7 @@ const PtcEllipsisDropdown$1 = class extends HTMLElement$1 {
|
|
|
23900
23900
|
this.dataItems = [];
|
|
23901
23901
|
this.selectedTab = undefined;
|
|
23902
23902
|
this.isDropdownOpen = false;
|
|
23903
|
+
this.isMobile = undefined;
|
|
23903
23904
|
}
|
|
23904
23905
|
dropdownToggle(e) {
|
|
23905
23906
|
e.currentTarget.classList.toggle("show");
|
|
@@ -23915,15 +23916,22 @@ const PtcEllipsisDropdown$1 = class extends HTMLElement$1 {
|
|
|
23915
23916
|
this.isDropdownOpen = false;
|
|
23916
23917
|
}
|
|
23917
23918
|
}
|
|
23919
|
+
handleResize() {
|
|
23920
|
+
this.isMobile = window.innerWidth < 768;
|
|
23921
|
+
}
|
|
23922
|
+
componentWillLoad() {
|
|
23923
|
+
this.isMobile = window.innerWidth < 768;
|
|
23924
|
+
}
|
|
23918
23925
|
render() {
|
|
23919
|
-
let activeTab = this.dataItems.find(z => z.
|
|
23926
|
+
let activeTab = this.dataItems.find(z => z.isSelected == true);
|
|
23920
23927
|
let isActive = false;
|
|
23921
23928
|
if (activeTab) {
|
|
23922
23929
|
isActive = true;
|
|
23923
23930
|
}
|
|
23924
|
-
return (h$1("div", { class: "ptc-ellipsis-dropdown", onClick: (e) => this.dropdownToggle(e) }, h$1("div", { class: isActive || this.isDropdownOpen ? "ellipsis-icon active" : "ellipsis-icon" }, h$1("icon-asset", { type: "ptc", size: "xxx-small", name: "ellipsis", color: isActive || this.isDropdownOpen ? 'white' : 'black' })), h$1("div", { class: "dropdown-container" }, h$1("slot", { name: "dropdown" }), this.dataItems.map(dataItem => {
|
|
23931
|
+
return (h$1("div", { class: "ptc-ellipsis-dropdown", onClick: (e) => this.dropdownToggle(e) }, this.isMobile ? (h$1("div", { class: 'mob-drop' }, h$1("span", { class: 'opt-name' }, this.dataItems.map((item) => item.isSelected ? item.text : '')), h$1("svg", { width: "12", height: "9", viewBox: "0 0 12 9", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h$1("path", { d: "M1 1.65723L5.94975 6.60697L10.8995 1.65723", stroke: "#00890B", "stroke-width": "2", "stroke-linecap": "round" })))) : (h$1("div", { class: isActive || this.isDropdownOpen ? "ellipsis-icon active" : "ellipsis-icon" }, h$1("icon-asset", { type: "ptc", size: "xxx-small", name: "ellipsis", color: isActive || this.isDropdownOpen ? 'white' : 'black' }))), h$1("div", { class: "dropdown-container" }, h$1("slot", { name: "dropdown" }), this.dataItems.map(dataItem => {
|
|
23925
23932
|
let activeClass = dataItem.value == this.selectedTab ? 'active' : '';
|
|
23926
|
-
|
|
23933
|
+
let activeDropdown = dataItem.isSelected ? 'selected-drop' : '';
|
|
23934
|
+
return (h$1("dropdown-item", { class: activeClass + activeDropdown }, h$1("span", { onClick: (e) => {
|
|
23927
23935
|
e.preventDefault();
|
|
23928
23936
|
this.onItemSelected(dataItem);
|
|
23929
23937
|
} }, dataItem.text)));
|
|
@@ -25787,7 +25795,7 @@ const PtcPagenation$1 = class extends HTMLElement$1 {
|
|
|
25787
25795
|
static get style() { return ptcPagenationCss; }
|
|
25788
25796
|
};
|
|
25789
25797
|
|
|
25790
|
-
const ptcParaCss = ":host{position:relative;z-index:1}:host(.white){color:var(--color-white)}:host(.z-1){z-index:1}:host(.z-2){z-index:2}:host(.z-3){z-index:3}:host(.z-99){z-index:99}:host(.z-999){z-index:999}:host(.z-auto){z-index:auto}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.gray-darker{color:var(--color-gray-11)}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-p{line-height:var(--ptc-line-height-p)}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.left{text-align:left}p.right{text-align:right}p.center{text-align:center}p.justify{text-align:justify}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)}p.ellipsis-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word}";
|
|
25798
|
+
const ptcParaCss = ":host{position:relative;z-index:1}:host(.white){color:var(--color-white)}:host(.z-1){z-index:1}:host(.z-2){z-index:2}:host(.z-3){z-index:3}:host(.z-99){z-index:99}:host(.z-999){z-index:999}:host(.z-auto){z-index:auto}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.gray-darker{color:var(--color-gray-11)}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.htmlquote-para{font-size:var(--ptc-font-size-small)}@media only screen and (min-width: 992px){p.htmlquote-para{font-size:var(--ptc-font-size-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-p{line-height:var(--ptc-line-height-p)}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.left{text-align:left}p.right{text-align:right}p.center{text-align:center}p.justify{text-align:justify}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)}p.ellipsis-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word}";
|
|
25791
25799
|
|
|
25792
25800
|
const PtcPara$1 = class extends HTMLElement$1 {
|
|
25793
25801
|
constructor() {
|
|
@@ -26661,7 +26669,7 @@ const PtcReadmore$1 = class extends HTMLElement$1 {
|
|
|
26661
26669
|
p.classList[p.scrollHeight > p.clientHeight ? 'add' : 'remove']('truncated');
|
|
26662
26670
|
});
|
|
26663
26671
|
}
|
|
26664
|
-
// Created this function to initialize the truncate function on specific elements like tabs
|
|
26672
|
+
// Created this function to initialize the truncate function on specific elements like tabs
|
|
26665
26673
|
enableAddTruncatedClass(element) {
|
|
26666
26674
|
const allTabHeaders = document.querySelectorAll(element);
|
|
26667
26675
|
for (const element of Array.from(allTabHeaders)) {
|
|
@@ -26692,7 +26700,7 @@ const PtcReadmore$1 = class extends HTMLElement$1 {
|
|
|
26692
26700
|
this.checked = event.target.checked;
|
|
26693
26701
|
// Getting cta element
|
|
26694
26702
|
const cta = this.el.shadowRoot.querySelector('.read-more-cta-label');
|
|
26695
|
-
// Updating the cta text
|
|
26703
|
+
// Updating the cta text
|
|
26696
26704
|
this.checked
|
|
26697
26705
|
? cta.innerHTML = `<span> ${this.lessText ? this.lessText : ''} </span>`
|
|
26698
26706
|
: cta.innerHTML = `<span> ${this.moreText ? this.moreText : ''}</span>`;
|
|
@@ -27383,15 +27391,19 @@ const Tab = class extends HTMLElement$1 {
|
|
|
27383
27391
|
static get style() { return ptcTabsCss$1; }
|
|
27384
27392
|
};
|
|
27385
27393
|
|
|
27386
|
-
const ptcTabListCss = "ptc-tab-list{display:block;position:relative;color:var(--color-gray-12)}ptc-tab-list.tab-with-banner{background-color
|
|
27394
|
+
const ptcTabListCss = "ptc-tab-list{display:block;position:relative;color:var(--color-gray-12)}ptc-tab-list.tab-with-banner{background-color:var(--color-white);padding:20px 10px}@media only screen and (min-width: 480px){ptc-tab-list.tab-with-banner{padding:30px}}ptc-tab-list.tab-with-banner .tabs-content{padding:30px 0 0 0}ptc-tab-list.tab-with-banner .tabs-content p,ptc-tab-list.tab-with-banner .tabs-content span,ptc-tab-list.tab-with-banner .tabs-content h1,ptc-tab-list.tab-with-banner .tabs-content h2,ptc-tab-list.tab-with-banner .tabs-content h3,ptc-tab-list.tab-with-banner .tabs-content h4,ptc-tab-list.tab-with-banner .tabs-content h5,ptc-tab-list.tab-with-banner .tabs-content h6,ptc-tab-list.tab-with-banner .tabs-content ul,ptc-tab-list.tab-with-banner .tabs-content li,ptc-tab-list.tab-with-banner .tabs-content table{color:var(--color-gray-12)}.tabs-header-container{width:100%;border-bottom:2px solid var(--color-gray-02);position:relative}.tabs-header{display:flex;padding-left:1.5rem;padding-right:1.5rem;transition:opacity ease-out 250ms;opacity:0;width:90%}.tabs-header.active{opacity:1}.tabs-content{padding:40px 28px 28px}.ellipsis-btn{display:none}@media only screen and (min-width: 768px){.ellipsis-btn{position:absolute;top:var(--ptc-element-spacing-01);right:1rem}}.ellipsis-btn.active{display:block}tab-header{padding-right:48px}";
|
|
27387
27395
|
|
|
27388
27396
|
const PtcTabList$1 = class extends HTMLElement$1 {
|
|
27389
27397
|
constructor() {
|
|
27390
27398
|
super();
|
|
27391
27399
|
this.__registerHost();
|
|
27392
27400
|
this.type = undefined;
|
|
27401
|
+
this.isMobile = undefined;
|
|
27393
27402
|
this.selectedValue = undefined;
|
|
27394
27403
|
}
|
|
27404
|
+
componentWillLoad() {
|
|
27405
|
+
this.isMobile = window.innerWidth < 768;
|
|
27406
|
+
}
|
|
27395
27407
|
componentDidLoad() {
|
|
27396
27408
|
this.createGroup();
|
|
27397
27409
|
this.calculateHeaderTabsRendering();
|
|
@@ -27414,15 +27426,27 @@ const PtcTabList$1 = class extends HTMLElement$1 {
|
|
|
27414
27426
|
let tabs = header.children;
|
|
27415
27427
|
let activateDropDown = false;
|
|
27416
27428
|
let hiddenTabs = [];
|
|
27429
|
+
this.isMobile = window.innerWidth < 768;
|
|
27417
27430
|
header.classList.remove('active');
|
|
27418
27431
|
for (let index = 0; index < tabs.length; index++) {
|
|
27419
27432
|
tabs[index].style.removeProperty('display');
|
|
27420
27433
|
}
|
|
27421
27434
|
for (let index = tabs.length - 1; index >= 0; index--) {
|
|
27422
27435
|
let tab = tabs[index];
|
|
27423
|
-
|
|
27424
|
-
|
|
27425
|
-
|
|
27436
|
+
let isSelectedTab = tab.getAttribute('name') === this.selectedValue;
|
|
27437
|
+
if (this.isMobile) {
|
|
27438
|
+
let text = tab.querySelector('.text-cont').textContent;
|
|
27439
|
+
header.style.display = 'none';
|
|
27440
|
+
activateDropDown = true;
|
|
27441
|
+
hiddenTabs.push({
|
|
27442
|
+
value: tab.getAttribute('name'),
|
|
27443
|
+
text: text,
|
|
27444
|
+
isSelected: isSelectedTab
|
|
27445
|
+
});
|
|
27446
|
+
}
|
|
27447
|
+
else {
|
|
27448
|
+
header.style.display = 'flex';
|
|
27449
|
+
if (header.scrollWidth > header.clientWidth) {
|
|
27426
27450
|
tab.style.display = 'none';
|
|
27427
27451
|
let text = tab.querySelector('.text-cont').textContent;
|
|
27428
27452
|
activateDropDown = true;
|
|
@@ -28145,7 +28169,7 @@ const PtcContainer = /*@__PURE__*/proxyCustomElement(PtcContainer$1, [1,"ptc-con
|
|
|
28145
28169
|
const PtcDate = /*@__PURE__*/proxyCustomElement(PtcDate$1, [1,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1],"dateString":[1,"date-string"],"dateColor":[1,"date-color"],"dateStyles":[1,"date-styles"],"dataSize":[1,"data-size"],"formatOptions":[1,"format-options"]}]);
|
|
28146
28170
|
const PtcDropdown = /*@__PURE__*/proxyCustomElement(PtcDropdown$1, [1,"ptc-dropdown",{"theme":[1],"label":[1],"listItems":[16],"toggle":[32],"selectedItem":[32]},[[4,"click","offClick"]]]);
|
|
28147
28171
|
const PtcDynamicCard = /*@__PURE__*/proxyCustomElement(PtcDynamicCard$1, [1,"ptc-dynamic-card",{"cardType":[1,"card-type"],"cardTitle":[1,"card-title"],"cardImgSrc":[1,"card-img-src"],"cardImgAlt":[1,"card-img-alt"],"cardScreen":[1,"card-screen"],"isExpanded":[4,"is-expanded"],"overlayExists":[32]}]);
|
|
28148
|
-
const PtcEllipsisDropdown = /*@__PURE__*/proxyCustomElement(PtcEllipsisDropdown$1, [1,"ptc-ellipsis-dropdown",{"dataItems":[16],"selectedTab":[1,"selected-tab"],"isDropdownOpen":[32]},[[4,"click","offClick"]]]);
|
|
28172
|
+
const PtcEllipsisDropdown = /*@__PURE__*/proxyCustomElement(PtcEllipsisDropdown$1, [1,"ptc-ellipsis-dropdown",{"dataItems":[16],"selectedTab":[1,"selected-tab"],"isDropdownOpen":[32],"isMobile":[32]},[[4,"click","offClick"],[9,"resize","handleResize"]]]);
|
|
28149
28173
|
const PtcFilterTag = /*@__PURE__*/proxyCustomElement(PtcFilterTag$1, [1,"ptc-filter-tag",{"theme":[1],"iconColorMap":[32]}]);
|
|
28150
28174
|
const PtcHero = /*@__PURE__*/proxyCustomElement(PtcHero$1, [1,"ptc-hero",{"heroType":[1,"hero-type"],"bgUrl":[1,"bg-url"],"contentAlignment":[1,"content-alignment"]}]);
|
|
28151
28175
|
const PtcHeroFooterCta = /*@__PURE__*/proxyCustomElement(PtcHeroFooterCta$1, [6,"ptc-hero-footer-cta",{"ctaTitle":[1,"cta-title"],"description":[1],"backgroundImage":[1,"background-image"]}]);
|
|
@@ -28198,7 +28222,7 @@ const PtcSubnav = /*@__PURE__*/proxyCustomElement(PtcSubnav$1, [1,"ptc-subnav",{
|
|
|
28198
28222
|
const PtcSubnavCard = /*@__PURE__*/proxyCustomElement(PtcSubnavCard$1, [1,"ptc-subnav-card",{"cardTitle":[1,"card-title"],"cardHref":[1,"card-href"],"cardImageSrc":[1,"card-image-src"],"cardImageAlt":[1,"card-image-alt"],"ctaText":[1,"cta-text"],"ctaIconAssetName":[1,"cta-icon-asset-name"]}]);
|
|
28199
28223
|
const PtcSvgBtn = /*@__PURE__*/proxyCustomElement(PtcSvgBtn$1, [1,"ptc-svg-btn",{"svgName":[1,"svg-name"],"display":[1],"zIndex":[1,"z-index"],"styles":[2]}]);
|
|
28200
28224
|
const PtcTab = /*@__PURE__*/proxyCustomElement(Tab, [1,"ptc-tab",{"optionClicked":[1540,"option-clicked"],"label":[1],"price":[1],"active":[4],"disabled":[516]}]);
|
|
28201
|
-
const PtcTabList = /*@__PURE__*/proxyCustomElement(PtcTabList$1, [4,"ptc-tab-list",{"type":[1],"selectedValue":[32]},[[0,"tabClicked","onSelectedTab"],[9,"resize","calculateHeaderTabsRendering"]]]);
|
|
28225
|
+
const PtcTabList = /*@__PURE__*/proxyCustomElement(PtcTabList$1, [4,"ptc-tab-list",{"type":[1],"isMobile":[32],"selectedValue":[32]},[[0,"tabClicked","onSelectedTab"],[9,"resize","calculateHeaderTabsRendering"]]]);
|
|
28202
28226
|
const PtcTabs = /*@__PURE__*/proxyCustomElement(Tabs, [1,"ptc-tabs",{"tabs":[32]}]);
|
|
28203
28227
|
const PtcTextCopyWithBackground = /*@__PURE__*/proxyCustomElement(PtcTextCopyWithBackground$1, [1,"ptc-text-copy-with-background",{"type":[1],"backgroundImage":[1,"background-image"],"ImageAltText":[1,"image-alt-text"],"topSlitBackgroundColor":[1,"top-slit-background-color"],"slitPosition":[1,"slit-position"],"isBackgroundBlur":[4,"is-background-blur"],"overlay":[4]}]);
|
|
28204
28228
|
const PtcTitle = /*@__PURE__*/proxyCustomElement(PtcTitle$1, [6,"ptc-title",{"isPlmHub":[4,"is-plm-hub"],"type":[1],"textAlign":[1,"text-align"],"upperline":[1],"titleShadow":[1,"title-shadow"],"titleColor":[1,"title-color"],"titleMargin":[1,"title-margin"],"titleWeight":[1,"title-weight"],"titleSize":[1,"title-size"],"titleHeight":[1,"title-height"],"styles":[1],"ellipsisLineCutoff":[2,"ellipsis-line-cutoff"],"titleDisplay":[1,"title-display"]}]);
|
|
@@ -176,7 +176,7 @@ const PtcButton = class {
|
|
|
176
176
|
};
|
|
177
177
|
PtcButton.style = ptcButtonCss;
|
|
178
178
|
|
|
179
|
-
const ptcParaCss = ":host{position:relative;z-index:1}:host(.white){color:var(--color-white)}:host(.z-1){z-index:1}:host(.z-2){z-index:2}:host(.z-3){z-index:3}:host(.z-99){z-index:99}:host(.z-999){z-index:999}:host(.z-auto){z-index:auto}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.gray-darker{color:var(--color-gray-11)}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-p{line-height:var(--ptc-line-height-p)}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.left{text-align:left}p.right{text-align:right}p.center{text-align:center}p.justify{text-align:justify}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)}p.ellipsis-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word}";
|
|
179
|
+
const ptcParaCss = ":host{position:relative;z-index:1}:host(.white){color:var(--color-white)}:host(.z-1){z-index:1}:host(.z-2){z-index:2}:host(.z-3){z-index:3}:host(.z-99){z-index:99}:host(.z-999){z-index:999}:host(.z-auto){z-index:auto}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.gray-darker{color:var(--color-gray-11)}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.htmlquote-para{font-size:var(--ptc-font-size-small)}@media only screen and (min-width: 992px){p.htmlquote-para{font-size:var(--ptc-font-size-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-p{line-height:var(--ptc-line-height-p)}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.left{text-align:left}p.right{text-align:right}p.center{text-align:center}p.justify{text-align:justify}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)}p.ellipsis-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word}";
|
|
180
180
|
|
|
181
181
|
const PtcPara = class {
|
|
182
182
|
constructor(hostRef) {
|