@ptcwebops/ptcw-design 6.2.25-beta → 6.2.27-beta
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/{component-4dd13907.js → component-6a178a16.js} +1 -1
- package/dist/cjs/event-jumbotron-example.cjs.entry.js +146 -0
- package/dist/cjs/icon-asset.cjs.entry.js +65 -0
- package/dist/cjs/list-item.cjs.entry.js +48 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +47 -0
- package/dist/cjs/ptc-button.cjs.entry.js +87 -0
- package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +156 -0
- package/dist/cjs/ptc-card-content.cjs.entry.js +76 -0
- package/dist/cjs/ptc-card_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +275 -0
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +1 -1
- package/dist/cjs/ptc-form-checkbox_4.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-minimize.cjs.entry.js +50 -3
- package/dist/cjs/ptc-img.cjs.entry.js +133 -0
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/ptc-link.cjs.entry.js +87 -0
- package/dist/cjs/ptc-nav-link.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-slider.cjs.entry.js +1 -1
- package/dist/cjs/ptc-para.cjs.entry.js +127 -0
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-scroll-button.cjs.entry.js +136 -0
- package/dist/cjs/ptc-spacer.cjs.entry.js +38 -0
- package/dist/cjs/ptc-title.cjs.entry.js +152 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.css +1 -0
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +67 -2
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +3 -2
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +2 -2
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +3 -2
- package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.css +9 -2
- package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.js +1 -1
- package/dist/custom-elements/index.js +57 -10
- package/dist/esm/blog-detail-content_2.entry.js +1 -1
- package/dist/esm/blog-detail-layout.entry.js +1 -1
- package/dist/esm/blogs-search-section.entry.js +1 -1
- package/dist/esm/{component-9c921cc6.js → component-80f298b4.js} +1 -1
- package/dist/esm/event-jumbotron-example.entry.js +142 -0
- package/dist/esm/homepage-jumbotron.entry.js +1 -1
- package/dist/esm/homepage-toggled-content.entry.js +1 -1
- package/dist/esm/icon-asset.entry.js +61 -0
- package/dist/esm/list-item.entry.js +44 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/most-popular-news.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-background-video.entry.js +1 -1
- package/dist/esm/ptc-breadcrumb.entry.js +43 -0
- package/dist/esm/ptc-button.entry.js +83 -0
- package/dist/esm/ptc-card-bottom_2.entry.js +151 -0
- package/dist/esm/ptc-card-content.entry.js +72 -0
- package/dist/esm/ptc-card_2.entry.js +1 -1
- package/dist/esm/ptc-close-icon_2.entry.js +270 -0
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-data-lookup.entry.js +1 -1
- package/dist/esm/ptc-form-checkbox_4.entry.js +2 -2
- package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
- package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
- package/dist/esm/ptc-icon-card.entry.js +1 -1
- package/dist/esm/ptc-icon-minimize.entry.js +50 -3
- package/dist/esm/ptc-img.entry.js +129 -0
- package/dist/esm/ptc-jumbotron.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +83 -0
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-nav-link.entry.js +1 -1
- package/dist/esm/ptc-nav-slider.entry.js +1 -1
- package/dist/esm/ptc-para.entry.js +123 -0
- package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
- package/dist/esm/ptc-pricing-tabs.entry.js +2 -2
- package/dist/esm/ptc-scroll-button.entry.js +132 -0
- package/dist/esm/ptc-social-icons-footer.entry.js +1 -1
- package/dist/esm/ptc-spacer.entry.js +34 -0
- package/dist/esm/ptc-title.entry.js +148 -0
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/{utils-ff65c75b.js → utils-63eab4bd.js} +1 -1
- package/dist/ptcw-design/p-01075feb.entry.js +1 -0
- package/dist/ptcw-design/p-0c69ea52.entry.js +1 -0
- package/dist/ptcw-design/{p-3db38765.entry.js → p-0d809708.entry.js} +1 -1
- package/dist/ptcw-design/p-1070f8a3.entry.js +1 -0
- package/dist/ptcw-design/{p-e0b873d0.entry.js → p-16e70f20.entry.js} +1 -1
- package/dist/ptcw-design/{p-ae970a60.entry.js → p-17f6e145.entry.js} +1 -1
- package/dist/ptcw-design/p-25a25451.entry.js +1 -0
- package/dist/ptcw-design/p-28371371.entry.js +1 -0
- package/dist/ptcw-design/{p-e4000363.entry.js → p-28be539b.entry.js} +1 -1
- package/dist/ptcw-design/{p-a3b57ede.entry.js → p-291072b4.entry.js} +1 -1
- package/dist/ptcw-design/p-2d70b4a8.entry.js +1 -0
- package/dist/ptcw-design/{p-d9abe7e8.entry.js → p-48c33817.entry.js} +1 -1
- package/dist/ptcw-design/{p-e3f8e5d5.entry.js → p-49e54079.entry.js} +1 -1
- package/dist/ptcw-design/p-4a7505ba.entry.js +1 -0
- package/dist/ptcw-design/{p-2c6fc745.entry.js → p-4ee98a3e.entry.js} +1 -1
- package/dist/ptcw-design/{p-d10cb999.entry.js → p-627103d8.entry.js} +1 -1
- package/dist/ptcw-design/{p-c95f423e.entry.js → p-6a3caf2b.entry.js} +1 -1
- package/dist/ptcw-design/{p-7a9611b4.entry.js → p-6f5fecae.entry.js} +1 -1
- package/dist/ptcw-design/p-7793babb.entry.js +1 -0
- package/dist/ptcw-design/{p-8872161f.js → p-77b1221e.js} +1 -1
- package/dist/ptcw-design/p-7fe4d383.entry.js +1 -0
- package/dist/ptcw-design/{p-c37a3bd2.entry.js → p-821f0ff9.entry.js} +1 -1
- package/dist/ptcw-design/p-92d22c78.entry.js +1 -0
- package/dist/ptcw-design/p-99355e65.entry.js +1 -0
- package/dist/ptcw-design/{p-e372dc5b.entry.js → p-9df7489b.entry.js} +1 -1
- package/dist/ptcw-design/p-b651c1cb.entry.js +1 -0
- package/dist/ptcw-design/p-b8ee8699.entry.js +1 -0
- package/dist/ptcw-design/p-bf18b622.entry.js +1 -0
- package/dist/ptcw-design/{p-1b257420.entry.js → p-c01ea76f.entry.js} +1 -1
- package/dist/ptcw-design/{p-6d3326da.entry.js → p-cbee4653.entry.js} +1 -1
- package/dist/ptcw-design/{p-c66b8926.entry.js → p-d3229458.entry.js} +1 -1
- package/dist/ptcw-design/{p-a808d399.entry.js → p-d361afd1.entry.js} +1 -1
- package/dist/ptcw-design/p-d3e2a446.entry.js +1 -0
- package/dist/ptcw-design/p-e2a935fa.entry.js +1 -0
- package/dist/ptcw-design/{p-da82dc93.entry.js → p-e577ad62.entry.js} +1 -1
- package/dist/ptcw-design/{p-808ec62a.entry.js → p-eec2f3da.entry.js} +1 -1
- package/dist/ptcw-design/{p-370cbbdd.entry.js → p-f335cb2b.entry.js} +1 -1
- package/dist/ptcw-design/{p-0fdfd4ad.entry.js → p-fc0348a7.entry.js} +1 -1
- package/dist/ptcw-design/{p-36007a57.entry.js → p-fd394e84.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.css +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +2 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/event-jumbotron-example_15.cjs.entry.js +0 -1431
- package/dist/cjs/ptc-card-bottom.cjs.entry.js +0 -67
- package/dist/esm/event-jumbotron-example_15.entry.js +0 -1413
- package/dist/esm/ptc-card-bottom.entry.js +0 -63
- package/dist/ptcw-design/p-06d75880.entry.js +0 -1
- package/dist/ptcw-design/p-69686408.entry.js +0 -1
- package/dist/ptcw-design/p-9fe0c27d.entry.js +0 -1
- package/dist/ptcw-design/p-e346b320.entry.js +0 -1
- /package/dist/ptcw-design/{p-bcab66bf.js → p-672a349f.js} +0 -0
|
@@ -12,6 +12,7 @@ export class PtcIconMinimize {
|
|
|
12
12
|
this.listType = "default";
|
|
13
13
|
this.dataRefineValue = undefined;
|
|
14
14
|
this.trackerId = undefined;
|
|
15
|
+
this.tabIndexValue = 0;
|
|
15
16
|
}
|
|
16
17
|
componentWillLoad() {
|
|
17
18
|
this.timeStamp = Date.now().toString();
|
|
@@ -21,11 +22,20 @@ export class PtcIconMinimize {
|
|
|
21
22
|
if (this.opened && !content.style.maxHeight) {
|
|
22
23
|
content.style.maxHeight = content.scrollHeight + "px";
|
|
23
24
|
}
|
|
25
|
+
if (!this.opened) {
|
|
26
|
+
this.setTabIndex();
|
|
27
|
+
}
|
|
24
28
|
}
|
|
25
29
|
dropdownToggle() {
|
|
26
30
|
this.opened = !this.opened;
|
|
31
|
+
this.setTabIndex();
|
|
32
|
+
}
|
|
33
|
+
setTabIndex() {
|
|
27
34
|
var checkList = this.host.querySelector(".fitler-check-list");
|
|
28
35
|
var checkListModal = this.host.querySelector(".fitler-check-list-modal");
|
|
36
|
+
if (checkList == null) {
|
|
37
|
+
checkList = this.host.querySelector(".filter-checkbox-list");
|
|
38
|
+
}
|
|
29
39
|
if (checkList) {
|
|
30
40
|
var checkBoxesList = checkList.querySelectorAll("ptc-checkbox");
|
|
31
41
|
if (checkBoxesList) {
|
|
@@ -35,6 +45,26 @@ export class PtcIconMinimize {
|
|
|
35
45
|
}
|
|
36
46
|
});
|
|
37
47
|
}
|
|
48
|
+
var checkBoxesIconList = checkList.querySelectorAll("ptc-icon-minimize");
|
|
49
|
+
if (checkBoxesIconList) {
|
|
50
|
+
checkBoxesIconList.forEach(item => {
|
|
51
|
+
if (item.shadowRoot.querySelector(".icon")) {
|
|
52
|
+
this.opened ? item.shadowRoot.querySelector(".icon").setAttribute("tabindex", "0") :
|
|
53
|
+
item.shadowRoot.querySelector(".icon").setAttribute("tabindex", "-1");
|
|
54
|
+
var childrenCheckBoxesList = item.querySelectorAll("ptc-checkbox");
|
|
55
|
+
if (childrenCheckBoxesList) {
|
|
56
|
+
childrenCheckBoxesList.forEach(childitem => {
|
|
57
|
+
if (childitem.shadowRoot.querySelector("label")) {
|
|
58
|
+
childitem.shadowRoot.querySelector("label").tabIndex = item.opened ? 0 : -1;
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (checkListModal == null) {
|
|
67
|
+
checkListModal = this.host.querySelector(".filter-check-list-modal");
|
|
38
68
|
}
|
|
39
69
|
if (checkListModal) {
|
|
40
70
|
var checkBoxesListModal = checkListModal.querySelectorAll("ptc-checkbox");
|
|
@@ -45,6 +75,23 @@ export class PtcIconMinimize {
|
|
|
45
75
|
}
|
|
46
76
|
});
|
|
47
77
|
}
|
|
78
|
+
var checkBoxesModelIconList = checkListModal.querySelectorAll("ptc-icon-minimize");
|
|
79
|
+
if (checkBoxesModelIconList) {
|
|
80
|
+
checkBoxesModelIconList.forEach(item => {
|
|
81
|
+
if (item.shadowRoot.querySelector(".icon")) {
|
|
82
|
+
this.opened ? item.shadowRoot.querySelector(".icon").setAttribute("tabindex", "0") :
|
|
83
|
+
item.shadowRoot.querySelector(".icon").setAttribute("tabindex", "-1");
|
|
84
|
+
var childrenCheckBoxesList = item.querySelectorAll("ptc-checkbox");
|
|
85
|
+
if (childrenCheckBoxesList) {
|
|
86
|
+
childrenCheckBoxesList.forEach(childitem => {
|
|
87
|
+
if (childitem.shadowRoot.querySelector("label")) {
|
|
88
|
+
childitem.shadowRoot.querySelector("label").tabIndex = item.opened ? 0 : -1;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
48
95
|
}
|
|
49
96
|
}
|
|
50
97
|
getScrollHeight() {
|
|
@@ -91,9 +138,9 @@ export class PtcIconMinimize {
|
|
|
91
138
|
let scrollHeight = this.getScrollHeight();
|
|
92
139
|
let icon = this.opened ? 'minus' : 'plus';
|
|
93
140
|
return (h("div", { class: 'ptc-icon-minimize' }, this.listType == "default" ?
|
|
94
|
-
h("div", { class: "header" }, h("div", { class: "title" }, this.heading), h("div", { class: "icon mf-listen", id: this.trackerId, onClick: () => this.dropdownToggle(), onKeyDown: this.handleKeyDown, tabIndex:
|
|
141
|
+
h("div", { class: "header" }, h("div", { class: "title" }, this.heading), h("div", { class: "icon mf-listen", id: this.trackerId, onClick: () => this.dropdownToggle(), onKeyDown: this.handleKeyDown, tabIndex: this.tabIndexValue }, h("icon-asset", { type: "ptc", color: "black", size: "xxx-small", name: icon })))
|
|
95
142
|
: this.listType == "checkbox" ?
|
|
96
|
-
h("div", { class: "header" }, h("div", { class: "title" }, h("ptc-checkbox", { checked: "unchecked", "data-refine": this.dataRefineValue, "input-name": "", value: this.heading }, this.heading)), h("div", { class: "icon mf-listen", id: this.trackerId, onClick: () => this.dropdownToggle(), onKeyDown: this.handleKeyDown, tabIndex:
|
|
143
|
+
h("div", { class: "header" }, h("div", { class: "title" }, h("ptc-checkbox", { checked: "unchecked", "data-refine": this.dataRefineValue, "input-name": "", value: this.heading, tabIndex: this.tabIndexValue }, this.heading)), h("div", { class: "icon mf-listen", id: this.trackerId, onClick: () => this.dropdownToggle(), onKeyDown: this.handleKeyDown, tabIndex: this.tabIndexValue }, h("icon-asset", { type: "ptc", color: "black", size: "xxx-small", name: icon })))
|
|
97
144
|
: null, h("div", { class: "content", style: scrollHeight }, h("slot", null))));
|
|
98
145
|
}
|
|
99
146
|
static get is() { return "ptc-icon-minimize"; }
|
|
@@ -196,6 +243,24 @@ export class PtcIconMinimize {
|
|
|
196
243
|
},
|
|
197
244
|
"attribute": "tracker-id",
|
|
198
245
|
"reflect": false
|
|
246
|
+
},
|
|
247
|
+
"tabIndexValue": {
|
|
248
|
+
"type": "number",
|
|
249
|
+
"mutable": false,
|
|
250
|
+
"complexType": {
|
|
251
|
+
"original": "number",
|
|
252
|
+
"resolved": "number",
|
|
253
|
+
"references": {}
|
|
254
|
+
},
|
|
255
|
+
"required": false,
|
|
256
|
+
"optional": false,
|
|
257
|
+
"docs": {
|
|
258
|
+
"tags": [],
|
|
259
|
+
"text": ""
|
|
260
|
+
},
|
|
261
|
+
"attribute": "tab-index-value",
|
|
262
|
+
"reflect": false,
|
|
263
|
+
"defaultValue": "0"
|
|
199
264
|
}
|
|
200
265
|
};
|
|
201
266
|
}
|
|
@@ -1151,15 +1151,16 @@ ptc-preloader-section.min-height {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
|
|
1153
1153
|
ptc-nav-submenu {
|
|
1154
|
+
margin-top: 6px;
|
|
1154
1155
|
border-left: 2px solid transparent;
|
|
1155
1156
|
border-right: 2px solid transparent;
|
|
1157
|
+
border-bottom: 2px solid transparent;
|
|
1156
1158
|
}
|
|
1157
1159
|
ptc-nav-submenu:focus-visible, ptc-nav-submenu:focus {
|
|
1160
|
+
margin-top: 4px;
|
|
1158
1161
|
border-radius: var(--ptc-border-radius-standard);
|
|
1159
1162
|
border: 2px solid white;
|
|
1160
1163
|
outline: 5px solid var(--keyboard-nav-outline);
|
|
1161
|
-
margin-top: -2px;
|
|
1162
|
-
margin-bottom: -2px;
|
|
1163
1164
|
}
|
|
1164
1165
|
|
|
1165
1166
|
a {
|
|
@@ -476,18 +476,18 @@ ptc-link, ptc-square-card,
|
|
|
476
476
|
align-items: center;
|
|
477
477
|
justify-content: space-between;
|
|
478
478
|
flex-wrap: nowrap;
|
|
479
|
+
column-gap: 40px;
|
|
479
480
|
}
|
|
480
481
|
.skeleton-home-page .slide-container .skeleton-slides .slide {
|
|
481
482
|
background: linear-gradient(to right, var(--color-gray-02) 25%, var(--color-gray-03) 50%, var(--color-gray-02) 75%);
|
|
482
483
|
background-size: 200% 100%;
|
|
483
484
|
animation: loading 2.5s linear infinite;
|
|
484
485
|
border-radius: 4px;
|
|
485
|
-
width:
|
|
486
|
+
width: 100%;
|
|
486
487
|
height: 140px;
|
|
487
488
|
}
|
|
488
489
|
@media only screen and (min-width: 992px) {
|
|
489
490
|
.skeleton-home-page .slide-container .skeleton-slides .slide {
|
|
490
|
-
width: 356px;
|
|
491
491
|
height: 116px;
|
|
492
492
|
}
|
|
493
493
|
}
|
|
@@ -1096,15 +1096,16 @@ ptc-preloader-section.min-height {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
|
|
1098
1098
|
ptc-nav-submenu {
|
|
1099
|
+
margin-top: 6px;
|
|
1099
1100
|
border-left: 2px solid transparent;
|
|
1100
1101
|
border-right: 2px solid transparent;
|
|
1102
|
+
border-bottom: 2px solid transparent;
|
|
1101
1103
|
}
|
|
1102
1104
|
ptc-nav-submenu:focus-visible, ptc-nav-submenu:focus {
|
|
1105
|
+
margin-top: 4px;
|
|
1103
1106
|
border-radius: var(--ptc-border-radius-standard);
|
|
1104
1107
|
border: 2px solid white;
|
|
1105
1108
|
outline: 5px solid var(--keyboard-nav-outline);
|
|
1106
|
-
margin-top: -2px;
|
|
1107
|
-
margin-bottom: -2px;
|
|
1108
1109
|
}
|
|
1109
1110
|
|
|
1110
1111
|
:host {
|
|
@@ -104,7 +104,9 @@ ptc-link, ptc-square-card,
|
|
|
104
104
|
}
|
|
105
105
|
@media only screen and (min-width: 1200px) {
|
|
106
106
|
:host a {
|
|
107
|
-
padding:
|
|
107
|
+
padding: 14px var(--ptc-element-spacing-03) 22px;
|
|
108
|
+
margin-top: 6px;
|
|
109
|
+
border-top: 2px solid transparent;
|
|
108
110
|
margin-left: 0;
|
|
109
111
|
display: flex;
|
|
110
112
|
align-items: center;
|
|
@@ -150,7 +152,12 @@ ptc-link, ptc-square-card,
|
|
|
150
152
|
border-radius: var(--ptc-border-radius-standard);
|
|
151
153
|
border: 2px solid white;
|
|
152
154
|
outline: 5px solid var(--keyboard-nav-outline);
|
|
153
|
-
padding:
|
|
155
|
+
padding: 14px 10px 16px;
|
|
156
|
+
}
|
|
157
|
+
@media only screen and (min-width: 1200px) {
|
|
158
|
+
:host a:focus-visible {
|
|
159
|
+
padding: 14px 10px 20px;
|
|
160
|
+
}
|
|
154
161
|
}
|
|
155
162
|
:host ::slotted(icon-asset) {
|
|
156
163
|
margin-top: 4px;
|
|
@@ -21,7 +21,7 @@ export class PtcNavSlider {
|
|
|
21
21
|
const prevBtn = document.querySelector(`#${sliderId}`).shadowRoot.querySelector('#prevBtn');
|
|
22
22
|
const nextBtn = document.querySelector(`#${sliderId}`).shadowRoot.querySelector('#nextBtn');
|
|
23
23
|
let notDropdown = element.target.tagName.toLowerCase() != 'ptc-nav-submenu';
|
|
24
|
-
console.log(element.target.tagName)
|
|
24
|
+
//console.log(element.target.tagName)
|
|
25
25
|
this.updateArrows(boxWrap, prevBtn, nextBtn, notDropdown);
|
|
26
26
|
}
|
|
27
27
|
updateArrows(boxWrap, prevBtn, nextBtn, isNotDropdown) {
|