@ptcwebops/ptcw-design 6.1.4 → 6.1.5
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_13.cjs.entry.js +6 -6
- package/dist/cjs/ptc-dynamic-card.cjs.entry.js +2 -2
- package/dist/cjs/ptc-filter-tag_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-minimize.cjs.entry.js +11 -0
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +1 -1
- package/dist/collection/components/ptc-close-icon/ptc-close-icon.css +3 -2
- package/dist/collection/components/ptc-close-icon/ptc-close-icon.js +1 -1
- package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +9 -1
- package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +1 -1
- package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +1 -1
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +11 -0
- package/dist/collection/components/ptc-minimized-nav/ptc-minimized-nav.js +1 -1
- package/dist/collection/components/ptc-modal/ptc-modal.js +1 -1
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +40 -4
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +1 -1
- package/dist/collection/components/ptc-select/ptc-select.js +1 -1
- package/dist/custom-elements/index.js +21 -10
- package/dist/esm/icon-asset_13.entry.js +6 -6
- package/dist/esm/ptc-dynamic-card.entry.js +2 -2
- package/dist/esm/ptc-filter-tag_2.entry.js +1 -1
- package/dist/esm/ptc-icon-minimize.entry.js +11 -0
- package/dist/esm/ptc-multi-select_2.entry.js +1 -1
- package/dist/ptcw-design/p-38905088.entry.js +1 -0
- package/dist/ptcw-design/p-699f234b.entry.js +1 -0
- package/dist/ptcw-design/p-bb7ff6d8.entry.js +1 -0
- package/dist/ptcw-design/p-e70af06d.entry.js +1 -0
- package/dist/ptcw-design/p-f64fadad.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-0483b35b.entry.js +0 -1
- package/dist/ptcw-design/p-251513ee.entry.js +0 -1
- package/dist/ptcw-design/p-77b7108b.entry.js +0 -1
- package/dist/ptcw-design/p-7b27a4e4.entry.js +0 -1
- package/dist/ptcw-design/p-850fd211.entry.js +0 -1
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-63ddc79c.js');
|
|
6
6
|
|
|
7
|
-
const ptcDynamicCardCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}:host(.sequential) .card-wrapper{position:relative;cursor:pointer;outline:none}:host(.sequential) .card-wrapper:focus-visible{transition:none;border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline);z-index:1}:host(.sequential) .card{background-color:var(--color-gray-12);overflow:hidden}:host(.sequential) .card-mobile,:host(.sequential) .card-dt-open{display:block}:host(.sequential) .card-mobile ptc-card-content,:host(.sequential) .card-dt-open ptc-card-content{display:flex;flex-basis:38%;justify-content:flex-start;align-items:center;padding:var(--ptc-element-spacing-06)}@media only screen and (min-width: 1200px){:host(.sequential) .card-mobile ptc-card-content,:host(.sequential) .card-dt-open ptc-card-content{height:unset;flex:0 0 310px}}:host(.sequential) .card-mobile ptc-picture,:host(.sequential) .card-dt-open ptc-picture{flex:1 1 auto}:host(.sequential) .card-mobile .card-title h3,:host(.sequential) .card-dt-open .card-title h3{color:var(--color-white);font-size:var(--ptc-font-size-medium);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-densest);margin-bottom:0rem;margin-block-start:0rem;letter-spacing:var(--ptc-letter-spacing-normal)}@media only screen and (min-width: 768px){:host(.sequential) .card-mobile .card-title h3,:host(.sequential) .card-dt-open .card-title h3{font-size:var(--ptc-font-size-large)}}:host(.sequential) .card-mobile .card-content,:host(.sequential) .card-dt-open .card-content{margin-top:var(--ptc-element-spacing-03)}:host(.sequential) .card-mobile{max-width:320px;min-width:226px;position:relative}@media only screen and (min-width: 480px){:host(.sequential) .card-mobile{max-width:350px}}:host(.sequential) .card-mobile::before{content:\"\";display:block;position:absolute;top:0;left:0;width:100%;height:5px;transition:background-color var(--ptc-transition-medium) var(--ptc-ease-out);background-color:transparent}:host(.sequential) .card-mobile ptc-card-content{align-items:flex-start}:host(.sequential) .card-dt-closed{width:135px;height:424px;position:relative}:host(.sequential) .card-dt-closed .closed-content{position:absolute;width:100%;height:100%;top:0;display:flex;align-items:center;justify-content:center}:host(.sequential) .card-dt-closed .card-title{text-align:center}:host(.sequential) .card-dt-closed .card-title h2{color:var(--color-white);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-densest);margin-bottom:0rem;margin-block-start:0rem;letter-spacing:var(--ptc-letter-spacing-normal);padding-left:var(--ptc-element-spacing-02);padding-right:var(--ptc-element-spacing-02)}@media only screen and (min-width: 1440px){:host(.sequential) .card-dt-closed .card-title h2{font-size:var(--ptc-font-size-small)}}:host(.sequential) .card-dt-open{border-top:5px solid var(--color-green-05);display:flex;max-width:790px;
|
|
7
|
+
const ptcDynamicCardCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}:host(.sequential) .card-wrapper{position:relative;cursor:pointer;outline:none}:host(.sequential) .card-wrapper:focus-visible{transition:none;border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline);z-index:1}:host(.sequential) .card{background-color:var(--color-gray-12);overflow:hidden}:host(.sequential) .card.hide{display:none}:host(.sequential) .card.show{display:block}:host(.sequential) .card-mobile,:host(.sequential) .card-dt-open{display:block}:host(.sequential) .card-mobile ptc-card-content,:host(.sequential) .card-dt-open ptc-card-content{display:flex;flex-basis:38%;justify-content:flex-start;align-items:center;padding:var(--ptc-element-spacing-06)}@media only screen and (min-width: 1200px){:host(.sequential) .card-mobile ptc-card-content,:host(.sequential) .card-dt-open ptc-card-content{height:unset;flex:0 0 310px}}:host(.sequential) .card-mobile ptc-picture,:host(.sequential) .card-dt-open ptc-picture{flex:1 1 auto}:host(.sequential) .card-mobile .card-title h3,:host(.sequential) .card-dt-open .card-title h3{color:var(--color-white);font-size:var(--ptc-font-size-medium);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-densest);margin-bottom:0rem;margin-block-start:0rem;letter-spacing:var(--ptc-letter-spacing-normal)}@media only screen and (min-width: 768px){:host(.sequential) .card-mobile .card-title h3,:host(.sequential) .card-dt-open .card-title h3{font-size:var(--ptc-font-size-large)}}:host(.sequential) .card-mobile .card-content,:host(.sequential) .card-dt-open .card-content{margin-top:var(--ptc-element-spacing-03)}:host(.sequential) .card-mobile{max-width:320px;min-width:226px;position:relative}@media only screen and (min-width: 480px){:host(.sequential) .card-mobile{max-width:350px}}:host(.sequential) .card-mobile::before{content:\"\";display:block;position:absolute;top:0;left:0;width:100%;height:5px;transition:background-color var(--ptc-transition-medium) var(--ptc-ease-out);background-color:transparent}:host(.sequential) .card-mobile ptc-card-content{align-items:flex-start}:host(.sequential) .card-dt-closed{width:135px;height:424px;position:relative}:host(.sequential) .card-dt-closed .closed-content{position:absolute;width:100%;height:100%;top:0;display:flex;align-items:center;justify-content:center}:host(.sequential) .card-dt-closed .card-title{text-align:center}:host(.sequential) .card-dt-closed .card-title h2{color:var(--color-white);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-densest);margin-bottom:0rem;margin-block-start:0rem;letter-spacing:var(--ptc-letter-spacing-normal);padding-left:var(--ptc-element-spacing-02);padding-right:var(--ptc-element-spacing-02)}@media only screen and (min-width: 1440px){:host(.sequential) .card-dt-closed .card-title h2{font-size:var(--ptc-font-size-small)}}:host(.sequential) .card-dt-open{border-top:5px solid var(--color-green-05);display:flex;max-width:790px;transition:width var(--ptc-transition-x-fast) var(--ptc-ease-out)}@media only screen and (min-width: 1440px){:host(.sequential) .card-dt-open{max-width:825px}}:host(.sequential) .card-dt-open:not([hidden]){height:480px}:host(.sequential):host(.active) .card-mobile::before{background-color:var(--color-green-05)}";
|
|
8
8
|
|
|
9
9
|
const PtcDynamicCard = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -93,7 +93,7 @@ const PtcDynamicCard = class {
|
|
|
93
93
|
}
|
|
94
94
|
render() {
|
|
95
95
|
const classMap = this.getCssClassMap();
|
|
96
|
-
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("div", { class: "card-wrapper", role: "button", tabindex: "0", "aria-expanded": this.isExpanded, onClick: this.openCard, onKeyDown: this.handleKeyDown }, this.cardScreen === 'mobile' ? (index.h("div", { class: "card card-mobile mf-listen", id: this.trackerId }, index.h("ptc-picture", { height: "287", "is-full-width": true, alt: this.cardImgAlt, src: this.cardImgSrc }), index.h("ptc-card-content", { "card-type": "card-dynamic", styles: ":host(.card-dynamic){height: auto;}" }, index.h("div", { class: "card-title" }, index.h("h3", null, this.cardTitle)), index.h("div", { class: "card-content" }, index.h("slot", null))))) : (this.
|
|
96
|
+
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("div", { class: "card-wrapper mf-listen", role: "button", tabindex: "0", "aria-expanded": this.isExpanded, onClick: this.openCard, onKeyDown: this.handleKeyDown }, this.cardScreen === 'mobile' ? (index.h("div", { class: "card card-mobile mf-listen", id: this.trackerId }, index.h("ptc-picture", { height: "287", "is-full-width": true, alt: this.cardImgAlt, src: this.cardImgSrc }), index.h("ptc-card-content", { "card-type": "card-dynamic", styles: ":host(.card-dynamic){height: auto;}" }, index.h("div", { class: "card-title" }, index.h("h3", null, this.cardTitle)), index.h("div", { class: "card-content" }, index.h("slot", null))))) : (index.h("div", null, index.h("div", Object.assign({}, !this.isExpanded && { hidden: 'until-found' }, { onBeforeMatch: this.openCard.bind(this), class: `card card-dt-open mf-listen`, id: this.trackerId }), index.h("ptc-card-content", { "card-type": "card-dynamic" }, index.h("div", { class: "card-title" }, index.h("h3", null, this.cardTitle)), index.h("div", { class: "card-content" }, index.h("slot", null))), index.h("ptc-picture", { alt: this.cardImgAlt, src: this.cardImgSrc, "is-full-width": "true", "is-full-height": "true", "image-alignment": "center" })), index.h("div", { class: `card card-dt-closed mf-listen ${this.isExpanded ? 'hide' : 'show'}`, id: this.trackerId }, index.h("ptc-picture", { alt: this.cardImgAlt, src: this.cardImgSrc, "image-position": "relative", "is-full-width": true, height: "424" }, this.overlayExists ? (index.h("ptc-overlay", { "filter-color": "solid-black-1" })) : (index.h("ptc-overlay", { "filter-color": "solid-black-2" }))), index.h("div", { class: "closed-content", "card-type": "card-dynamic" }, index.h("div", { class: "card-title" }, index.h("h2", null, this.cardTitle))))))), this.cardScreen === 'desktop' && (index.h("div", { hidden: true }, index.h("svg", null, index.h("use", { href: `${this.dotSvg}` }))))));
|
|
97
97
|
}
|
|
98
98
|
static get assetsDirs() { return ["media"]; }
|
|
99
99
|
get el() { return index.getElement(this); }
|
|
@@ -62,7 +62,7 @@ const PtcFilterTag = class {
|
|
|
62
62
|
icon = (index.h("icon-asset", { class: "cls", type: "ptc", color: "black", name: "times", size: "xxx-small" }));
|
|
63
63
|
break;
|
|
64
64
|
}
|
|
65
|
-
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("span", { tabindex: "0", class: classMap, onClick: () => this.handleClick(), onKeyPress: () => this.handleClick(), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, index.h("slot", null), icon)));
|
|
65
|
+
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("span", { tabindex: "0", class: classMap, onClick: () => this.handleClick(), onKeyPress: () => this.handleClick(), onKeyDown: (e) => this.handleKeyDown(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, index.h("slot", null), icon)));
|
|
66
66
|
}
|
|
67
67
|
getCssClassMap() {
|
|
68
68
|
return {
|
|
@@ -33,6 +33,7 @@ const PtcIconMinimize = class {
|
|
|
33
33
|
dropdownToggle() {
|
|
34
34
|
this.opened = !this.opened;
|
|
35
35
|
var checkList = this.host.querySelector(".fitler-check-list");
|
|
36
|
+
var checkListModal = this.host.querySelector(".fitler-check-list-modal");
|
|
36
37
|
if (checkList) {
|
|
37
38
|
var checkBoxesList = checkList.querySelectorAll("ptc-checkbox");
|
|
38
39
|
if (checkBoxesList) {
|
|
@@ -43,6 +44,16 @@ const PtcIconMinimize = class {
|
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
46
|
}
|
|
47
|
+
if (checkListModal) {
|
|
48
|
+
var checkBoxesListModal = checkListModal.querySelectorAll("ptc-checkbox");
|
|
49
|
+
if (checkBoxesListModal) {
|
|
50
|
+
checkBoxesListModal.forEach(item => {
|
|
51
|
+
if (item.shadowRoot.querySelector("label")) {
|
|
52
|
+
item.shadowRoot.querySelector("label").tabIndex = this.opened ? 0 : -1;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
46
57
|
}
|
|
47
58
|
getScrollHeight() {
|
|
48
59
|
let result = undefined;
|
|
@@ -636,7 +636,7 @@ const PtcSelect = class {
|
|
|
636
636
|
return validationMessages.ValidationMessages[this.language][type];
|
|
637
637
|
}
|
|
638
638
|
getSelectClassName() {
|
|
639
|
-
let className = 'mdc-select mdc-select--outlined mdc-select--no-label';
|
|
639
|
+
let className = 'mdc-select mdc-select--outlined mdc-select--no-label mf-listen';
|
|
640
640
|
if (this.isRequired) {
|
|
641
641
|
className = `${className} mdc-select--required`;
|
|
642
642
|
}
|
|
@@ -83,6 +83,7 @@ ptc-link, ptc-square-card,
|
|
|
83
83
|
background-color: var(--color-gray-02);
|
|
84
84
|
border: 1px solid var(--color-gray-12);
|
|
85
85
|
}
|
|
86
|
-
:host .close-icon:focus {
|
|
87
|
-
border:
|
|
86
|
+
:host .close-icon:focus-visible svg {
|
|
87
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
88
|
+
outline: 5px solid var(--keyboard-nav-outline);
|
|
88
89
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
2
|
export class PtcCloseIcon {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, null, h("div", { class: 'close-icon' }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.00089 8.4151L12.5876 14.0018L14.0018 12.5876L8.4151 7.00089L14.0018 1.41421L12.5876 0L7.00089 5.58667L1.41421 0L0 1.41421L5.58667 7.00089L0 12.5876L1.41421 14.0018L7.00089 8.4151Z", fill: "#20262A" })))));
|
|
4
|
+
return (h(Host, null, h("div", { class: 'close-icon', "tab-index": "0" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.00089 8.4151L12.5876 14.0018L14.0018 12.5876L8.4151 7.00089L14.0018 1.41421L12.5876 0L7.00089 5.58667L1.41421 0L0 1.41421L5.58667 7.00089L0 12.5876L1.41421 14.0018L7.00089 8.4151Z", fill: "#20262A" })))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "ptc-close-icon"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -73,6 +73,12 @@ ptc-link, ptc-square-card,
|
|
|
73
73
|
background-color: var(--color-gray-12);
|
|
74
74
|
overflow: hidden;
|
|
75
75
|
}
|
|
76
|
+
:host(.sequential) .card.hide {
|
|
77
|
+
display: none;
|
|
78
|
+
}
|
|
79
|
+
:host(.sequential) .card.show {
|
|
80
|
+
display: block;
|
|
81
|
+
}
|
|
76
82
|
:host(.sequential) .card-mobile, :host(.sequential) .card-dt-open {
|
|
77
83
|
display: block;
|
|
78
84
|
}
|
|
@@ -170,7 +176,6 @@ ptc-link, ptc-square-card,
|
|
|
170
176
|
border-top: 5px solid var(--color-green-05);
|
|
171
177
|
display: flex;
|
|
172
178
|
max-width: 790px;
|
|
173
|
-
height: 480px;
|
|
174
179
|
transition: width var(--ptc-transition-x-fast) var(--ptc-ease-out);
|
|
175
180
|
}
|
|
176
181
|
@media only screen and (min-width: 1440px) {
|
|
@@ -178,6 +183,9 @@ ptc-link, ptc-square-card,
|
|
|
178
183
|
max-width: 825px;
|
|
179
184
|
}
|
|
180
185
|
}
|
|
186
|
+
:host(.sequential) .card-dt-open:not([hidden]) {
|
|
187
|
+
height: 480px;
|
|
188
|
+
}
|
|
181
189
|
:host(.sequential):host(.active) .card-mobile::before {
|
|
182
190
|
background-color: var(--color-green-05);
|
|
183
191
|
}
|
|
@@ -87,7 +87,7 @@ export class PtcDynamicCard {
|
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
89
|
const classMap = this.getCssClassMap();
|
|
90
|
-
return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("div", { class: "card-wrapper", role: "button", tabindex: "0", "aria-expanded": this.isExpanded, onClick: this.openCard, onKeyDown: this.handleKeyDown }, this.cardScreen === 'mobile' ? (h("div", { class: "card card-mobile mf-listen", id: this.trackerId }, h("ptc-picture", { height: "287", "is-full-width": true, alt: this.cardImgAlt, src: this.cardImgSrc }), h("ptc-card-content", { "card-type": "card-dynamic", styles: ":host(.card-dynamic){height: auto;}" }, h("div", { class: "card-title" }, h("h3", null, this.cardTitle)), h("div", { class: "card-content" }, h("slot", null))))) : (this.
|
|
90
|
+
return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("div", { class: "card-wrapper mf-listen", role: "button", tabindex: "0", "aria-expanded": this.isExpanded, onClick: this.openCard, onKeyDown: this.handleKeyDown }, this.cardScreen === 'mobile' ? (h("div", { class: "card card-mobile mf-listen", id: this.trackerId }, h("ptc-picture", { height: "287", "is-full-width": true, alt: this.cardImgAlt, src: this.cardImgSrc }), h("ptc-card-content", { "card-type": "card-dynamic", styles: ":host(.card-dynamic){height: auto;}" }, h("div", { class: "card-title" }, h("h3", null, this.cardTitle)), h("div", { class: "card-content" }, h("slot", null))))) : (h("div", null, h("div", Object.assign({}, !this.isExpanded && { hidden: 'until-found' }, { onBeforeMatch: this.openCard.bind(this), class: `card card-dt-open mf-listen`, id: this.trackerId }), h("ptc-card-content", { "card-type": "card-dynamic" }, h("div", { class: "card-title" }, h("h3", null, this.cardTitle)), h("div", { class: "card-content" }, h("slot", null))), h("ptc-picture", { alt: this.cardImgAlt, src: this.cardImgSrc, "is-full-width": "true", "is-full-height": "true", "image-alignment": "center" })), h("div", { class: `card card-dt-closed mf-listen ${this.isExpanded ? 'hide' : 'show'}`, id: this.trackerId }, h("ptc-picture", { alt: this.cardImgAlt, src: this.cardImgSrc, "image-position": "relative", "is-full-width": true, height: "424" }, this.overlayExists ? (h("ptc-overlay", { "filter-color": "solid-black-1" })) : (h("ptc-overlay", { "filter-color": "solid-black-2" }))), h("div", { class: "closed-content", "card-type": "card-dynamic" }, h("div", { class: "card-title" }, h("h2", null, this.cardTitle))))))), this.cardScreen === 'desktop' && (h("div", { hidden: true }, h("svg", null, h("use", { href: `${this.dotSvg}` }))))));
|
|
91
91
|
}
|
|
92
92
|
static get is() { return "ptc-dynamic-card"; }
|
|
93
93
|
static get encapsulation() { return "shadow"; }
|
|
@@ -56,7 +56,7 @@ export class PtcFilterTag {
|
|
|
56
56
|
icon = (h("icon-asset", { class: "cls", type: "ptc", color: "black", name: "times", size: "xxx-small" }));
|
|
57
57
|
break;
|
|
58
58
|
}
|
|
59
|
-
return (h(Host, null, this.styles && h("style", null, this.styles), h("span", { tabindex: "0", class: classMap, onClick: () => this.handleClick(), onKeyPress: () => this.handleClick(), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, h("slot", null), icon)));
|
|
59
|
+
return (h(Host, null, this.styles && h("style", null, this.styles), h("span", { tabindex: "0", class: classMap, onClick: () => this.handleClick(), onKeyPress: () => this.handleClick(), onKeyDown: (e) => this.handleKeyDown(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, h("slot", null), icon)));
|
|
60
60
|
}
|
|
61
61
|
getCssClassMap() {
|
|
62
62
|
return {
|
|
@@ -25,6 +25,7 @@ export class PtcIconMinimize {
|
|
|
25
25
|
dropdownToggle() {
|
|
26
26
|
this.opened = !this.opened;
|
|
27
27
|
var checkList = this.host.querySelector(".fitler-check-list");
|
|
28
|
+
var checkListModal = this.host.querySelector(".fitler-check-list-modal");
|
|
28
29
|
if (checkList) {
|
|
29
30
|
var checkBoxesList = checkList.querySelectorAll("ptc-checkbox");
|
|
30
31
|
if (checkBoxesList) {
|
|
@@ -35,6 +36,16 @@ export class PtcIconMinimize {
|
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
38
|
}
|
|
39
|
+
if (checkListModal) {
|
|
40
|
+
var checkBoxesListModal = checkListModal.querySelectorAll("ptc-checkbox");
|
|
41
|
+
if (checkBoxesListModal) {
|
|
42
|
+
checkBoxesListModal.forEach(item => {
|
|
43
|
+
if (item.shadowRoot.querySelector("label")) {
|
|
44
|
+
item.shadowRoot.querySelector("label").tabIndex = this.opened ? 0 : -1;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
38
49
|
}
|
|
39
50
|
getScrollHeight() {
|
|
40
51
|
let result = undefined;
|
|
@@ -7,7 +7,7 @@ export class PtcMinimizedNav {
|
|
|
7
7
|
this.navType = 'minimized-header';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, null, this.navType == 'minimized-header' ? (h("div", { class: "minimized-header" }, h("div", { class: "header" }, h("div", { class: "ptc-container" }, h("a", { class: "mini-navbar-logo", href: this.linkUrl, tabindex: "0" }, h("img", { src: this.imgSrc, alt: this.imgAlt })))))) : null, this.navType == 'minimized-footer' ? (h("div", { class: "ptc-min-footer mini-footer" }, h("div", { class: "min-footer-copyright-wrapper" }, h("ul", { class: "min-footer-nav-list min-footer-copyright-list" }, h("slot", null))))) : null));
|
|
10
|
+
return (h(Host, null, this.navType == 'minimized-header' ? (h("div", { class: "minimized-header mf-listen" }, h("div", { class: "header" }, h("div", { class: "ptc-container" }, h("a", { class: "mini-navbar-logo", href: this.linkUrl, tabindex: "0" }, h("img", { src: this.imgSrc, alt: this.imgAlt })))))) : null, this.navType == 'minimized-footer' ? (h("div", { class: "ptc-min-footer mini-footer" }, h("div", { class: "min-footer-copyright-wrapper" }, h("ul", { class: "min-footer-nav-list min-footer-copyright-list" }, h("slot", null))))) : null));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "ptc-minimized-nav"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -121,7 +121,7 @@ export class PtcModal {
|
|
|
121
121
|
let content;
|
|
122
122
|
let overlay;
|
|
123
123
|
let type = this.iframeUrl ? 'frame' : 'html';
|
|
124
|
-
let closebtn = (h("div", { class: "close" }, h("ptc-close-icon", { onClick: (e) => { e.preventDefault(); this.close(); } })));
|
|
124
|
+
let closebtn = (h("div", { class: "close" }, h("ptc-close-icon", { onClick: (e) => { e.preventDefault(); this.close(); }, onKeyPress: (e) => { e.preventDefault(); this.close(); } })));
|
|
125
125
|
if (this.iframeUrl) {
|
|
126
126
|
content = (h("iframe", { src: this.iframeUrl, frameBorder: 0, allowFullScreen: false, height: "100%", width: "100%", scrolling: "no", onLoad: this.resizeIframe }));
|
|
127
127
|
}
|
|
@@ -1757,22 +1757,30 @@ ptc-link, ptc-square-card,
|
|
|
1757
1757
|
.preloader-generic-form .form-block-1 {
|
|
1758
1758
|
border-radius: 4px;
|
|
1759
1759
|
border: 8px solid var(--color-gray-02);
|
|
1760
|
-
padding:
|
|
1760
|
+
padding: 28px 22px;
|
|
1761
|
+
margin-top: 32px;
|
|
1761
1762
|
margin-bottom: 118px;
|
|
1762
1763
|
display: block;
|
|
1763
1764
|
}
|
|
1765
|
+
@media only screen and (min-width: 768px) {
|
|
1766
|
+
.preloader-generic-form .form-block-1 {
|
|
1767
|
+
width: 512px;
|
|
1768
|
+
margin-left: auto;
|
|
1769
|
+
margin-right: auto;
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1764
1772
|
@media only screen and (min-width: 992px) {
|
|
1765
1773
|
.preloader-generic-form .form-block-1 {
|
|
1766
1774
|
display: none;
|
|
1767
1775
|
}
|
|
1768
1776
|
}
|
|
1769
1777
|
.preloader-generic-form .form-block-1 .form-block-skeleton {
|
|
1770
|
-
|
|
1778
|
+
margin-bottom: 17px;
|
|
1771
1779
|
}
|
|
1772
1780
|
.preloader-generic-form .form-block-2 {
|
|
1773
1781
|
border-radius: 4px;
|
|
1774
1782
|
border: 8px solid var(--color-gray-02);
|
|
1775
|
-
padding:
|
|
1783
|
+
padding: 28px 22px;
|
|
1776
1784
|
margin-bottom: 118px;
|
|
1777
1785
|
display: none;
|
|
1778
1786
|
}
|
|
@@ -1782,7 +1790,15 @@ ptc-link, ptc-square-card,
|
|
|
1782
1790
|
}
|
|
1783
1791
|
}
|
|
1784
1792
|
.preloader-generic-form .form-block-2 .form-block-skeleton {
|
|
1785
|
-
|
|
1793
|
+
margin-bottom: 17px;
|
|
1794
|
+
}
|
|
1795
|
+
@media only screen and (min-width: 992px) {
|
|
1796
|
+
.preloader-generic-form .grid-1 {
|
|
1797
|
+
padding-top: 53px;
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
.preloader-generic-form .jumbotron {
|
|
1801
|
+
background: #fff;
|
|
1786
1802
|
}
|
|
1787
1803
|
.preloader-generic-form .skeleton .skeleton-block.very-bold {
|
|
1788
1804
|
width: 60%;
|
|
@@ -1803,6 +1819,26 @@ ptc-link, ptc-square-card,
|
|
|
1803
1819
|
width: 60%;
|
|
1804
1820
|
}
|
|
1805
1821
|
}
|
|
1822
|
+
.preloader-generic-form .skeleton .skeleton-block.line-1 {
|
|
1823
|
+
width: 90%;
|
|
1824
|
+
}
|
|
1825
|
+
.preloader-generic-form .skeleton .skeleton-block.line-2 {
|
|
1826
|
+
width: 87%;
|
|
1827
|
+
}
|
|
1828
|
+
.preloader-generic-form .skeleton .skeleton-block.line-3 {
|
|
1829
|
+
width: 85%;
|
|
1830
|
+
}
|
|
1831
|
+
.preloader-generic-form .skeleton .skeleton-block.line-4 {
|
|
1832
|
+
width: 88%;
|
|
1833
|
+
}
|
|
1834
|
+
.preloader-generic-form .skeleton .skeleton-block.line-6 {
|
|
1835
|
+
width: 40%;
|
|
1836
|
+
}
|
|
1837
|
+
.preloader-generic-form .skeleton .skeleton-block.block-2 {
|
|
1838
|
+
height: 418px;
|
|
1839
|
+
width: auto;
|
|
1840
|
+
margin-top: 44px;
|
|
1841
|
+
}
|
|
1806
1842
|
|
|
1807
1843
|
.pdf-skeleton-preloader .jumbotron-sec {
|
|
1808
1844
|
background: #fff;
|
|
@@ -61,7 +61,7 @@ export class PtcPreloaderSection {
|
|
|
61
61
|
return (h("div", { class: "preloader-wrapper" }, h("div", { class: "preloader-value-led" }, h("div", { class: "hero-image" }), h("div", { class: "ptc-container content-container" }, h("div", { class: "content-container-child" }, h("div", { class: "is-grid has-col-gap-md" }, h("div", { class: "is-col-3-lg" }, h("div", { class: "skeleton container-child-1" }, h("div", { class: "is-grid block grid-1" }, h("div", { class: "is-col-12 is-placed-left" }, Array.from({ length: 8 }).map(() => (h("div", { class: "skeleton" }, h("div", { class: "skeleton-block thinnest-1" }), h("div", { class: "skeleton-block thinnest-1 long-4" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" })))))))), h("div", { class: "is-col-12 is-col-9-lg" }, h("div", { class: "skeleton container-child-2" }, h("div", { class: "is-grid block grid-top" }, h("div", { class: "is-col-12 is-placed-left" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block thin smallest left" }), h("div", { class: "skeleton-block thick long-1" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block bold long-2" }), h("div", { class: "skeleton-block bold long-1" }), h("div", { class: "skeleton-block bold long-3" })))), h("div", { class: "grid-top-1" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block block-1" }))), h("div", { class: "skeleton-block bold" }), h("div", { class: "skeleton-block bold long-2" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block thinnnest longer" }), h("div", { class: "skeleton-block thinnnest longer" }), h("div", { class: "skeleton-block thinnnest longest" }), h("div", { class: "skeleton-block thinnnest long" }), h("div", { class: "skeleton-block thinnnest long-4" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block bold" }), h("div", { class: "skeleton-block bold long-2" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block thinnnest longer" }), h("div", { class: "skeleton-block thinnnest longer" }), h("div", { class: "skeleton-block thinnnest longest" }), h("div", { class: "skeleton-block thinnnest long" }), h("div", { class: "skeleton-block thinnnest long-4" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("div", { class: "skeleton-block thinnnest longer" }), h("div", { class: "skeleton-block thinnnest longer" }), h("div", { class: "skeleton-block thinnnest longest" }), h("div", { class: "skeleton-block thinnnest long" }), h("div", { class: "skeleton-block thinnnest long-4" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("ptc-spacer", { breakpoint: "small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }))))), h("div", { class: "related-items" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "large" })))));
|
|
62
62
|
}
|
|
63
63
|
case 'generic-form-with-image': {
|
|
64
|
-
return (h("div", { class: "preloader-wrapper" }, h("div", { class: "ptc-container skeleton-jumbotron" }, h("div", { class: "is-grid has-no-row-gap has-col-gap-lg" }, h("div", { class: "is-col-12 is-col-8-lg" }, h("div", { class: "sekleton" }, h("div", { class: "skeleton-block thin short" }), h("div", { class: "skeleton-block thick" }), h("div", { class: "skeleton-block thick" }), h("ptc-spacer", { breakpoint: "small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "x-large" }), h("div", { class: "skeleton-block thin" }), h("div", { class: "skeleton-block thin medium" }), h("ptc-spacer", { breakpoint: "small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "x-large" }), h("div", { class: "cta-wrap" }, h("div", { class: "skeleton-block cta" }), h("div", { class: "skeleton-block cta" })))))), h("div", { class: "ptc-container
|
|
64
|
+
return (h("div", { class: "preloader-wrapper preloader-generic-form" }, h("div", { class: "jumbotron" }, h("div", { class: "ptc-container skeleton-jumbotron" }, h("div", { class: "is-grid has-no-row-gap has-col-gap-lg" }, h("div", { class: "is-col-12 is-col-8-lg" }, h("div", { class: "sekleton" }, h("div", { class: "skeleton-block thin short" }), h("div", { class: "skeleton-block thick" }), h("div", { class: "skeleton-block thick" }), h("ptc-spacer", { breakpoint: "small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "x-large" }), h("div", { class: "skeleton-block thin" }), h("div", { class: "skeleton-block thin medium" }), h("ptc-spacer", { breakpoint: "small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "x-large" }), h("div", { class: "cta-wrap" }, h("div", { class: "skeleton-block cta" }), h("div", { class: "skeleton-block cta" }))))))), h("div", { class: "ptc-container" }, h("div", { class: "is-grid block form-block-1" }, h("div", { class: "is-col-12" }, Array.from({ length: 7 }).map(() => (h("div", { class: "skeleton form-block-skeleton" }, h("div", { class: "skeleton-block bold" })))), h("div", { class: "skeleton" }, h("div", { class: "skeleton-block very-bold" })))), h("div", { class: "is-grid block grid-1" }, h("div", { class: "is-col-12-xs is-col-12-sm is-col-10-md is-col-7-lg" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block thin line-1" }), h("div", { class: "skeleton-block thin line-2" }), h("div", { class: "skeleton-block thin line-3" }), h("div", { class: "skeleton-block thin line-4" }), h("div", { class: "skeleton-block thin" }), h("div", { class: "skeleton-block thin line-6" }), h("ptc-spacer", { breakpoint: "small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "x-large" }), h("div", { class: "cta-wrap" }, h("div", { class: "skeleton-block cta" })), h("div", { class: "skeleton-block block-2" }))), h("div", { class: "is-col-1-lg" }), h("div", { class: "is-col-12-xs is-col-12-sm is-col-4-lg form-block-2" }, Array.from({ length: 7 }).map(() => (h("div", { class: "skeleton form-block-skeleton" }, h("div", { class: "skeleton-block bold" })))), h("div", { class: "skeleton" }, h("div", { class: "skeleton-block very-bold" })))))));
|
|
65
65
|
}
|
|
66
66
|
case 'pdf-skeleton': {
|
|
67
67
|
return (h("div", { class: "preloader-wrapper pdf-skeleton-preloader" }, h("div", { class: "jumbotron-sec" }, h("div", { class: "ptc-container skeleton-jumbotron" }, h("div", { class: "is-grid has-no-row-gap has-col-gap-lg" }, h("div", { class: "is-col-12 is-col-8-lg" }, h("div", { class: "sekleton" }, h("div", { class: "skeleton-block thin short" }), h("div", { class: "skeleton-block thick" }), h("div", { class: "skeleton-block thick" }), h("ptc-spacer", { breakpoint: "small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "x-large" }), h("div", { class: "skeleton-block thin" }), h("div", { class: "skeleton-block thin medium" }), h("ptc-spacer", { breakpoint: "small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "x-large" }), h("div", { class: "cta-wrap" }, h("div", { class: "skeleton-block cta" }))))))), h("div", { class: "ptc-container" }, h("div", { class: "section-1" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block line-1" }), h("div", { class: "skeleton-block line-2 thin" }), h("div", { class: "skeleton-block line-3 thin" }), h("div", { class: "skeleton-block line-4 thin" }))), h("div", { class: "pdf-area" }, h("div", { class: "pdf-section" }, h("div", { class: "top-border" }), h("div", { class: "pdf-body" }, h("div", { class: "skeleton" }, h("div", { class: "skeleton-block thick" }), h("div", { class: "skeleton-block thick" }), h("ptc-spacer", { breakpoint: "small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "x-large" }), h("div", { class: "skeleton-block thin" }), h("div", { class: "skeleton-block thin medium" }), h("ptc-spacer", { breakpoint: "small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "x-large" }), h("ptc-spacer", { breakpoint: "small", size: "large" }), h("ptc-spacer", { breakpoint: "x-small", size: "x-large" }), h("div", { class: "skeleton-block thick-block" }), h("div", { class: "skeleton-block thin" }), h("div", { class: "skeleton-block thin medium" }))))))));
|
|
@@ -368,7 +368,7 @@ export class PtcSelect {
|
|
|
368
368
|
return ValidationMessages[this.language][type];
|
|
369
369
|
}
|
|
370
370
|
getSelectClassName() {
|
|
371
|
-
let className = 'mdc-select mdc-select--outlined mdc-select--no-label';
|
|
371
|
+
let className = 'mdc-select mdc-select--outlined mdc-select--no-label mf-listen';
|
|
372
372
|
if (this.isRequired) {
|
|
373
373
|
className = `${className} mdc-select--required`;
|
|
374
374
|
}
|