@ptcwebops/ptcw-design 6.1.42 → 6.1.44
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/_commonjsHelpers-537d719a.js +20 -0
- package/dist/cjs/blog-detail-content_2.cjs.entry.js +1 -1
- package/dist/cjs/blog-detail-layout.cjs.entry.js +1 -1
- package/dist/cjs/icon-asset.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-card_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-countdown.cjs.entry.js +91 -0
- package/dist/cjs/ptc-filter-tag_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-form-checkbox_2.cjs.entry.js +187 -91
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-add-on-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-readmore.cjs.entry.js +15 -4
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/icon-asset/icon-asset.css +2 -2
- package/dist/collection/components/organism-bundles/blog-detail-content/blog-detail-content.css +1 -1
- package/dist/collection/components/organism-bundles/blog-detail-layout/blog-detail-layout.css +1 -1
- package/dist/collection/components/ptc-card/ptc-card.css +1 -1
- package/dist/collection/components/ptc-countdown/ptc-countdown.css +149 -0
- package/dist/collection/components/ptc-countdown/ptc-countdown.js +146 -0
- package/dist/collection/components/ptc-form-checkbox/ptc-form-checkbox.css +7 -7
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +2 -2
- package/dist/collection/components/ptc-pagenation/ptc-pagenation.css +1 -1
- package/dist/collection/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.js +1 -1
- package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +1 -1
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +2 -2
- package/dist/collection/components/ptc-readmore/ptc-readmore.js +33 -4
- package/dist/collection/components/ptc-textfield/ptc-textfield.css +51 -34
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +314 -105
- package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
- package/dist/esm/blog-detail-content_2.entry.js +1 -1
- package/dist/esm/blog-detail-layout.entry.js +1 -1
- package/dist/esm/icon-asset.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ptc-card_2.entry.js +1 -1
- package/dist/esm/ptc-countdown.entry.js +87 -0
- package/dist/esm/ptc-filter-tag_2.entry.js +1 -1
- package/dist/esm/ptc-form-checkbox_2.entry.js +186 -90
- package/dist/esm/ptc-jumbotron.entry.js +1 -1
- package/dist/esm/ptc-pricing-add-on-card.entry.js +1 -1
- package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptc-readmore.entry.js +15 -4
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/p-022bf022.entry.js +1 -0
- package/dist/ptcw-design/p-112455b1.js +1 -0
- package/dist/ptcw-design/{p-05af3532.entry.js → p-4fc9c83b.entry.js} +1 -1
- package/dist/ptcw-design/{p-a4798ed2.entry.js → p-56a4c6d4.entry.js} +1 -1
- package/dist/ptcw-design/p-5dbc634f.entry.js +1 -0
- package/dist/ptcw-design/{p-84ec4bf1.entry.js → p-65f19054.entry.js} +1 -1
- package/dist/ptcw-design/{p-850e9105.entry.js → p-70c2573c.entry.js} +1 -1
- package/dist/ptcw-design/p-990bcbc4.entry.js +1 -0
- package/dist/ptcw-design/{p-f609a879.entry.js → p-9e9ae28c.entry.js} +1 -1
- package/dist/ptcw-design/p-bb28bbad.entry.js +1 -0
- package/dist/ptcw-design/p-bfacfe67.entry.js +1 -0
- package/dist/ptcw-design/{p-cae1202f.entry.js → p-c7f77978.entry.js} +1 -1
- package/dist/ptcw-design/p-e9403129.entry.js +68 -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-countdown/ptc-countdown.d.ts +18 -0
- package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +4 -0
- package/dist/types/components.d.ts +27 -0
- package/package.json +2 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-0f7e866f.entry.js +0 -1
- package/dist/ptcw-design/p-58a33388.entry.js +0 -68
- package/dist/ptcw-design/p-7c865c34.entry.js +0 -1
- package/dist/ptcw-design/p-a84cc8ad.entry.js +0 -1
- package/dist/ptcw-design/p-f0d0d79c.entry.js +0 -1
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
|
+
import utc from 'dayjs/plugin/utc';
|
|
4
|
+
import timezone from 'dayjs/plugin/timezone';
|
|
5
|
+
// Extend dayjs with timezone support
|
|
6
|
+
dayjs.extend(utc);
|
|
7
|
+
dayjs.extend(timezone);
|
|
8
|
+
export class PtcCountdown {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.countdownTitle = '';
|
|
11
|
+
this.eventTime = '';
|
|
12
|
+
this.eventTimeZone = 'America/New_York';
|
|
13
|
+
this.timeLeft = {
|
|
14
|
+
days: 0,
|
|
15
|
+
hours: 0,
|
|
16
|
+
minutes: 0,
|
|
17
|
+
seconds: 0,
|
|
18
|
+
};
|
|
19
|
+
this.isExpired = false;
|
|
20
|
+
}
|
|
21
|
+
componentWillLoad() {
|
|
22
|
+
if (!this.eventTime || !this.eventTimeZone) {
|
|
23
|
+
console.error('Both eventTime and eventTimeZone are required.');
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
this.startCountdown();
|
|
27
|
+
}
|
|
28
|
+
disconnectedCallback() {
|
|
29
|
+
clearInterval(this.timer);
|
|
30
|
+
}
|
|
31
|
+
calculateTimeLeft() {
|
|
32
|
+
const now = dayjs();
|
|
33
|
+
const target = dayjs.tz(this.eventTime, this.eventTimeZone);
|
|
34
|
+
const diff = target.diff(now);
|
|
35
|
+
if (diff > 0) {
|
|
36
|
+
this.timeLeft = {
|
|
37
|
+
days: Math.floor(diff / (1000 * 60 * 60 * 24)),
|
|
38
|
+
hours: Math.floor((diff / (1000 * 60 * 60)) % 24),
|
|
39
|
+
minutes: Math.floor((diff / (1000 * 60)) % 60),
|
|
40
|
+
seconds: Math.floor((diff / 1000) % 60),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
this.isExpired = true;
|
|
45
|
+
clearInterval(this.timer);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
startCountdown() {
|
|
49
|
+
//const eventDateInUTC = this.convertToUTC(this.eventTime, this.eventTimeZone);
|
|
50
|
+
this.timer = window.setInterval(() => this.calculateTimeLeft(), 1000);
|
|
51
|
+
}
|
|
52
|
+
render() {
|
|
53
|
+
const { days, hours, minutes, seconds } = this.timeLeft;
|
|
54
|
+
return (h("div", { class: "countdown-outer" }, this.countdownTitle && h("div", { class: "event-name" }, this.countdownTitle), !this.isExpired ? (h("div", { id: "CDOutput", class: "countdown" }, h("div", { class: "day" }, h("div", null, days), h("span", null, "days")), h("div", { class: "hours" }, h("div", null, hours), h("span", null, "hours")), h("div", { class: "minutes" }, h("div", null, minutes), h("span", null, "minutes")), h("div", { class: "seconds" }, h("div", null, seconds), h("span", null, "seconds")))) : (h("div", { class: "expired" }, "This event has started.at", ' ', new Date(this.eventTime).toLocaleString('en-US', {
|
|
55
|
+
//timeZone: this.eventTimeZone,
|
|
56
|
+
year: 'numeric',
|
|
57
|
+
month: 'long',
|
|
58
|
+
day: 'numeric',
|
|
59
|
+
hour: '2-digit',
|
|
60
|
+
minute: '2-digit',
|
|
61
|
+
}))), h("div", { class: "cd-event-date" }, new Date(this.eventTime).toLocaleString('en-US', {
|
|
62
|
+
//timeZone: this.eventTimeZone,
|
|
63
|
+
month: 'long',
|
|
64
|
+
day: 'numeric',
|
|
65
|
+
year: 'numeric',
|
|
66
|
+
hour: '2-digit',
|
|
67
|
+
minute: '2-digit',
|
|
68
|
+
}), ' ', "(", this.eventTimeZone, ")")));
|
|
69
|
+
}
|
|
70
|
+
static get is() { return "ptc-countdown"; }
|
|
71
|
+
static get encapsulation() { return "shadow"; }
|
|
72
|
+
static get originalStyleUrls() {
|
|
73
|
+
return {
|
|
74
|
+
"$": ["ptc-countdown.scss"]
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
static get styleUrls() {
|
|
78
|
+
return {
|
|
79
|
+
"$": ["ptc-countdown.css"]
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
static get properties() {
|
|
83
|
+
return {
|
|
84
|
+
"countdownTitle": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"mutable": false,
|
|
87
|
+
"complexType": {
|
|
88
|
+
"original": "string",
|
|
89
|
+
"resolved": "string",
|
|
90
|
+
"references": {}
|
|
91
|
+
},
|
|
92
|
+
"required": false,
|
|
93
|
+
"optional": false,
|
|
94
|
+
"docs": {
|
|
95
|
+
"tags": [],
|
|
96
|
+
"text": ""
|
|
97
|
+
},
|
|
98
|
+
"attribute": "countdown-title",
|
|
99
|
+
"reflect": false,
|
|
100
|
+
"defaultValue": "''"
|
|
101
|
+
},
|
|
102
|
+
"eventTime": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"mutable": false,
|
|
105
|
+
"complexType": {
|
|
106
|
+
"original": "string",
|
|
107
|
+
"resolved": "string",
|
|
108
|
+
"references": {}
|
|
109
|
+
},
|
|
110
|
+
"required": false,
|
|
111
|
+
"optional": false,
|
|
112
|
+
"docs": {
|
|
113
|
+
"tags": [],
|
|
114
|
+
"text": ""
|
|
115
|
+
},
|
|
116
|
+
"attribute": "event-time",
|
|
117
|
+
"reflect": false,
|
|
118
|
+
"defaultValue": "''"
|
|
119
|
+
},
|
|
120
|
+
"eventTimeZone": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"mutable": false,
|
|
123
|
+
"complexType": {
|
|
124
|
+
"original": "string",
|
|
125
|
+
"resolved": "string",
|
|
126
|
+
"references": {}
|
|
127
|
+
},
|
|
128
|
+
"required": false,
|
|
129
|
+
"optional": false,
|
|
130
|
+
"docs": {
|
|
131
|
+
"tags": [],
|
|
132
|
+
"text": ""
|
|
133
|
+
},
|
|
134
|
+
"attribute": "event-time-zone",
|
|
135
|
+
"reflect": false,
|
|
136
|
+
"defaultValue": "'America/New_York'"
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
static get states() {
|
|
141
|
+
return {
|
|
142
|
+
"timeLeft": {},
|
|
143
|
+
"isExpired": {}
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -1133,29 +1133,29 @@ ptc-link, ptc-square-card,
|
|
|
1133
1133
|
|
|
1134
1134
|
.mdc-checkbox {
|
|
1135
1135
|
transform: translateX(-8px);
|
|
1136
|
-
padding:
|
|
1136
|
+
padding: 8px;
|
|
1137
1137
|
/* @alternate */
|
|
1138
1138
|
padding: calc((var(--mdc-checkbox-ripple-size, 34px) - 18px) / 2);
|
|
1139
|
-
margin:
|
|
1139
|
+
margin: 0px;
|
|
1140
1140
|
/* @alternate */
|
|
1141
1141
|
margin: calc((var(--mdc-checkbox-touch-target-size, 34px) - 34px) / 2);
|
|
1142
1142
|
}
|
|
1143
1143
|
.mdc-checkbox .mdc-checkbox__background {
|
|
1144
|
-
top:
|
|
1144
|
+
top: 8px;
|
|
1145
1145
|
/* @alternate */
|
|
1146
1146
|
top: calc((var(--mdc-checkbox-ripple-size, 34px) - 18px) / 2);
|
|
1147
|
-
left:
|
|
1147
|
+
left: 8px;
|
|
1148
1148
|
/* @alternate */
|
|
1149
1149
|
left: calc((var(--mdc-checkbox-ripple-size, 34px) - 18px) / 2);
|
|
1150
1150
|
}
|
|
1151
1151
|
.mdc-checkbox .mdc-checkbox__native-control {
|
|
1152
|
-
top:
|
|
1152
|
+
top: 0px;
|
|
1153
1153
|
/* @alternate */
|
|
1154
1154
|
top: calc((34px - var(--mdc-checkbox-touch-target-size, 34px)) / 2);
|
|
1155
|
-
right:
|
|
1155
|
+
right: 0px;
|
|
1156
1156
|
/* @alternate */
|
|
1157
1157
|
right: calc((34px - var(--mdc-checkbox-touch-target-size, 34px)) / 2);
|
|
1158
|
-
left:
|
|
1158
|
+
left: 0px;
|
|
1159
1159
|
/* @alternate */
|
|
1160
1160
|
left: calc((34px - var(--mdc-checkbox-touch-target-size, 34px)) / 2);
|
|
1161
1161
|
width: 34px;
|
|
@@ -1105,7 +1105,7 @@ ptc-link, ptc-square-card,
|
|
|
1105
1105
|
}
|
|
1106
1106
|
@media only screen and (min-width: 992px) {
|
|
1107
1107
|
.u-3-col-grid .u-3-col {
|
|
1108
|
-
width: calc(33.
|
|
1108
|
+
width: calc(33.3333333333% - 10.66666666px);
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
1111
|
.u-3-col-grid.u-col-space-lg {
|
|
@@ -1122,7 +1122,7 @@ ptc-link, ptc-square-card,
|
|
|
1122
1122
|
}
|
|
1123
1123
|
@media only screen and (min-width: 992px) {
|
|
1124
1124
|
.u-3-col-grid.u-col-space-lg .u-3-col {
|
|
1125
|
-
width: calc(33.
|
|
1125
|
+
width: calc(33.3333333333% - 21.3333333px);
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
1128
|
|
|
@@ -128,7 +128,7 @@ ptc-link, ptc-square-card,
|
|
|
128
128
|
width: 1.125rem;
|
|
129
129
|
height: 1.125rem;
|
|
130
130
|
border: 1px solid var(--color-gray-10);
|
|
131
|
-
border-radius: calc(var(--ptc-border-radius-standard)/2);
|
|
131
|
+
border-radius: calc(var(--ptc-border-radius-standard) / 2);
|
|
132
132
|
transition: background-color var(--ptc-ease-out) var(--ptc-transition-medium), fill var(--ptc-ease-out) var(--ptc-transition-medium), border-color var(--ptc-ease-out) var(--ptc-transition-medium);
|
|
133
133
|
}
|
|
134
134
|
.standard-filter .next-button:hover, .standard-filter .previous-button:hover {
|
|
@@ -12,7 +12,7 @@ export class PtcPricingAddOnCard {
|
|
|
12
12
|
render() {
|
|
13
13
|
return (h(Host, null, h("div", { class: "add-on-card" }, h("ptc-title", { type: "h4", "text-align": "left", "title-size": "medium", upperline: "no-upperline", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7" }, this.cardTitle), h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-align": "left", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, h("slot", { name: "card-pricing" })), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("ptc-para", { "font-size": "x-small", "font-weight": "w-4", "para-align": "left", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, (this.el.querySelector('[slot="card-body"]').innerHTML.toString().length <= 300) ?
|
|
14
14
|
h("slot", { name: "card-body" }) :
|
|
15
|
-
h("ptc-readmore", { "more-text": "More", "less-text": "Less" }, h("slot", { name: "card-body" })), h("slot", { name: "card-body" })), this.cardCtaHref && this.cardCtaText && h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "x-large" }), h("ptc-spacer", { breakpoint: "small", size: "xx-small" }), h("ptc-spacer", { breakpoint: "x-small", size: "xx-large" }), h("ptc-spacer", { breakpoint: "x-small", size: "xx-small" }), h("ptc-button", { class: "mf-listen", type: "link", color: "ptc-tertiary", "link-href": this.cardCtaHref, target: this.cardCtaTarget, "tracker-id": `table-card-${this.sectionId}` }, h("ptc-tooltip", { "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.cardCtaText, position: "bottom" }))), this.cardDisclaimer && h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("ptc-para", { "font-size": "xx-small", "font-weight": "w-6", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, (this.cardDisclaimer.length <= 150) ? h("slot", { name: "card-disclaimer" }) : h("ptc-readmore", { "more-text": "More", "less-text": "Less" }, h("slot", { name: "card-disclaimer" })))))));
|
|
15
|
+
h("ptc-readmore", { "more-text": "More", "less-text": "Less", "is-content-slotted": true }, h("slot", { name: "card-body" })), h("slot", { name: "card-body" })), this.cardCtaHref && this.cardCtaText && h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "x-large" }), h("ptc-spacer", { breakpoint: "small", size: "xx-small" }), h("ptc-spacer", { breakpoint: "x-small", size: "xx-large" }), h("ptc-spacer", { breakpoint: "x-small", size: "xx-small" }), h("ptc-button", { class: "mf-listen", type: "link", color: "ptc-tertiary", "link-href": this.cardCtaHref, target: this.cardCtaTarget, "tracker-id": `table-card-${this.sectionId}` }, h("ptc-tooltip", { "text-display": "inline", "max-length": "30", "z-index": "z-2", description: this.cardCtaText, position: "bottom" }))), this.cardDisclaimer && h(Fragment, null, h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("ptc-para", { "font-size": "xx-small", "font-weight": "w-6", "para-align": "left", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, (this.cardDisclaimer.length <= 150) ? h("slot", { name: "card-disclaimer" }) : h("ptc-readmore", { "more-text": "More", "less-text": "Less", "is-content-slotted": true }, h("slot", { name: "card-disclaimer" })))))));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "ptc-pricing-add-on-card"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js
CHANGED
|
@@ -419,7 +419,7 @@ export class PtcPricingPackagingTable {
|
|
|
419
419
|
const TableDescription = () => {
|
|
420
420
|
return (this.tableDescription && h(Fragment, null, h("div", { class: "table-descriptor" }, h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-align": "center", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, (this.tableDescription.innerText.length <= 500) ?
|
|
421
421
|
h("slot", { name: "table-description" }) :
|
|
422
|
-
h("ptc-readmore", { "more-text": this.moreText, "less-text": this.LessText }, h("slot", { name: "table-description" }))))));
|
|
422
|
+
h("ptc-readmore", { "is-content-slotted": true, "more-text": this.moreText, "less-text": this.LessText }, h("slot", { name: "table-description" }))))));
|
|
423
423
|
};
|
|
424
424
|
const TableHeader = () => {
|
|
425
425
|
return h("div", { id: "table-header", class: this.headerType, onScroll: () => this.handleHorizontalScroll() }, h("div", { class: `desktop-header-first-cell` }, (this.isDesktopView) ?
|
|
@@ -1050,7 +1050,7 @@ ptc-link, ptc-square-card,
|
|
|
1050
1050
|
}
|
|
1051
1051
|
@media only screen and (min-width: 992px) {
|
|
1052
1052
|
.u-3-col-grid .u-3-col {
|
|
1053
|
-
width: calc(33.
|
|
1053
|
+
width: calc(33.3333333333% - 10.66666666px);
|
|
1054
1054
|
}
|
|
1055
1055
|
}
|
|
1056
1056
|
.u-3-col-grid.u-col-space-lg {
|
|
@@ -1067,7 +1067,7 @@ ptc-link, ptc-square-card,
|
|
|
1067
1067
|
}
|
|
1068
1068
|
@media only screen and (min-width: 992px) {
|
|
1069
1069
|
.u-3-col-grid.u-col-space-lg .u-3-col {
|
|
1070
|
-
width: calc(33.
|
|
1070
|
+
width: calc(33.3333333333% - 21.3333333px);
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
1073
|
|
|
@@ -38,6 +38,7 @@ export class PtcReadmore {
|
|
|
38
38
|
this.size = 'small';
|
|
39
39
|
this.isIcon = false;
|
|
40
40
|
this.color = 'blue';
|
|
41
|
+
this.isContentSlotted = false;
|
|
41
42
|
}
|
|
42
43
|
async updateReadmoreStatus() {
|
|
43
44
|
setTimeout(() => {
|
|
@@ -85,12 +86,22 @@ export class PtcReadmore {
|
|
|
85
86
|
}, 400);
|
|
86
87
|
}
|
|
87
88
|
setTabIndex() {
|
|
88
|
-
var _a;
|
|
89
|
-
|
|
89
|
+
var _a, _b, _c;
|
|
90
|
+
//debugger
|
|
91
|
+
let links;
|
|
92
|
+
if (!this.isContentSlotted) {
|
|
93
|
+
links = (_a = this.el) === null || _a === void 0 ? void 0 : _a.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
let slot = (_b = this.el) === null || _b === void 0 ? void 0 : _b.querySelector('slot').assignedNodes();
|
|
97
|
+
links = (slot[0] instanceof HTMLElement)
|
|
98
|
+
? slot[0].querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')
|
|
99
|
+
: null;
|
|
100
|
+
}
|
|
90
101
|
let bottom = 999999;
|
|
91
|
-
let rects = this.el.getClientRects();
|
|
102
|
+
let rects = (_c = this.el.shadowRoot.querySelector('.read-more-text')) === null || _c === void 0 ? void 0 : _c.getClientRects();
|
|
92
103
|
if (rects && rects.length > 0) {
|
|
93
|
-
bottom = rects[0].bottom
|
|
104
|
+
bottom = rects[0].bottom;
|
|
94
105
|
}
|
|
95
106
|
if (links) {
|
|
96
107
|
links.forEach(link => {
|
|
@@ -361,6 +372,24 @@ export class PtcReadmore {
|
|
|
361
372
|
"attribute": "color",
|
|
362
373
|
"reflect": false,
|
|
363
374
|
"defaultValue": "'blue'"
|
|
375
|
+
},
|
|
376
|
+
"isContentSlotted": {
|
|
377
|
+
"type": "boolean",
|
|
378
|
+
"mutable": true,
|
|
379
|
+
"complexType": {
|
|
380
|
+
"original": "boolean",
|
|
381
|
+
"resolved": "boolean",
|
|
382
|
+
"references": {}
|
|
383
|
+
},
|
|
384
|
+
"required": false,
|
|
385
|
+
"optional": false,
|
|
386
|
+
"docs": {
|
|
387
|
+
"tags": [],
|
|
388
|
+
"text": "isContentSlotted: if the readmore content is from slot,"
|
|
389
|
+
},
|
|
390
|
+
"attribute": "is-content-slotted",
|
|
391
|
+
"reflect": false,
|
|
392
|
+
"defaultValue": "false"
|
|
364
393
|
}
|
|
365
394
|
};
|
|
366
395
|
}
|
|
@@ -2215,9 +2215,9 @@
|
|
|
2215
2215
|
.iti__v-hide {
|
|
2216
2216
|
visibility: hidden;
|
|
2217
2217
|
}
|
|
2218
|
-
.iti input,
|
|
2219
|
-
.iti input[type=text],
|
|
2220
|
-
.iti input[type=tel] {
|
|
2218
|
+
.iti input.iti__tel-input,
|
|
2219
|
+
.iti input.iti__tel-input[type=text],
|
|
2220
|
+
.iti input.iti__tel-input[type=tel] {
|
|
2221
2221
|
position: relative;
|
|
2222
2222
|
z-index: 0;
|
|
2223
2223
|
margin-top: 0 !important;
|
|
@@ -2256,26 +2256,35 @@
|
|
|
2256
2256
|
border-top: none;
|
|
2257
2257
|
border-bottom: 4px solid #555;
|
|
2258
2258
|
}
|
|
2259
|
-
.
|
|
2259
|
+
.iti__dropdown-content {
|
|
2260
2260
|
position: absolute;
|
|
2261
2261
|
z-index: 2;
|
|
2262
|
-
|
|
2263
|
-
padding: 0;
|
|
2264
|
-
margin: 0 0 0 -1px;
|
|
2262
|
+
margin-left: -1px;
|
|
2265
2263
|
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
|
|
2266
2264
|
background-color: white;
|
|
2267
2265
|
border: 1px solid #ccc;
|
|
2268
|
-
white-space: nowrap;
|
|
2269
2266
|
max-height: 200px;
|
|
2270
2267
|
overflow-y: scroll;
|
|
2271
2268
|
-webkit-overflow-scrolling: touch;
|
|
2272
2269
|
}
|
|
2273
|
-
.
|
|
2270
|
+
.iti__dropdown-content--dropup {
|
|
2274
2271
|
bottom: 100%;
|
|
2275
2272
|
margin-bottom: -1px;
|
|
2276
2273
|
}
|
|
2274
|
+
.iti__search-input {
|
|
2275
|
+
width: 100%;
|
|
2276
|
+
border-width: 0;
|
|
2277
|
+
}
|
|
2278
|
+
.iti__country-list {
|
|
2279
|
+
list-style: none;
|
|
2280
|
+
padding: 0;
|
|
2281
|
+
margin: 0;
|
|
2282
|
+
}
|
|
2283
|
+
.iti--flexible-dropdown-width .iti__country-list {
|
|
2284
|
+
white-space: nowrap;
|
|
2285
|
+
}
|
|
2277
2286
|
@media (max-width: 500px) {
|
|
2278
|
-
.iti__country-list {
|
|
2287
|
+
.iti--flexible-dropdown-width .iti__country-list {
|
|
2279
2288
|
white-space: normal;
|
|
2280
2289
|
}
|
|
2281
2290
|
}
|
|
@@ -2307,20 +2316,20 @@
|
|
|
2307
2316
|
margin-right: 0;
|
|
2308
2317
|
margin-left: 6px;
|
|
2309
2318
|
}
|
|
2310
|
-
.iti--allow-dropdown input,
|
|
2311
|
-
.iti--allow-dropdown input[type=text],
|
|
2312
|
-
.iti--allow-dropdown input[type=tel], .iti--separate-dial-code input,
|
|
2313
|
-
.iti--separate-dial-code input[type=text],
|
|
2314
|
-
.iti--separate-dial-code input[type=tel] {
|
|
2319
|
+
.iti--allow-dropdown input.iti__tel-input,
|
|
2320
|
+
.iti--allow-dropdown input.iti__tel-input[type=text],
|
|
2321
|
+
.iti--allow-dropdown input.iti__tel-input[type=tel], .iti--separate-dial-code input.iti__tel-input,
|
|
2322
|
+
.iti--separate-dial-code input.iti__tel-input[type=text],
|
|
2323
|
+
.iti--separate-dial-code input.iti__tel-input[type=tel] {
|
|
2315
2324
|
padding-right: 6px;
|
|
2316
2325
|
padding-left: 52px;
|
|
2317
2326
|
margin-left: 0;
|
|
2318
2327
|
}
|
|
2319
|
-
[dir=rtl] .iti--allow-dropdown input,
|
|
2320
|
-
[dir=rtl] .iti--allow-dropdown input[type=text],
|
|
2321
|
-
[dir=rtl] .iti--allow-dropdown input[type=tel], [dir=rtl] .iti--separate-dial-code input,
|
|
2322
|
-
[dir=rtl] .iti--separate-dial-code input[type=text],
|
|
2323
|
-
[dir=rtl] .iti--separate-dial-code input[type=tel] {
|
|
2328
|
+
[dir=rtl] .iti--allow-dropdown input.iti__tel-input,
|
|
2329
|
+
[dir=rtl] .iti--allow-dropdown input.iti__tel-input[type=text],
|
|
2330
|
+
[dir=rtl] .iti--allow-dropdown input.iti__tel-input[type=tel], [dir=rtl] .iti--separate-dial-code input.iti__tel-input,
|
|
2331
|
+
[dir=rtl] .iti--separate-dial-code input.iti__tel-input[type=text],
|
|
2332
|
+
[dir=rtl] .iti--separate-dial-code input.iti__tel-input[type=tel] {
|
|
2324
2333
|
padding-right: 52px;
|
|
2325
2334
|
padding-left: 6px;
|
|
2326
2335
|
margin-right: 0;
|
|
@@ -2339,12 +2348,12 @@
|
|
|
2339
2348
|
.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
|
|
2340
2349
|
background-color: rgba(0, 0, 0, 0.05);
|
|
2341
2350
|
}
|
|
2342
|
-
.iti--allow-dropdown
|
|
2343
|
-
.iti--allow-dropdown
|
|
2351
|
+
.iti--allow-dropdown .iti__flag-container:has(+ input[disabled]):hover,
|
|
2352
|
+
.iti--allow-dropdown .iti__flag-container:has(+ input[readonly]):hover {
|
|
2344
2353
|
cursor: default;
|
|
2345
2354
|
}
|
|
2346
|
-
.iti--allow-dropdown
|
|
2347
|
-
.iti--allow-dropdown
|
|
2355
|
+
.iti--allow-dropdown .iti__flag-container:has(+ input[disabled]):hover .iti__selected-flag,
|
|
2356
|
+
.iti--allow-dropdown .iti__flag-container:has(+ input[readonly]):hover .iti__selected-flag {
|
|
2348
2357
|
background-color: transparent;
|
|
2349
2358
|
}
|
|
2350
2359
|
.iti--separate-dial-code .iti__selected-flag {
|
|
@@ -2368,18 +2377,26 @@
|
|
|
2368
2377
|
cursor: pointer;
|
|
2369
2378
|
}
|
|
2370
2379
|
|
|
2371
|
-
.iti-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2380
|
+
.iti--fullscreen-popup.iti--container {
|
|
2381
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
2382
|
+
top: 0;
|
|
2383
|
+
bottom: 0;
|
|
2384
|
+
left: 0;
|
|
2385
|
+
right: 0;
|
|
2376
2386
|
position: fixed;
|
|
2387
|
+
padding: 30px;
|
|
2388
|
+
display: flex;
|
|
2389
|
+
flex-direction: column;
|
|
2390
|
+
justify-content: center;
|
|
2391
|
+
}
|
|
2392
|
+
.iti--fullscreen-popup.iti--container.iti--country-search {
|
|
2393
|
+
justify-content: flex-start;
|
|
2377
2394
|
}
|
|
2378
|
-
.iti-
|
|
2395
|
+
.iti--fullscreen-popup .iti__dropdown-content {
|
|
2379
2396
|
max-height: 100%;
|
|
2380
|
-
|
|
2397
|
+
position: relative;
|
|
2381
2398
|
}
|
|
2382
|
-
.iti-
|
|
2399
|
+
.iti--fullscreen-popup .iti__country {
|
|
2383
2400
|
padding: 10px 10px;
|
|
2384
2401
|
line-height: 1.5em;
|
|
2385
2402
|
}
|
|
@@ -2405,7 +2422,7 @@
|
|
|
2405
2422
|
.iti__flag.iti__va {
|
|
2406
2423
|
width: 15px;
|
|
2407
2424
|
}
|
|
2408
|
-
@media (
|
|
2425
|
+
@media (min-resolution: 2x) {
|
|
2409
2426
|
.iti__flag {
|
|
2410
2427
|
background-size: 5762px 15px;
|
|
2411
2428
|
}
|
|
@@ -3471,7 +3488,7 @@
|
|
|
3471
3488
|
background-color: #dbdbdb;
|
|
3472
3489
|
background-position: 20px 0;
|
|
3473
3490
|
}
|
|
3474
|
-
@media (
|
|
3491
|
+
@media (min-resolution: 2x) {
|
|
3475
3492
|
.iti__flag {
|
|
3476
3493
|
background-image: url("../img/flags@2x.png?1");
|
|
3477
3494
|
}
|
|
@@ -296,6 +296,12 @@ export const PtcContainer: {
|
|
|
296
296
|
new (): PtcContainer;
|
|
297
297
|
};
|
|
298
298
|
|
|
299
|
+
interface PtcCountdown extends Components.PtcCountdown, HTMLElement {}
|
|
300
|
+
export const PtcCountdown: {
|
|
301
|
+
prototype: PtcCountdown;
|
|
302
|
+
new (): PtcCountdown;
|
|
303
|
+
};
|
|
304
|
+
|
|
299
305
|
interface PtcDataLookup extends Components.PtcDataLookup, HTMLElement {}
|
|
300
306
|
export const PtcDataLookup: {
|
|
301
307
|
prototype: PtcDataLookup;
|