@ptcwebops/ptcw-design 0.2.7 → 0.2.9
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_16.cjs.entry.js +812 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-announcement.cjs.entry.js +43 -0
- package/dist/cjs/ptc-list.cjs.entry.js +2 -3
- package/dist/cjs/ptc-svg-btn.cjs.entry.js +31 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/icon-asset/media/designer.svg +33 -0
- package/dist/collection/components/list-item/list-item.css +39 -1
- package/dist/collection/components/list-item/list-item.js +26 -5
- package/dist/collection/components/ptc-announcement/ptc-announcement.css +5 -5
- package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.css +19 -0
- package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +21 -0
- package/dist/collection/components/ptc-button/ptc-button.css +12 -1
- package/dist/collection/components/ptc-button/ptc-button.js +29 -7
- package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.css +12 -0
- package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +41 -0
- package/dist/collection/components/ptc-card-content/ptc-card-content.css +61 -0
- package/dist/collection/components/ptc-card-content/ptc-card-content.js +81 -0
- package/dist/collection/components/ptc-card-plm/ptc-card-plm.css +19 -0
- package/dist/collection/components/ptc-card-plm/ptc-card-plm.js +97 -0
- package/dist/collection/components/ptc-hero/ptc-hero.css +13 -0
- package/dist/collection/components/ptc-hero/ptc-hero.js +43 -0
- package/dist/collection/components/ptc-img/ptc-img.js +6 -1
- package/dist/collection/components/ptc-link/ptc-link.css +25 -3
- package/dist/collection/components/ptc-link/ptc-link.js +3 -2
- package/dist/collection/components/ptc-list/ptc-list.css +8 -4
- package/dist/collection/components/ptc-list/ptc-list.js +5 -8
- package/dist/collection/components/ptc-overlay/ptc-overlay.css +81 -0
- package/dist/collection/components/ptc-overlay/ptc-overlay.js +88 -3
- package/dist/collection/components/ptc-para/ptc-para.css +59 -0
- package/dist/collection/components/ptc-para/ptc-para.js +53 -7
- package/dist/collection/components/ptc-picture/ptc-picture.css +28 -1
- package/dist/collection/components/ptc-picture/ptc-picture.js +27 -9
- package/dist/collection/components/ptc-spacer/ptc-spacer.css +11 -0
- package/dist/collection/components/ptc-spacer/ptc-spacer.js +2 -2
- package/dist/collection/components/ptc-span/ptc-span.css +26 -1
- package/dist/collection/components/ptc-span/ptc-span.js +6 -3
- package/dist/collection/components/ptc-title/ptc-title.css +108 -11
- package/dist/collection/components/ptc-title/ptc-title.js +62 -4
- package/dist/custom-elements/index.d.ts +30 -0
- package/dist/custom-elements/index.js +200 -36
- package/dist/esm/icon-asset_16.entry.js +793 -0
- package/dist/esm/{index-eb8ce23d.js → index-6ce5b664.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottie-player.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-announcement.entry.js +39 -0
- package/dist/esm/ptc-avatar.entry.js +1 -1
- package/dist/esm/ptc-card.entry.js +1 -1
- package/dist/esm/ptc-countdown.entry.js +1 -1
- package/dist/esm/ptc-date.entry.js +1 -1
- package/dist/esm/ptc-footer.entry.js +1 -1
- package/dist/esm/ptc-form.entry.js +1 -1
- package/dist/esm/ptc-input.entry.js +1 -1
- package/dist/esm/ptc-list.entry.js +3 -4
- package/dist/esm/ptc-lottie.entry.js +1 -1
- package/dist/esm/ptc-nav-item.entry.js +1 -1
- package/dist/esm/ptc-nav.entry.js +1 -1
- package/dist/esm/ptc-select.entry.js +1 -1
- package/dist/esm/ptc-svg-btn.entry.js +27 -0
- package/dist/esm/ptcw-design.js +2 -2
- package/dist/ptcw-design/media/designer.svg +33 -0
- package/dist/ptcw-design/{p-63b55aba.entry.js → p-281824f5.entry.js} +1 -1
- package/dist/ptcw-design/p-31b2af1d.entry.js +1 -0
- package/dist/ptcw-design/{p-f94c4594.entry.js → p-3437fbce.entry.js} +1 -1
- package/dist/ptcw-design/{p-e8650244.entry.js → p-542939d4.entry.js} +1 -1
- package/dist/ptcw-design/{p-ef6acb81.entry.js → p-5c78913c.entry.js} +1 -1
- package/dist/ptcw-design/{p-3f42afb6.entry.js → p-5eb74dc3.entry.js} +1 -1
- package/dist/ptcw-design/p-609dec21.entry.js +1 -0
- package/dist/ptcw-design/{p-1b3b0193.entry.js → p-6ff80c95.entry.js} +1 -1
- package/dist/ptcw-design/p-8bbb4277.entry.js +1 -0
- package/dist/ptcw-design/p-9a35c9e2.entry.js +1 -0
- package/dist/ptcw-design/{p-22fd400f.entry.js → p-aafe51df.entry.js} +1 -1
- package/dist/ptcw-design/{p-75dc7328.entry.js → p-ac57feca.entry.js} +1 -1
- package/dist/ptcw-design/{p-2ca3c085.js → p-b1afaef3.js} +1 -1
- package/dist/ptcw-design/p-b85eda19.entry.js +1 -0
- package/dist/ptcw-design/p-bac826ad.entry.js +1 -0
- package/dist/ptcw-design/{p-e4b96b46.entry.js → p-da7ee0ba.entry.js} +1 -1
- package/dist/ptcw-design/{p-32ef3a79.entry.js → p-e2492128.entry.js} +1 -1
- package/dist/ptcw-design/p-e266fc0b.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +2 -2
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/list-item/list-item.d.ts +2 -1
- package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +4 -0
- package/dist/types/components/ptc-button/ptc-button.d.ts +7 -3
- package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +5 -0
- package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +11 -0
- package/dist/types/components/ptc-card-plm/ptc-card-plm.d.ts +8 -0
- package/dist/types/components/ptc-hero/ptc-hero.d.ts +5 -0
- package/dist/types/components/ptc-img/ptc-img.d.ts +3 -0
- package/dist/types/components/ptc-link/ptc-link.d.ts +1 -1
- package/dist/types/components/ptc-list/ptc-list.d.ts +1 -1
- package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +17 -0
- package/dist/types/components/ptc-para/ptc-para.d.ts +11 -3
- package/dist/types/components/ptc-picture/ptc-picture.d.ts +5 -1
- package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +1 -1
- package/dist/types/components/ptc-span/ptc-span.d.ts +4 -1
- package/dist/types/components/ptc-title/ptc-title.d.ts +14 -2
- package/dist/types/components.d.ts +229 -28
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/icon-asset.cjs.entry.js +0 -64
- package/dist/cjs/interfaces-0ecd8027.js +0 -15
- package/dist/cjs/list-item.cjs.entry.js +0 -27
- package/dist/cjs/ptc-announcement_2.cjs.entry.js +0 -68
- package/dist/cjs/ptc-button.cjs.entry.js +0 -72
- package/dist/cjs/ptc-img.cjs.entry.js +0 -155
- package/dist/cjs/ptc-link.cjs.entry.js +0 -53
- package/dist/cjs/ptc-overlay.cjs.entry.js +0 -19
- package/dist/cjs/ptc-para.cjs.entry.js +0 -40
- package/dist/cjs/ptc-picture.cjs.entry.js +0 -159
- package/dist/cjs/ptc-spacer.cjs.entry.js +0 -46
- package/dist/cjs/ptc-span.cjs.entry.js +0 -31
- package/dist/cjs/ptc-title.cjs.entry.js +0 -49
- package/dist/esm/icon-asset.entry.js +0 -60
- package/dist/esm/interfaces-3cb94654.js +0 -12
- package/dist/esm/list-item.entry.js +0 -23
- package/dist/esm/ptc-announcement_2.entry.js +0 -63
- package/dist/esm/ptc-button.entry.js +0 -68
- package/dist/esm/ptc-img.entry.js +0 -151
- package/dist/esm/ptc-link.entry.js +0 -49
- package/dist/esm/ptc-overlay.entry.js +0 -15
- package/dist/esm/ptc-para.entry.js +0 -36
- package/dist/esm/ptc-picture.entry.js +0 -155
- package/dist/esm/ptc-spacer.entry.js +0 -42
- package/dist/esm/ptc-span.entry.js +0 -27
- package/dist/esm/ptc-title.entry.js +0 -45
- package/dist/ptcw-design/p-01f4bf71.entry.js +0 -1
- package/dist/ptcw-design/p-1bf9750d.entry.js +0 -1
- package/dist/ptcw-design/p-23d07898.entry.js +0 -1
- package/dist/ptcw-design/p-240733ce.js +0 -1
- package/dist/ptcw-design/p-29c54eb0.entry.js +0 -1
- package/dist/ptcw-design/p-2b59ce7a.entry.js +0 -1
- package/dist/ptcw-design/p-389a5670.entry.js +0 -1
- package/dist/ptcw-design/p-51443fbb.entry.js +0 -1
- package/dist/ptcw-design/p-54794e45.entry.js +0 -1
- package/dist/ptcw-design/p-5ae43421.entry.js +0 -1
- package/dist/ptcw-design/p-6b5c0d9d.entry.js +0 -1
- package/dist/ptcw-design/p-7076b32f.entry.js +0 -1
- package/dist/ptcw-design/p-7b379559.entry.js +0 -1
- package/dist/ptcw-design/p-a86452af.entry.js +0 -1
- package/dist/ptcw-design/p-d3f9852f.entry.js +0 -1
- package/dist/ptcw-design/p-d80b24c9.entry.js +0 -1
- package/dist/ptcw-design/p-fd29d9dd.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["ptc-
|
|
17
|
+
return index.bootstrapLazy([["ptc-announcement.cjs",[[1,"ptc-announcement",{"barTitle":[1,"bar-title"],"Description":[1,"description"],"linkText":[513,"link-text"],"visible":[1540],"linkUrl":[513,"link-url"],"tempContainer":[4,"temp-container"]}]]],["ptc-card.cjs",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"],"heading":[1],"headingTransform":[1,"heading-transform"],"cardDate":[1,"card-date"],"styles":[1]}]]],["ptc-lottie.cjs",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["my-component.cjs",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-avatar.cjs",[[1,"ptc-avatar"]]],["ptc-countdown.cjs",[[1,"ptc-countdown"]]],["ptc-footer.cjs",[[1,"ptc-footer"]]],["ptc-form.cjs",[[6,"ptc-form",{"value":[32],"inputValue":[32],"selectValue":[32]}]]],["ptc-input.cjs",[[6,"ptc-input",{"type":[1],"dataEloquaName":[1,"data-eloqua-name"],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"focused":[32]}]]],["ptc-list.cjs",[[2,"ptc-list",{"listType":[1,"list-type"],"listItems":[16]}]]],["ptc-nav.cjs",[[1,"ptc-nav"]]],["ptc-nav-item.cjs",[[1,"ptc-nav-item",{"url":[1025],"label":[1025],"ariaExpanded":[1028,"aria-expanded"],"depth":[1538],"hasChildren":[1028,"has-children"],"parentExpanded":[1540,"parent-expanded"],"navType":[1,"nav-type"]},[[0,"handleClick","handleClick"],[9,"resize","handleResize"]]]]],["ptc-select.cjs",[[6,"ptc-select",{"dataEloquaName":[1,"data-eloqua-name"],"selectId":[1,"select-id"],"name":[1],"valueOptions":[1040]}]]],["lottie-player.cjs",[[1,"lottie-player",{"mode":[1],"autoplay":[4],"background":[513],"controls":[4],"count":[2],"direction":[2],"hover":[4],"loop":[516],"renderer":[1],"speed":[2],"src":[1],"currentState":[1,"current-state"],"seeker":[8],"intermission":[2],"play":[64],"pause":[64],"stop":[64],"seek":[64],"getLottie":[64],"setSpeed":[64],"setDirection":[64],"setLooping":[64],"togglePlay":[64],"toggleLooping":[64]}]]],["ptc-date.cjs",[[1,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1],"dateString":[1,"date-string"],"dateStyles":[1,"date-styles"]}]]],["ptc-svg-btn.cjs",[[1,"ptc-svg-btn",{"svgName":[1,"svg-name"]}]]],["icon-asset_16.cjs",[[1,"ptc-breadcrumb"],[1,"ptc-hero",{"heroType":[1,"hero-type"]}],[1,"ptc-link",{"disabled":[516],"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}],[1,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"],"linkHref":[1,"link-href"],"linkTitle":[1,"link-title"],"target":[1],"rel":[1],"tabNav":[2,"tab-nav"],"styles":[1]}],[1,"ptc-card-bottom",{"cardType":[1,"card-type"]}],[1,"ptc-card-content",{"cardType":[1,"card-type"]}],[1,"ptc-card-plm",{"cardType":[1,"card-type"],"cardLink":[1,"card-link"],"linkTitle":[1,"link-title"],"linkTarget":[1,"link-target"]}],[1,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"],"paraColor":[1,"para-color"],"paraLineH":[1,"para-line-h"],"paraMargin":[1,"para-margin"]}],[1,"ptc-picture",{"src":[1],"alt":[1],"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imagePosition":[1,"image-position"],"borderRadius":[1,"border-radius"],"height":[1],"width":[1],"objectFit":[1,"object-fit"],"styles":[1],"oldSrc":[32]},[[9,"resize","WindowResize"]]],[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}],[1,"ptc-span",{"spanStyle":[1,"span-style"],"display":[1],"styles":[1]}],[6,"ptc-title",{"isPlmHub":[4,"is-plm-hub"],"type":[1],"textAlign":[1,"text-align"],"upperline":[1],"titleMargin":[1,"title-margin"],"styles":[1]}],[1,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"],"flushBefore":[4,"flush-before"]}],[4,"ptc-img",{"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imgUrl":[1,"img-url"],"imageType":[1,"image-type"],"borderRadius":[1,"border-radius"],"loadMode":[1,"load-mode"]},[[9,"resize","WindowResize"]]],[1,"ptc-overlay",{"filterColor":[1,"filter-color"],"borderRadius":[1,"border-radius"],"overlayZIndex":[1,"overlay-z-index"],"styles":[1]}],[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-0b899fc6.js');
|
|
6
|
+
|
|
7
|
+
const ptcAnnouncementCss = ":host{display:block}.announcement{width:100%;position:relative;background-color:#e4e7e9;z-index:860;background-size:cover;background-repeat:repeat-x;border:1px solid var(--color-secondary-turtlegreen);-webkit-box-shadow:1px 1px 9px 0 rgba(0, 0, 0, 0.56);box-shadow:1px 1px 9px 0 rgba(0, 0, 0, 0.56);z-index:999;display:none}.visible{display:block}.content-wrapper{display:flex;padding:5px 15px;margin:0 auto;align-items:center;justify-content:space-between}@media screen and (min-width: 768px){.content-wrapper{padding:10px 15px}}@media screen and (min-width: 768px){.temp-container{width:750px}}@media screen and (min-width: 992px){.temp-container{width:970px}}@media screen and (min-width: 1200px){.temp-container{width:1170px}}@media screen and (min-width: 1440px){.temp-container{width:1400px}}@media screen and (min-width: 1600px){.temp-container{width:1560px}}.left-content{display:flex;flex-basis:82%;flex-direction:column}@media screen and (min-width: 768px){.left-content{align-items:flex-start;justify-content:flex-start}}.title{flex-basis:18%;font-family:Raleway;font-size:13px;font-weight:800;font-stretch:normal;font-style:normal;line-height:2.6;letter-spacing:1px;text-align:left;color:#40434a;text-transform:uppercase}.ptc-svg-btn{flex-basis:18%}.bar-close{padding-right:15px}.description{flex-basis:82%;font-family:Raleway;font-size:13px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.4;letter-spacing:normal;text-align:left;color:#40434a;}a{color:#3b4550;-webkit-transition:color 0.3s ease;-o-transition:color 0.3s ease;transition:color 0.3s ease;font-weight:700;border-bottom:0.15rem solid #74c34d;text-decoration:none;margin-left:16px}a:hover{color:#74c34d;text-decoration:none}@media (min-width: 768px){.bar-close{padding-right:0px}}@media (min-width: 992px){.left-content{flex-direction:row;align-items:center}.title{font-size:14px;font-weight:800;line-height:1.86;letter-spacing:1.4px}.description{font-size:16px;font-weight:500;line-height:1.6}}";
|
|
8
|
+
|
|
9
|
+
let PtcAnnouncement = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.close = index.createEvent(this, "close", 7);
|
|
13
|
+
/**
|
|
14
|
+
* bar title
|
|
15
|
+
*/
|
|
16
|
+
this.barTitle = "";
|
|
17
|
+
/**
|
|
18
|
+
* bar description
|
|
19
|
+
*/
|
|
20
|
+
this.Description = "";
|
|
21
|
+
/**
|
|
22
|
+
* Link Url
|
|
23
|
+
*/
|
|
24
|
+
this.linkUrl = '#';
|
|
25
|
+
this.closeClick = () => {
|
|
26
|
+
this.visible = false;
|
|
27
|
+
this.close.emit();
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
const classMap = this.getCssClassMap();
|
|
32
|
+
return (index.h(index.Host, null, index.h("div", { class: classMap, part: "part-announcement" }, index.h("div", { class: this.tempContainer ? 'content-wrapper temp-container' : 'content-wrapper' }, index.h("div", { class: "left-content", part: "part-left-content" }, !!this.barTitle ? index.h("div", { class: "title" }, this.barTitle) : null, index.h("div", { class: "description" }, !!this.Description ? index.h("span", null, this.Description) : null, !!this.linkText ? (index.h("a", { href: this.linkUrl, title: this.linkText }, this.linkText)) : null)), index.h("ptc-svg-btn", { class: "bar-close", "svg-name": "close", onClick: this.closeClick })))));
|
|
33
|
+
}
|
|
34
|
+
getCssClassMap() {
|
|
35
|
+
return {
|
|
36
|
+
['announcement']: true,
|
|
37
|
+
[this.visible ? 'visible' : '']: true,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
PtcAnnouncement.style = ptcAnnouncementCss;
|
|
42
|
+
|
|
43
|
+
exports.ptc_announcement = PtcAnnouncement;
|
|
@@ -4,12 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0b899fc6.js');
|
|
6
6
|
|
|
7
|
-
const ptcListCss = "ptc-list
|
|
7
|
+
const ptcListCss = ".sc-ptc-list-h{display:block}.list-primary.sc-ptc-list-h li.sc-ptc-list{font-size:var(--ptc-font-size-medium);line-height:var(--ptc-line-height-normal);letter-spacing:var(--ptc-letter-spacing-normal);list-style:none}.list-primary.sc-ptc-list-h li.sc-ptc-list:not(:last-child){margin-bottom:0.625rem}.list-primary.sc-ptc-list-h li.sc-ptc-list a.sc-ptc-list{color:var(--color-white);outline:none;text-decoration:none;font-family:Rajdhani;font-size:var(--ptc-font-size-medium);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-normal);text-transform:uppercase;letter-spacing:var(--ptc-letter-spacing-normal)}.list-primary.sc-ptc-list-h li.sc-ptc-list a.sc-ptc-list:hover{color:var(--color-white);border-bottom:1.5px solid var(--color-primary-green)}";
|
|
8
8
|
|
|
9
9
|
let PtcList = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
|
-
this.listType = 'para-list';
|
|
13
12
|
}
|
|
14
13
|
render() {
|
|
15
14
|
const classMap = this.getCssClassMap();
|
|
@@ -23,7 +22,7 @@ let PtcList = class {
|
|
|
23
22
|
}
|
|
24
23
|
getCssClassMap() {
|
|
25
24
|
return {
|
|
26
|
-
[this.listType]: true,
|
|
25
|
+
[this.listType]: this.listItems ? true : false,
|
|
27
26
|
};
|
|
28
27
|
}
|
|
29
28
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-0b899fc6.js');
|
|
6
|
+
|
|
7
|
+
const closeSvg = `<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 42 41.485">
|
|
8
|
+
<g id="Group_1042" data-name="Group 1042" transform="rotate(180 108.25 87.993)">
|
|
9
|
+
<path id="Line_446" d="M0 0v39.486" class="cls-1" data-name="Line 446"></path>
|
|
10
|
+
<path id="Line_447" d="M0 0h40" class="cls-1" data-name="Line 447"></path>
|
|
11
|
+
<path id="Line_448" d="M0 33.592V0" class="cls-1" data-name="Line 448"></path>
|
|
12
|
+
<path id="Line_449" d="M23.994 0H0" class="cls-1" data-name="Line 449"></path>
|
|
13
|
+
<path id="Line_450" d="M0 0l17.596 17.596" class="cls-2" data-name="Line 450" transform="translate(187.229 147.226)"></path>
|
|
14
|
+
<path id="Line_451" d="M0 7.198L7.199 0" class="cls-2" data-name="Line 451" transform="translate(197.55 147.312)"></path>
|
|
15
|
+
<path id="Path_114" d="M0 7.2L7.2 0" class="cls-2" data-name="Path 114" transform="translate(187.313 157.549)"></path>
|
|
16
|
+
</g>
|
|
17
|
+
</svg>`;
|
|
18
|
+
|
|
19
|
+
const ptcSvgBtnCss = ":host{display:block;cursor:pointer}.svg-close svg .cls-1,.svg-close svg .cls-2{fill:none;stroke-width:2px}.svg-close svg .cls-1{stroke:#40434A;stroke-linecap:square}.svg-close svg .cls-2{stroke:#40434A}.svg-close svg path{-webkit-transition:all 0.25s ease-in-out;-o-transition:all ease-in-out 0.25s;transition:all 0.25s ease-in-out}.svg-close svg .cls-1:first-child{-webkit-transform:translate(175.5px, 135.5px);-ms-transform:translate(175.5px, 135.5px);transform:translate(175.5px, 135.5px)}.svg-close svg .cls-1:nth-child(2){-webkit-transform:translate(175.5px, 174.985px);-ms-transform:translate(175.5px, 174.985px);transform:translate(175.5px, 174.985px)}.svg-close svg .cls-1:nth-child(3){-webkit-transform:translate(215.5px, 141.393px);-ms-transform:translate(215.5px, 141.393px);transform:translate(215.5px, 141.393px)}.svg-close svg .cls-1:nth-child(4){-webkit-transform:translate(175.5px, 135.5px);-ms-transform:translate(175.5px, 135.5px);transform:translate(175.5px, 135.5px)}.svg-close:hover svg .cls-1:first-child{-webkit-transform:translate(175.5px, 162px);-ms-transform:translate(175.5px, 162px);transform:translate(175.5px, 162px)}.svg-close:hover svg .cls-1:nth-child(2){-webkit-transform:translate(149px, 174.985px);-ms-transform:translate(149px, 174.985px);transform:translate(149px, 174.985px)}.svg-close:hover svg .cls-1:nth-child(3){-webkit-transform:translate(215.5px, 174px);-ms-transform:translate(215.5px, 174px);transform:translate(215.5px, 174px)}.svg-close:hover svg .cls-1:nth-child(4){-webkit-transform:translate(152.5px, 135.5px);-ms-transform:translate(152.5px, 135.5px);transform:translate(152.5px, 135.5px)}.svg-close.svg-close-white .cls-1{stroke:#fff}";
|
|
20
|
+
|
|
21
|
+
let PtcSvgBtn = class {
|
|
22
|
+
constructor(hostRef) {
|
|
23
|
+
index.registerInstance(this, hostRef);
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return (index.h(index.Host, null, !!this.svgName && this.svgName === 'close' ? index.h("div", { class: 'svg-close', innerHTML: closeSvg }) : null));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
PtcSvgBtn.style = ptcSvgBtnCss;
|
|
30
|
+
|
|
31
|
+
exports.ptc_svg_btn = PtcSvgBtn;
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["ptc-
|
|
18
|
+
return index.bootstrapLazy([["ptc-announcement.cjs",[[1,"ptc-announcement",{"barTitle":[1,"bar-title"],"Description":[1,"description"],"linkText":[513,"link-text"],"visible":[1540],"linkUrl":[513,"link-url"],"tempContainer":[4,"temp-container"]}]]],["ptc-card.cjs",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"],"heading":[1],"headingTransform":[1,"heading-transform"],"cardDate":[1,"card-date"],"styles":[1]}]]],["ptc-lottie.cjs",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["my-component.cjs",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-avatar.cjs",[[1,"ptc-avatar"]]],["ptc-countdown.cjs",[[1,"ptc-countdown"]]],["ptc-footer.cjs",[[1,"ptc-footer"]]],["ptc-form.cjs",[[6,"ptc-form",{"value":[32],"inputValue":[32],"selectValue":[32]}]]],["ptc-input.cjs",[[6,"ptc-input",{"type":[1],"dataEloquaName":[1,"data-eloqua-name"],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"focused":[32]}]]],["ptc-list.cjs",[[2,"ptc-list",{"listType":[1,"list-type"],"listItems":[16]}]]],["ptc-nav.cjs",[[1,"ptc-nav"]]],["ptc-nav-item.cjs",[[1,"ptc-nav-item",{"url":[1025],"label":[1025],"ariaExpanded":[1028,"aria-expanded"],"depth":[1538],"hasChildren":[1028,"has-children"],"parentExpanded":[1540,"parent-expanded"],"navType":[1,"nav-type"]},[[0,"handleClick","handleClick"],[9,"resize","handleResize"]]]]],["ptc-select.cjs",[[6,"ptc-select",{"dataEloquaName":[1,"data-eloqua-name"],"selectId":[1,"select-id"],"name":[1],"valueOptions":[1040]}]]],["lottie-player.cjs",[[1,"lottie-player",{"mode":[1],"autoplay":[4],"background":[513],"controls":[4],"count":[2],"direction":[2],"hover":[4],"loop":[516],"renderer":[1],"speed":[2],"src":[1],"currentState":[1,"current-state"],"seeker":[8],"intermission":[2],"play":[64],"pause":[64],"stop":[64],"seek":[64],"getLottie":[64],"setSpeed":[64],"setDirection":[64],"setLooping":[64],"togglePlay":[64],"toggleLooping":[64]}]]],["ptc-date.cjs",[[1,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1],"dateString":[1,"date-string"],"dateStyles":[1,"date-styles"]}]]],["ptc-svg-btn.cjs",[[1,"ptc-svg-btn",{"svgName":[1,"svg-name"]}]]],["icon-asset_16.cjs",[[1,"ptc-breadcrumb"],[1,"ptc-hero",{"heroType":[1,"hero-type"]}],[1,"ptc-link",{"disabled":[516],"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}],[1,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"],"linkHref":[1,"link-href"],"linkTitle":[1,"link-title"],"target":[1],"rel":[1],"tabNav":[2,"tab-nav"],"styles":[1]}],[1,"ptc-card-bottom",{"cardType":[1,"card-type"]}],[1,"ptc-card-content",{"cardType":[1,"card-type"]}],[1,"ptc-card-plm",{"cardType":[1,"card-type"],"cardLink":[1,"card-link"],"linkTitle":[1,"link-title"],"linkTarget":[1,"link-target"]}],[1,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"],"paraColor":[1,"para-color"],"paraLineH":[1,"para-line-h"],"paraMargin":[1,"para-margin"]}],[1,"ptc-picture",{"src":[1],"alt":[1],"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imagePosition":[1,"image-position"],"borderRadius":[1,"border-radius"],"height":[1],"width":[1],"objectFit":[1,"object-fit"],"styles":[1],"oldSrc":[32]},[[9,"resize","WindowResize"]]],[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}],[1,"ptc-span",{"spanStyle":[1,"span-style"],"display":[1],"styles":[1]}],[6,"ptc-title",{"isPlmHub":[4,"is-plm-hub"],"type":[1],"textAlign":[1,"text-align"],"upperline":[1],"titleMargin":[1,"title-margin"],"styles":[1]}],[1,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"],"flushBefore":[4,"flush-before"]}],[4,"ptc-img",{"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imgUrl":[1,"img-url"],"imageType":[1,"image-type"],"borderRadius":[1,"border-radius"],"loadMode":[1,"load-mode"]},[[9,"resize","WindowResize"]]],[1,"ptc-overlay",{"filterColor":[1,"filter-color"],"borderRadius":[1,"border-radius"],"overlayZIndex":[1,"overlay-z-index"],"styles":[1]}],[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
|
|
19
19
|
});
|
|
@@ -5,12 +5,17 @@
|
|
|
5
5
|
"./components/my-component/my-component.js",
|
|
6
6
|
"./components/ptc-announcement/ptc-announcement.js",
|
|
7
7
|
"./components/ptc-avatar/ptc-avatar.js",
|
|
8
|
+
"./components/ptc-breadcrumb/ptc-breadcrumb.js",
|
|
8
9
|
"./components/ptc-button/ptc-button.js",
|
|
9
10
|
"./components/ptc-card/ptc-card.js",
|
|
11
|
+
"./components/ptc-card-bottom/ptc-card-bottom.js",
|
|
12
|
+
"./components/ptc-card-content/ptc-card-content.js",
|
|
13
|
+
"./components/ptc-card-plm/ptc-card-plm.js",
|
|
10
14
|
"./components/ptc-countdown/ptc-countdown.js",
|
|
11
15
|
"./components/ptc-date/ptc-date.js",
|
|
12
16
|
"./components/ptc-footer/ptc-footer.js",
|
|
13
17
|
"./components/ptc-form/ptc-form.js",
|
|
18
|
+
"./components/ptc-hero/ptc-hero.js",
|
|
14
19
|
"./components/ptc-img/ptc-img.js",
|
|
15
20
|
"./components/ptc-input/ptc-input.js",
|
|
16
21
|
"./components/ptc-link/ptc-link.js",
|
|
@@ -262,4 +262,37 @@
|
|
|
262
262
|
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 16" id="button-arrow-down">
|
|
263
263
|
<path d="M12.5 8.5L6.5 15.5L0.5 8.5L4.5 8.5L4.5 0.5L8.5 0.5L8.5 8.5L12.5 8.5Z"></path>
|
|
264
264
|
</symbol>
|
|
265
|
+
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 19" id="icon-home">
|
|
266
|
+
<path d="M18.646 8.74414L16.487 6.93218L16.287 6.49296V2.49086H14.854V4.33182L13.912 4.77106L9.694 1.2312L0.737 8.74715L0 7.86868L9.325 0.0435791H10.062L13.707 3.10219V1.91256L14.28 1.33926H16.86L17.433 1.91256V6.22481L19.387 7.86468L18.646 8.74414ZM9.689 4.8421L3.66899 9.90174V17.1105H6.24899V13.3826L7.396 12.235H11.982L13.129 13.3826V17.1105H15.709V9.90174L9.689 4.8421ZM9.689 3.34131L16.855 9.36446V18.2551H11.982V13.3796H7.396V18.2551H2.522V9.36446L9.688 3.34131H9.689Z"></path>
|
|
267
|
+
</symbol>
|
|
268
|
+
<symbol fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" id="Carousel-Arrow">
|
|
269
|
+
<g filter="url(#filter0_d_126_9197)">
|
|
270
|
+
<circle cx="24" cy="22" r="20" fill="white"></circle>
|
|
271
|
+
</g>
|
|
272
|
+
<path d="M24.8556 16L24.8556 20.5762L17 20.5762L17 23.4239L24.8556 23.4239L24.8556 28L31 21.9669L24.8556 16Z" fill="#40434A"></path>
|
|
273
|
+
<defs>
|
|
274
|
+
<filter id="filter0_d_126_9197" x="0" y="0" width="48" height="48" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
275
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood>
|
|
276
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix>
|
|
277
|
+
<feOffset dy="2"></feOffset>
|
|
278
|
+
<feGaussianBlur stdDeviation="2"></feGaussianBlur>
|
|
279
|
+
<feComposite in2="hardAlpha" operator="out"></feComposite>
|
|
280
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix>
|
|
281
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_126_9197"></feBlend>
|
|
282
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_126_9197" result="shape"></feBlend>
|
|
283
|
+
</filter>
|
|
284
|
+
</defs>
|
|
285
|
+
</symbol>
|
|
286
|
+
<symbol fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="plm-fb">
|
|
287
|
+
<path d="M24 12.0732C24 5.44624 18.627 0.0732422 12 0.0732422C5.373 0.0732422 0 5.44624 0 12.0732C0 18.0632 4.388 23.0272 10.125 23.9272V15.5422H7.078V12.0722H10.125V9.43024C10.125 6.42324 11.917 4.76124 14.658 4.76124C15.97 4.76124 17.344 4.99624 17.344 4.99624V7.94924H15.83C14.339 7.94924 13.874 8.87424 13.874 9.82324V12.0732H17.202L16.67 15.5432H13.874V23.9282C19.612 23.0272 24 18.0622 24 12.0732Z" fill="white"></path>
|
|
288
|
+
</symbol>
|
|
289
|
+
<symbol fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="plm-linkedin">
|
|
290
|
+
<path d="M20.447 20.452H16.893V14.883C16.893 13.555 16.866 11.846 15.041 11.846C13.188 11.846 12.905 13.291 12.905 14.785V20.452H9.351V9H12.765V10.561H12.811C13.288 9.661 14.448 8.711 16.181 8.711C19.782 8.711 20.448 11.081 20.448 14.166V20.452H20.447ZM5.337 7.433C4.193 7.433 3.274 6.507 3.274 5.368C3.274 4.23 4.194 3.305 5.337 3.305C6.477 3.305 7.401 4.23 7.401 5.368C7.401 6.507 6.476 7.433 5.337 7.433ZM7.119 20.452H3.555V9H7.119V20.452ZM22.225 0H1.771C0.792 0 0 0.774 0 1.729V22.271C0 23.227 0.792 24 1.771 24H22.222C23.2 24 24 23.227 24 22.271V1.729C24 0.774 23.2 0 22.222 0H22.225Z" fill="white"></path>
|
|
291
|
+
</symbol>
|
|
292
|
+
<symbol fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 15" id="plm-mail">
|
|
293
|
+
<path d="M3.3977 14.9995H20.6023C22.479 14.9995 24 13.4329 24 11.4999V0.46875L13.3431 9.336C12.9577 9.67733 12.4786 9.848 11.9995 9.848C11.5205 9.848 11.0414 9.67733 10.656 9.336L0 0.46875V11.4999C0 13.4329 1.52099 14.9995 3.3977 14.9995Z" fill="white"></path>
|
|
294
|
+
</symbol>
|
|
295
|
+
<symbol fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 20" id="plm-twitter">
|
|
296
|
+
<path d="M23.953 2.5696C23.0545 2.9652 22.1026 3.22634 21.128 3.3446C22.1541 2.72785 22.9224 1.76064 23.291 0.621599C22.34 1.1766 21.286 1.5806 20.164 1.8056C19.4238 1.01403 18.4429 0.48902 17.3736 0.3121C16.3044 0.13518 15.2067 0.316249 14.2509 0.82719C13.2952 1.33813 12.5349 2.15035 12.0881 3.13772C11.6412 4.1251 11.533 5.23237 11.78 6.2876C7.69 6.0946 4.067 4.1296 1.64 1.1616C1.19879 1.91141 0.968664 2.76662 0.974 3.6366C0.974 5.3466 1.844 6.8496 3.162 7.7326C2.38086 7.70773 1.61697 7.49653 0.934 7.1166V7.1766C0.933557 8.31299 1.32627 9.41454 2.04551 10.2944C2.76474 11.1742 3.76621 11.7781 4.88 12.0036C4.1583 12.197 3.40241 12.226 2.668 12.0886C2.98412 13.0666 3.59766 13.9215 4.42301 14.5341C5.24837 15.1467 6.24435 15.4863 7.272 15.5056C5.53153 16.8715 3.38248 17.6129 1.17 17.6106C0.78 17.6106 0.391 17.5876 0 17.5436C2.25571 18.9879 4.87851 19.7546 7.557 19.7526C16.61 19.7526 21.555 12.2566 21.555 5.7676C21.555 5.5576 21.555 5.3476 21.54 5.1376C22.506 4.44246 23.3392 3.57942 24 2.5896L23.953 2.5696Z" fill="white"></path>
|
|
297
|
+
</symbol>
|
|
265
298
|
</svg>
|
|
@@ -1,3 +1,41 @@
|
|
|
1
|
-
:host {
|
|
1
|
+
:host(.list-primary) {
|
|
2
2
|
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:host(.flush-before) li::before {
|
|
6
|
+
content: "" !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host(.breadcrumb) {
|
|
10
|
+
display: inline-block;
|
|
11
|
+
}
|
|
12
|
+
:host(.breadcrumb) li {
|
|
13
|
+
position: relative;
|
|
14
|
+
display: inline-block;
|
|
15
|
+
color: white;
|
|
16
|
+
font-weight: 700;
|
|
17
|
+
font-size: 12px;
|
|
18
|
+
line-height: 14px;
|
|
19
|
+
}
|
|
20
|
+
:host(.breadcrumb) li::before {
|
|
21
|
+
content: "/";
|
|
22
|
+
top: 0;
|
|
23
|
+
left: 0;
|
|
24
|
+
}
|
|
25
|
+
:host(.breadcrumb) li a.item-link {
|
|
26
|
+
color: white;
|
|
27
|
+
font-weight: var(-ptc-font-weight-bold) !important;
|
|
28
|
+
font-size: var(-ptc-font-size-x-small) !important;
|
|
29
|
+
line-height: 14px;
|
|
30
|
+
text-decoration: underline;
|
|
31
|
+
text-decoration-color: transparent;
|
|
32
|
+
text-underline-offset: 2px;
|
|
33
|
+
text-decoration-thickness: 1px;
|
|
34
|
+
outline: none;
|
|
35
|
+
transition: text-decoration-color var(--ptc-transition-medium) var(--ptc-acceletated-ease);
|
|
36
|
+
}
|
|
37
|
+
:host(.breadcrumb) li a.item-link:hover {
|
|
38
|
+
text-decoration: underline;
|
|
39
|
+
text-decoration-color: #3DAB49;
|
|
40
|
+
outline: none;
|
|
3
41
|
}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { Component, Host, h, Prop } from '@stencil/core';
|
|
2
2
|
export class ListItem {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.listType = '
|
|
4
|
+
this.listType = 'list-primary';
|
|
5
5
|
this.linkHref = undefined;
|
|
6
|
+
this.flushBefore = false;
|
|
6
7
|
}
|
|
7
8
|
render() {
|
|
8
9
|
const classMap = this.getCssClassMap();
|
|
9
10
|
return (h(Host, { class: classMap },
|
|
10
|
-
h("li", null, this.linkHref ? (h("a", Object.assign({}, (this.linkHref ? { href: this.linkHref } : {})),
|
|
11
|
+
h("li", null, this.linkHref ? (h("a", Object.assign({ class: "item-link" }, (this.linkHref ? { href: this.linkHref } : {})),
|
|
11
12
|
h("slot", null))) : (h("slot", null)))));
|
|
12
13
|
}
|
|
13
14
|
getCssClassMap() {
|
|
14
15
|
return {
|
|
15
16
|
[this.listType]: true,
|
|
17
|
+
['flush-before']: this.flushBefore ? true : false
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
20
|
static get is() { return "list-item"; }
|
|
21
|
+
static get encapsulation() { return "shadow"; }
|
|
19
22
|
static get originalStyleUrls() { return {
|
|
20
23
|
"$": ["list-item.scss"]
|
|
21
24
|
}; }
|
|
@@ -27,8 +30,8 @@ export class ListItem {
|
|
|
27
30
|
"type": "string",
|
|
28
31
|
"mutable": false,
|
|
29
32
|
"complexType": {
|
|
30
|
-
"original": "'
|
|
31
|
-
"resolved": "\"
|
|
33
|
+
"original": "'list-primary' | 'breadcrumb'",
|
|
34
|
+
"resolved": "\"breadcrumb\" | \"list-primary\"",
|
|
32
35
|
"references": {}
|
|
33
36
|
},
|
|
34
37
|
"required": false,
|
|
@@ -39,7 +42,7 @@ export class ListItem {
|
|
|
39
42
|
},
|
|
40
43
|
"attribute": "list-type",
|
|
41
44
|
"reflect": false,
|
|
42
|
-
"defaultValue": "'
|
|
45
|
+
"defaultValue": "'list-primary'"
|
|
43
46
|
},
|
|
44
47
|
"linkHref": {
|
|
45
48
|
"type": "string",
|
|
@@ -58,6 +61,24 @@ export class ListItem {
|
|
|
58
61
|
"attribute": "link-href",
|
|
59
62
|
"reflect": false,
|
|
60
63
|
"defaultValue": "undefined"
|
|
64
|
+
},
|
|
65
|
+
"flushBefore": {
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"mutable": false,
|
|
68
|
+
"complexType": {
|
|
69
|
+
"original": "boolean",
|
|
70
|
+
"resolved": "boolean",
|
|
71
|
+
"references": {}
|
|
72
|
+
},
|
|
73
|
+
"required": false,
|
|
74
|
+
"optional": false,
|
|
75
|
+
"docs": {
|
|
76
|
+
"tags": [],
|
|
77
|
+
"text": ""
|
|
78
|
+
},
|
|
79
|
+
"attribute": "flush-before",
|
|
80
|
+
"reflect": false,
|
|
81
|
+
"defaultValue": "false"
|
|
61
82
|
}
|
|
62
83
|
}; }
|
|
63
84
|
}
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
.title {
|
|
75
75
|
flex-basis: 18%;
|
|
76
76
|
font-family: Raleway;
|
|
77
|
-
font-size:
|
|
77
|
+
font-size: 13px;
|
|
78
78
|
font-weight: 800;
|
|
79
79
|
font-stretch: normal;
|
|
80
80
|
font-style: normal;
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
.description {
|
|
98
98
|
flex-basis: 82%;
|
|
99
99
|
font-family: Raleway;
|
|
100
|
-
font-size:
|
|
100
|
+
font-size: 13px;
|
|
101
101
|
font-weight: 500;
|
|
102
102
|
font-stretch: normal;
|
|
103
103
|
font-style: normal;
|
|
@@ -116,7 +116,7 @@ a {
|
|
|
116
116
|
font-weight: 700;
|
|
117
117
|
border-bottom: 0.15rem solid #74c34d;
|
|
118
118
|
text-decoration: none;
|
|
119
|
-
margin-left:
|
|
119
|
+
margin-left: 16px;
|
|
120
120
|
}
|
|
121
121
|
a:hover {
|
|
122
122
|
color: #74c34d;
|
|
@@ -142,8 +142,8 @@ a:hover {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
.description {
|
|
145
|
-
font-size:
|
|
145
|
+
font-size: 16px;
|
|
146
146
|
font-weight: 500;
|
|
147
|
-
line-height: 1.
|
|
147
|
+
line-height: 1.6;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
margin-top: 21px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
::slotted(*) {
|
|
7
|
+
transform: translate(-3px, 0px);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {
|
|
11
|
+
::slotted(*) {
|
|
12
|
+
transform: translate(-3px, 4px);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
@-moz-document url-prefix() {
|
|
16
|
+
::slotted(*) {
|
|
17
|
+
transform: translate(-3px, 0px);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Component, Host, h } from '@stencil/core';
|
|
2
|
+
export class PtcBreadcrumb {
|
|
3
|
+
render() {
|
|
4
|
+
const classMap = this.getCssClassMap();
|
|
5
|
+
return (h(Host, { class: classMap },
|
|
6
|
+
h("list-item", { listType: 'breadcrumb', flushBefore: true, "link-href": "https://www.ptc.com" },
|
|
7
|
+
h("icon-asset", { type: "ptc", size: "large", name: "icon-home", color: "white" })),
|
|
8
|
+
h("slot", null)));
|
|
9
|
+
}
|
|
10
|
+
getCssClassMap() {
|
|
11
|
+
return {};
|
|
12
|
+
}
|
|
13
|
+
static get is() { return "ptc-breadcrumb"; }
|
|
14
|
+
static get encapsulation() { return "shadow"; }
|
|
15
|
+
static get originalStyleUrls() { return {
|
|
16
|
+
"$": ["ptc-breadcrumb.scss"]
|
|
17
|
+
}; }
|
|
18
|
+
static get styleUrls() { return {
|
|
19
|
+
"$": ["ptc-breadcrumb.css"]
|
|
20
|
+
}; }
|
|
21
|
+
}
|
|
@@ -11,6 +11,10 @@ button {
|
|
|
11
11
|
white-space: normal;
|
|
12
12
|
position: relative;
|
|
13
13
|
text-decoration: none;
|
|
14
|
+
-moz-osx-font-smoothing: grayscale;
|
|
15
|
+
/*(For Firefox)*/
|
|
16
|
+
-webkit-font-smoothing: antialiased;
|
|
17
|
+
/*(For Chrome and Safari)*/
|
|
14
18
|
cursor: pointer;
|
|
15
19
|
padding: 9.4px 17.5px;
|
|
16
20
|
border-radius: 3px;
|
|
@@ -138,9 +142,12 @@ a {
|
|
|
138
142
|
border-width: 1px;
|
|
139
143
|
position: relative;
|
|
140
144
|
text-decoration: none;
|
|
145
|
+
-moz-osx-font-smoothing: grayscale;
|
|
146
|
+
/*(For Firefox)*/
|
|
147
|
+
-webkit-font-smoothing: antialiased;
|
|
148
|
+
/*(For Chrome and Safari)*/
|
|
141
149
|
padding: 9.4px 17.5px;
|
|
142
150
|
border-radius: 3px;
|
|
143
|
-
text-decoration: none;
|
|
144
151
|
display: inline-block;
|
|
145
152
|
position: relative;
|
|
146
153
|
}
|
|
@@ -180,6 +187,10 @@ a:hover.animation-down ::slotted([slot=slot-before-text]) {
|
|
|
180
187
|
position: relative;
|
|
181
188
|
text-align: center;
|
|
182
189
|
text-decoration: none;
|
|
190
|
+
-moz-osx-font-smoothing: grayscale;
|
|
191
|
+
/*(For Firefox)*/
|
|
192
|
+
-webkit-font-smoothing: antialiased;
|
|
193
|
+
/*(For Chrome and Safari)*/
|
|
183
194
|
transition: background-color var(--ptc-transition-medium) var(--ptc-decelerated-ease);
|
|
184
195
|
}
|
|
185
196
|
.nav:focus {
|
|
@@ -22,15 +22,19 @@ export class PtcButton {
|
|
|
22
22
|
*/
|
|
23
23
|
this.iconPosition = 'icon-right';
|
|
24
24
|
/**
|
|
25
|
-
* Link URL
|
|
25
|
+
* Link URL
|
|
26
26
|
*/
|
|
27
27
|
this.linkHref = undefined;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* link Title
|
|
30
|
+
*/
|
|
31
|
+
this.linkTitle = undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Link target
|
|
30
34
|
* */
|
|
31
35
|
this.target = '_self';
|
|
32
36
|
/**
|
|
33
|
-
*
|
|
37
|
+
* Link rel
|
|
34
38
|
* */
|
|
35
39
|
this.rel = undefined;
|
|
36
40
|
/**
|
|
@@ -49,7 +53,7 @@ export class PtcButton {
|
|
|
49
53
|
const Tag = !!this.linkHref ? 'a' : 'button';
|
|
50
54
|
return (h(Host, null,
|
|
51
55
|
this.styles && h("style", null, this.styles),
|
|
52
|
-
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.tabNav ? { tabindex: -1 } : { tabindex: 0 })),
|
|
56
|
+
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 })),
|
|
53
57
|
h("span", null,
|
|
54
58
|
h("slot", { name: "slot-before-text" }),
|
|
55
59
|
h("slot", null),
|
|
@@ -174,12 +178,30 @@ export class PtcButton {
|
|
|
174
178
|
"optional": true,
|
|
175
179
|
"docs": {
|
|
176
180
|
"tags": [],
|
|
177
|
-
"text": "Link URL
|
|
181
|
+
"text": "Link URL"
|
|
178
182
|
},
|
|
179
183
|
"attribute": "link-href",
|
|
180
184
|
"reflect": false,
|
|
181
185
|
"defaultValue": "undefined"
|
|
182
186
|
},
|
|
187
|
+
"linkTitle": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"mutable": false,
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "string",
|
|
192
|
+
"resolved": "string",
|
|
193
|
+
"references": {}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": true,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": "link Title"
|
|
200
|
+
},
|
|
201
|
+
"attribute": "link-title",
|
|
202
|
+
"reflect": false,
|
|
203
|
+
"defaultValue": "undefined"
|
|
204
|
+
},
|
|
183
205
|
"target": {
|
|
184
206
|
"type": "string",
|
|
185
207
|
"mutable": false,
|
|
@@ -192,7 +214,7 @@ export class PtcButton {
|
|
|
192
214
|
"optional": true,
|
|
193
215
|
"docs": {
|
|
194
216
|
"tags": [],
|
|
195
|
-
"text": "
|
|
217
|
+
"text": "Link target"
|
|
196
218
|
},
|
|
197
219
|
"attribute": "target",
|
|
198
220
|
"reflect": false,
|
|
@@ -210,7 +232,7 @@ export class PtcButton {
|
|
|
210
232
|
"optional": true,
|
|
211
233
|
"docs": {
|
|
212
234
|
"tags": [],
|
|
213
|
-
"text": "
|
|
235
|
+
"text": "Link rel"
|
|
214
236
|
},
|
|
215
237
|
"attribute": "rel",
|
|
216
238
|
"reflect": false,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:host(.card-tall) .ptc-card-bottom-wrapper,
|
|
6
|
+
:host(.card-wide) .ptc-card-bottom-wrapper {
|
|
7
|
+
position: absolute;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
padding: 0 var(--ptc-element-spacing-04) var(--ptc-element-spacing-05) var(--ptc-element-spacing-04);
|
|
11
|
+
z-index: 2;
|
|
12
|
+
}
|