@ptcwebops/ptcw-design 6.4.12 → 6.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{component-35540bfb.js → component-06dda623.js} +1 -1
- package/dist/cjs/{component-1b8ad4d2.js → component-5b5b6a98.js} +1 -1
- package/dist/cjs/icon-asset_14.cjs.entry.js +1911 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +2 -2
- package/dist/cjs/ptc-form-checkbox_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +2 -2
- package/dist/cjs/ptc-search-field.cjs.entry.js +95 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/components/ptc-subnav-v2/ptc-subnav-v2.js +2 -1
- package/dist/custom-elements/index.js +3 -2
- package/dist/esm/blog-detail-content_2.entry.js +1 -1
- package/dist/esm/blog-detail-layout.entry.js +1 -1
- package/dist/esm/blogs-search-section.entry.js +1 -1
- package/dist/esm/{component-8c53e377.js → component-274da230.js} +1 -1
- package/dist/esm/{component-9beac35b.js → component-341e4eaa.js} +1 -1
- package/dist/esm/homepage-jumbotron.entry.js +1 -1
- package/dist/esm/homepage-toggled-content.entry.js +1 -1
- package/dist/esm/icon-asset_14.entry.js +1894 -0
- package/dist/esm/innovator-toggle-container.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/most-popular-news.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-data-lookup.entry.js +2 -2
- package/dist/esm/ptc-form-checkbox_2.entry.js +2 -2
- package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
- package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
- package/dist/esm/ptc-icon-card.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-multi-select_2.entry.js +3 -3
- package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptc-search-field.entry.js +91 -0
- package/dist/esm/ptc-social-icons-footer.entry.js +1 -1
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/{utils-bdd0cc16.js → utils-a64ba942.js} +1 -1
- package/dist/ptcw-design/{p-2efd18d8.entry.js → p-0824f503.entry.js} +1 -1
- package/dist/ptcw-design/{p-bb86265c.entry.js → p-140c134e.entry.js} +1 -1
- package/dist/ptcw-design/{p-c7e948b2.js → p-22cf00e7.js} +1 -1
- package/dist/ptcw-design/{p-a318a793.entry.js → p-2fa5814b.entry.js} +1 -1
- package/dist/ptcw-design/{p-c101aeb5.entry.js → p-32bbcb5a.entry.js} +1 -1
- package/dist/ptcw-design/{p-b154bbdb.entry.js → p-3596ce5a.entry.js} +1 -1
- package/dist/ptcw-design/{p-2f7b6437.entry.js → p-681d26ef.entry.js} +1 -1
- package/dist/ptcw-design/{p-7777753a.entry.js → p-7524411a.entry.js} +1 -1
- package/dist/ptcw-design/p-809f3878.entry.js +1 -0
- package/dist/ptcw-design/{p-850e6e8c.entry.js → p-83632220.entry.js} +1 -1
- package/dist/ptcw-design/{p-87215e3a.entry.js → p-87a9a028.entry.js} +1 -1
- package/dist/ptcw-design/{p-a81833cd.entry.js → p-9461c4eb.entry.js} +1 -1
- package/dist/ptcw-design/{p-804dac0c.entry.js → p-a31f22a1.entry.js} +1 -1
- package/dist/ptcw-design/{p-d3c11c68.entry.js → p-b9966f20.entry.js} +1 -1
- package/dist/ptcw-design/{p-75c8fceb.entry.js → p-bdb2e42c.entry.js} +1 -1
- package/dist/ptcw-design/{p-98844b50.js → p-be533f0d.js} +1 -1
- package/dist/ptcw-design/{p-19832538.entry.js → p-bf15988f.entry.js} +1 -1
- package/dist/ptcw-design/{p-8234aa2a.entry.js → p-c1302aea.entry.js} +1 -1
- package/dist/ptcw-design/{p-03a1e1a5.entry.js → p-d8c1a14a.entry.js} +1 -1
- package/dist/ptcw-design/{p-83dabf2e.entry.js → p-e2da8109.entry.js} +1 -1
- package/dist/ptcw-design/p-e50a5a46.entry.js +1 -0
- package/dist/ptcw-design/{p-a28ff90b.entry.js → p-e51bb274.entry.js} +1 -1
- package/dist/ptcw-design/p-eabf87be.entry.js +1 -0
- package/dist/ptcw-design/{p-e65cbdb9.entry.js → p-edaf241d.entry.js} +1 -1
- package/dist/ptcw-design/{p-5b00a563.entry.js → p-fa045097.entry.js} +1 -1
- 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_2.cjs.entry.js +0 -154
- package/dist/cjs/interfaces-574e6df7.js +0 -15
- package/dist/cjs/list-item.cjs.entry.js +0 -52
- package/dist/cjs/max-width-container.cjs.entry.js +0 -54
- package/dist/cjs/ptc-background-video.cjs.entry.js +0 -152
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +0 -53
- package/dist/cjs/ptc-button.cjs.entry.js +0 -117
- package/dist/cjs/ptc-img.cjs.entry.js +0 -136
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +0 -184
- package/dist/cjs/ptc-para.cjs.entry.js +0 -139
- package/dist/cjs/ptc-picture.cjs.entry.js +0 -185
- package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
- package/dist/cjs/ptc-subnav-v2.cjs.entry.js +0 -533
- package/dist/cjs/ptc-title.cjs.entry.js +0 -161
- package/dist/cjs/ptc-tooltip.cjs.entry.js +0 -113
- package/dist/esm/icon-asset_2.entry.js +0 -149
- package/dist/esm/interfaces-4caedd26.js +0 -12
- package/dist/esm/list-item.entry.js +0 -48
- package/dist/esm/max-width-container.entry.js +0 -50
- package/dist/esm/ptc-background-video.entry.js +0 -148
- package/dist/esm/ptc-breadcrumb.entry.js +0 -49
- package/dist/esm/ptc-button.entry.js +0 -113
- package/dist/esm/ptc-img.entry.js +0 -132
- package/dist/esm/ptc-jumbotron.entry.js +0 -180
- package/dist/esm/ptc-para.entry.js +0 -135
- package/dist/esm/ptc-picture.entry.js +0 -181
- package/dist/esm/ptc-spacer.entry.js +0 -34
- package/dist/esm/ptc-subnav-v2.entry.js +0 -529
- package/dist/esm/ptc-title.entry.js +0 -157
- package/dist/esm/ptc-tooltip.entry.js +0 -109
- package/dist/ptcw-design/p-07b1afd5.entry.js +0 -1
- package/dist/ptcw-design/p-1acd3617.entry.js +0 -1
- package/dist/ptcw-design/p-2e288e60.entry.js +0 -1
- package/dist/ptcw-design/p-4313edfb.entry.js +0 -1
- package/dist/ptcw-design/p-474a9967.entry.js +0 -1
- package/dist/ptcw-design/p-561a622f.entry.js +0 -1
- package/dist/ptcw-design/p-674c828e.entry.js +0 -1
- package/dist/ptcw-design/p-6785dc81.entry.js +0 -1
- package/dist/ptcw-design/p-709cc1f0.entry.js +0 -1
- package/dist/ptcw-design/p-711bcdad.js +0 -1
- package/dist/ptcw-design/p-7226670f.entry.js +0 -1
- package/dist/ptcw-design/p-98e2b403.entry.js +0 -1
- package/dist/ptcw-design/p-9df3c31f.entry.js +0 -1
- package/dist/ptcw-design/p-b3cd2410.entry.js +0 -1
- package/dist/ptcw-design/p-d9ec506c.entry.js +0 -1
- package/dist/ptcw-design/p-ec22d0b8.entry.js +0 -1
- /package/dist/ptcw-design/{p-98426799.js → p-c1513c3f.js} +0 -0
package/readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# PTC Design 6.4.
|
|
3
|
+
# PTC Design 6.4.13
|
|
4
4
|
|
|
5
5
|
The site is the place for documentation on PTC Design System
|
|
6
6
|
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-63ddc79c.js');
|
|
6
|
-
|
|
7
|
-
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}h1.sc-icon-asset,h2.sc-icon-asset,h3.sc-icon-asset,h4.sc-icon-asset,h5.sc-icon-asset,h6.sc-icon-asset,p.sc-icon-asset,ul.sc-icon-asset,li.sc-icon-asset,ptc-subnav.sc-icon-asset,ptc-tab-list.sc-icon-asset,ptc-link.sc-icon-asset,ptc-square-card.sc-icon-asset,.hyphenate-text.sc-icon-asset,ptc-footer.sc-icon-asset{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-icon-asset,h2.sc-icon-asset,h3.sc-icon-asset,h4.sc-icon-asset,h5.sc-icon-asset,h6.sc-icon-asset,p.sc-icon-asset,ul.sc-icon-asset,li.sc-icon-asset,ptc-subnav.sc-icon-asset,ptc-tab-list.sc-icon-asset,ptc-link.sc-icon-asset,ptc-square-card.sc-icon-asset,.hyphenate-text.sc-icon-asset,ptc-footer.sc-icon-asset{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}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.disabled.sc-icon-asset{fill:var(--color-gray-03)}svg.disabled.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.disabled.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.disabled.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-03)}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}svg.sc-icon-asset:focus{outline:none !important}svg[tabIndex=\"0\"].sc-icon-asset:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}svg[tabIndex=\"0\"].sc-icon-asset:focus{outline:none !important}";
|
|
8
|
-
|
|
9
|
-
const IconAsset = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.ready = index.createEvent(this, "ready", 7);
|
|
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-v6.0.7.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
|
-
this.focusOn = false;
|
|
26
|
-
this.trackerId = "";
|
|
27
|
-
}
|
|
28
|
-
componentDidLoad() {
|
|
29
|
-
this.ready.emit({
|
|
30
|
-
"regular-icons": this.regularSprite,
|
|
31
|
-
"sold-icons": this.solidSprite,
|
|
32
|
-
"brand-icons": this.brandSprite,
|
|
33
|
-
"ptc-icons": this.ptcSprite,
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
render() {
|
|
37
|
-
const classMap = this.getCssClassMap();
|
|
38
|
-
if (this.type == "brands") {
|
|
39
|
-
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}` }))));
|
|
40
|
-
}
|
|
41
|
-
else if (this.type == "solid") {
|
|
42
|
-
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}` }))));
|
|
43
|
-
}
|
|
44
|
-
else if (this.type == "ptc") {
|
|
45
|
-
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap, "aria-hidden": this.isMobileSelect && "true", tabindex: this.focusOn ? 0 : -1, id: this.trackerId }, index.h("use", { href: `${this.ptcSprite}#${this.name}` }))));
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
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}` }))));
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
getCssClassMap() {
|
|
52
|
-
return {
|
|
53
|
-
[this.size]: true,
|
|
54
|
-
[this.spin]: true,
|
|
55
|
-
[this.pulse]: true,
|
|
56
|
-
[this.color]: true,
|
|
57
|
-
["ismobileselect"]: this.isMobileSelect ? true : false,
|
|
58
|
-
["mf-listen"]: this.trackerId !== "" ? true : false,
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
static get assetsDirs() { return ["media"]; }
|
|
62
|
-
};
|
|
63
|
-
IconAsset.style = iconAssetCss;
|
|
64
|
-
|
|
65
|
-
const ptcSearchFieldCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host .search-div{position:relative;display:flex;align-items:stretch;height:51px;border-radius:var(--ptc-border-radius-standard)}:host .search-div:focus-visible{outline:5px solid var(--keyboard-nav-outline) !important;border-radius:var(--ptc-border-radius-standard) !important}:host .search-div .input-wrap{position:relative;width:100%;box-sizing:border-box;display:flex}:host .search-div .input-wrap input{height:100%}:host .search-div input{background-color:var(--color-white);height:-webkit-fill-available;border:0 solid var(--color-gray-12);border-radius:var(--ptc-border-radius-standard) 0 0 var(--ptc-border-radius-standard);flex-grow:2;padding-left:var(--ptc-element-spacing-04);line-height:var(--ptc-line-height-loose);padding-right:54px;width:100%;box-sizing:border-box;margin-right:0px}:host .search-div input:focus-visible{border-radius:var(--ptc-border-radius-standard) 0 0 var(--ptc-border-radius-standard);outline:none}:host .search-div input::-moz-placeholder{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-regular);font-size:var(--ptc-font-size-small);position:relative;top:1px;color:var(--color-gray-10)}:host .search-div input::placeholder{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-regular);font-size:var(--ptc-font-size-small);position:relative;top:1px;color:var(--color-gray-10)}:host .search-div div#searchBtnID{z-index:1}:host .search-div .search-btn{cursor:pointer;height:51px;min-width:51px;border-radius:0 var(--ptc-border-radius-standard) var(--ptc-border-radius-standard) 0;background-color:var(--color-gray-12);border:0 solid var(--color-gray-12);transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium);margin:0}:host .search-div .search-btn:active{transition:none;background-color:var(--color-black)}:host .search-div .search-btn:hover{background-color:var(--color-gray-10)}:host .search-div .search-btn:focus-visible{z-index:1;border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}:host(.dark){z-index:999;position:relative;margin-top:20px}:host(.dark) .search-div{height:43px;width:208px}@media (max-width: 480px){:host(.dark) .search-div{width:100%}}@media only screen and (min-width: 992px){:host(.dark) .search-div{width:246px}}:host(.dark) .search-div input{background-color:var(--color-gray-12);border:1px solid var(--color-gray-08);color:var(--color-white);padding-left:unset;text-indent:var(--ptc-element-spacing-04);padding-right:2px}:host(.dark) .search-div input::-moz-placeholder{color:var(--color-white);font-size:var(--ptc-font-size-x-small)}:host(.dark) .search-div input::placeholder{color:var(--color-white);font-size:var(--ptc-font-size-x-small)}:host(.dark) .search-div .search-btn{height:43px;width:43px;background-color:var(--color-gray-10);border:1px solid var(--color-gray-08);border-left:0}:host(.dark) .search-div .search-btn:hover{background-color:var(--color-gray-08)}:host(.news){z-index:999;position:relative;margin-top:20px}:host(.news) .search-div{height:43px}@media (max-width: 480px){:host(.news) .search-div{width:100%}}@media only screen and (min-width: 992px){:host(.news) .search-div{width:246px}}:host(.news) .search-div .search-btn{height:43px}:host(.x-small) .search-div{box-shadow:var(--ptc-shadow-x-small)}:host(.small) .search-div{box-shadow:var(--ptc-shadow-small)}:host(.medium) .search-div{box-shadow:var(--ptc-shadow-medium)}:host(.large) .search-div{box-shadow:var(--ptc-shadow-large)}:host(.x-large) .search-div{box-shadow:var(--ptc-shadow-x-large)}@media (max-width: 480px){input{width:75%}}.icon-wrapper{padding:16px 20px 0;background-color:transparent;position:absolute;right:0;top:-2px;height:100%;box-sizing:border-box}.icon-wrapper .cls{cursor:pointer;display:block}:host(.dark) .icon-wrapper{padding:12px 20px 0;background-color:var(--color-gray-12);border:1px solid var(--color-gray-08);border-left-width:0;position:initial;right:auto;top:auto}:host(.dark):host(.enable-clear) input{border-right-width:0}@media only screen and (min-width: 992px){.cls{display:none}}.tracker-div{display:inline}";
|
|
66
|
-
|
|
67
|
-
const PtcSearchField = class {
|
|
68
|
-
constructor(hostRef) {
|
|
69
|
-
index.registerInstance(this, hostRef);
|
|
70
|
-
this.valueChanged = index.createEvent(this, "valueChanged", 7);
|
|
71
|
-
this.clicked = index.createEvent(this, "clicked", 7);
|
|
72
|
-
this.textValue = undefined;
|
|
73
|
-
this.placeholderLabel = undefined;
|
|
74
|
-
this.darkTheme = undefined;
|
|
75
|
-
this.isNews = undefined;
|
|
76
|
-
this.elevation = "small";
|
|
77
|
-
this.enableClear = false;
|
|
78
|
-
this.styles = undefined;
|
|
79
|
-
}
|
|
80
|
-
textChangedHandler(event) {
|
|
81
|
-
this.valueChanged.emit({
|
|
82
|
-
sender: this,
|
|
83
|
-
event: event,
|
|
84
|
-
searchTerm: this.getSearchValue(),
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
buttonClickHandler(event) {
|
|
88
|
-
this.clicked.emit({
|
|
89
|
-
sender: this,
|
|
90
|
-
event: event,
|
|
91
|
-
searchTerm: this.getSearchValue(),
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
keyDownHandler(event) {
|
|
95
|
-
if (event.key == "Enter") {
|
|
96
|
-
this.clicked.emit({
|
|
97
|
-
sender: this,
|
|
98
|
-
event: event,
|
|
99
|
-
searchTerm: this.getSearchValue(),
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
if (this.getSearchValue() && this.enableClear) ;
|
|
103
|
-
}
|
|
104
|
-
keyUpHandler() {
|
|
105
|
-
if (!this.darkTheme) {
|
|
106
|
-
this.enableClear = !(this.getSearchValue() == "");
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
getSearchValue() {
|
|
110
|
-
let result = "";
|
|
111
|
-
let input = this.el.shadowRoot.querySelector("input");
|
|
112
|
-
if (input) {
|
|
113
|
-
result = input.value;
|
|
114
|
-
}
|
|
115
|
-
return result;
|
|
116
|
-
}
|
|
117
|
-
async clearSearchValue() {
|
|
118
|
-
this.textValue = "";
|
|
119
|
-
let input = this.el.shadowRoot.querySelector("input");
|
|
120
|
-
if (input) {
|
|
121
|
-
input.value = "";
|
|
122
|
-
this.enableClear = false;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
render() {
|
|
126
|
-
const classMap = this.getCssClassMap();
|
|
127
|
-
const clearIconColor = this.darkTheme ? "white" : "black";
|
|
128
|
-
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("div", { class: "search-div" }, index.h("div", { class: "input-wrap mf-listen", id: "searchTextID" }, index.h("input", { id: "ptc-search-input", type: "text", value: this.textValue, placeholder: this.placeholderLabel, onKeyDown: (e) => {
|
|
129
|
-
this.keyDownHandler(e);
|
|
130
|
-
}, onKeyUp: () => {
|
|
131
|
-
this.keyUpHandler();
|
|
132
|
-
}, onChange: (e) => {
|
|
133
|
-
this.textChangedHandler(e);
|
|
134
|
-
} }), this.enableClear && (index.h("div", { class: "icon-wrapper" }, index.h("icon-asset", { class: "cls", type: "ptc", color: clearIconColor, name: "times", size: "xxx-small", onClick: (e) => {
|
|
135
|
-
this.clearSearchValue();
|
|
136
|
-
this.buttonClickHandler(e);
|
|
137
|
-
} })))), index.h("div", { class: "tracker-div mf-listen", id: "searchBtnID" }, index.h("button", { type: "button", color: "blackgrey", class: "search-btn", onClick: (e) => {
|
|
138
|
-
this.buttonClickHandler(e);
|
|
139
|
-
} }, index.h("icon-asset", { type: "ptc", size: "medium", name: "new-search", color: "white" }))))));
|
|
140
|
-
}
|
|
141
|
-
getCssClassMap() {
|
|
142
|
-
return {
|
|
143
|
-
["dark"]: this.darkTheme ? true : false,
|
|
144
|
-
[this.elevation]: true,
|
|
145
|
-
["enable-clear"]: this.enableClear,
|
|
146
|
-
["news"]: this.isNews ? true : false,
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
get el() { return index.getElement(this); }
|
|
150
|
-
};
|
|
151
|
-
PtcSearchField.style = ptcSearchFieldCss;
|
|
152
|
-
|
|
153
|
-
exports.icon_asset = IconAsset;
|
|
154
|
-
exports.ptc_search_field = PtcSearchField;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
let ResponsiveBgVariables = {
|
|
4
|
-
envs: ['xs', 'sm', 'md', 'lg'],
|
|
5
|
-
selector: '.ptc-img',
|
|
6
|
-
interval: 250
|
|
7
|
-
};
|
|
8
|
-
let ResponsivePictureVariables = {
|
|
9
|
-
envs: ['xs', 'sm', 'md', 'lg'],
|
|
10
|
-
selector: '.ptc-picture',
|
|
11
|
-
interval: 250
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.ResponsiveBgVariables = ResponsiveBgVariables;
|
|
15
|
-
exports.ResponsivePictureVariables = ResponsivePictureVariables;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-63ddc79c.js');
|
|
6
|
-
|
|
7
|
-
const listItemCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host(.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);display:flex;align-items:baseline}:host(.breadcrumb) li::before{content:\"/\";top:0;left:0;margin-left:2px}: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(.breadcrumb) li a.item-link:focus-visible{transition:none;border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);padding-bottom:5px;padding-right:5px}:host(.breadcrumb-center) li{display:inline}: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{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:active{text-decoration:none;border-bottom:1px solid var(--color-green-06);color:var(--color-white-grey)}: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(.list-footer) li a:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);transition:none !important;border-color:white !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;-webkit-text-decoration:underline 1px solid;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)}:host(.list-underline) li a:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host li .has-before-home-icon{display:block}@media only screen and (min-width: 480px){:host li .has-before-home-icon{display:none}}";
|
|
8
|
-
|
|
9
|
-
const ListItem = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.listType = "list-primary";
|
|
13
|
-
this.linkHref = undefined;
|
|
14
|
-
this.flushBefore = false;
|
|
15
|
-
this.linkTarget = "_self";
|
|
16
|
-
this.hasBeforeHomeIcon = false;
|
|
17
|
-
this.trackerId = undefined;
|
|
18
|
-
this.color = undefined;
|
|
19
|
-
this.styles = undefined;
|
|
20
|
-
this.ariaLabel = "";
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
const classMap = this.getCssClassMap();
|
|
24
|
-
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("li", { id: this.trackerId }, this.linkHref ? (index.h("a", Object.assign({ class: "item-link", target: this.linkTarget }, (this.linkHref ? { href: this.linkHref } : {}), (this.ariaLabel !== ""
|
|
25
|
-
? { "aria-label": this.ariaLabel }
|
|
26
|
-
: {}), { tabindex: "0" }), index.h("slot", null))) : (index.h("slot", null)))));
|
|
27
|
-
}
|
|
28
|
-
getCssClassMap() {
|
|
29
|
-
let bcEnable = false;
|
|
30
|
-
if (this.hostElement && this.hostElement.parentElement) {
|
|
31
|
-
try {
|
|
32
|
-
bcEnable =
|
|
33
|
-
this.hostElement.parentElement.classList.contains("center") &&
|
|
34
|
-
this.hostElement.parentElement.tagName === "PTC-BREADCRUMB";
|
|
35
|
-
}
|
|
36
|
-
catch (err) {
|
|
37
|
-
console.log(err);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
[this.listType]: true,
|
|
42
|
-
["flush-before"]: this.flushBefore ? true : false,
|
|
43
|
-
[this.color]: !!this.color ? true : false,
|
|
44
|
-
["breadcrumb-center"]: bcEnable,
|
|
45
|
-
["mf-listen"]: true,
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
get hostElement() { return index.getElement(this); }
|
|
49
|
-
};
|
|
50
|
-
ListItem.style = listItemCss;
|
|
51
|
-
|
|
52
|
-
exports.list_item = ListItem;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-63ddc79c.js');
|
|
6
|
-
|
|
7
|
-
const maxWidthContainerCss = ":host{display:block}:host(.left){margin:auto auto auto 0}:host(.right){margin:auto 0 auto auto}:host(.center){margin:0 auto}";
|
|
8
|
-
|
|
9
|
-
const MaxWidthContainer = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.maxWidthP = undefined;
|
|
13
|
-
this.maxWidth = undefined;
|
|
14
|
-
this.breakpoint = 768;
|
|
15
|
-
this.contentAlign = "center";
|
|
16
|
-
this.styles = undefined;
|
|
17
|
-
}
|
|
18
|
-
componentDidLoad() {
|
|
19
|
-
this.handleResize();
|
|
20
|
-
window.addEventListener("resize", this.handleResize.bind(this));
|
|
21
|
-
}
|
|
22
|
-
disconnectedCallback() {
|
|
23
|
-
window.removeEventListener("resize", this.handleResize);
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
const classMap = this.getCssClassMap();
|
|
27
|
-
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("slot", null)));
|
|
28
|
-
}
|
|
29
|
-
getCssClassMap() {
|
|
30
|
-
return {
|
|
31
|
-
[this.contentAlign]: true,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
handleResize() {
|
|
35
|
-
// const selectedContainer = this.el.querySelector('.max-width-container');
|
|
36
|
-
if (this.el) {
|
|
37
|
-
if (window.innerWidth >= this.breakpoint) {
|
|
38
|
-
if (this.maxWidthP) {
|
|
39
|
-
this.el.style.maxWidth = `${this.maxWidthP}%`;
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
this.el.style.maxWidth = `${this.maxWidth}px`;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
this.el.style.maxWidth = "initial";
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
get el() { return index.getElement(this); }
|
|
51
|
-
};
|
|
52
|
-
MaxWidthContainer.style = maxWidthContainerCss;
|
|
53
|
-
|
|
54
|
-
exports.max_width_container = MaxWidthContainer;
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-63ddc79c.js');
|
|
6
|
-
const utils = require('./utils-0ff09a53.js');
|
|
7
|
-
|
|
8
|
-
const ptcBackgroundVideoCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block;position:relative}:host video{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100;-o-object-fit:cover;object-fit:cover}:host .video-overlay{z-index:1;display:block;position:absolute;width:100%;height:100%;top:0;left:0;opacity:0.8;background-image:linear-gradient(270deg, rgba(30, 38, 38, 0) 26%, #1e2626)}:host .video-overlay.dark{background-color:rgba(0, 0, 0, 0.6)}:host(.legacy){display:block;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host(.legacy) video{-o-object-fit:cover;object-fit:cover;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden}:host .iframe-wrapper{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host .iframe-wrapper .background-video-embed{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:100%;height:100%}:host .iframe-wrapper .player .vp-video-wrapper .vp-telecine-cover video{-o-object-fit:cover;object-fit:cover}:host .play-button{position:absolute;top:1.5rem;right:1.5rem;width:34px;height:34px;z-index:99}@media (min-width: 768px){:host .play-button.top-right{top:2rem;right:2rem}}:host .play-button.top-left{right:unset;top:1.5rem;left:1.5rem}@media (min-width: 768px){:host .play-button.top-left{bottom:3.75rem;left:2rem}}@media (min-width: 768px){:host .play-button.bottom-left{top:unset;right:unset;bottom:3.75rem;left:2rem}}@media (min-width: 768px){:host .play-button.bottom-right{top:unset;bottom:3.75rem;right:2rem}}:host .play-button.allbp-bottom-right{top:unset;bottom:4.75rem;right:2rem}:host .play-button button{display:inline-block;padding:5px;position:relative;top:-5px;left:-5px;cursor:pointer}@media only screen and (min-width: 768px){:host .play-button button{top:auto;left:auto}}@media only screen and (min-width: 992px){:host .play-button button{padding:0}}:host .play-button button.bg-svg-play,:host .play-button button.bg-svg-pause{background-repeat:no-repeat;background-size:18px 18px;background-position:center;background-color:var(--color-white);width:34px;height:34px;box-shadow:0px 4px 8px 0px rgba(0, 0, 0, 0.24);border-radius:4px;border:2px solid var(--color-gray-10)}:host .play-button button.bg-svg-play:hover,:host .play-button button.bg-svg-pause:hover{background-color:var(--color-gray-02)}:host .play-button button.bg-svg-play:active,:host .play-button button.bg-svg-pause:active{transition:none;background-color:var(--color-gray-03)}:host .play-button button.bg-svg-play.active:hover,:host .play-button button.bg-svg-pause.active:hover{background-color:var(--color-gray-05)}:host .play-button button.bg-svg-play.active:active,:host .play-button button.bg-svg-pause.active:active{transition:none;background-color:var(--color-gray-03)}:host .play-button button.bg-svg-play:focus,:host .play-button button.bg-svg-pause:focus{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}:host .play-button button.bg-svg-play{background-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 12 18\" id=\"play\"><path d=\"M11.9625 9L0.0374756 0V18L11.9625 9Z\"></path></svg>')}:host .play-button button.bg-svg-pause{background-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 14 18\" id=\"pause\"><path id=\"rect28\" d=\"M 0,0 H 4 V 18 H 0 Z\"></path><path id=\"rect30\" d=\"m 10,0 h 4 v 18 h -4 z\"></path></svg>')}:host{display:block;position:relative}:host .media{position:absolute;inset:0;overflow:hidden}:host .background-video,:host .bg-fallback{position:absolute;inset:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}:host .bg-fallback{display:block}";
|
|
9
|
-
|
|
10
|
-
const PtcBackgroundVideo = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
/** Ensure the first frame is painted and paused. */
|
|
14
|
-
this.showFirstFrame = (v) => {
|
|
15
|
-
v.preload = "auto";
|
|
16
|
-
v.removeAttribute("autoplay");
|
|
17
|
-
v.loop = false;
|
|
18
|
-
const paint = () => {
|
|
19
|
-
try {
|
|
20
|
-
//v.currentTime = 0;
|
|
21
|
-
// If a browser still paints black, try this tiny nudge:
|
|
22
|
-
v.currentTime = 0.1;
|
|
23
|
-
}
|
|
24
|
-
catch (_a) { }
|
|
25
|
-
v.pause();
|
|
26
|
-
};
|
|
27
|
-
if (v.readyState >= 2 /* HAVE_CURRENT_DATA, have enough data */) {
|
|
28
|
-
paint();
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
const onLoaded = () => {
|
|
32
|
-
v.removeEventListener("loadeddata", onLoaded);
|
|
33
|
-
paint();
|
|
34
|
-
};
|
|
35
|
-
v.addEventListener("loadeddata", onLoaded, { once: true });
|
|
36
|
-
v.load();
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
this.videoSrc = undefined;
|
|
40
|
-
this.posterSrc = undefined;
|
|
41
|
-
this.overlay = true;
|
|
42
|
-
this.overlayType = "standard";
|
|
43
|
-
this.playButtonTitle = undefined;
|
|
44
|
-
this.pauseButtonTitle = undefined;
|
|
45
|
-
this.buttonLocation = "bottom-right";
|
|
46
|
-
this.buttonTabIndex = 0;
|
|
47
|
-
this.trackerId = undefined;
|
|
48
|
-
this.defer = undefined;
|
|
49
|
-
this.type = "default";
|
|
50
|
-
this.isIframe = false;
|
|
51
|
-
this.paused = undefined;
|
|
52
|
-
this.loadedTrue = false;
|
|
53
|
-
this.reducedMotion = false;
|
|
54
|
-
}
|
|
55
|
-
componentWillLoad() {
|
|
56
|
-
this.paused = false;
|
|
57
|
-
this.reducedMotion = utils.isReducedMotion();
|
|
58
|
-
}
|
|
59
|
-
componentDidLoad() {
|
|
60
|
-
const afterMount = () => {
|
|
61
|
-
this.loadedTrue = true;
|
|
62
|
-
this.syncPlaybackWithPreference();
|
|
63
|
-
};
|
|
64
|
-
if (this.defer) {
|
|
65
|
-
utils.nextUserInteractionEvent(this).then(afterMount);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
afterMount();
|
|
69
|
-
}
|
|
70
|
-
this.offMotionListener = utils.onReducedMotionChange((reduced) => {
|
|
71
|
-
this.reducedMotion = reduced;
|
|
72
|
-
// Wait a tick for render to reflect state, then sync playback.
|
|
73
|
-
setTimeout(() => this.syncPlaybackWithPreference(), 0);
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
disconnectedCallback() {
|
|
77
|
-
var _a;
|
|
78
|
-
(_a = this.offMotionListener) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
79
|
-
}
|
|
80
|
-
syncPlaybackWithPreference() {
|
|
81
|
-
if (this.isIframe) {
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
const v = this.videoEl;
|
|
85
|
-
if (!v)
|
|
86
|
-
return;
|
|
87
|
-
if (this.reducedMotion) {
|
|
88
|
-
// Animations OFF, freeze first frame
|
|
89
|
-
this.showFirstFrame(v);
|
|
90
|
-
this.paused = true; //sync icon state
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
// Animations ON, autoplay unless user paused
|
|
94
|
-
v.preload = "auto";
|
|
95
|
-
v.loop = true;
|
|
96
|
-
if (!this.paused) {
|
|
97
|
-
v.setAttribute("autoplay", "");
|
|
98
|
-
v.play().catch(() => { });
|
|
99
|
-
this.paused = false; //sync icon state
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
v.pause();
|
|
103
|
-
this.paused = true; //sync icon state
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
// ------------ Render ------------
|
|
108
|
-
render() {
|
|
109
|
-
const canMountMedia = this.loadedTrue;
|
|
110
|
-
const videoNode = !this.isIframe && canMountMedia && (index.h("video", { class: "background-video", src: this.videoSrc, muted: true, playsinline: true, autoplay: !this.reducedMotion && !this.paused, loop: !this.reducedMotion, preload: "auto", "aria-hidden": "true", tabindex: "-1", ref: (el) => (this.videoEl = el) }));
|
|
111
|
-
const iframeNode = this.isIframe && canMountMedia && (index.h("div", { class: "iframe-wrapper" }, index.h("iframe", { id: "jumbotron-iframe", src: this.videoSrc, frameborder: 0, allow: "autoplay", allowFullScreen: true, class: "background-video-embed", "aria-hidden": "true", tabindex: "-1" })));
|
|
112
|
-
return (index.h(index.Host, { class: this.type }, index.h("div", { class: "media" }, videoNode, iframeNode), !!this.videoSrc && this.playButtonTitle && (index.h("div", { class: `play-button ${this.buttonLocation}` }, this.paused && (index.h("ptc-tooltip", { class: "play-btn", mode: "wrapper", description: this.playButtonTitle, position: this.buttonLocation === "allbp-bottom-right"
|
|
113
|
-
? "side-left"
|
|
114
|
-
: "bottom-right", styles: ".wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{min-width:unset!important; white-space: nowrap}" }, index.h("div", { id: this.trackerId, class: "tracker-div mf-listen" }, index.h("button", { class: "bg-svg-play", type: "button", tabindex: this.buttonTabIndex, onClick: (e) => this.toggleVideoPlay(e), "aria-label": "Video Play button" })))), !this.paused && !!this.pauseButtonTitle && (index.h("ptc-tooltip", { class: "pause-btn", mode: "wrapper", description: this.pauseButtonTitle, position: this.buttonLocation === "allbp-bottom-right"
|
|
115
|
-
? "side-left"
|
|
116
|
-
: "bottom-right", styles: ".wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{min-width:unset!important; white-space: nowrap}" }, index.h("div", { id: this.trackerId, class: "tracker-div mf-listen" }, index.h("button", { class: "bg-svg-pause", tabindex: this.buttonTabIndex, type: "button", onClick: (e) => this.toggleVideoPlay(e), "aria-label": "Video Pause button" })))))), this.overlay ? index.h("div", { class: `video-overlay ${this.overlayType}` }) : "", this.type === "default" ? index.h("slot", null) : ""));
|
|
117
|
-
}
|
|
118
|
-
toggleVideoPlay(e) {
|
|
119
|
-
e.preventDefault();
|
|
120
|
-
this.paused = !this.paused;
|
|
121
|
-
const v = this.videoEl;
|
|
122
|
-
if (!v)
|
|
123
|
-
return;
|
|
124
|
-
if (this.paused) {
|
|
125
|
-
v.pause();
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
v.loop = true;
|
|
129
|
-
if (!this.reducedMotion)
|
|
130
|
-
v.setAttribute("autoplay", "");
|
|
131
|
-
v.play().catch((z) => console.error(z));
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
async pauseVideo() {
|
|
135
|
-
var _a;
|
|
136
|
-
this.paused = true;
|
|
137
|
-
(_a = this.videoEl) === null || _a === void 0 ? void 0 : _a.pause();
|
|
138
|
-
}
|
|
139
|
-
async playVideo() {
|
|
140
|
-
this.paused = false;
|
|
141
|
-
if (this.videoEl) {
|
|
142
|
-
this.videoEl.loop = true;
|
|
143
|
-
if (!this.reducedMotion)
|
|
144
|
-
this.videoEl.setAttribute("autoplay", "");
|
|
145
|
-
this.videoEl.play().catch((z) => console.error(z));
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
get el() { return index.getElement(this); }
|
|
149
|
-
};
|
|
150
|
-
PtcBackgroundVideo.style = ptcBackgroundVideoCss;
|
|
151
|
-
|
|
152
|
-
exports.ptc_background_video = PtcBackgroundVideo;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-63ddc79c.js');
|
|
6
|
-
|
|
7
|
-
const ptcBreadcrumbCss = "h1.sc-ptc-breadcrumb,h2.sc-ptc-breadcrumb,h3.sc-ptc-breadcrumb,h4.sc-ptc-breadcrumb,h5.sc-ptc-breadcrumb,h6.sc-ptc-breadcrumb,p.sc-ptc-breadcrumb,ul.sc-ptc-breadcrumb,li.sc-ptc-breadcrumb,ptc-subnav.sc-ptc-breadcrumb,ptc-tab-list.sc-ptc-breadcrumb,ptc-link.sc-ptc-breadcrumb,ptc-square-card.sc-ptc-breadcrumb,.hyphenate-text.sc-ptc-breadcrumb,ptc-footer.sc-ptc-breadcrumb{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-ptc-breadcrumb,h2.sc-ptc-breadcrumb,h3.sc-ptc-breadcrumb,h4.sc-ptc-breadcrumb,h5.sc-ptc-breadcrumb,h6.sc-ptc-breadcrumb,p.sc-ptc-breadcrumb,ul.sc-ptc-breadcrumb,li.sc-ptc-breadcrumb,ptc-subnav.sc-ptc-breadcrumb,ptc-tab-list.sc-ptc-breadcrumb,ptc-link.sc-ptc-breadcrumb,ptc-square-card.sc-ptc-breadcrumb,.hyphenate-text.sc-ptc-breadcrumb,ptc-footer.sc-ptc-breadcrumb{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}.sc-ptc-breadcrumb-h{margin-top:var(--ptc-element-spacing-05);display:flex;align-items:flex-start}.sc-ptc-breadcrumb-h .visually-hidden.sc-ptc-breadcrumb{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb{position:relative;list-style:none;margin:0;padding:0 0 0 22px}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{position:relative;display:inline;font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-xxx-small);line-height:var(--ptc-line-height-densest);word-break:initial;color:var(--color-white)}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb::before{content:\"/\";margin:0 3px}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.home-link.sc-ptc-breadcrumb{position:absolute;left:0;margin-top:-3px}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.home-link.sc-ptc-breadcrumb::before{display:none}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{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);color:var(--color-white)}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb:active{transition:none}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb:hover{text-decoration:underline;text-decoration-color:var(--color-green-07);outline:none}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.breadcrumb-item-link.sc-ptc-breadcrumb:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);display:inline-block}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.breadcrumb-item-link.sc-ptc-breadcrumb:focus-visible.dark-mode-link:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}.white.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-white)}.white.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-white)}.black.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-black)}.black.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-black)}.ptc-green.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-green-07)}.ptc-green.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-green-07)}.gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-gray-06)}.gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-gray-06)}.light-gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-gray-05)}.light-gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-gray-05)}.primary-gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-gray-10)}.primary-gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-gray-10)}.left.sc-ptc-breadcrumb-h{display:flex;justify-content:flex-start;align-items:flex-end}.center.sc-ptc-breadcrumb-h{display:flex;justify-content:center}.center.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb{padding:0;text-align:center}.center.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{display:inline-block}.center.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.home-link.sc-ptc-breadcrumb{position:relative;left:auto;margin-top:0;vertical-align:text-bottom;margin-bottom:-1px}.right.sc-ptc-breadcrumb-h{display:flex;justify-content:flex-end}.remove-top-margin.sc-ptc-breadcrumb-h{margin-top:0px !important}";
|
|
8
|
-
|
|
9
|
-
const PtcBreadcrumb = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.position = undefined;
|
|
13
|
-
this.removeTopMargin = false;
|
|
14
|
-
this.color = "white";
|
|
15
|
-
this.isDarkMode = false;
|
|
16
|
-
this.styles = undefined;
|
|
17
|
-
}
|
|
18
|
-
componentWillLoad() {
|
|
19
|
-
this.listItems = this.hostElement.querySelectorAll("list-item");
|
|
20
|
-
}
|
|
21
|
-
componentDidLoad() {
|
|
22
|
-
if (this.listItems) {
|
|
23
|
-
this.hostElement.querySelectorAll("list-item").forEach((item) => {
|
|
24
|
-
item.remove();
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
render() {
|
|
29
|
-
const classMap = this.getCssClassMap();
|
|
30
|
-
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("nav", { "aria-label": "Breadcrumb" }, index.h("ol", { class: "ptc-breadcrumb-ol" }, index.h("li", { class: "home-link mf-listen", id: "homeLinkID" }, index.h("a", { href: "/", "aria-label": "Home Link", class: {
|
|
31
|
-
["breadcrumb-item-link"]: true,
|
|
32
|
-
["dark-mode-link"]: this.isDarkMode,
|
|
33
|
-
} }, index.h("icon-asset", { type: "ptc", size: "medium", name: "icon-home", color: this.color }))), Array.from(this.listItems).map((item, index$1, array) => {
|
|
34
|
-
const textContent = item.textContent.trim();
|
|
35
|
-
const href = item.getAttribute("link-href");
|
|
36
|
-
return (index.h("li", { key: index$1, class: "mf-listen", id: `breadcrumb` + index$1 + `ID` }, index$1 < array.length - 1 ? (index.h("a", { href: href, target: "_self", class: {
|
|
37
|
-
["breadcrumb-item-link"]: true,
|
|
38
|
-
["dark-mode-link"]: this.isDarkMode,
|
|
39
|
-
} }, textContent)) : (textContent), index.h("span", { class: "visually-hidden" }, "/")));
|
|
40
|
-
})))));
|
|
41
|
-
}
|
|
42
|
-
getCssClassMap() {
|
|
43
|
-
return {
|
|
44
|
-
[this.position]: !!this.position && this.position !== undefined ? true : false,
|
|
45
|
-
["remove-top-margin"]: this.removeTopMargin ? true : false,
|
|
46
|
-
[this.color]: true,
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
get hostElement() { return index.getElement(this); }
|
|
50
|
-
};
|
|
51
|
-
PtcBreadcrumb.style = ptcBreadcrumbCss;
|
|
52
|
-
|
|
53
|
-
exports.ptc_breadcrumb = PtcBreadcrumb;
|