@ptcwebops/ptcw-design 1.7.1 → 1.7.3
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_5.cjs.entry.js +218 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-back-to-top.cjs.entry.js +46 -0
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/ptc-para_2.cjs.entry.js +94 -0
- package/dist/cjs/ptc-picture.cjs.entry.js +154 -0
- package/dist/cjs/ptc-product-card.cjs.entry.js +33 -0
- package/dist/cjs/ptc-product-category.cjs.entry.js +21 -0
- package/dist/cjs/ptc-product-dropdown.cjs.entry.js +80 -0
- package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +23 -0
- package/dist/cjs/ptc-product-list.cjs.entry.js +151 -0
- package/dist/cjs/ptc-product-sidebar.cjs.entry.js +141 -0
- package/dist/cjs/ptc-sticky-section.cjs.entry.js +1 -1
- package/dist/cjs/ptc-sticky-title.cjs.entry.js +1 -1
- package/dist/cjs/ptc-tooltip.cjs.entry.js +106 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +1 -1
- package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +3 -2
- package/dist/collection/components/ptc-sticky-section/ptc-sticky-section.css +1 -1
- package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.css +5 -1
- package/dist/collection/components/ptc-title/ptc-title.css +5 -0
- package/dist/custom-elements/index.js +7 -6
- package/dist/esm/icon-asset_5.entry.js +210 -0
- package/dist/esm/{interfaces-7c0243be.js → interfaces-4caedd26.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/max-width-container_3.entry.js +1 -1
- package/dist/esm/ptc-back-to-top.entry.js +42 -0
- package/dist/esm/ptc-jumbotron.entry.js +1 -1
- package/dist/esm/ptc-para_2.entry.js +89 -0
- package/dist/esm/ptc-picture.entry.js +150 -0
- package/dist/esm/ptc-product-card.entry.js +29 -0
- package/dist/esm/ptc-product-category.entry.js +17 -0
- package/dist/esm/ptc-product-dropdown.entry.js +76 -0
- package/dist/esm/ptc-product-highlight-card.entry.js +19 -0
- package/dist/esm/ptc-product-list.entry.js +147 -0
- package/dist/esm/ptc-product-sidebar.entry.js +137 -0
- package/dist/esm/ptc-sticky-section.entry.js +1 -1
- package/dist/esm/ptc-sticky-title.entry.js +1 -1
- package/dist/esm/ptc-tooltip.entry.js +102 -0
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/{p-f1f1b19d.entry.js → p-116679f9.entry.js} +1 -1
- package/dist/ptcw-design/p-2bcb85cb.entry.js +1 -0
- package/dist/ptcw-design/p-341a4c39.entry.js +1 -0
- package/dist/ptcw-design/p-49dc9b68.entry.js +1 -0
- package/dist/ptcw-design/p-564f58cf.entry.js +1 -0
- package/dist/ptcw-design/{p-f4923de6.entry.js → p-577a1370.entry.js} +1 -1
- package/dist/ptcw-design/p-65513c45.entry.js +1 -0
- package/dist/ptcw-design/p-6e9eccfc.entry.js +1 -0
- package/dist/ptcw-design/{p-ee1183b2.js → p-711bcdad.js} +1 -1
- package/dist/ptcw-design/p-9a5ee2d5.entry.js +1 -0
- package/dist/ptcw-design/p-ba213813.entry.js +1 -0
- package/dist/ptcw-design/{p-e8c46d2e.entry.js → p-baabdb8a.entry.js} +1 -1
- package/dist/ptcw-design/p-d8ade68d.entry.js +1 -0
- package/dist/ptcw-design/p-e5a6f9df.entry.js +1 -0
- package/dist/ptcw-design/p-f86b2262.entry.js +1 -0
- package/dist/ptcw-design/p-fe0815f2.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +2 -2
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/icon-asset_16.cjs.entry.js +0 -1006
- package/dist/esm/icon-asset_16.entry.js +0 -987
- package/dist/ptcw-design/p-cd44eedb.entry.js +0 -1
- package/dist/ptcw-design/p-fe438f03.entry.js +0 -1
|
@@ -1,1006 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-88135a6b.js');
|
|
6
|
-
const interfaces = require('./interfaces-574e6df7.js');
|
|
7
|
-
|
|
8
|
-
const iconAssetCss = ".svg-inline--fa.sc-icon-asset,svg.sc-icon-asset:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa.sc-icon-asset{display:inline-block;font-size:inherit;height:1em;vertical-align:-.125em}.svg-inline--fa.fa-lg.sc-icon-asset{vertical-align:-.225em}.svg-inline--fa.fa-w-1.sc-icon-asset{width:.0625em}.svg-inline--fa.fa-w-2.sc-icon-asset{width:.125em}.svg-inline--fa.fa-w-3.sc-icon-asset{width:.1875em}.svg-inline--fa.fa-w-4.sc-icon-asset{width:.25em}.svg-inline--fa.fa-w-5.sc-icon-asset{width:.3125em}.svg-inline--fa.fa-w-6.sc-icon-asset{width:.375em}.svg-inline--fa.fa-w-7.sc-icon-asset{width:.4375em}.svg-inline--fa.fa-w-8.sc-icon-asset{width:.5em}.svg-inline--fa.fa-w-9.sc-icon-asset{width:.5625em}.svg-inline--fa.fa-w-10.sc-icon-asset{width:.625em}.svg-inline--fa.fa-w-11.sc-icon-asset{width:.6875em}.svg-inline--fa.fa-w-12.sc-icon-asset{width:.75em}.svg-inline--fa.fa-w-13.sc-icon-asset{width:.8125em}.svg-inline--fa.fa-w-14.sc-icon-asset{width:.875em}.svg-inline--fa.fa-w-15.sc-icon-asset{width:.9375em}.svg-inline--fa.fa-w-16.sc-icon-asset{width:1em}.svg-inline--fa.fa-w-17.sc-icon-asset{width:1.0625em}.svg-inline--fa.fa-w-18.sc-icon-asset{width:1.125em}.svg-inline--fa.fa-w-19.sc-icon-asset{width:1.1875em}.svg-inline--fa.fa-w-20.sc-icon-asset{width:1.25em}.svg-inline--fa.fa-pull-left.sc-icon-asset{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right.sc-icon-asset{margin-left:.3em;width:auto}.svg-inline--fa.fa-border.sc-icon-asset{height:1.5em}.svg-inline--fa.fa-li.sc-icon-asset{width:2em}.svg-inline--fa.fa-fw.sc-icon-asset{width:1.25em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers.sc-icon-asset{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset,.fa-layers-text.sc-icon-asset{display:inline-block;position:absolute;text-align:center}.fa-layers-text.sc-icon-asset{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset{background-color:#ff253a;border-radius:1em;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;height:1.5em;line-height:1;max-width:5em;min-width:1.5em;overflow:hidden;padding:.25em;right:0;text-overflow:ellipsis;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right.sc-icon-asset{bottom:0;right:0;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left.sc-icon-asset{bottom:0;left:0;right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right.sc-icon-asset{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left.sc-icon-asset{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg.sc-icon-asset{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs.sc-icon-asset{font-size:.75em}.fa-sm.sc-icon-asset{font-size:.875em}.fa-1x.sc-icon-asset{font-size:1em}.fa-2x.sc-icon-asset{font-size:2em}.fa-3x.sc-icon-asset{font-size:3em}.fa-4x.sc-icon-asset{font-size:4em}.fa-5x.sc-icon-asset{font-size:5em}.fa-6x.sc-icon-asset{font-size:6em}.fa-7x.sc-icon-asset{font-size:7em}.fa-8x.sc-icon-asset{font-size:8em}.fa-9x.sc-icon-asset{font-size:9em}.fa-10x.sc-icon-asset{font-size:10em}.fa-fw.sc-icon-asset{text-align:center;width:1.25em}.fa-ul.sc-icon-asset{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul.sc-icon-asset>li.sc-icon-asset{position:relative}.fa-li.sc-icon-asset{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border.sc-icon-asset{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left.sc-icon-asset{float:left}.fa-pull-right.sc-icon-asset{float:right}.fa.fa-pull-left.sc-icon-asset,.fab.fa-pull-left.sc-icon-asset,.fal.fa-pull-left.sc-icon-asset,.far.fa-pull-left.sc-icon-asset,.fas.fa-pull-left.sc-icon-asset{margin-right:.3em}.fa.fa-pull-right.sc-icon-asset,.fab.fa-pull-right.sc-icon-asset,.fal.fa-pull-right.sc-icon-asset,.far.fa-pull-right.sc-icon-asset,.fas.fa-pull-right.sc-icon-asset{margin-left:.3em}.fa-spin.sc-icon-asset{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse.sc-icon-asset{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical.sc-icon-asset{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset,.fa-flip-vertical.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\"}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset{-webkit-transform:scale(-1);transform:scale(-1)}.sc-icon-asset:root .fa-flip-both.sc-icon-asset,.sc-icon-asset:root .fa-flip-horizontal.sc-icon-asset,.sc-icon-asset:root .fa-flip-vertical.sc-icon-asset,.sc-icon-asset:root .fa-rotate-90.sc-icon-asset,.sc-icon-asset:root .fa-rotate-180.sc-icon-asset,.sc-icon-asset:root .fa-rotate-270.sc-icon-asset{-webkit-filter:none;filter:none}.fa-stack.sc-icon-asset{display:inline-block;height:2em;position:relative;width:2.5em}.fa-stack-1x.sc-icon-asset,.fa-stack-2x.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x.sc-icon-asset{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x.sc-icon-asset{height:2em;width:2.5em}.fa-inverse.sc-icon-asset{color:#fff}.sr-only.sc-icon-asset{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable.sc-icon-asset:active,.sr-only-focusable.sc-icon-asset:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.svg-inline--fa.sc-icon-asset .fa-primary.sc-icon-asset{fill:var(--fa-primary-color,currentColor);opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset{fill:var(--fa-secondary-color,currentColor)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset,.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-primary.sc-icon-asset{opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-secondary.sc-icon-asset{opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-primary.sc-icon-asset,.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-secondary.sc-icon-asset{fill:#000}.fad.fa-inverse.sc-icon-asset{color:#fff}icon-asset.sc-icon-asset{vertical-align:middle}svg.sc-icon-asset{transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}svg.micro.sc-icon-asset{width:calc(var(--ptc-font-size-x-small) / 2);height:calc(var(--ptc-font-size-x-small) / 2)}svg.xxx-small.sc-icon-asset{width:var(--ptc-font-size-xxx-small);height:var(--ptc-font-size-xxx-small)}svg.xx-small.sc-icon-asset{width:var(--ptc-font-size-xx-small);height:var(--ptc-font-size-xx-small)}svg.x-small.sc-icon-asset{width:var(--ptc-font-size-x-small);height:var(--ptc-font-size-x-small)}svg.small.sc-icon-asset{width:var(--ptc-font-size-small);height:var(--ptc-font-size-small)}svg.medium.sc-icon-asset{width:var(--ptc-font-size-medium);height:var(--ptc-font-size-medium)}svg.large.sc-icon-asset{width:var(--ptc-font-size-large);height:var(--ptc-font-size-large)}svg.x-large.sc-icon-asset{width:var(--ptc-font-size-x-large);height:var(--ptc-font-size-x-large)}svg.xx-large.sc-icon-asset{width:var(--ptc-font-size-xx-large);height:var(--ptc-font-size-xx-large)}svg.xxx-large.sc-icon-asset{width:var(--ptc-font-size-xxx-large);height:var(--ptc-font-size-xxx-large)}svg.xxxx-large.sc-icon-asset{width:var(--ptc-font-size-xxxx-large);height:var(--ptc-font-size-xxxx-large)}svg.white.sc-icon-asset{fill:var(--color-white)}svg.white.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.white.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.white.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-white)}svg.black.sc-icon-asset{fill:var(--color-black)}svg.black.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.black.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.black.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-black)}svg.ptc-green.sc-icon-asset{fill:var(--color-green-07)}svg.ptc-green.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.ptc-green.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.ptc-green.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-green-07)}svg.gray.sc-icon-asset{fill:var(--color-gray-06)}svg.gray.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.gray.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.gray.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-06)}svg.light-gray.sc-icon-asset{fill:var(--color-gray-05)}svg.light-gray.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.light-gray.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.light-gray.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-05)}svg.primary-gray.sc-icon-asset{fill:var(--color-gray-10)}svg.inherit.sc-icon-asset{fill:inherit}svg.inherit.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:inherit}";
|
|
9
|
-
|
|
10
|
-
const IconAsset = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
this.regularSprite = index.getAssetPath('./media/regular.svg');
|
|
14
|
-
this.solidSprite = index.getAssetPath('./media/solid.svg');
|
|
15
|
-
this.brandSprite = index.getAssetPath('./media/brands.svg');
|
|
16
|
-
this.ptcSprite = index.getAssetPath('./media/designer.svg');
|
|
17
|
-
this.name = undefined;
|
|
18
|
-
this.size = 'xx-small';
|
|
19
|
-
this.type = 'regular';
|
|
20
|
-
this.spin = '';
|
|
21
|
-
this.pulse = '';
|
|
22
|
-
this.color = 'default';
|
|
23
|
-
this.isMobileSelect = undefined;
|
|
24
|
-
this.injectedStyle = undefined;
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
const classMap = this.getCssClassMap();
|
|
28
|
-
if (this.type == 'brands') {
|
|
29
|
-
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.brandSprite}#${this.name}` }))));
|
|
30
|
-
}
|
|
31
|
-
else if (this.type == 'solid') {
|
|
32
|
-
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.solidSprite}#${this.name}` }))));
|
|
33
|
-
}
|
|
34
|
-
else if (this.type == 'ptc') {
|
|
35
|
-
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.ptcSprite}#${this.name}` }))));
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.regularSprite}#${this.name}` }))));
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
getCssClassMap() {
|
|
42
|
-
return {
|
|
43
|
-
[this.size]: true,
|
|
44
|
-
[this.spin]: true,
|
|
45
|
-
[this.pulse]: true,
|
|
46
|
-
[this.color]: true,
|
|
47
|
-
['ismobileselect']: this.isMobileSelect ? true : false
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
static get assetsDirs() { return ["media"]; }
|
|
51
|
-
};
|
|
52
|
-
IconAsset.style = iconAssetCss;
|
|
53
|
-
|
|
54
|
-
const listItemCss = ":host(.list-primary){display:block}:host(.flush-before) li::before{content:\"\" !important}:host(.breadcrumb){display:inline-block}:host(.breadcrumb) li{position:relative;display:inline-block;color:var(--color-white);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-xxx-small);line-height:var(--ptc-line-height-densest)}:host(.breadcrumb) li::before{content:\"/\";top:0;left:0}:host(.breadcrumb) li a.item-link{color:var(--color-white);font-weight:var(--ptc-font-weight-bold) !important;font-size:var(--ptc-font-size-xxx-small) !important;line-height:var(--ptc-line-height-densest);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:2px;text-decoration-thickness:1px;outline:none;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.breadcrumb) li a.item-link:hover{text-decoration:underline;text-decoration-color:var(--color-green-07);outline:none}:host(.list-green){display:block;margin-bottom:16px}:host(.list-green) li a{font-size:var(--ptc-font-size-xx-small);color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:1.5px;text-decoration-color:var(--color-green-04);font-weight:var(--ptc-font-weight-bold);transition:color var(--ptc-transition-medium) var(--ptc-ease-inout);line-height:var(--ptc-line-height-p);text-underline-offset:4px}:host(.list-green) li a:hover{color:var(--color-green-04)}:host(:not(.flush-before)) li::before{margin-right:2px}:host(.list-footer) li{display:inline-block;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-regular);font-style:normal;font-stretch:normal;line-height:var(--ptc-line-height-denser);letter-spacing:normal;color:var(--color-white);margin:0 0.5rem}:host(.list-footer) li a{color:var(--color-white-grey);border-bottom:1px solid transparent;display:inline-block;text-decoration:none}:host(.list-footer) li a:hover,:host(.list-footer) li a:focus,:host(.list-footer) li a:active{text-decoration:none;border-bottom:1px solid var(--color-green-06);color:var(--color-white-grey);transition:border var(--ptc-ease-inout) var(--ptc-transition-medium)}:host(.list-footer) li a:focus{outline:3px solid var(--color-blue-07);outline-offset:2px;border-radius:var(--ptc-border-radius-standard);text-decoration:none;border-color:transparent !important}:host(.white) li{color:var(--color-white)}:host(.white) li a.item-link{color:var(--color-white)}:host(.light-gray) li{color:var(--color-gray-01)}:host(.light-gray) li a.item-link{color:var(--color-gray-01)}:host(.primary-gray) li{color:var(--color-gray-10)}:host(.primary-gray) li a.item-link{color:var(--color-gray-10)}:host(.list-underline) li{color:var(--color-gray-10);list-style:none;text-decoration:underline 1px solid;text-underline-offset:2px;line-height:var(--ptc-line-height-p)}:host(.list-underline) li a{display:inline-block;padding:4px 0}:host(.list-underline) li a.item-link{color:var(--color-gray-10)}";
|
|
55
|
-
|
|
56
|
-
const ListItem = class {
|
|
57
|
-
constructor(hostRef) {
|
|
58
|
-
index.registerInstance(this, hostRef);
|
|
59
|
-
this.listType = 'list-primary';
|
|
60
|
-
this.linkHref = undefined;
|
|
61
|
-
this.flushBefore = false;
|
|
62
|
-
this.linkTarget = '_self';
|
|
63
|
-
this.color = undefined;
|
|
64
|
-
this.styles = undefined;
|
|
65
|
-
}
|
|
66
|
-
render() {
|
|
67
|
-
const classMap = this.getCssClassMap();
|
|
68
|
-
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("li", null, this.linkHref ? (index.h("a", Object.assign({ class: "item-link", target: this.linkTarget }, (this.linkHref ? { href: this.linkHref } : {})), index.h("slot", null))) : (index.h("slot", null)))));
|
|
69
|
-
}
|
|
70
|
-
getCssClassMap() {
|
|
71
|
-
return {
|
|
72
|
-
[this.listType]: true,
|
|
73
|
-
['flush-before']: this.flushBefore ? true : false,
|
|
74
|
-
[this.color]: !!this.color ? true : false,
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
ListItem.style = listItemCss;
|
|
79
|
-
|
|
80
|
-
const ptcBackToTopCss = ":host{display:block}:host .back-to-top-button{position:fixed;bottom:140px;right:24px;width:64px;height:58px;border:1px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);background-color:var(--color-white);color:var(--color-gray-10);font-size:12px;font-weight:var(--ptc-font-weight-semibold);outline:none;cursor:pointer;transition:opacity 0.3s ease-in-out;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:var(--ptc-shadow-small)}:host .back-to-top-button:hover{opacity:1}:host .arrow{margin-bottom:5px}";
|
|
81
|
-
|
|
82
|
-
const PtcBackToTop = class {
|
|
83
|
-
constructor(hostRef) {
|
|
84
|
-
index.registerInstance(this, hostRef);
|
|
85
|
-
this.handleScroll = () => {
|
|
86
|
-
const scrollY = window.pageYOffset || document.documentElement.scrollTop;
|
|
87
|
-
this.showButton = scrollY > window.innerHeight * 1;
|
|
88
|
-
};
|
|
89
|
-
this.showButton = false;
|
|
90
|
-
}
|
|
91
|
-
componentDidLoad() {
|
|
92
|
-
window.addEventListener('scroll', this.handleScroll);
|
|
93
|
-
}
|
|
94
|
-
disconnectedCallback() {
|
|
95
|
-
window.removeEventListener('scroll', this.handleScroll);
|
|
96
|
-
}
|
|
97
|
-
handleClick() {
|
|
98
|
-
this.scrollToTop();
|
|
99
|
-
}
|
|
100
|
-
scrollToTop() {
|
|
101
|
-
if ('scrollBehavior' in document.documentElement.style) {
|
|
102
|
-
// Smooth scrolling is supported
|
|
103
|
-
window.scrollTo({
|
|
104
|
-
top: 0,
|
|
105
|
-
behavior: 'smooth',
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
// Fallback for browsers that do not support smooth scrolling
|
|
110
|
-
window.scrollTo(0, 0);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
render() {
|
|
114
|
-
return (index.h(index.Host, null, this.showButton && (index.h("button", { class: 'back-to-top-button', title: "Back to Top" }, index.h("span", { class: 'arrow' }, index.h("svg", { width: "18", height: "12", viewBox: "0 0 18 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M15.5248 11.625L8.9998 5.1L2.4748 11.625L0.112305 9.2625L8.9998 0.375L17.8873 9.2625L15.5248 11.625Z", fill: "#323B42" }))), index.h("span", { class: 'text' }, "Back to Top")))));
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
PtcBackToTop.style = ptcBackToTopCss;
|
|
118
|
-
|
|
119
|
-
const ptcBreadcrumbCss = ":host{display:block;margin-top:var(--ptc-element-spacing-05)}::slotted(*){transform:translate(-2px, -2px)}:host(.left){display:flex;justify-content:flex-start;align-items:flex-end}:host(.center){display:flex;justify-content:center}:host(.right){display:flex;justify-content:flex-end}:host(.remove-top-margin){margin-top:0px !important}";
|
|
120
|
-
|
|
121
|
-
const PtcBreadcrumb = class {
|
|
122
|
-
constructor(hostRef) {
|
|
123
|
-
index.registerInstance(this, hostRef);
|
|
124
|
-
this.position = undefined;
|
|
125
|
-
this.removeTopMargin = false;
|
|
126
|
-
this.color = 'white';
|
|
127
|
-
this.styles = undefined;
|
|
128
|
-
}
|
|
129
|
-
render() {
|
|
130
|
-
const classMap = this.getCssClassMap();
|
|
131
|
-
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("list-item", { listType: "breadcrumb", flushBefore: true, "link-href": "https://www.ptc.com" }, index.h("icon-asset", { type: "ptc", size: "medium", name: "icon-home", color: this.color })), index.h("slot", null)));
|
|
132
|
-
}
|
|
133
|
-
getCssClassMap() {
|
|
134
|
-
return {
|
|
135
|
-
[this.position]: !!this.position && this.position !== undefined ? true : false,
|
|
136
|
-
['remove-top-margin']: this.removeTopMargin ? true : false,
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
PtcBreadcrumb.style = ptcBreadcrumbCss;
|
|
141
|
-
|
|
142
|
-
const ptcButtonCss = "button.disabled{pointer-events:none;opacity:0.6}button{background-color:var(--color-gray-10);display:inline-block;border-style:solid;border-width:1px;white-space:normal;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;padding:9.4px 17.5px;border-radius:var(--ptc-border-radius-standard)}button.animation-right ::slotted([slot=slot-after-text]),button.animation-right ::slotted([slot=slot-before-text]),button.animation-down ::slotted([slot=slot-after-text]),button.animation-down ::slotted([slot=slot-before-text]){transition:transform var(--ptc-transition-medium) var(--ptc-ease-inout);position:relative;display:inline-block}button:hover.animation-right ::slotted([slot=slot-after-text]),button:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}button:hover.animation-down ::slotted([slot=slot-after-text]),button:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}button span{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:bold;line-height:var(--ptc-line-height-densest)}button.left{text-align:left}button.right{text-align:right}button.center{text-align:center}.icon-left ::slotted([slot=slot-before-text]){margin-right:var(--ptc-element-spacing-01)}.icon-right ::slotted([slot=slot-after-text]){margin-left:var(--ptc-element-spacing-01)}.blackgrey{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-gray-10);background-image:linear-gradient(285deg, var(--color-gray-10) 155%, var(--color-gray-07) 62%)}.blackgrey:hover{box-shadow:var(--ptc-shadow-x-large)}.blackgrey span{color:var(--color-white)}.turtlegreen{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-green-07);background-image:linear-gradient(285deg, var(--color-green-07) 155%, var(--color-green-07) 62%)}.turtlegreen:hover{box-shadow:var(--ptc-shadow-x-large)}.turtlegreen span{color:var(--color-white)}.offwhite{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-gray-10);background-image:linear-gradient(to right, var(--color-white), var(--color-gray-02), var(--color-gray-01))}.offwhite:hover{box-shadow:var(--ptc-shadow-x-large)}.offwhite span{color:var(--color-gray-10)}.legacy-green{margin-left:10px;padding:10px 20px;margin-bottom:var(--ptc-element-spacing-01);margin-top:var(--ptc-element-spacing-01);box-shadow:var(--ptc-shadow-large);border:solid 2.5px var(--color-green-08);background-image:linear-gradient(to right, var(--color-green-06), var(--color-green-08))}.legacy-green:after{position:absolute;content:\"\";top:-1px;left:0;bottom:0;right:0;width:100%;height:103%;background-image:linear-gradient(to right, var(--color-green-08), var(--color-green-06));opacity:0;transition:opacity var(--ptc-transition-x-slow) var(--ptc-ease-inout);border-radius:2px}.legacy-green:hover{box-shadow:var(--ptc-shadow-x-large)}.legacy-green:hover span{color:var(--color-white)}.legacy-green:hover:after{opacity:1}.legacy-green span{font-family:var(--ptc-font-secondary-latin);color:var(--color-white);z-index:100;position:relative;text-transform:uppercase;font-weight:var(--ptc-font-weight-bold);letter-spacing:var(--ptc-letter-spacing-normal);font-size:var(--ptc-font-size-x-small)}@media only screen and (min-width: 768px){.legacy-green span{font-size:var(--ptc-font-size-small);letter-spacing:var(--ptc-letter-spacing-loose)}}.legacy-green icon-asset{display:inline}a{border-style:solid;border-width:1px;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding:9.4px 17.5px;border-radius:var(--ptc-border-radius-standard);display:inline-block;position:relative}a.animation-right ::slotted([slot=slot-after-text]),a.animation-right ::slotted([slot=slot-before-text]),a.animation-down ::slotted([slot=slot-after-text]),a.animation-down ::slotted([slot=slot-before-text]){transition:all var(--ptc-ease-inout) var(--ptc-transition-medium);position:relative;display:inline-block;margin-left:5px}a:hover.animation-right ::slotted([slot=slot-after-text]),a:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}a:hover.animation-down ::slotted([slot=slot-after-text]),a:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}a.left{text-align:left}a.right{text-align:right}a.center{text-align:center}.nav{font-family:var(--ptc-font-latin);background-color:var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);border:1px solid var(--color-white);border-bottom-style:solid;border-bottom-width:1px;box-sizing:border-box;color:var(--color-white);display:inline-block;font-size:var(--ptc-font-size-xx-small);font-stretch:100%;font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-loose);list-style:none;padding:3px var(--ptc-element-spacing-04);position:relative;text-align:center;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;transition:background-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.nav:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}.nav:hover{background-color:var(--color-gray-12)}.ptc-primary,.ptc-quaternary,.ptc-secondary,.ptc-tertiary,.icon-toggle{padding:var(--ptc-font-size-xx-small) var(--ptc-font-size-medium);transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium);line-height:20px}.ptc-primary.disabled,.ptc-quaternary.disabled,.ptc-secondary.disabled,.ptc-tertiary.disabled,.icon-toggle.disabled{pointer-events:none;border-color:var(--color-gray-03);background:var(--color-gray-02)}.ptc-primary.disabled span,.ptc-quaternary.disabled span,.ptc-secondary.disabled span,.ptc-tertiary.disabled span,.icon-toggle.disabled span{color:var(--color-gray-03)}.ptc-primary.disabled ::slotted([slot=slot-after-text]),.ptc-quaternary.disabled ::slotted([slot=slot-after-text]),.ptc-secondary.disabled ::slotted([slot=slot-after-text]),.ptc-tertiary.disabled ::slotted([slot=slot-after-text]),.icon-toggle.disabled ::slotted([slot=slot-after-text]){fill:var(--color-gray-03) !important}.ptc-primary:focus,.ptc-quaternary:focus,.ptc-secondary:focus,.ptc-tertiary:focus,.icon-toggle:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}.ptc-primary span,.ptc-quaternary span,.ptc-secondary span,.ptc-tertiary span,.icon-toggle span{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-densest);letter-spacing:normal}.ptc-primary{background:var(--color-gray-12);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-primary:hover{background-color:var(--color-gray-10)}.ptc-primary:active{background-color:var(--color-black)}.ptc-primary span{color:var(--color-white)}.ptc-primary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-secondary{background:var(--color-gray-12);border:2px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-standard)}.ptc-secondary:hover{background-color:var(--color-gray-10)}.ptc-secondary:active{background-color:var(--color-black)}.ptc-secondary span{color:var(--color-white)}.ptc-secondary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-tertiary{background:var(--color-white);border:2px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard)}.ptc-tertiary:hover{background-color:var(--color-gray-02)}.ptc-tertiary:active{background-color:var(--color-gray-03)}.ptc-tertiary span{color:var(--color-gray-10)}.ptc-tertiary ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.ptc-quaternary{background:var(--color-green-07);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-quaternary:hover{background-color:var(--color-green-08)}.ptc-quaternary:active{background-color:var(--color-green-09)}.ptc-quaternary span{color:var(--color-white)}.ptc-quaternary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.icon-toggle{background:var(--color-white);border:1px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);padding:0;height:2.125rem;width:2.125rem;box-shadow:var(--ptc-shadow-medium)}.icon-toggle:hover{background-color:var(--color-gray-02)}.icon-toggle:active{background-color:var(--color-gray-03)}.icon-toggle.active{background-color:var(--color-gray-04)}.icon-toggle.active:hover{background-color:var(--color-gray-05)}.icon-toggle.active:active{background-color:var(--color-gray-03)}.icon-toggle:focus{outline:2px solid var(--color-blue-07);outline-offset:1px}.icon-toggle span{color:var(--color-gray-10);padding:0}.icon-toggle ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.icon-toggle ::slotted(icon-asset){display:block;margin:auto;height:18px;width:18px}.clear-search{border:none;padding:0px;line-height:var(----ptc-line-height-densest);background-color:transparent}.clear-search:hover{text-decoration:underline;text-decoration-color:var(--color-white)}.clear-search span{color:var(--color-white);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-x-small);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}";
|
|
143
|
-
|
|
144
|
-
const PtcButton = class {
|
|
145
|
-
constructor(hostRef) {
|
|
146
|
-
index.registerInstance(this, hostRef);
|
|
147
|
-
this.clickEvent = index.createEvent(this, "clickEvent", 7);
|
|
148
|
-
this.disabled = false;
|
|
149
|
-
this.active = false;
|
|
150
|
-
this.type = 'button';
|
|
151
|
-
this.color = 'ptc-primary';
|
|
152
|
-
this.iconAnimation = '';
|
|
153
|
-
this.iconPosition = 'icon-right';
|
|
154
|
-
this.linkHref = undefined;
|
|
155
|
-
this.linkTitle = undefined;
|
|
156
|
-
this.target = '_self';
|
|
157
|
-
this.rel = undefined;
|
|
158
|
-
this.tabNav = 0;
|
|
159
|
-
this.styles = undefined;
|
|
160
|
-
this.textAlign = undefined;
|
|
161
|
-
}
|
|
162
|
-
clickEventHandler() {
|
|
163
|
-
this.clickEvent.emit();
|
|
164
|
-
}
|
|
165
|
-
render() {
|
|
166
|
-
const classMap = this.getCssClassMap();
|
|
167
|
-
const Tag = !!this.linkHref ? 'a' : 'button';
|
|
168
|
-
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h(Tag, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.linkHref ? { title: this.linkTitle ? this.linkTitle : this.linkHref } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 })), index.h("span", null, index.h("slot", { name: "slot-before-text" }), index.h("slot", null), index.h("slot", { name: "slot-after-text" })))));
|
|
169
|
-
}
|
|
170
|
-
getCssClassMap() {
|
|
171
|
-
return {
|
|
172
|
-
[this.color]: true,
|
|
173
|
-
[this.iconAnimation]: true,
|
|
174
|
-
[this.iconPosition]: true,
|
|
175
|
-
['disabled']: this.disabled ? true : false,
|
|
176
|
-
['active']: this.active ? true : false,
|
|
177
|
-
[this.textAlign]: true
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
PtcButton.style = ptcButtonCss;
|
|
182
|
-
|
|
183
|
-
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}";
|
|
184
|
-
|
|
185
|
-
const PtcPara = class {
|
|
186
|
-
constructor(hostRef) {
|
|
187
|
-
index.registerInstance(this, hostRef);
|
|
188
|
-
this.fontSize = 'x-small';
|
|
189
|
-
this.fontWeight = 'w-4';
|
|
190
|
-
this.paraStyle = 'default';
|
|
191
|
-
this.paraColor = 'primary-grey';
|
|
192
|
-
this.paraLineH = 'line-height-normal';
|
|
193
|
-
this.paraMargin = undefined;
|
|
194
|
-
this.paraAlign = undefined;
|
|
195
|
-
this.ellipsisLineCutoff = undefined;
|
|
196
|
-
this.paraZIndex = undefined;
|
|
197
|
-
this.styles = undefined;
|
|
198
|
-
}
|
|
199
|
-
render() {
|
|
200
|
-
const classMap = this.getCssClassMap();
|
|
201
|
-
const colorClass = this.addWhiteClass();
|
|
202
|
-
const cutOff = this.getLineCuttoff();
|
|
203
|
-
return (index.h(index.Host, { class: `${colorClass} ${this.paraZIndex}` }, this.styles && index.h("style", null, this.styles), index.h("p", { class: classMap, part: "part-para", style: cutOff }, index.h("slot", null))));
|
|
204
|
-
}
|
|
205
|
-
getCssClassMap() {
|
|
206
|
-
return {
|
|
207
|
-
[this.fontSize]: true,
|
|
208
|
-
[this.fontWeight]: true,
|
|
209
|
-
[this.paraStyle]: true,
|
|
210
|
-
[this.paraMargin]: !!this.paraMargin ? true : false,
|
|
211
|
-
[this.paraColor]: true,
|
|
212
|
-
[this.paraLineH]: true,
|
|
213
|
-
[this.paraAlign]: !!this.paraAlign ? true : false,
|
|
214
|
-
['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
//WEB-2392
|
|
218
|
-
addWhiteClass() {
|
|
219
|
-
if (this.paraColor == 'white') {
|
|
220
|
-
return {
|
|
221
|
-
[this.paraColor]: true,
|
|
222
|
-
};
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
getLineCuttoff() {
|
|
226
|
-
let result;
|
|
227
|
-
if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
|
|
228
|
-
result = {
|
|
229
|
-
['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
return result;
|
|
233
|
-
}
|
|
234
|
-
get el() { return index.getElement(this); }
|
|
235
|
-
};
|
|
236
|
-
PtcPara.style = ptcParaCss;
|
|
237
|
-
|
|
238
|
-
const ptcPictureCss = ":host{display:block;overflow:hidden}:host .inline{display:inline}:host .inline-block{display:inline-block}:host .block{display:block}:host(.relative){position:relative}:host(.static){position:static}:host(.absoltue){position:absolute}img{max-width:100%}.cover{object-fit:cover}.fill{object-fit:fill}.contain{object-fit:contain}.scale-down{object-fit:scale-down}.none{object-fit:none}.initial{object-fit:initial}.inherit{object-fit:inherit}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.is-full-height{height:100%}.is-full-width{width:100%}:host(.left){text-align:left}:host(.right){text-align:right}:host(.center){text-align:center}";
|
|
239
|
-
|
|
240
|
-
const PtcPicture = class {
|
|
241
|
-
constructor(hostRef) {
|
|
242
|
-
index.registerInstance(this, hostRef);
|
|
243
|
-
this.src = undefined;
|
|
244
|
-
this.alt = 'image';
|
|
245
|
-
this.sizeXs = '510x340';
|
|
246
|
-
this.sizeSm = '1240x496';
|
|
247
|
-
this.sizeMd = '1366x500';
|
|
248
|
-
this.sizeLg = '1920x1080';
|
|
249
|
-
this.oldSrc = undefined;
|
|
250
|
-
this.imagePosition = 'static';
|
|
251
|
-
this.borderRadius = undefined;
|
|
252
|
-
this.height = undefined;
|
|
253
|
-
this.width = undefined;
|
|
254
|
-
this.objectFit = 'cover';
|
|
255
|
-
this.isFullHeight = false;
|
|
256
|
-
this.isFullWidth = false;
|
|
257
|
-
this.styles = undefined;
|
|
258
|
-
this.imageAlignment = 'left';
|
|
259
|
-
this.maxWidth = undefined;
|
|
260
|
-
this.displayImage = 'block';
|
|
261
|
-
}
|
|
262
|
-
WindowResize() {
|
|
263
|
-
this.addIntersectionObserver();
|
|
264
|
-
}
|
|
265
|
-
componentDidLoad() {
|
|
266
|
-
this.addIntersectionObserver();
|
|
267
|
-
}
|
|
268
|
-
componentWillUpdate() {
|
|
269
|
-
if (this.src !== this.oldSrc) {
|
|
270
|
-
this.addIntersectionObserver();
|
|
271
|
-
}
|
|
272
|
-
this.oldSrc = this.src;
|
|
273
|
-
}
|
|
274
|
-
//lazy-loading
|
|
275
|
-
addIntersectionObserver() {
|
|
276
|
-
if (!this.src) {
|
|
277
|
-
return;
|
|
278
|
-
}
|
|
279
|
-
if ('IntersectionObserver' in window) {
|
|
280
|
-
let lazyLoadImages = new IntersectionObserver(entries => {
|
|
281
|
-
entries.forEach(entry => {
|
|
282
|
-
if (entry.isIntersecting) {
|
|
283
|
-
const image = this.el.shadowRoot.querySelector('img');
|
|
284
|
-
image.src = this.setResponsiveBg();
|
|
285
|
-
lazyLoadImages.unobserve(image);
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
});
|
|
289
|
-
let tempImg = this.el.shadowRoot.querySelector('img');
|
|
290
|
-
if (tempImg) {
|
|
291
|
-
lazyLoadImages.observe(tempImg);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
else {
|
|
295
|
-
// fall back to setTimeout for Safari and IE
|
|
296
|
-
setTimeout(() => {
|
|
297
|
-
const image = this.el.shadowRoot.querySelector('img');
|
|
298
|
-
image.src = this.setResponsiveBg();
|
|
299
|
-
image.onload = () => {
|
|
300
|
-
image.removeAttribute('data-src');
|
|
301
|
-
console.log('loaded fallback');
|
|
302
|
-
};
|
|
303
|
-
}, 5000);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
//responsive image
|
|
307
|
-
setResponsiveBg() {
|
|
308
|
-
// Define local variables
|
|
309
|
-
let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
310
|
-
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
311
|
-
// Set current variables
|
|
312
|
-
el = backgrounds[i];
|
|
313
|
-
elData = el.getAttribute('data-' + currentBreakpoint);
|
|
314
|
-
if (elData !== null) {
|
|
315
|
-
return elData;
|
|
316
|
-
}
|
|
317
|
-
else {
|
|
318
|
-
if (typeof console == 'object') {
|
|
319
|
-
console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
render() {
|
|
325
|
-
const classMap = this.getCssClassMap();
|
|
326
|
-
const classMapHost = this.getCssClassMapHost();
|
|
327
|
-
return (index.h(index.Host, { class: classMapHost }, this.styles && index.h("style", null, this.styles), index.h("img", Object.assign({ class: classMap, "data-xs": !!this.sizeXs ? `${this.src}:${this.sizeXs}` : `${this.src}`, "data-sm": !!this.sizeSm ? `${this.src}:${this.sizeSm}` : `${this.src}`, "data-md": !!this.sizeMd ? `${this.src}:${this.sizeMd}` : `${this.src}`, "data-lg": !!this.sizeLg ? `${this.src}:${this.sizeLg}` : `${this.src}` }, (!!this.width ? { width: this.width } : {}), (!!this.height ? { height: this.height } : {}), { alt: this.alt, style: Object.assign({}, (!!this.maxWidth ? { maxWidth: this.maxWidth + 'px' } : {})) })), index.h("slot", null)));
|
|
328
|
-
}
|
|
329
|
-
getCurrentBreakPoints() {
|
|
330
|
-
// Define local variables
|
|
331
|
-
let doc = window.document, temp = doc.createElement('div'), env;
|
|
332
|
-
// Append test node
|
|
333
|
-
doc.body.appendChild(temp);
|
|
334
|
-
// Loop through breakpoints
|
|
335
|
-
for (let i = interfaces.ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
|
|
336
|
-
env = interfaces.ResponsivePictureVariables.envs[i];
|
|
337
|
-
// Add classes
|
|
338
|
-
temp.className = 'hidden-' + env;
|
|
339
|
-
// Found breakpoint
|
|
340
|
-
if (temp.offsetParent === null) {
|
|
341
|
-
// Remove our test node
|
|
342
|
-
doc.body.removeChild(temp);
|
|
343
|
-
// Return current breakpoint
|
|
344
|
-
return env;
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
// Breakpoint not found, try fallback
|
|
348
|
-
doc.body.removeChild(temp);
|
|
349
|
-
return this.getFallbackBreakpoint();
|
|
350
|
-
}
|
|
351
|
-
getFallbackBreakpoint() {
|
|
352
|
-
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
353
|
-
return 'lg';
|
|
354
|
-
}
|
|
355
|
-
else if (window.matchMedia('(min-width: 768px)').matches) {
|
|
356
|
-
return 'md';
|
|
357
|
-
}
|
|
358
|
-
else if (window.matchMedia('(min-width: 576px)').matches) {
|
|
359
|
-
return 'sm';
|
|
360
|
-
}
|
|
361
|
-
else {
|
|
362
|
-
return 'xs';
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
getCssClassMap() {
|
|
366
|
-
return {
|
|
367
|
-
[this.borderRadius]: this.borderRadius ? true : false,
|
|
368
|
-
[this.objectFit]: true,
|
|
369
|
-
[this.isFullHeight ? 'is-full-height' : 'is-normal-height']: true,
|
|
370
|
-
[this.isFullWidth ? 'is-full-width' : 'is-normal-width']: true,
|
|
371
|
-
[this.displayImage]: true
|
|
372
|
-
};
|
|
373
|
-
}
|
|
374
|
-
getCssClassMapHost() {
|
|
375
|
-
return {
|
|
376
|
-
[this.imagePosition]: true,
|
|
377
|
-
[this.imageAlignment]: true,
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
|
-
get el() { return index.getElement(this); }
|
|
381
|
-
};
|
|
382
|
-
PtcPicture.style = ptcPictureCss;
|
|
383
|
-
|
|
384
|
-
const ptcProductCardCss = ":host{display:block;background-color:var(--color-white);padding-top:var(--ptc-layout-spacing-03);border-radius:var(--ptc-border-radius-standard);margin-bottom:var(--ptc-layout-spacing-03)}:host .card-wrap{display:flex;align-items:center}:host .card-wrap ptc-picture{display:none}@media only screen and (min-width: 768px){:host .card-wrap ptc-picture{display:block;margin-left:var(--ptc-element-spacing-06);min-width:38px;max-width:38px}}:host .card-wrap .content{padding:0 32px 24px 32px}@media only screen and (min-width: 768px){:host .card-wrap .content{padding:0 24px 24px 44px}}@media only screen and (min-width: 1200px){:host .card-wrap .content{display:flex;align-items:center}}:host .card-wrap .content .cta-wrap{margin-left:0;margin-top:24px;min-width:146px;text-align:left}@media only screen and (min-width: 1200px){:host .card-wrap .content .cta-wrap{margin-top:0px;margin-left:44px;text-align:right}}:host .toggle-btn{padding:16px;text-align:center;border-top:1px solid var(--color-gray-04);display:block;cursor:pointer}:host .toggle-btn svg{margin-right:var(--ptc-element-spacing-03);vertical-align:middle;margin-top:-2px}:host .toggle-btn .toggleText::before{content:\"\";display:inline-block;width:18px;height:18px;background-image:url('data:image/svg+xml,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"18\" height=\"18\" rx=\"4\" fill=\"%2300890B\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9.953 4.23535H8.04712V8.04712H4.23535V9.953H8.04712V13.7648H9.953V9.953H13.7648V8.04712H9.953V4.23535Z\" fill=\"white\"/></svg>');margin-right:12px;vertical-align:middle;margin-top:-2px}:host .product-highlights-container{padding:0px 20px 16px 20px;display:none}:host(.has-opened) .toggleText::before{background-image:url('data:image/svg+xml,<svg width=\"19\" height=\"18\" viewBox=\"0 0 19 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect x=\"0.632812\" width=\"17.9798\" height=\"18\" rx=\"4\" fill=\"%2300890B\"/><g clip-path=\"url(%23clip0_220_1413)\"><path d=\"M4.86328 7.98749V10.0125H14.382V7.98749H4.86328Z\" fill=\"white\"/></g><defs><clipPath id=\"clip0_220_1413\"><rect width=\"9.51872\" height=\"9.52941\" fill=\"white\" transform=\"translate(4.86328 4.23529)\"/></clipPath></defs></svg>')}:host(.has-opened) .product-highlights-container{display:block}";
|
|
385
|
-
|
|
386
|
-
const PtcProductCard = class {
|
|
387
|
-
constructor(hostRef) {
|
|
388
|
-
index.registerInstance(this, hostRef);
|
|
389
|
-
this.cardTitle = undefined;
|
|
390
|
-
this.cardImage = undefined;
|
|
391
|
-
this.cardImageAltText = undefined;
|
|
392
|
-
this.cardDescription = undefined;
|
|
393
|
-
this.cardCtaText = undefined;
|
|
394
|
-
this.toggleCtaTitle = undefined;
|
|
395
|
-
this.isOpen = false;
|
|
396
|
-
this.isSlotEmpty = undefined;
|
|
397
|
-
}
|
|
398
|
-
togglePanel() {
|
|
399
|
-
this.isOpen = !this.isOpen;
|
|
400
|
-
}
|
|
401
|
-
render() {
|
|
402
|
-
return (index.h(index.Host, null, index.h("div", { class: "card-wrap" }, this.cardImage &&
|
|
403
|
-
index.h("ptc-picture", { alt: "image-test", src: this.cardImage, "display-image": "inline-block", width: '38' }), index.h("div", { class: "content" }, index.h("div", null, index.h("ptc-title", { type: 'h3', upperline: "no-upperline", "title-size": "medium", "title-weight": "w-8", "title-margin": 'margin-flush', "title-display": "block" }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "3", "z-index": "z-999", description: this.cardTitle, position: "bottom", width: 'full-width' })), index.h("ptc-spacer", { size: "x-small" }), index.h("ptc-spacer", { size: "xx-small", breakpoint: "x-small" }), index.h("ptc-para", { "font-size": "x-small", "para-margin": "margin-flush", "para-line-h": "line-height-densest", "para-z-index": "z-auto" }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "16", "z-index": "z-999", description: this.cardDescription, position: "bottom", width: 'full-width' }))), index.h("div", { class: 'cta-wrap' }, index.h("slot", { name: "cta" })))), this.toggleCtaTitle &&
|
|
404
|
-
index.h("ptc-para", { class: "toggle-btn", "font-size": "small", "para-margin": "margin-flush", "para-line-h": "line-height-p", "para-z-index": "z-auto", onClick: () => this.togglePanel() }, index.h("span", { class: 'toggleText' }, this.toggleCtaTitle)), index.h("div", { class: 'product-highlights-container' }, index.h("slot", null))));
|
|
405
|
-
}
|
|
406
|
-
get hostElement() { return index.getElement(this); }
|
|
407
|
-
};
|
|
408
|
-
PtcProductCard.style = ptcProductCardCss;
|
|
409
|
-
|
|
410
|
-
const ptcProductCategoryCss = ":host{display:block;padding-bottom:var(--ptc-layout-spacing-03)}";
|
|
411
|
-
|
|
412
|
-
const PtcProductCategory = class {
|
|
413
|
-
constructor(hostRef) {
|
|
414
|
-
index.registerInstance(this, hostRef);
|
|
415
|
-
this.categoryTitle = undefined;
|
|
416
|
-
this.categoryDescription = undefined;
|
|
417
|
-
}
|
|
418
|
-
render() {
|
|
419
|
-
return (index.h(index.Host, null, index.h("ptc-title", { type: "h2", upperline: "no-upperline", "title-margin": "margin-flush", "title-size": "xx-large" }, index.h("ptc-tooltip", { "text-display": "inline", "text-lines": "4", "z-index": "z-999", description: this.categoryTitle, position: "bottom", width: 'full-width' })), index.h("ptc-spacer", { size: "x-small" }), index.h("ptc-spacer", { size: "x-small", breakpoint: "x-small" }), index.h("ptc-para", { "para-margin": "margin-flush", "font-size": "small", "para-line-h": "line-height-p", "font-weight": "w-5", "para-z-index": "z-auto" }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "9", "z-index": "z-999", description: this.categoryDescription, position: "bottom", width: 'full-width' })), index.h("ptc-spacer", { size: "large" }), index.h("slot", null)));
|
|
420
|
-
}
|
|
421
|
-
};
|
|
422
|
-
PtcProductCategory.style = ptcProductCategoryCss;
|
|
423
|
-
|
|
424
|
-
const ptcProductDropdownCss = ":host{display:block;margin-top:4px;background-color:var(--color-white)}:host .hidden{display:none}:host .dropdown{position:relative;display:inline-block;width:100%;font-size:16px}:host .dropdown .dropdown-toggle{padding:0.5rem;border:1px solid var(--color-gray-03);background-color:var(--color-white);cursor:pointer;display:flex;align-items:center;justify-content:space-between;min-height:34px;box-sizing:border-box}:host .dropdown .dropdown-toggle .dropdown-placeholder{font-size:14px;color:var(--color-gray-07)}:host .caret{display:inline-block;vertical-align:middle}:host .dropdown-menu{position:absolute;top:100%;left:0;min-width:10rem;border:1px solid var(--color-gray-03);background-color:var(--color-white);box-shadow:0px 2px 4px rgba(35, 43, 45, 0.3);z-index:105;max-height:400px;overflow-y:auto}:host .dropdown-menu::-webkit-scrollbar{width:5px}:host .dropdown-menu::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3)}:host .dropdown-menu::-webkit-scrollbar-thumb{background-color:var(--color-gray-05);outline:1px solid var(--color-gray-05)}:host .checkbox-label{display:flex;align-items:flex-start;padding:6px 16px;cursor:pointer;font-size:14px}:host .checkbox-label:first-child{padding-top:20px}:host .checkbox-label:last-child{padding-bottom:20px}:host .checkbox-label input[type=checkbox]{min-width:20px;margin-right:8px;width:20px;height:20px;margin-top:0}";
|
|
425
|
-
|
|
426
|
-
const PtcProductDropdown = class {
|
|
427
|
-
constructor(hostRef) {
|
|
428
|
-
index.registerInstance(this, hostRef);
|
|
429
|
-
this.selectedValues = index.createEvent(this, "selectedValues", 7);
|
|
430
|
-
this.dropdownTouched = index.createEvent(this, "dropdownTouched", 7);
|
|
431
|
-
this.internalOptions = undefined;
|
|
432
|
-
this.newOptions = undefined;
|
|
433
|
-
this.selectedOptions = [];
|
|
434
|
-
this.placeholder = undefined;
|
|
435
|
-
this.isOpen = false;
|
|
436
|
-
}
|
|
437
|
-
parseOptions() {
|
|
438
|
-
let options = Array.from(this.hostElement.querySelectorAll('span'));
|
|
439
|
-
if (options) {
|
|
440
|
-
this.internalOptions = options.map((option) => {
|
|
441
|
-
return option.textContent;
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
toggleDropdown() {
|
|
446
|
-
this.isOpen = !this.isOpen;
|
|
447
|
-
this.dropdownTouched.emit({
|
|
448
|
-
'sender': this,
|
|
449
|
-
'isOpen': this.isOpen
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
handleSearchResult(event) {
|
|
453
|
-
const { sender, searchTerm } = event.detail;
|
|
454
|
-
if (sender) {
|
|
455
|
-
if (searchTerm === "") {
|
|
456
|
-
this.selectedOptions = [];
|
|
457
|
-
this.isOpen = false;
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
handleinputChanged(event) {
|
|
462
|
-
const { sender } = event.detail;
|
|
463
|
-
if (sender) {
|
|
464
|
-
this.selectedOptions = [];
|
|
465
|
-
this.isOpen = false;
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
handleCheckboxChange(option) {
|
|
469
|
-
const index = this.selectedOptions.indexOf(option);
|
|
470
|
-
if (index > -1) {
|
|
471
|
-
this.selectedOptions.splice(index, 1);
|
|
472
|
-
//console.log(this.selectedOptions);
|
|
473
|
-
this.selectedValues.emit({
|
|
474
|
-
'sender': this,
|
|
475
|
-
'selectedOptions': this.selectedOptions
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
else {
|
|
479
|
-
this.selectedOptions.push(option);
|
|
480
|
-
//console.log(this.selectedOptions);
|
|
481
|
-
this.selectedValues.emit({
|
|
482
|
-
'sender': this,
|
|
483
|
-
'selectedOptions': this.selectedOptions
|
|
484
|
-
});
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
componentWillLoad() {
|
|
488
|
-
this.parseOptions();
|
|
489
|
-
}
|
|
490
|
-
render() {
|
|
491
|
-
return (index.h(index.Host, null, index.h("div", { class: "dropdown" }, index.h("div", { class: "dropdown-toggle", onClick: () => this.toggleDropdown() }, index.h("span", { class: "dropdown-placeholder" }, this.placeholder), index.h("span", { class: "caret" }, index.h("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M1.86537 0.917969L6.14614 4.56922L10.4269 0.917969L11.9769 2.23997L6.14614 7.21323L0.31543 2.23997L1.86537 0.917969Z", fill: "#323B42" })))), this.isOpen && (index.h("div", { class: "dropdown-menu" }, this.internalOptions.map((option) => (index.h("label", { class: "checkbox-label" }, index.h("input", { type: "checkbox", checked: this.selectedOptions.includes(option), onChange: () => this.handleCheckboxChange(option) }), option)))))), index.h("div", { class: "hidden" }, index.h("slot", null))));
|
|
492
|
-
}
|
|
493
|
-
get hostElement() { return index.getElement(this); }
|
|
494
|
-
};
|
|
495
|
-
PtcProductDropdown.style = ptcProductDropdownCss;
|
|
496
|
-
|
|
497
|
-
const ptcProductHighlightCardCss = ":host{max-width:300px;display:block;padding:18px 10px 12px 10px;border:1px solid var(--color-gray-04);border-radius:var(--ptc-border-radius-standard);margin:auto;height:100%}:host ptc-picture{min-height:100px}";
|
|
498
|
-
|
|
499
|
-
const PtcProductHighlightCard = class {
|
|
500
|
-
constructor(hostRef) {
|
|
501
|
-
index.registerInstance(this, hostRef);
|
|
502
|
-
this.cardTitle = undefined;
|
|
503
|
-
this.cardImage = undefined;
|
|
504
|
-
this.cardImageAltText = undefined;
|
|
505
|
-
this.cardDescription = undefined;
|
|
506
|
-
}
|
|
507
|
-
render() {
|
|
508
|
-
return (index.h(index.Host, null, index.h("ptc-title", { type: 'h4', upperline: "no-upperline", "title-margin": "margin-flush", "title-size": "small", "text-align": 'center' }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "2", "z-index": "z-999", description: this.cardTitle, position: "bottom", width: 'full-width' })), index.h("ptc-picture", { alt: "image-test", src: this.cardImage, "image-alignment": "center", width: "69", "display-image": "inline-block", styles: "img{margin: 12px auto 18px auto}" }), index.h("ptc-para", { "font-size": "x-small", "para-margin": "margin-flush", "para-line-h": "line-height-densest", "para-align": 'left', "para-z-index": "z-auto" }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "3", "z-index": "z-999", description: this.cardDescription, position: "bottom", width: 'full-width' }))));
|
|
509
|
-
}
|
|
510
|
-
};
|
|
511
|
-
PtcProductHighlightCard.style = ptcProductHighlightCardCss;
|
|
512
|
-
|
|
513
|
-
const ptcProductListCss = ":host{display:block;padding-bottom:52px}@media only screen and (min-width: 992px){:host{padding-bottom:102px}}:host .no-result-wrap{display:none}:host .no-result-wrap.show{display:block}:host .no-result-wrap .no-result{display:flex;justify-content:center;align-items:center;min-height:160px;padding:20px;text-align:center}";
|
|
514
|
-
|
|
515
|
-
const PtcProductList = class {
|
|
516
|
-
constructor(hostRef) {
|
|
517
|
-
index.registerInstance(this, hostRef);
|
|
518
|
-
this.clearCtaClicked = index.createEvent(this, "clearCtaClicked", 7);
|
|
519
|
-
}
|
|
520
|
-
handleSearchResult(event) {
|
|
521
|
-
const { sender, searchTerm } = event.detail;
|
|
522
|
-
if (sender) {
|
|
523
|
-
this.sortCards(searchTerm);
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
handleMultipleSearchResult(event) {
|
|
527
|
-
const { sender, selectedOptions } = event.detail;
|
|
528
|
-
if (sender) {
|
|
529
|
-
this.sortMultipleCards(selectedOptions);
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
handleEmptyResult(event) {
|
|
533
|
-
const { sender, searchTerm } = event.detail;
|
|
534
|
-
if (sender) {
|
|
535
|
-
this.noresultSection.classList.add('show');
|
|
536
|
-
this.sortCards(searchTerm);
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
sortMultipleCards(searchItems) {
|
|
540
|
-
const categoryList = Array.from(this.hostElement.querySelectorAll('ptc-product-category'));
|
|
541
|
-
categoryList.forEach((category) => {
|
|
542
|
-
const categoryTitle = category.getAttribute('category-title');
|
|
543
|
-
const productList = Array.from(category.querySelectorAll('ptc-product-card'));
|
|
544
|
-
if (searchItems.length > 0) {
|
|
545
|
-
const shouldDisplayCategory = searchItems.some(searchItem => categoryTitle && categoryTitle.includes(searchItem));
|
|
546
|
-
category.style.display = shouldDisplayCategory ? 'block' : 'none';
|
|
547
|
-
if (shouldDisplayCategory) {
|
|
548
|
-
productList.forEach(product => {
|
|
549
|
-
product.style.display = 'block';
|
|
550
|
-
});
|
|
551
|
-
}
|
|
552
|
-
else {
|
|
553
|
-
productList.forEach(product => {
|
|
554
|
-
const productTitle = product.getAttribute('card-title');
|
|
555
|
-
const shouldDisplayProduct = searchItems.some(searchItem => productTitle && productTitle.includes(searchItem));
|
|
556
|
-
product.style.display = shouldDisplayProduct ? 'block' : 'none';
|
|
557
|
-
});
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
else {
|
|
561
|
-
category.style.display = 'block';
|
|
562
|
-
productList.forEach(product => {
|
|
563
|
-
product.style.display = 'block';
|
|
564
|
-
});
|
|
565
|
-
}
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
// Sorting the
|
|
569
|
-
sortCards(searchItem) {
|
|
570
|
-
const categoryList = this.hostElement.querySelectorAll('ptc-product-category');
|
|
571
|
-
categoryList.forEach((category) => {
|
|
572
|
-
const categoryTitle = category.getAttribute('category-title');
|
|
573
|
-
const productList = category.querySelectorAll('ptc-product-card');
|
|
574
|
-
category.style.display = 'none';
|
|
575
|
-
if (searchItem === '') {
|
|
576
|
-
category.style.display = 'block';
|
|
577
|
-
productList.forEach(product => {
|
|
578
|
-
product.style.display = 'block';
|
|
579
|
-
});
|
|
580
|
-
this.noresultSection.classList.remove('show');
|
|
581
|
-
}
|
|
582
|
-
else {
|
|
583
|
-
const searchItemLowerCase = searchItem; //
|
|
584
|
-
if (searchItemLowerCase === categoryTitle) {
|
|
585
|
-
category.style.display = 'block';
|
|
586
|
-
productList.forEach(product => {
|
|
587
|
-
product.style.display = 'block';
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
else {
|
|
591
|
-
productList.forEach(product => {
|
|
592
|
-
const productTitle = product.getAttribute('card-title');
|
|
593
|
-
product.style.display = 'none';
|
|
594
|
-
if (searchItemLowerCase === productTitle) {
|
|
595
|
-
product.style.display = 'block';
|
|
596
|
-
category.style.display = 'block';
|
|
597
|
-
}
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
});
|
|
602
|
-
}
|
|
603
|
-
componentDidLoad() {
|
|
604
|
-
this.addIds();
|
|
605
|
-
this.noresultSection = this.hostElement.shadowRoot.querySelector('.no-result-wrap');
|
|
606
|
-
this.productList = this.hostElement.shadowRoot.querySelector('.product-list');
|
|
607
|
-
const productCards = this.hostElement.querySelectorAll('ptc-product-category ptc-product-card');
|
|
608
|
-
productCards.forEach(card => {
|
|
609
|
-
const toggleBtn = (card.shadowRoot).querySelector('.toggle-btn');
|
|
610
|
-
if (toggleBtn) {
|
|
611
|
-
toggleBtn.addEventListener('click', () => {
|
|
612
|
-
if (card.classList.contains('has-opened')) {
|
|
613
|
-
card.classList.remove('has-opened');
|
|
614
|
-
}
|
|
615
|
-
else {
|
|
616
|
-
card.classList.add('has-opened');
|
|
617
|
-
}
|
|
618
|
-
this.hideAllCards(card);
|
|
619
|
-
});
|
|
620
|
-
}
|
|
621
|
-
});
|
|
622
|
-
}
|
|
623
|
-
hideAllCards(selectedCard) {
|
|
624
|
-
const productCards = this.hostElement.querySelectorAll('ptc-product-category ptc-product-card');
|
|
625
|
-
productCards.forEach(card => {
|
|
626
|
-
if (selectedCard != card) {
|
|
627
|
-
card.classList.remove('has-opened');
|
|
628
|
-
}
|
|
629
|
-
});
|
|
630
|
-
}
|
|
631
|
-
handleClick(event) {
|
|
632
|
-
this.clearCtaClicked.emit({
|
|
633
|
-
'sender': this,
|
|
634
|
-
'event': event,
|
|
635
|
-
});
|
|
636
|
-
}
|
|
637
|
-
// Adding id to the category and product cards
|
|
638
|
-
addIds() {
|
|
639
|
-
const categoryList = this.hostElement.querySelectorAll('ptc-product-category');
|
|
640
|
-
categoryList.forEach((category) => {
|
|
641
|
-
const categoryTitle = category.getAttribute('category-title');
|
|
642
|
-
category.setAttribute('id', categoryTitle);
|
|
643
|
-
const productList = category.querySelectorAll('ptc-product-card');
|
|
644
|
-
productList.forEach(product => {
|
|
645
|
-
const productTitle = product.getAttribute('card-title');
|
|
646
|
-
product.setAttribute('id', productTitle);
|
|
647
|
-
});
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
render() {
|
|
651
|
-
return (index.h(index.Host, null, index.h("div", { class: "product-list" }, index.h("slot", null)), index.h("div", { class: "no-result-wrap" }, index.h("div", { class: "no-result" }, index.h("div", null, index.h("ptc-title", { type: 'h3', "title-margin": "margin-flush", upperline: 'no-upperline', "title-size": "large" }, "No Results Found"), index.h("ptc-para", { "font-size": "x-small" }, "Try changing or removing some of your filters"), index.h("ptc-button", { type: "link", color: "ptc-quaternary", target: "_blank", onClick: (e) => { this.handleClick(e); } }, "Clear Filters"))))));
|
|
652
|
-
}
|
|
653
|
-
get hostElement() { return index.getElement(this); }
|
|
654
|
-
};
|
|
655
|
-
PtcProductList.style = ptcProductListCss;
|
|
656
|
-
|
|
657
|
-
const ptcProductSidebarCss = ":host{display:block;position:relative}:host .hide{display:none !important}:host .white-box{padding:12px;background-color:var(--color-white);border-radius:var(--ptc-border-radius-standard)}:host .sort-wrap{display:block}@media only screen and (min-width: 768px){:host .sort-wrap{display:flex;justify-content:space-between}}@media only screen and (min-width: 992px){:host .sort-wrap{display:block}}:host .filter-result-wrap label{font-size:var(--ptc-font-size-xx-small);font-weight:600}@media only screen and (min-width: 992px){:host .filter-result-wrap label{font-size:var(--ptc-font-size-x-small)}}:host .filter-result-wrap .result-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}@media only screen and (min-width: 992px){:host .filter-result-wrap .result-header{margin-bottom:26px}}:host .filter-result-wrap .result-header .clear-cta{cursor:pointer;display:none;color:var(--color-gray-07);font-size:var(--ptc-font-size-x-small);text-decoration:underline}:host .filter-result-wrap .result-header .clear-cta.show{display:block}:host .filter-result-wrap .typeahead-input{box-sizing:border-box;margin-bottom:14px;width:100%;margin-right:0}@media only screen and (min-width: 768px){:host .filter-result-wrap .typeahead-input{margin-right:40px}}@media only screen and (min-width: 992px){:host .filter-result-wrap .typeahead-input{margin-right:0}}:host .filter-result-wrap .typeahead-input .input-wrap{position:relative}:host .filter-result-wrap .typeahead-input .input-wrap svg{position:absolute;left:8px;top:8px}:host .filter-result-wrap .typeahead-input .input-wrap input{margin-top:4px;padding:8px 8px 8px 34px;display:block;width:100%;box-sizing:border-box;border:1px solid var(--color-gray-03);font-size:14px}:host .filter-result-wrap .typeahead-input .suggestion-wrap{position:relative;width:100%}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions{border:1px solid var(--color-gray-03);box-shadow:0px 2px 4px rgba(35, 43, 45, 0.3);background-color:var(--color-white);position:absolute;z-index:105;top:0;margin:0;width:100%;box-sizing:border-box;padding:0;max-height:400px;overflow-y:auto}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar{width:5px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3)}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar-thumb{background-color:var(--color-gray-05);outline:1px solid var(--color-gray-05)}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li{list-style:none;padding:10px 16px;cursor:pointer;display:block;font-size:14px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li:first-child{padding-top:20px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li:last-child{padding-bottom:20px}:host .filter-result-wrap .dropdwon-filter{margin-bottom:10px;width:100%}:host .product-list-wrap{display:none}@media only screen and (min-width: 992px){:host .product-list-wrap{display:block}}:host .product-list-wrap .category-list{display:block;padding:12px 4px;font-size:var(--ptc-font-size-x-small)}:host .product-list-wrap .category-list ptc-para{padding-bottom:4px;display:block}:host .product-list-wrap .category-list ul{padding-left:20px;margin:0}";
|
|
658
|
-
|
|
659
|
-
const PtcProductSidebar = class {
|
|
660
|
-
constructor(hostRef) {
|
|
661
|
-
index.registerInstance(this, hostRef);
|
|
662
|
-
this.selectedResult = index.createEvent(this, "selectedResult", 7);
|
|
663
|
-
this.clearsearch = index.createEvent(this, "clearsearch", 7);
|
|
664
|
-
this.inputChanged = index.createEvent(this, "inputChanged", 7);
|
|
665
|
-
this.emptyResult = index.createEvent(this, "emptyResult", 7);
|
|
666
|
-
this.searchTerm = '';
|
|
667
|
-
this.suggestions = [];
|
|
668
|
-
this.suggestionList = [];
|
|
669
|
-
}
|
|
670
|
-
componentWillLoad() {
|
|
671
|
-
this.getDomData();
|
|
672
|
-
}
|
|
673
|
-
componentDidLoad() {
|
|
674
|
-
this.productListWrap = this.hostElement.shadowRoot.querySelector('.product-list-wrap');
|
|
675
|
-
this.clearBtn = this.hostElement.shadowRoot.querySelector('.clear-cta');
|
|
676
|
-
}
|
|
677
|
-
// Getting category title and products list
|
|
678
|
-
getDomData() {
|
|
679
|
-
const categoryList = document.querySelectorAll('ptc-product-category');
|
|
680
|
-
categoryList.forEach(category => {
|
|
681
|
-
let categoryTitle = category.getAttribute('category-title');
|
|
682
|
-
let categoryObject = { categoryName: categoryTitle, products: [] };
|
|
683
|
-
this.suggestionList.push(categoryObject);
|
|
684
|
-
let productList = category.querySelectorAll('ptc-product-card');
|
|
685
|
-
productList.forEach(product => {
|
|
686
|
-
let productTitle = product.getAttribute('card-title');
|
|
687
|
-
categoryObject.products.push(productTitle);
|
|
688
|
-
});
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
handleInputChange(event) {
|
|
692
|
-
const inputElement = event.target;
|
|
693
|
-
this.searchTerm = inputElement.value.toLocaleLowerCase();
|
|
694
|
-
this.productListWrap.classList.add('hide');
|
|
695
|
-
this.clearBtn.classList.add('show');
|
|
696
|
-
this.getSuggestions();
|
|
697
|
-
this.inputChanged.emit({
|
|
698
|
-
'sender': this,
|
|
699
|
-
'event': event,
|
|
700
|
-
});
|
|
701
|
-
}
|
|
702
|
-
getSuggestions() {
|
|
703
|
-
const searchTerm = this.searchTerm.toLowerCase();
|
|
704
|
-
const suggestions = this.suggestionList.reduce((acc, item) => {
|
|
705
|
-
if (item.categoryName.toLowerCase().includes(searchTerm)) {
|
|
706
|
-
acc.push(item.categoryName); // Include the category if it matches the search term
|
|
707
|
-
}
|
|
708
|
-
const matchedProducts = item.products.filter((product) => product.toLowerCase().includes(searchTerm));
|
|
709
|
-
if (matchedProducts.length > 0) {
|
|
710
|
-
acc.push(...matchedProducts); // Include the matching products
|
|
711
|
-
}
|
|
712
|
-
return acc;
|
|
713
|
-
}, []);
|
|
714
|
-
this.suggestions = suggestions;
|
|
715
|
-
}
|
|
716
|
-
handleSelectSuggestion(suggestion, event) {
|
|
717
|
-
this.searchTerm = suggestion;
|
|
718
|
-
//this.serachInput.setAttribute('value', this.searchTerm);
|
|
719
|
-
this.selectedResult.emit({
|
|
720
|
-
'sender': this,
|
|
721
|
-
'event': event,
|
|
722
|
-
'searchTerm': this.searchTerm
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
handleKeyUp(e) {
|
|
726
|
-
const inputElement = e.target;
|
|
727
|
-
this.searchTerm = inputElement.value.toLocaleLowerCase();
|
|
728
|
-
if (e.keyCode === 13 && this.suggestions.length == 0) {
|
|
729
|
-
console.log('Enter key pressed');
|
|
730
|
-
this.emptyResult.emit({
|
|
731
|
-
'sender': this,
|
|
732
|
-
'event': e,
|
|
733
|
-
});
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
clearSearch(event) {
|
|
737
|
-
let input = this.hostElement.shadowRoot.querySelector('input');
|
|
738
|
-
this.productListWrap.classList.remove('hide');
|
|
739
|
-
this.clearBtn.classList.remove('show');
|
|
740
|
-
if (input) {
|
|
741
|
-
input.value = "";
|
|
742
|
-
}
|
|
743
|
-
this.suggestions = [];
|
|
744
|
-
this.clearsearch.emit({
|
|
745
|
-
'sender': this,
|
|
746
|
-
'event': event,
|
|
747
|
-
'searchTerm': input.value
|
|
748
|
-
});
|
|
749
|
-
}
|
|
750
|
-
handleDropdownTouched(event) {
|
|
751
|
-
const { sender, isOpen } = event.detail;
|
|
752
|
-
if (sender) {
|
|
753
|
-
this.productListWrap.classList.add('hide');
|
|
754
|
-
if (isOpen) {
|
|
755
|
-
let input = this.hostElement.shadowRoot.querySelector('input');
|
|
756
|
-
if (input) {
|
|
757
|
-
input.value = "";
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
handleClick() {
|
|
763
|
-
this.suggestions = [];
|
|
764
|
-
}
|
|
765
|
-
handleclearCtaClicked(event) {
|
|
766
|
-
const { sender, event: mouseEvent, } = event.detail;
|
|
767
|
-
if (sender) {
|
|
768
|
-
this.clearSearch(mouseEvent);
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
handleSelectedValues(event) {
|
|
772
|
-
const { sender, selectedOptions } = event.detail;
|
|
773
|
-
if (sender) {
|
|
774
|
-
if (selectedOptions.length > 0) {
|
|
775
|
-
this.clearBtn.classList.add('show');
|
|
776
|
-
}
|
|
777
|
-
else {
|
|
778
|
-
this.clearBtn.classList.remove('show');
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
render() {
|
|
783
|
-
return (index.h(index.Host, { class: 'search-box' }, index.h("div", { class: "filter-result-wrap white-box" }, index.h("div", { class: "result-header" }, index.h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium" }, "Filter Result"), index.h("span", { class: "clear-cta", onClick: (e) => this.clearSearch(e) }, "Clear")), index.h("div", { class: "sort-wrap" }, index.h("div", { class: "typeahead-input" }, index.h("label", { htmlFor: "searchBox" }, "Filter"), index.h("div", { class: "input-wrap" }, index.h("svg", { width: "19", height: "18", viewBox: "0 0 19 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M0.208984 0V1.2375L6.95898 7.65V14.2875L11.5715 17.8875V7.65L18.209 1.35V0H0.208984Z", fill: "#323B42" })), index.h("input", { type: "text", value: this.searchTerm, onInput: (event) => this.handleInputChange(event), onKeyUp: (e) => this.handleKeyUp(e), id: 'searchBox' })), this.suggestions.length > 0 &&
|
|
784
|
-
index.h("div", { class: "suggestion-wrap" }, index.h("ul", { class: "suggestions" }, this.suggestions.map((suggestion) => (index.h("li", { onClick: (e) => this.handleSelectSuggestion(suggestion, e) }, suggestion)))))), index.h("div", { class: "dropdwon-filter" }, index.h("label", { htmlFor: "tech-dropdown" }, "Technology"), index.h("ptc-product-dropdown", { placeholder: "Select a technology", id: "tech-dropdown" }, this.suggestionList.map((item) => (index.h("span", null, item.categoryName))))))), index.h("ptc-spacer", { size: "large" }), index.h("div", { class: "product-list-wrap white-box" }, index.h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium" }, "Jump to Product"), this.suggestionList.map((item) => (index.h("div", { class: "category-list" }, index.h("ptc-para", { "font-size": 'x-small', "font-weight": 'w-7', "para-line-h": "line-height-densest", "para-margin": 'margin-flush' }, index.h("list-item", { "list-type": "list-underline", "link-href": '#' + item.categoryName }, index.h("ptc-tooltip", { "text-display": "inline", "text-lines": "4", "z-index": "z-2", description: item.categoryName, position: "bottom" }))), index.h("div", { class: "product-list" }, index.h("ul", null, item.products.map((product) => (index.h("list-item", { "list-type": "list-underline", "link-href": '#' + product }, product)))))))))));
|
|
785
|
-
}
|
|
786
|
-
get hostElement() { return index.getElement(this); }
|
|
787
|
-
};
|
|
788
|
-
PtcProductSidebar.style = ptcProductSidebarCss;
|
|
789
|
-
|
|
790
|
-
const ptcSpacerCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.ptc-spacer-horizontal){display:inline-block;height:100% !important}:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.ptc-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.ptc-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.small){width:12px;min-width:12px}}:host(.ptc-spacer-horizontal.medium){height:100%}:host(.ptc-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.large){width:20px;min-width:20px}}:host(.ptc-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.ptc-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.ptc-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.ptc-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.ptc-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.ptc-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.ptc-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.ptc-spacer-vertical.small){height:12px;min-height:12px}}:host(.ptc-spacer-vertical.medium){width:100%}:host(.ptc-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.ptc-spacer-vertical.large){height:20px;min-height:20px}}:host(.ptc-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.ptc-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.ptc-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.ptc-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.ptc-spacer-vertical.space-144){width:100%;height:144px;min-height:144px}:host(.ptc-spacer-vertical.space-120){width:100%;height:120px;min-height:120px}:host(.ptc-spacer-vertical.space-128){width:100%;height:128px;min-height:128px}:host(.ptc-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.ptc-spacer-xx-small){display:block}}:host(.ptc-spacer-x-small){display:none}@media (max-width: 35.99em){:host(.ptc-spacer-x-small){display:block}}:host(.ptc-spacer-small){display:none}@media (min-width: 36em){:host(.ptc-spacer-small){display:block}}:host(.ptc-spacer-medium){display:none}@media (min-width: 48em){:host(.ptc-spacer-medium){display:block}}:host(.ptc-spacer-large){display:none}@media (min-width: 62em){:host(.ptc-spacer-large){display:block}}:host(.ptc-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.ptc-spacer-x-large){display:block}}:host(.ptc-spacer-xx-large){display:none}@media (min-width: 75em){:host(.ptc-spacer-xx-large){display:block}}:host(.ptc-spacer-xxx-large){display:none}@media (min-width: 90em){:host(.ptc-spacer-xxx-large){display:block}}";
|
|
791
|
-
|
|
792
|
-
const PtcSpacer = class {
|
|
793
|
-
constructor(hostRef) {
|
|
794
|
-
index.registerInstance(this, hostRef);
|
|
795
|
-
this.breakpoint = '';
|
|
796
|
-
this.size = 'medium';
|
|
797
|
-
this.direction = 'vertical';
|
|
798
|
-
}
|
|
799
|
-
render() {
|
|
800
|
-
const classMap = this.getCssClassMap();
|
|
801
|
-
return (index.h(index.Host, { class: classMap }));
|
|
802
|
-
}
|
|
803
|
-
getCssClassMap() {
|
|
804
|
-
return {
|
|
805
|
-
[this.size]: true,
|
|
806
|
-
['ptc-spacer-horizontal']: this.direction === 'horizontal',
|
|
807
|
-
['ptc-spacer-vertical']: this.direction === 'vertical',
|
|
808
|
-
['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
|
|
809
|
-
['ptc-spacer-x-small']: this.breakpoint === 'x-small',
|
|
810
|
-
['ptc-spacer-small']: this.breakpoint === 'small',
|
|
811
|
-
['ptc-spacer-medium']: this.breakpoint === 'medium',
|
|
812
|
-
['ptc-spacer-large']: this.breakpoint === 'large',
|
|
813
|
-
['ptc-spacer-x-large']: this.breakpoint === 'x-large',
|
|
814
|
-
['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
|
|
815
|
-
['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
|
|
816
|
-
};
|
|
817
|
-
}
|
|
818
|
-
};
|
|
819
|
-
PtcSpacer.style = ptcSpacerCss;
|
|
820
|
-
|
|
821
|
-
const ptcTitleCss = "div.center.sc-ptc-title{text-align:center}div.center.dotted.sc-ptc-title h1.sc-ptc-title::before,div.center.dotted.sc-ptc-title h2.sc-ptc-title::before,div.center.dotted.sc-ptc-title h3.sc-ptc-title::before,div.center.dotted.sc-ptc-title h4.sc-ptc-title::before,div.center.dotted.sc-ptc-title h5.sc-ptc-title::before,div.center.dotted.sc-ptc-title h6.sc-ptc-title::before{left:50%;transform:translateX(-50%)}div.left.sc-ptc-title{text-align:left}div.left.dotted.sc-ptc-title h1.sc-ptc-title::before,div.left.dotted.sc-ptc-title h2.sc-ptc-title::before,div.left.dotted.sc-ptc-title h3.sc-ptc-title::before,div.left.dotted.sc-ptc-title h4.sc-ptc-title::before,div.left.dotted.sc-ptc-title h5.sc-ptc-title::before,div.left.dotted.sc-ptc-title h6.sc-ptc-title::before{left:0%}div.right.sc-ptc-title{text-align:right}div.right.dotted.sc-ptc-title h1.sc-ptc-title::before,div.right.dotted.sc-ptc-title h2.sc-ptc-title::before,div.right.dotted.sc-ptc-title h3.sc-ptc-title::before,div.right.dotted.sc-ptc-title h4.sc-ptc-title::before,div.right.dotted.sc-ptc-title h5.sc-ptc-title::before,div.right.dotted.sc-ptc-title h6.sc-ptc-title::before{right:0%}div.inherit.sc-ptc-title{text-align:inherit}div.dotted.sc-ptc-title h1.sc-ptc-title::before,div.dotted.sc-ptc-title h2.sc-ptc-title::before,div.dotted.sc-ptc-title h3.sc-ptc-title::before,div.dotted.sc-ptc-title h4.sc-ptc-title::before,div.dotted.sc-ptc-title h5.sc-ptc-title::before,div.dotted.sc-ptc-title h6.sc-ptc-title::before{content:\"\";position:absolute;top:-6px;width:30%;display:block;border-top:3px dashed var(--color-green-07)}div.solid.sc-ptc-title h1.sc-ptc-title,div.solid.sc-ptc-title h2.sc-ptc-title,div.solid.sc-ptc-title h3.sc-ptc-title,div.solid.sc-ptc-title h4.sc-ptc-title,div.solid.sc-ptc-title h5.sc-ptc-title,div.solid.sc-ptc-title h6.sc-ptc-title{padding-top:4px}div.solid.sc-ptc-title h1.sc-ptc-title::before,div.solid.sc-ptc-title h2.sc-ptc-title::before,div.solid.sc-ptc-title h3.sc-ptc-title::before,div.solid.sc-ptc-title h4.sc-ptc-title::before,div.solid.sc-ptc-title h5.sc-ptc-title::before,div.solid.sc-ptc-title h6.sc-ptc-title::before{content:\"\";position:absolute;width:100%;height:0.7px;background-color:var(--color-gray-03);opacity:0.9;left:0px}div.solid.sc-ptc-title h1.sc-ptc-title::after,div.solid.sc-ptc-title h2.sc-ptc-title::after,div.solid.sc-ptc-title h3.sc-ptc-title::after,div.solid.sc-ptc-title h4.sc-ptc-title::after,div.solid.sc-ptc-title h5.sc-ptc-title::after,div.solid.sc-ptc-title h6.sc-ptc-title::after{content:\"\";position:absolute;width:56px;height:2px;background-color:var(--color-green-07);top:2px;left:0px}div.is-standard.sc-ptc-title h1.sc-ptc-title,div.is-standard.sc-ptc-title h2.sc-ptc-title,div.is-standard.sc-ptc-title h3.sc-ptc-title,div.is-standard.sc-ptc-title h4.sc-ptc-title,div.is-standard.sc-ptc-title h5.sc-ptc-title,div.is-standard.sc-ptc-title h6.sc-ptc-title{display:inline-block;position:relative}div.is-standard.sc-ptc-title h1.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-extrabold);letter-spacing:0px;color:var(--color-gray-10)}div.is-standard.sc-ptc-title h2.sc-ptc-title{font-size:var(--ptc-font-size-x-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-extrabold);color:var(--color-gray-10)}div.is-plm-hub.sc-ptc-title h1.sc-ptc-title,div.is-plm-hub.sc-ptc-title h2.sc-ptc-title,div.is-plm-hub.sc-ptc-title h3.sc-ptc-title,div.is-plm-hub.sc-ptc-title h4.sc-ptc-title,div.is-plm-hub.sc-ptc-title h5.sc-ptc-title,div.is-plm-hub.sc-ptc-title h6.sc-ptc-title{display:inline-block;position:relative;margin-block-start:0em;margin-block-end:0em;margin-inline-start:0px;margin-inline-end:0px;color:var(--color-white) !important}div.margin-flush.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-flush.sc-ptc-title h1.sc-ptc-title,div.margin-flush.sc-ptc-title h2.sc-ptc-title,div.margin-flush.sc-ptc-title h3.sc-ptc-title,div.margin-flush.sc-ptc-title h4.sc-ptc-title,div.margin-flush.sc-ptc-title h5.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-top-2.sc-ptc-title{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}div.margin-top-3.sc-ptc-title{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}div.margin-top-4.sc-ptc-title{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}div.margin-top-5.sc-ptc-title{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}div.margin-top-6.sc-ptc-title{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}div.margin-bottom-2.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}div.margin-bottom-3.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}div.margin-bottom-4.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}div.margin-bottom-5.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}div.margin-bottom-6.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}div.margin-2.sc-ptc-title{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}div.margin-3.sc-ptc-title{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}div.margin-4.sc-ptc-title{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}div.margin-5.sc-ptc-title{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}div.margin-5.sc-ptc-title h4.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-6.sc-ptc-title{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}div.green.sc-ptc-title h1.sc-ptc-title,div.green.sc-ptc-title h2.sc-ptc-title,div.green.sc-ptc-title h3.sc-ptc-title,div.green.sc-ptc-title h4.sc-ptc-title,div.green.sc-ptc-title h5.sc-ptc-title,div.green.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-green-07)}div.blue.sc-ptc-title h1.sc-ptc-title,div.blue.sc-ptc-title h2.sc-ptc-title,div.blue.sc-ptc-title h3.sc-ptc-title,div.blue.sc-ptc-title h4.sc-ptc-title,div.blue.sc-ptc-title h5.sc-ptc-title,div.blue.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-blue-07)}div.red.sc-ptc-title h1.sc-ptc-title,div.red.sc-ptc-title h2.sc-ptc-title,div.red.sc-ptc-title h3.sc-ptc-title,div.red.sc-ptc-title h4.sc-ptc-title,div.red.sc-ptc-title h5.sc-ptc-title,div.red.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-red-07)}div.orange.sc-ptc-title h1.sc-ptc-title,div.orange.sc-ptc-title h2.sc-ptc-title,div.orange.sc-ptc-title h3.sc-ptc-title,div.orange.sc-ptc-title h4.sc-ptc-title,div.orange.sc-ptc-title h5.sc-ptc-title,div.orange.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-orange-07)}div.slate-grey.sc-ptc-title h1.sc-ptc-title,div.slate-grey.sc-ptc-title h2.sc-ptc-title,div.slate-grey.sc-ptc-title h3.sc-ptc-title,div.slate-grey.sc-ptc-title h4.sc-ptc-title,div.slate-grey.sc-ptc-title h5.sc-ptc-title,div.slate-grey.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-gray-07)}div.w-3.sc-ptc-title h1.sc-ptc-title,div.w-3.sc-ptc-title h2.sc-ptc-title,div.w-3.sc-ptc-title h3.sc-ptc-title,div.w-3.sc-ptc-title h4.sc-ptc-title,div.w-3.sc-ptc-title h5.sc-ptc-title,div.w-3.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-thin)}div.w-4.sc-ptc-title h1.sc-ptc-title,div.w-4.sc-ptc-title h2.sc-ptc-title,div.w-4.sc-ptc-title h3.sc-ptc-title,div.w-4.sc-ptc-title h4.sc-ptc-title,div.w-4.sc-ptc-title h5.sc-ptc-title,div.w-4.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-regular)}div.w-5.sc-ptc-title h1.sc-ptc-title,div.w-5.sc-ptc-title h2.sc-ptc-title,div.w-5.sc-ptc-title h3.sc-ptc-title,div.w-5.sc-ptc-title h4.sc-ptc-title,div.w-5.sc-ptc-title h5.sc-ptc-title,div.w-5.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-medium)}div.w-6.sc-ptc-title h1.sc-ptc-title,div.w-6.sc-ptc-title h2.sc-ptc-title,div.w-6.sc-ptc-title h3.sc-ptc-title,div.w-6.sc-ptc-title h4.sc-ptc-title,div.w-6.sc-ptc-title h5.sc-ptc-title,div.w-6.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-semibold)}div.w-7.sc-ptc-title h1.sc-ptc-title,div.w-7.sc-ptc-title h2.sc-ptc-title,div.w-7.sc-ptc-title h3.sc-ptc-title,div.w-7.sc-ptc-title h4.sc-ptc-title,div.w-7.sc-ptc-title h5.sc-ptc-title,div.w-7.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-bold)}div.w-8.sc-ptc-title h1.sc-ptc-title,div.w-8.sc-ptc-title h2.sc-ptc-title,div.w-8.sc-ptc-title h3.sc-ptc-title,div.w-8.sc-ptc-title h4.sc-ptc-title,div.w-8.sc-ptc-title h5.sc-ptc-title,div.w-8.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-extrabold)}div.w-9.sc-ptc-title h1.sc-ptc-title,div.w-9.sc-ptc-title h2.sc-ptc-title,div.w-9.sc-ptc-title h3.sc-ptc-title,div.w-9.sc-ptc-title h4.sc-ptc-title,div.w-9.sc-ptc-title h5.sc-ptc-title,div.w-9.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-black)}div.xx-small.sc-ptc-title h1.sc-ptc-title,div.xx-small.sc-ptc-title h2.sc-ptc-title,div.xx-small.sc-ptc-title h3.sc-ptc-title,div.xx-small.sc-ptc-title h4.sc-ptc-title,div.xx-small.sc-ptc-title h5.sc-ptc-title,div.xx-small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-small)}div.x-small.sc-ptc-title h1.sc-ptc-title,div.x-small.sc-ptc-title h2.sc-ptc-title,div.x-small.sc-ptc-title h3.sc-ptc-title,div.x-small.sc-ptc-title h4.sc-ptc-title,div.x-small.sc-ptc-title h5.sc-ptc-title,div.x-small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-x-small)}div.small.sc-ptc-title h1.sc-ptc-title,div.small.sc-ptc-title h2.sc-ptc-title,div.small.sc-ptc-title h3.sc-ptc-title,div.small.sc-ptc-title h4.sc-ptc-title,div.small.sc-ptc-title h5.sc-ptc-title,div.small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-small)}div.medium.sc-ptc-title h1.sc-ptc-title,div.medium.sc-ptc-title h2.sc-ptc-title,div.medium.sc-ptc-title h3.sc-ptc-title,div.medium.sc-ptc-title h4.sc-ptc-title,div.medium.sc-ptc-title h5.sc-ptc-title,div.medium.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-medium)}div.large.sc-ptc-title h1.sc-ptc-title,div.large.sc-ptc-title h2.sc-ptc-title,div.large.sc-ptc-title h3.sc-ptc-title,div.large.sc-ptc-title h4.sc-ptc-title,div.large.sc-ptc-title h5.sc-ptc-title,div.large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-large)}div.x-large.sc-ptc-title h1.sc-ptc-title,div.x-large.sc-ptc-title h2.sc-ptc-title,div.x-large.sc-ptc-title h3.sc-ptc-title,div.x-large.sc-ptc-title h4.sc-ptc-title,div.x-large.sc-ptc-title h5.sc-ptc-title,div.x-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-x-large)}div.xx-large.sc-ptc-title h1.sc-ptc-title,div.xx-large.sc-ptc-title h2.sc-ptc-title,div.xx-large.sc-ptc-title h3.sc-ptc-title,div.xx-large.sc-ptc-title h4.sc-ptc-title{font-size:var(--ptc-font-size-x-large)}@media only screen and (min-width: 768px){div.xx-large.sc-ptc-title h1.sc-ptc-title,div.xx-large.sc-ptc-title h2.sc-ptc-title,div.xx-large.sc-ptc-title h3.sc-ptc-title,div.xx-large.sc-ptc-title h4.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}}div.xxx-large.sc-ptc-title h1.sc-ptc-title,div.xxx-large.sc-ptc-title h2.sc-ptc-title,div.xxx-large.sc-ptc-title h3.sc-ptc-title,div.xxx-large.sc-ptc-title h4.sc-ptc-title,div.xxx-large.sc-ptc-title h5.sc-ptc-title,div.xxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}@media only screen and (min-width: 768px){div.xxx-large.sc-ptc-title h1.sc-ptc-title,div.xxx-large.sc-ptc-title h2.sc-ptc-title,div.xxx-large.sc-ptc-title h3.sc-ptc-title,div.xxx-large.sc-ptc-title h4.sc-ptc-title,div.xxx-large.sc-ptc-title h5.sc-ptc-title,div.xxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}}div.xxxx-large.sc-ptc-title h1.sc-ptc-title,div.xxxx-large.sc-ptc-title h2.sc-ptc-title,div.xxxx-large.sc-ptc-title h3.sc-ptc-title,div.xxxx-large.sc-ptc-title h4.sc-ptc-title,div.xxxx-large.sc-ptc-title h5.sc-ptc-title,div.xxxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media screen and (min-width: 769px){div.xxxx-large.sc-ptc-title h1.sc-ptc-title,div.xxxx-large.sc-ptc-title h2.sc-ptc-title,div.xxxx-large.sc-ptc-title h3.sc-ptc-title,div.xxxx-large.sc-ptc-title h4.sc-ptc-title,div.xxxx-large.sc-ptc-title h5.sc-ptc-title,div.xxxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.xx-large-allbp.sc-ptc-title h1.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h2.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h3.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h4.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h5.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}div.xxxx-large-allbp.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}div.xxxx-large-desktop.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media only screen and (min-width: 992px){div.xxxx-large-desktop.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.xxxx-large-store.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media only screen and (min-width: 992px){div.xxxx-large-store.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.densest.sc-ptc-title h1.sc-ptc-title,div.densest.sc-ptc-title h2.sc-ptc-title,div.densest.sc-ptc-title h3.sc-ptc-title,div.densest.sc-ptc-title h4.sc-ptc-title,div.densest.sc-ptc-title h5.sc-ptc-title,div.densest.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-densest)}div.denser.sc-ptc-title h1.sc-ptc-title,div.denser.sc-ptc-title h2.sc-ptc-title,div.denser.sc-ptc-title h3.sc-ptc-title,div.denser.sc-ptc-title h4.sc-ptc-title,div.denser.sc-ptc-title h5.sc-ptc-title,div.denser.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-denser)}div.dense.sc-ptc-title h1.sc-ptc-title,div.dense.sc-ptc-title h2.sc-ptc-title,div.dense.sc-ptc-title h3.sc-ptc-title,div.dense.sc-ptc-title h4.sc-ptc-title,div.dense.sc-ptc-title h5.sc-ptc-title,div.dense.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-dense)}div.normal.sc-ptc-title h1.sc-ptc-title,div.normal.sc-ptc-title h2.sc-ptc-title,div.normal.sc-ptc-title h3.sc-ptc-title,div.normal.sc-ptc-title h4.sc-ptc-title,div.normal.sc-ptc-title h5.sc-ptc-title,div.normal.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-normal)}div.loose.sc-ptc-title h1.sc-ptc-title,div.loose.sc-ptc-title h2.sc-ptc-title,div.loose.sc-ptc-title h3.sc-ptc-title,div.loose.sc-ptc-title h4.sc-ptc-title,div.loose.sc-ptc-title h5.sc-ptc-title,div.loose.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-loose)}div.looser.sc-ptc-title h1.sc-ptc-title,div.looser.sc-ptc-title h2.sc-ptc-title,div.looser.sc-ptc-title h3.sc-ptc-title,div.looser.sc-ptc-title h4.sc-ptc-title,div.looser.sc-ptc-title h5.sc-ptc-title,div.looser.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-looser)}div.paragraph.sc-ptc-title h1.sc-ptc-title,div.paragraph.sc-ptc-title h2.sc-ptc-title,div.paragraph.sc-ptc-title h3.sc-ptc-title,div.paragraph.sc-ptc-title h4.sc-ptc-title,div.paragraph.sc-ptc-title h5.sc-ptc-title,div.paragraph.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-paragraph)}div.black.sc-ptc-title h1.sc-ptc-title,div.black.sc-ptc-title h2.sc-ptc-title,div.black.sc-ptc-title h3.sc-ptc-title,div.black.sc-ptc-title h4.sc-ptc-title,div.black.sc-ptc-title h5.sc-ptc-title,div.black.sc-ptc-title h6.sc-ptc-title{color:var(--color-black)}div.white.sc-ptc-title h1.sc-ptc-title,div.white.sc-ptc-title h2.sc-ptc-title,div.white.sc-ptc-title h3.sc-ptc-title,div.white.sc-ptc-title h4.sc-ptc-title,div.white.sc-ptc-title h5.sc-ptc-title,div.white.sc-ptc-title h6.sc-ptc-title{color:var(--color-white)}div.gray-1.sc-ptc-title h1.sc-ptc-title,div.gray-1.sc-ptc-title h2.sc-ptc-title,div.gray-1.sc-ptc-title h3.sc-ptc-title,div.gray-1.sc-ptc-title h4.sc-ptc-title,div.gray-1.sc-ptc-title h5.sc-ptc-title,div.gray-1.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-01)}div.gray.sc-ptc-title h1.sc-ptc-title,div.gray.sc-ptc-title h2.sc-ptc-title,div.gray.sc-ptc-title h3.sc-ptc-title,div.gray.sc-ptc-title h4.sc-ptc-title,div.gray.sc-ptc-title h5.sc-ptc-title,div.gray.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-10)}div.gray-darker.sc-ptc-title h1.sc-ptc-title,div.gray-darker.sc-ptc-title h2.sc-ptc-title,div.gray-darker.sc-ptc-title h3.sc-ptc-title,div.gray-darker.sc-ptc-title h4.sc-ptc-title,div.gray-darker.sc-ptc-title h5.sc-ptc-title,div.gray-darker.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-11)}div.ellipsis-boxing.sc-ptc-title h1.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h2.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h3.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h4.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h5.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h6.sc-ptc-title{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;padding-bottom:0}div.block.sc-ptc-title h1.sc-ptc-title,div.block.sc-ptc-title h2.sc-ptc-title,div.block.sc-ptc-title h3.sc-ptc-title,div.block.sc-ptc-title h4.sc-ptc-title,div.block.sc-ptc-title h5.sc-ptc-title,div.block.sc-ptc-title h6.sc-ptc-title{display:block}";
|
|
822
|
-
|
|
823
|
-
const PtcTitle = class {
|
|
824
|
-
constructor(hostRef) {
|
|
825
|
-
index.registerInstance(this, hostRef);
|
|
826
|
-
this.isPlmHub = false;
|
|
827
|
-
this.type = 'h2';
|
|
828
|
-
this.textAlign = undefined;
|
|
829
|
-
this.upperline = 'dotted';
|
|
830
|
-
this.titleShadow = undefined;
|
|
831
|
-
this.titleColor = 'gray';
|
|
832
|
-
this.titleMargin = undefined;
|
|
833
|
-
this.titleWeight = undefined;
|
|
834
|
-
this.titleSize = undefined;
|
|
835
|
-
this.titleHeight = 'paragraph';
|
|
836
|
-
this.styles = undefined;
|
|
837
|
-
this.ellipsisLineCutoff = undefined;
|
|
838
|
-
this.titleDisplay = 'inline-block';
|
|
839
|
-
}
|
|
840
|
-
render() {
|
|
841
|
-
const classMap = this.getCssClassMap();
|
|
842
|
-
const cutOff = this.getLineCuttoff();
|
|
843
|
-
let TagType;
|
|
844
|
-
switch (this.type) {
|
|
845
|
-
case 'h1':
|
|
846
|
-
TagType = 'h1';
|
|
847
|
-
break;
|
|
848
|
-
case 'h3':
|
|
849
|
-
TagType = 'h3';
|
|
850
|
-
break;
|
|
851
|
-
case 'h4':
|
|
852
|
-
TagType = 'h4';
|
|
853
|
-
break;
|
|
854
|
-
case 'h5':
|
|
855
|
-
TagType = 'h5';
|
|
856
|
-
break;
|
|
857
|
-
case 'h6':
|
|
858
|
-
TagType = 'h6';
|
|
859
|
-
break;
|
|
860
|
-
default:
|
|
861
|
-
TagType = 'h2';
|
|
862
|
-
}
|
|
863
|
-
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { class: classMap }, index.h(TagType, { style: cutOff }, index.h("slot", null)))));
|
|
864
|
-
}
|
|
865
|
-
getCssClassMap() {
|
|
866
|
-
return {
|
|
867
|
-
[this.textAlign]: !!this.textAlign ? true : false,
|
|
868
|
-
[this.upperline]: true,
|
|
869
|
-
[this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
|
|
870
|
-
[this.titleMargin]: !!this.titleMargin ? true : false,
|
|
871
|
-
[this.titleShadow]: !!this.titleShadow ? true : false,
|
|
872
|
-
[this.titleWeight]: !!this.titleWeight ? true : false,
|
|
873
|
-
[this.titleSize]: !!this.titleSize ? true : false,
|
|
874
|
-
[this.titleHeight]: !!this.titleHeight ? true : false,
|
|
875
|
-
[this.titleColor]: !!this.titleColor ? true : false,
|
|
876
|
-
['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
|
|
877
|
-
[this.titleDisplay]: !!this.titleDisplay ? true : false,
|
|
878
|
-
};
|
|
879
|
-
}
|
|
880
|
-
getLineCuttoff() {
|
|
881
|
-
let result;
|
|
882
|
-
if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
|
|
883
|
-
result = {
|
|
884
|
-
['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
|
|
885
|
-
};
|
|
886
|
-
}
|
|
887
|
-
return result;
|
|
888
|
-
}
|
|
889
|
-
};
|
|
890
|
-
PtcTitle.style = ptcTitleCss;
|
|
891
|
-
|
|
892
|
-
const ptcTooltipCss = ".sc-ptc-tooltip-h{position:relative}.inline.sc-ptc-tooltip-h{display:inline}.block.sc-ptc-tooltip-h{display:block}.text-ellipsis.sc-ptc-tooltip{position:relative;display:inline}.text-ellipsis.sc-ptc-tooltip:not(.truncated){z-index:auto !important}.z-auto.sc-ptc-tooltip{z-index:auto}.z-1.sc-ptc-tooltip{z-index:1}.z-2.sc-ptc-tooltip{z-index:2}.z-3.sc-ptc-tooltip{z-index:3}.z-999.sc-ptc-tooltip{z-index:999}.tooltip.sc-ptc-tooltip{position:absolute;padding:8px;color:var(--color-white);font-size:var(--ptc-font-size-xxx-small);font-weight:var(--ptc-font-weight-semibold);background:var(--color-gray-09);box-shadow:0px 2px 4px rgba(0, 0, 0, 0.3);border:none;border-radius:2px;width:auto;height:auto;visibility:hidden;text-align:left;text-shadow:none;white-space:normal}@media only screen and (min-width: 480px){.tooltip.sc-ptc-tooltip{width:273px}}.tooltip.danger.sc-ptc-tooltip{color:var(--color-red-07);font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-xx-small);line-height:var(--ptc-line-height-p);border:2px solid var(--color-red-07);border-radius:var(--ptc-border-radius-standard);background-color:var(--color-white);padding:var(--ptc-element-spacing-06)}.tooltip.danger.sc-ptc-tooltip a.sc-ptc-tooltip{color:var(--color-blue-07)}.tooltip.bottom.sc-ptc-tooltip{bottom:-12px;transform:translateY(100%)}.tooltip.bottom.sc-ptc-tooltip::after{top:1px;left:50%;transform:translate(-50%, -100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.left.sc-ptc-tooltip{bottom:-12px;transform:translate(-80%, 100%)}.tooltip.left.sc-ptc-tooltip::after{top:1px;right:8px;transform:translateY(-100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.right.sc-ptc-tooltip{bottom:-12px;transform:translateY(100%);right:0px}@-moz-document url-prefix(){.tooltip.right{right:unset !important;bottom:unset !important;transform:translate(60%, 8px) !important}@media screen and (min-width: 992px){.tooltip.right{transform:translate(100%, 8px) !important}}}.tooltip.right.sc-ptc-tooltip::after{top:1px;left:8px;transform:translateY(-100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.top.sc-ptc-tooltip{top:-8px;transform:translateY(-100%)}.tooltip.top.sc-ptc-tooltip::after{left:50%;bottom:1px;transform:translate(-50%, 100%);border:8px solid transparent;border-top:8px solid var(--color-gray-09)}.tooltip.bottom-right.sc-ptc-tooltip{bottom:-12px;transform:translate(-60%, 100%)}.tooltip.bottom-right.sc-ptc-tooltip::after{top:1px;left:75%;transform:translate(-50%, -100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.danger.sc-ptc-tooltip::after{top:0;border-bottom:8px solid var(--color-red-07)}.truncated.sc-ptc-tooltip{cursor:help}.truncated.sc-ptc-tooltip:hover+.tooltip.sc-ptc-tooltip{visibility:visible;z-index:9999}.wrapper-content.sc-ptc-tooltip{display:inline-block;position:relative}.wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{width:auto;min-width:72px;max-width:273px}.wrapper-content.sc-ptc-tooltip .slot-content.sc-ptc-tooltip:hover+.tooltip.sc-ptc-tooltip{visibility:visible;z-index:9999}.tooltip.sc-ptc-tooltip::after{content:\"\";position:absolute}.ellipsis-by-line-boxing.sc-ptc-tooltip{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;padding-bottom:0}.full-width.sc-ptc-tooltip-h .tooltip.sc-ptc-tooltip{width:100%}@media only screen and (min-width: 480px){.full-width.sc-ptc-tooltip-h .tooltip.sc-ptc-tooltip{width:100%}}";
|
|
893
|
-
|
|
894
|
-
const PtcTooltip = class {
|
|
895
|
-
constructor(hostRef) {
|
|
896
|
-
index.registerInstance(this, hostRef);
|
|
897
|
-
this.textDisplay = 'inline';
|
|
898
|
-
this.maxLength = 45;
|
|
899
|
-
this.textLines = undefined;
|
|
900
|
-
this.description = 'This is a tooltip text placeholder';
|
|
901
|
-
this.zIndex = 'z-auto';
|
|
902
|
-
this.position = 'bottom';
|
|
903
|
-
this.styles = undefined;
|
|
904
|
-
this.mode = 'text-only';
|
|
905
|
-
this.theme = 'standard';
|
|
906
|
-
this.width = 'default';
|
|
907
|
-
this.hideOnMobile = false;
|
|
908
|
-
this.isSmallScreen = undefined;
|
|
909
|
-
}
|
|
910
|
-
addTruncatedClass() {
|
|
911
|
-
const appRoot = this.el;
|
|
912
|
-
const text = appRoot.querySelectorAll('.ellipsis-by-line-boxing');
|
|
913
|
-
text.forEach(t => {
|
|
914
|
-
t.classList[t.scrollHeight > t.clientHeight ? 'add' : 'remove']('truncated');
|
|
915
|
-
});
|
|
916
|
-
}
|
|
917
|
-
windowResize() {
|
|
918
|
-
this.verifiyScreenSize();
|
|
919
|
-
}
|
|
920
|
-
verifiyScreenSize() {
|
|
921
|
-
this.isSmallScreen = window.innerWidth < 768;
|
|
922
|
-
}
|
|
923
|
-
// Created this function to initialize the truncate function on specific elements like tabs
|
|
924
|
-
enableAddTruncatedClass(element) {
|
|
925
|
-
const allTabHeaders = document.querySelectorAll(element);
|
|
926
|
-
for (const element of Array.from(allTabHeaders)) {
|
|
927
|
-
let tabHeader = element;
|
|
928
|
-
if (tabHeader) {
|
|
929
|
-
tabHeader.addEventListener('click', () => {
|
|
930
|
-
setTimeout(() => {
|
|
931
|
-
this.addTruncatedClass();
|
|
932
|
-
}, 100);
|
|
933
|
-
});
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
componentWillLoad() {
|
|
938
|
-
this.verifiyScreenSize();
|
|
939
|
-
}
|
|
940
|
-
componentDidLoad() {
|
|
941
|
-
//this.addTruncatedClass();
|
|
942
|
-
setTimeout(() => {
|
|
943
|
-
this.addTruncatedClass();
|
|
944
|
-
}, 1000);
|
|
945
|
-
this.enableAddTruncatedClass('tab-header');
|
|
946
|
-
this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
|
|
947
|
-
this.enableAddTruncatedClass('ptc-product-card');
|
|
948
|
-
document.addEventListener('readystatechange', () => {
|
|
949
|
-
if (document.readyState === 'complete') {
|
|
950
|
-
this.addTruncatedClass();
|
|
951
|
-
}
|
|
952
|
-
});
|
|
953
|
-
}
|
|
954
|
-
render() {
|
|
955
|
-
if (this.mode == 'wrapper') {
|
|
956
|
-
return (index.h(index.Host, { class: this.textDisplay }, this.styles && index.h("style", null, this.styles), index.h("div", { class: "wrapper-content" }, index.h("div", { class: "slot-content" }, index.h("slot", null)), index.h("div", { class: `tooltip ${this.position} ${this.theme}` }, index.h("slot", { name: "description" }), this.description))));
|
|
957
|
-
}
|
|
958
|
-
else {
|
|
959
|
-
const classMap = this.getCssClassMap();
|
|
960
|
-
const cutOff = this.getLineCuttoff();
|
|
961
|
-
let truncatedText = this.description.substring(0, this.maxLength);
|
|
962
|
-
if (this.description.length > this.maxLength) {
|
|
963
|
-
const lastSpace = truncatedText.lastIndexOf(' ');
|
|
964
|
-
truncatedText = truncatedText.substring(0, lastSpace);
|
|
965
|
-
truncatedText += '... ';
|
|
966
|
-
}
|
|
967
|
-
return (index.h(index.Host, { class: this.textDisplay + " " + this.width }, this.styles && index.h("style", null, this.styles), (this.hideOnMobile && this.isSmallScreen) ? (index.h("div", null, this.description)) : (index.h("div", null, this.textLines > 0 && !!this.textLines ? (index.h("div", { class: "ellipsis-by-line-boxing", style: cutOff }, this.description)) : (index.h("div", { class: classMap }, truncatedText)), index.h("div", { class: `tooltip ${this.position} ${this.theme}` }, this.description)))));
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
getCssClassMap() {
|
|
971
|
-
return {
|
|
972
|
-
// ['ellipsis-by-line-boxing']: this.textLines && this.textLines > 0,
|
|
973
|
-
['text-ellipsis']: true,
|
|
974
|
-
[this.zIndex]: this.description.length > this.maxLength ? true : false,
|
|
975
|
-
['truncated']: this.description.length > this.maxLength && !this.textLines ? true : false,
|
|
976
|
-
};
|
|
977
|
-
}
|
|
978
|
-
getLineCuttoff() {
|
|
979
|
-
let result;
|
|
980
|
-
if (this.textLines && this.textLines > 0) {
|
|
981
|
-
result = {
|
|
982
|
-
['-webkit-line-clamp']: `${this.textLines}`,
|
|
983
|
-
};
|
|
984
|
-
}
|
|
985
|
-
return result;
|
|
986
|
-
}
|
|
987
|
-
get el() { return index.getElement(this); }
|
|
988
|
-
};
|
|
989
|
-
PtcTooltip.style = ptcTooltipCss;
|
|
990
|
-
|
|
991
|
-
exports.icon_asset = IconAsset;
|
|
992
|
-
exports.list_item = ListItem;
|
|
993
|
-
exports.ptc_back_to_top = PtcBackToTop;
|
|
994
|
-
exports.ptc_breadcrumb = PtcBreadcrumb;
|
|
995
|
-
exports.ptc_button = PtcButton;
|
|
996
|
-
exports.ptc_para = PtcPara;
|
|
997
|
-
exports.ptc_picture = PtcPicture;
|
|
998
|
-
exports.ptc_product_card = PtcProductCard;
|
|
999
|
-
exports.ptc_product_category = PtcProductCategory;
|
|
1000
|
-
exports.ptc_product_dropdown = PtcProductDropdown;
|
|
1001
|
-
exports.ptc_product_highlight_card = PtcProductHighlightCard;
|
|
1002
|
-
exports.ptc_product_list = PtcProductList;
|
|
1003
|
-
exports.ptc_product_sidebar = PtcProductSidebar;
|
|
1004
|
-
exports.ptc_spacer = PtcSpacer;
|
|
1005
|
-
exports.ptc_title = PtcTitle;
|
|
1006
|
-
exports.ptc_tooltip = PtcTooltip;
|