@ptcwebops/ptcw-design 0.0.8 → 0.0.10

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.
Files changed (43) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/ptc-card.cjs.entry.js +21 -3
  3. package/dist/cjs/ptc-date.cjs.entry.js +11 -2
  4. package/dist/cjs/ptc-img.cjs.entry.js +21 -1
  5. package/dist/cjs/ptc-para.cjs.entry.js +3 -2
  6. package/dist/cjs/ptc-span.cjs.entry.js +7 -2
  7. package/dist/cjs/ptcw-design.cjs.js +1 -1
  8. package/dist/collection/components/ptc-card/ptc-card.css +133 -0
  9. package/dist/collection/components/ptc-card/ptc-card.js +43 -6
  10. package/dist/collection/components/ptc-date/ptc-date.js +47 -2
  11. package/dist/collection/components/ptc-img/ptc-img.css +13 -1
  12. package/dist/collection/components/ptc-img/ptc-img.js +43 -6
  13. package/dist/collection/components/ptc-para/ptc-para.css +21 -17
  14. package/dist/collection/components/ptc-para/ptc-para.js +20 -1
  15. package/dist/collection/components/ptc-span/ptc-span.css +22 -2
  16. package/dist/collection/components/ptc-span/ptc-span.js +44 -2
  17. package/dist/custom-elements/index.js +71 -15
  18. package/dist/esm/loader.js +1 -1
  19. package/dist/esm/ptc-card.entry.js +21 -3
  20. package/dist/esm/ptc-date.entry.js +11 -2
  21. package/dist/esm/ptc-img.entry.js +21 -1
  22. package/dist/esm/ptc-para.entry.js +3 -2
  23. package/dist/esm/ptc-span.entry.js +7 -2
  24. package/dist/esm/ptcw-design.js +1 -1
  25. package/dist/ptcw-design/p-00b6c442.entry.js +1 -0
  26. package/dist/ptcw-design/p-66dd07cb.entry.js +1 -0
  27. package/dist/ptcw-design/p-70adca2e.entry.js +1 -0
  28. package/dist/ptcw-design/p-83d98048.entry.js +1 -0
  29. package/dist/ptcw-design/p-aef5dc05.entry.js +1 -0
  30. package/dist/ptcw-design/ptcw-design.css +1 -1
  31. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  32. package/dist/types/components/ptc-card/ptc-card.d.ts +7 -2
  33. package/dist/types/components/ptc-date/ptc-date.d.ts +10 -0
  34. package/dist/types/components/ptc-img/ptc-img.d.ts +26 -0
  35. package/dist/types/components/ptc-para/ptc-para.d.ts +4 -0
  36. package/dist/types/components/ptc-span/ptc-span.d.ts +8 -0
  37. package/dist/types/components.d.ts +94 -2
  38. package/package.json +1 -1
  39. package/dist/ptcw-design/p-1b4fd3da.entry.js +0 -1
  40. package/dist/ptcw-design/p-7caa43ae.entry.js +0 -1
  41. package/dist/ptcw-design/p-8b6c805c.entry.js +0 -1
  42. package/dist/ptcw-design/p-9f96864d.entry.js +0 -1
  43. package/dist/ptcw-design/p-b0b2e82c.entry.js +0 -1
@@ -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-link.cjs",[[1,"ptc-link",{"disabled":[516],"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}]]],["ptc-lottie.cjs",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["list-item.cjs",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component.cjs",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-button.cjs",[[4,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"]}]]],["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],"styles":[1]}]]],["ptc-date.cjs",[[0,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1]}]]],["ptc-footer.cjs",[[1,"ptc-footer"]]],["ptc-image.cjs",[[1,"ptc-image",{"src":[1],"alt":[1],"oldSrc":[32]}]]],["ptc-img.cjs",[[0,"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"]},[[9,"resize","WindowResize"]]]]],["ptc-list.cjs",[[0,"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-overlay.cjs",[[4,"ptc-overlay"]]],["ptc-para.cjs",[[4,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"]}]]],["ptc-picture.cjs",[[4,"ptc-picture",{"lazy":[1]}]]],["ptc-spacer.cjs",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span.cjs",[[4,"ptc-span",{"spanStyle":[1,"span-style"]}]]],["ptc-title.cjs",[[1,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["icon-asset.cjs",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]],["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]}]]]], options);
17
+ return index.bootstrapLazy([["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],"cardDate":[1,"card-date"],"styles":[1]}]]],["ptc-link.cjs",[[1,"ptc-link",{"disabled":[516],"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}]]],["ptc-lottie.cjs",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["list-item.cjs",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component.cjs",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-button.cjs",[[4,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"]}]]],["ptc-footer.cjs",[[1,"ptc-footer"]]],["ptc-image.cjs",[[1,"ptc-image",{"src":[1],"alt":[1],"oldSrc":[32]}]]],["ptc-img.cjs",[[0,"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"]},[[9,"resize","WindowResize"]]]]],["ptc-list.cjs",[[0,"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-overlay.cjs",[[4,"ptc-overlay"]]],["ptc-para.cjs",[[1,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"],"paraMargin":[1,"para-margin"]}]]],["ptc-picture.cjs",[[4,"ptc-picture",{"lazy":[1]}]]],["ptc-spacer.cjs",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span.cjs",[[1,"ptc-span",{"spanStyle":[1,"span-style"],"display":[1],"styles":[1]}]]],["ptc-title.cjs",[[1,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["icon-asset.cjs",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]],["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"]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-ac192914.js');
6
6
 
7
- const ptcCardCss = ":host{display:block}:host(.lottie-card) .card-border{box-shadow:1px 1px 14px 0 rgba(101, 101, 101, 0.35);border:1px solid #c9c9c9;border-radius:10px;position:relative}:host(.lottie-card) .card-border::after{content:\"\";height:40%;width:4px;position:absolute;top:30%;right:-2px;background-color:#74c34d;z-index:2;display:block}:host(.lottie-card) .card-border:hover{box-shadow:1px 1px 35px 0 rgba(101, 101, 101, 0.65)}:host(.lottie-card) .card-border:hover .card-body h3{border-bottom:2px solid var(--color-primary-green)}:host(.lottie-card) .card-layout{display:flex;flex-flow:nowrap row;justify-content:center}:host(.lottie-card) .link-wrapper{outline:none;text-decoration:none}:host(.lottie-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.lottie-card) .card-media{flex-basis:40%;border-right:1px solid #c9c9c9}:host(.lottie-card) .card-body{flex-basis:60%;align-self:center;padding:0 30px 10px}:host(.lottie-card) .card-body h3{display:inline-block;line-height:1;color:#40434a;font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-medium);text-transform:uppercase;border-bottom:2px solid transparent;margin-bottom:var(--ptc-element-spacing-02)}:host(.simple-card) .card-layout{display:block}:host(.simple-card) .link-wrapper{outline:none;text-decoration:none}:host(.simple-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.simple-card) .link-wrapper:hover .card-body h3::before{width:100%}:host(.simple-card) .link-wrapper:hover ::slotted([slot=slot-after-heading]){margin-left:15px}:host(.simple-card) .card-body h3{color:#40434a;font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-black);line-height:1.86;text-transform:uppercase;position:relative;margin-bottom:var(--ptc-element-spacing-02);display:inline-block}:host(.simple-card) .card-body h3::before{display:block;position:absolute;content:\"\";width:var(--ptc-element-spacing-06);border-bottom:2px solid var(--color-secondary-turtlegreen);bottom:1px;transition:width var(--ptc-transition-medium) var(--ptc-standard-ease)}:host(.simple-card) ::slotted([slot=slot-after-heading]){margin-left:5px;transition:margin-left var(--ptc-transition-medium) var(--ptc-standard-ease)}";
7
+ const ptcCardCss = ":host{display:block}:host(.lottie-card) .card-border{box-shadow:1px 1px 14px 0 rgba(101, 101, 101, 0.35);border:1px solid #c9c9c9;border-radius:10px;position:relative}:host(.lottie-card) .card-border::after{content:\"\";height:40%;width:4px;position:absolute;top:30%;right:-2px;background-color:#74c34d;z-index:2;display:block}:host(.lottie-card) .card-border:hover{box-shadow:1px 1px 35px 0 rgba(101, 101, 101, 0.65)}:host(.lottie-card) .card-border:hover .card-body h3{border-bottom:2px solid var(--color-primary-green)}:host(.lottie-card) .card-layout{display:flex;flex-flow:nowrap row;justify-content:center}:host(.lottie-card) .link-wrapper{outline:none;text-decoration:none}:host(.lottie-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.lottie-card) .card-media{flex-basis:40%;border-right:1px solid #c9c9c9}:host(.lottie-card) .card-body{flex-basis:60%;align-self:center;padding:0 30px 10px}:host(.lottie-card) .card-body h3{display:inline-block;line-height:1;color:#40434a;font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-medium);text-transform:uppercase;border-bottom:2px solid transparent;margin-bottom:var(--ptc-element-spacing-02)}:host(.simple-card) .card-layout{display:block}:host(.simple-card) .link-wrapper{outline:none;text-decoration:none}:host(.simple-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.simple-card) .link-wrapper:hover .card-body h3::before{width:100%}:host(.simple-card) .link-wrapper:hover ::slotted([slot=slot-after-heading]){margin-left:15px}:host(.simple-card) .card-body h3{color:#40434a;font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-black);line-height:1.86;text-transform:uppercase;position:relative;margin-bottom:var(--ptc-element-spacing-02);display:inline-block}:host(.simple-card) .card-body h3::before{display:block;position:absolute;content:\"\";width:var(--ptc-element-spacing-06);border-bottom:2px solid var(--color-secondary-turtlegreen);bottom:1px;transition:width var(--ptc-transition-medium) var(--ptc-standard-ease)}:host(.simple-card) ::slotted([slot=slot-after-heading]){margin-left:5px;transition:margin-left var(--ptc-transition-medium) var(--ptc-standard-ease)}:host(.clip-edge-card) .card-border{overflow:hidden;filter:drop-shadow(rgba(0, 0, 0, 0.32) 0px 3px 6px);width:100%}:host(.clip-edge-card) .card-border:hover{filter:drop-shadow(rgba(0, 0, 0, 0.32) 0px 6px 12px)}:host(.clip-edge-card) .card-layout{display:block}:host(.clip-edge-card) .link-wrapper{outline:none;text-decoration:none}:host(.clip-edge-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.clip-edge-card) .card-media{position:relative;width:100%;height:124px;overflow:hidden;border-radius:var(--ptc-border-radius-medium)}:host(.clip-edge-card) .card-body{transform:translateY(calc((-1) * var(--ptc-element-spacing-04)));overflow:hidden;width:calc(95% - var(--ptc-element-spacing-04) - var(--ptc-element-spacing-06));font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);color:#40434a;clip-path:var(--ptc-clip-path-bottom-right);background-color:var(--color-white);border-radius:var(--ptc-border-radius-medium);padding:var(--ptc-element-spacing-05) var(--ptc-element-spacing-04) var(--ptc-element-spacing-03) var(--ptc-element-spacing-06)}:host(.clip-edge-card) .card-body h3{display:inline-block;margin:0px;font-size:var(--ptc-font-size-medium);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-dense);color:var(--color-primary-uigrey);text-decoration:none;border-bottom:2px solid transparent;transition:border-bottom var(--ptc-transition-medium) var(--ptc-standard-ease);margin-bottom:var(--ptc-element-spacing-03)}:host(.clip-edge-card) ::slotted([slot=slot-description]){height:0;opacity:0;transition:height var(--ptc-transition-medium) var(--ptc-standard-ease), opacity var(--ptc-transition-medium) var(--ptc-standard-ease)}:host(.clip-edge-card) ::slotted([slot=slot-image]){display:block;width:100%;height:100%;transform:scale(1);transition:transform var(--ptc-transition-medium) var(--ptc-standard-ease);transform-origin:top center}:host(.clip-edge-card) .link-wrapper:hover .card-body h3{border-bottom:2px solid var(--color-secondary-turtlegreen)}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-description]){height:54px;opacity:1}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-image]){transform:scale(1.1)}:host(.hightlight-card) .card-border{box-shadow:0px 3px 6px rgba(0, 0, 0, 0.16);width:100%;border-radius:var(--ptc-border-radius-medium);overflow:hidden}:host(.hightlight-card) .card-border:hover .card-media{transform:scale(1.1)}:host(.hightlight-card) .card-layout{display:block;position:relative}:host(.hightlight-card) .link-wrapper{outline:none;text-decoration:none}:host(.hightlight-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.hightlight-card) .link-wrapper:hover ::slotted([slot=slot-description]){height:var(--ptc-layout-spacing-05);opacity:1}:host(.hightlight-card) .card-media{width:100%;height:auto;min-height:450px;position:relative;transform:scale(1);transform-origin:center bottom;transition:transform var(--ptc-transition-medium) var(--ptc-standard-ease);transition-delay:var(--ptc-delay-medium)}:host(.hightlight-card) .card-body{position:absolute;bottom:0;top:auto;left:0;right:auto;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);background-color:var(--color-white)}:host(.hightlight-card) .card-body h3{font-size:30px;line-height:1.27;font-weight:var(--ptc-font-weight-bold);color:var(--color-primary-uigrey);margin:var(--ptc-element-spacing-04) 0}:host(.hightlight-card) ::slotted([slot=slot-description]){height:0;opacity:0;transition:height var(--ptc-transition-medium) var(--ptc-standard-ease), opacity var(--ptc-transition-fast) var(--ptc-standard-ease);transition-delay:var(--ptc-delay-medium)}";
8
8
 
9
9
  const PtcCard = class {
10
10
  constructor(hostRef) {
@@ -42,8 +42,12 @@ const PtcCard = class {
42
42
  render() {
43
43
  const Tag = !!this.cardHref ? 'a' : 'div';
44
44
  const classMap = this.getCssClassMap();
45
- return (index.h(index.Host, Object.assign({}, (!!this.cardType ? { class: this.cardType } : {})), this.styles && index.h("style", null, this.styles), index.h("div", { class: "card-border", part: "border-wrapper" }, index.h(Tag, Object.assign({ class: classMap, part: "card-layout" }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {})), this.hasImage || this.hasLottie || this.hasVideo ? (index.h("div", { class: "card-media", part: "media-wrapper" }, this.hasLottie ? index.h("slot", { name: "slot-lottie" }) : null)) : null, index.h("div", { class: "card-body", part: "body-wrapper" }, !!this.heading ? ([index.h("h3", { class: "ptc-h3", part: "card-heading" }, this.heading),
46
- index.h("slot", { name: "slot-after-heading" })]) : null, index.h("slot", { name: "slot-description" }))))));
45
+ return (index.h(index.Host, Object.assign({}, (!!this.cardType ? { class: this.cardType } : {})), this.styles && index.h("style", null, this.styles), index.h("div", { class: "card-border", part: "border-wrapper" }, index.h(Tag, Object.assign({ class: classMap, part: "card-layout" }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {})), this.hasImage || this.hasLottie || this.hasVideo ? (index.h("div", { class: "card-media", part: "media-wrapper" }, this.getMediaSlot ? index.h("slot", { name: this.getMediaSlot() }) : null)) : null, index.h("div", { class: "card-body", part: "body-wrapper" }, index.h("slot", { name: "slot-before-heading" }), !!this.heading
46
+ ? [
47
+ index.h("h3", { class: "ptc-h3", part: "card-heading" }, this.heading),
48
+ index.h("slot", { name: "slot-after-heading" }),
49
+ ]
50
+ : null, index.h("slot", { name: "slot-description" }), !!this.cardDate ? index.h("ptc-date", { "date-string": `${this.cardDate}`, "date-styles": "::part(part-ptc-date){color:#40434a;font-size:var(--ptc-font-size-medium);margin-top:var(--ptc-element-spacing-04);display:inline-block;}" }) : null)))));
47
51
  }
48
52
  getCssClassMap() {
49
53
  return {
@@ -51,6 +55,20 @@ const PtcCard = class {
51
55
  ['link-wrapper']: !!this.cardType ? true : false,
52
56
  };
53
57
  }
58
+ getMediaSlot() {
59
+ if (this.hasLottie) {
60
+ return 'slot-lottie';
61
+ }
62
+ else if (this.hasVideo) {
63
+ return 'slot-video';
64
+ }
65
+ else if (this.hasImage) {
66
+ return 'slot-image';
67
+ }
68
+ else {
69
+ return null;
70
+ }
71
+ }
54
72
  };
55
73
  PtcCard.style = ptcCardCss;
56
74
 
@@ -30,8 +30,17 @@ const PtcDate = class {
30
30
  this.country = "en-US";
31
31
  }
32
32
  render() {
33
- const date = new Date(this.year, this.month, this.day);
34
- return (index.h(index.Host, null, index.h("span", null, date.toLocaleDateString(this.country, { year: 'numeric', month: 'short', day: 'numeric' }))));
33
+ // const newDate = new Date(this.year, this.month, this.day);
34
+ return (index.h(index.Host, null, this.dateStyles && index.h("style", null, this.dateStyles), index.h("span", { part: "part-ptc-date" }, this.getDate().toLocaleDateString(this.country, { year: 'numeric', month: 'short', day: 'numeric' }))));
35
+ }
36
+ getDate() {
37
+ if (this.dateString) {
38
+ let newDate = new Date(this.dateString.replace(/-/g, '\/'));
39
+ return newDate;
40
+ }
41
+ else {
42
+ return new Date(this.year, this.month, this.day);
43
+ }
35
44
  }
36
45
  };
37
46
  PtcDate.style = ptcDateCss;
@@ -10,15 +10,34 @@ let ResponsiveBgVariables = {
10
10
  interval: 250
11
11
  };
12
12
 
13
- const ptcImgCss = ".smart-bg{width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.smart-img{position:absolute;display:block;width:100%;height:100%;top:0;left:0;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}@media (max-width: 767px){.hidden-xs{display:none !important}}@media (min-width: 480px) and (max-width: 991px){.hidden-sm{display:none !important}}@media (min-width: 992px) and (max-width: 1199px){.hidden-md{display:none !important}}@media (min-width: 1200px){.hidden-lg{display:none !important}}";
13
+ const ptcImgCss = ".smart-bg{width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.smart-img{position:absolute;display:block;width:100%;height:100%;top:0;left:0;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.radius-sm{border-radius:var(--ptc-border-radius-small)}.radius-md{border-radius:var(--ptc-border-radius-medium)}.radius-lg{border-radius:var(--ptc-border-radius-large)}@media (max-width: 767px){.hidden-xs{display:none !important}}@media (min-width: 768px) and (max-width: 991px){.hidden-sm{display:none !important}}@media (min-width: 992px) and (max-width: 1199px){.hidden-md{display:none !important}}@media (min-width: 1200px){.hidden-lg{display:none !important}}";
14
14
 
15
15
  const PtcImg = class {
16
16
  constructor(hostRef) {
17
17
  index.registerInstance(this, hostRef);
18
+ /**
19
+ * Image size for smallest screen
20
+ * <=767px
21
+ */
18
22
  this.sizeXs = '510x340';
23
+ /**
24
+ * Image size for small screen
25
+ * >=768px and <=991px
26
+ */
19
27
  this.sizeSm = '1240x496';
28
+ /**
29
+ * Image size for medium screen
30
+ * >=992px and <=1199px
31
+ */
20
32
  this.sizeMd = '1366x500';
33
+ /**
34
+ * Image solution for large screen
35
+ * >=1200px
36
+ */
21
37
  this.sizeLg = '1920x1080';
38
+ /**
39
+ * Image type
40
+ */
22
41
  this.imageType = 'smart-bg';
23
42
  }
24
43
  WindowResize() {
@@ -55,6 +74,7 @@ const PtcImg = class {
55
74
  return {
56
75
  [this.imageType]: true,
57
76
  'ptc-img': true,
77
+ [this.borderRadius]: true,
58
78
  };
59
79
  }
60
80
  getCurrentBreakPoints() {
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-ac192914.js');
6
6
 
7
- const ptcParaCss = "ptc-para p.default{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-primary-grey)}ptc-para p.xx-small{font-size:var(--ptc-font-size-xx-small)}ptc-para p.x-small{font-size:var(--ptc-font-size-x-small)}ptc-para p.small{font-size:var(--ptc-font-size-small)}ptc-para p.medium{font-size:var(--ptc-font-size-medium)}ptc-para p.large{font-size:var(--ptc-font-size-large)}ptc-para p.x-large{font-size:var(--ptc-font-size-x-large)}ptc-para p.xx-large{font-size:var(--ptc-font-size-xx-large)}ptc-para p.xxx-large{font-size:var(--ptc-font-size-xxx-large)}ptc-para p.xxxx-large{font-size:var(--ptc-font-size-xxxx-large)}ptc-para p.w-3{font-weight:var(--ptc-font-weight-thin)}ptc-para p.w-4{font-weight:var(--ptc-font-weight-regular)}ptc-para p.w-5{font-weight:var(--ptc-font-weight-medium)}ptc-para p.w-6{font-weight:var(--ptc-font-weight-semibold)}ptc-para p.w-7{font-weight:var(--ptc-font-weight-bold)}ptc-para p.w-8{font-weight:var(--ptc-font-weight-extrabold)}ptc-para p.w-9{font-weight:var(--ptc-font-weight-black)}";
7
+ const ptcParaCss = "p.default{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-primary-grey)}p.xx-small{font-size:var(--ptc-font-size-xx-small)}p.x-small{font-size:var(--ptc-font-size-x-small)}p.small{font-size:var(--ptc-font-size-small)}p.medium{font-size:var(--ptc-font-size-medium)}p.large{font-size:var(--ptc-font-size-large)}p.x-large{font-size:var(--ptc-font-size-x-large)}p.xx-large{font-size:var(--ptc-font-size-xx-large)}p.xxx-large{font-size:var(--ptc-font-size-xxx-large)}p.xxxx-large{font-size:var(--ptc-font-size-xxxx-large)}p.w-3{font-weight:var(--ptc-font-weight-thin)}p.w-4{font-weight:var(--ptc-font-weight-regular)}p.w-5{font-weight:var(--ptc-font-weight-medium)}p.w-6{font-weight:var(--ptc-font-weight-semibold)}p.w-7{font-weight:var(--ptc-font-weight-bold)}p.w-8{font-weight:var(--ptc-font-weight-extrabold)}p.w-9{font-weight:var(--ptc-font-weight-black)}p.margin-flush{margin-top:0;margin-bottom:0}";
8
8
 
9
9
  const PtcPara = class {
10
10
  constructor(hostRef) {
@@ -24,13 +24,14 @@ const PtcPara = class {
24
24
  }
25
25
  render() {
26
26
  const classMap = this.getCssClassMap();
27
- return (index.h("p", { class: classMap }, index.h("slot", null)));
27
+ return (index.h("p", { class: classMap, part: "part-para" }, index.h("slot", null)));
28
28
  }
29
29
  getCssClassMap() {
30
30
  return {
31
31
  [this.fontSize]: true,
32
32
  [this.fontWeight]: true,
33
33
  [this.paraStyle]: true,
34
+ [this.paraMargin]: true,
34
35
  };
35
36
  }
36
37
  };
@@ -4,20 +4,25 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-ac192914.js');
6
6
 
7
- const ptcSpanCss = "ptc-span.link-style{color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal)}ptc-span.nav-style{display:block;color:#cac8c8;font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);text-transform:capitalize;padding-left:var(--ptc-element-spacing-05);font-size:17px;padding-bottom:var(--ptc-element-spacing-03)}";
7
+ const ptcSpanCss = ":host(.link-style) span{color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal)}:host(.nav-style) span{display:block;color:#cac8c8;font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);text-transform:capitalize;padding-left:var(--ptc-element-spacing-05);font-size:17px;padding-bottom:var(--ptc-element-spacing-03)}:host(.tag-style) span{font-size:var(--ptc-font-size-medium);line-height:var(--ptc-line-height-dense);font-weight:var(--ptc-font-weight-regular);color:#40434a}:host(.inline) span{display:inline}:host(.block) span{display:block}:host(.inline-block) span{display:inline-block}";
8
8
 
9
9
  const PtcSpan = class {
10
10
  constructor(hostRef) {
11
11
  index.registerInstance(this, hostRef);
12
+ /**
13
+ * Span Style
14
+ */
12
15
  this.spanStyle = 'tag-style';
16
+ this.display = 'inline';
13
17
  }
14
18
  render() {
15
19
  const classMap = this.getCssClassMap();
16
- return (index.h(index.Host, { class: classMap }, index.h("span", { part: "ptc-span" }, index.h("slot", null))));
20
+ return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("span", { part: "part-ptc-span" }, index.h("slot", null))));
17
21
  }
18
22
  getCssClassMap() {
19
23
  return {
20
24
  [this.spanStyle]: true,
25
+ [this.display]: true,
21
26
  };
22
27
  }
23
28
  };
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["ptc-link.cjs",[[1,"ptc-link",{"disabled":[516],"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}]]],["ptc-lottie.cjs",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["list-item.cjs",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component.cjs",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-button.cjs",[[4,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"]}]]],["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],"styles":[1]}]]],["ptc-date.cjs",[[0,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1]}]]],["ptc-footer.cjs",[[1,"ptc-footer"]]],["ptc-image.cjs",[[1,"ptc-image",{"src":[1],"alt":[1],"oldSrc":[32]}]]],["ptc-img.cjs",[[0,"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"]},[[9,"resize","WindowResize"]]]]],["ptc-list.cjs",[[0,"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-overlay.cjs",[[4,"ptc-overlay"]]],["ptc-para.cjs",[[4,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"]}]]],["ptc-picture.cjs",[[4,"ptc-picture",{"lazy":[1]}]]],["ptc-spacer.cjs",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span.cjs",[[4,"ptc-span",{"spanStyle":[1,"span-style"]}]]],["ptc-title.cjs",[[1,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["icon-asset.cjs",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]],["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]}]]]], options);
18
+ return index.bootstrapLazy([["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],"cardDate":[1,"card-date"],"styles":[1]}]]],["ptc-link.cjs",[[1,"ptc-link",{"disabled":[516],"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}]]],["ptc-lottie.cjs",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["list-item.cjs",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component.cjs",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-button.cjs",[[4,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"]}]]],["ptc-footer.cjs",[[1,"ptc-footer"]]],["ptc-image.cjs",[[1,"ptc-image",{"src":[1],"alt":[1],"oldSrc":[32]}]]],["ptc-img.cjs",[[0,"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"]},[[9,"resize","WindowResize"]]]]],["ptc-list.cjs",[[0,"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-overlay.cjs",[[4,"ptc-overlay"]]],["ptc-para.cjs",[[1,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"],"paraMargin":[1,"para-margin"]}]]],["ptc-picture.cjs",[[4,"ptc-picture",{"lazy":[1]}]]],["ptc-spacer.cjs",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span.cjs",[[1,"ptc-span",{"spanStyle":[1,"span-style"],"display":[1],"styles":[1]}]]],["ptc-title.cjs",[[1,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["icon-asset.cjs",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]],["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"]}]]]], options);
19
19
  });
@@ -97,4 +97,137 @@
97
97
  :host(.simple-card) ::slotted([slot=slot-after-heading]) {
98
98
  margin-left: 5px;
99
99
  transition: margin-left var(--ptc-transition-medium) var(--ptc-standard-ease);
100
+ }
101
+
102
+ :host(.clip-edge-card) .card-border {
103
+ overflow: hidden;
104
+ filter: drop-shadow(rgba(0, 0, 0, 0.32) 0px 3px 6px);
105
+ width: 100%;
106
+ }
107
+ :host(.clip-edge-card) .card-border:hover {
108
+ filter: drop-shadow(rgba(0, 0, 0, 0.32) 0px 6px 12px);
109
+ }
110
+ :host(.clip-edge-card) .card-layout {
111
+ display: block;
112
+ }
113
+ :host(.clip-edge-card) .link-wrapper {
114
+ outline: none;
115
+ text-decoration: none;
116
+ }
117
+ :host(.clip-edge-card) .link-wrapper:hover {
118
+ outline: none;
119
+ text-decoration: none;
120
+ }
121
+ :host(.clip-edge-card) .card-media {
122
+ position: relative;
123
+ width: 100%;
124
+ height: 124px;
125
+ overflow: hidden;
126
+ border-radius: var(--ptc-border-radius-medium);
127
+ }
128
+ :host(.clip-edge-card) .card-body {
129
+ transform: translateY(calc((-1) * var(--ptc-element-spacing-04)));
130
+ overflow: hidden;
131
+ width: calc(95% - var(--ptc-element-spacing-04) - var(--ptc-element-spacing-06));
132
+ font-size: var(--ptc-font-size-small);
133
+ font-weight: var(--ptc-font-weight-medium);
134
+ line-height: var(--ptc-line-height-dense);
135
+ color: #40434a;
136
+ clip-path: var(--ptc-clip-path-bottom-right);
137
+ background-color: var(--color-white);
138
+ border-radius: var(--ptc-border-radius-medium);
139
+ padding: var(--ptc-element-spacing-05) var(--ptc-element-spacing-04) var(--ptc-element-spacing-03) var(--ptc-element-spacing-06);
140
+ }
141
+ :host(.clip-edge-card) .card-body h3 {
142
+ display: inline-block;
143
+ margin: 0px;
144
+ font-size: var(--ptc-font-size-medium);
145
+ font-weight: var(--ptc-font-weight-bold);
146
+ line-height: var(--ptc-line-height-dense);
147
+ color: var(--color-primary-uigrey);
148
+ text-decoration: none;
149
+ border-bottom: 2px solid transparent;
150
+ transition: border-bottom var(--ptc-transition-medium) var(--ptc-standard-ease);
151
+ margin-bottom: var(--ptc-element-spacing-03);
152
+ }
153
+ :host(.clip-edge-card) ::slotted([slot=slot-description]) {
154
+ height: 0;
155
+ opacity: 0;
156
+ transition: height var(--ptc-transition-medium) var(--ptc-standard-ease), opacity var(--ptc-transition-medium) var(--ptc-standard-ease);
157
+ }
158
+ :host(.clip-edge-card) ::slotted([slot=slot-image]) {
159
+ display: block;
160
+ width: 100%;
161
+ height: 100%;
162
+ transform: scale(1);
163
+ transition: transform var(--ptc-transition-medium) var(--ptc-standard-ease);
164
+ transform-origin: top center;
165
+ }
166
+ :host(.clip-edge-card) .link-wrapper:hover .card-body h3 {
167
+ border-bottom: 2px solid var(--color-secondary-turtlegreen);
168
+ }
169
+ :host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-description]) {
170
+ height: 54px;
171
+ opacity: 1;
172
+ }
173
+ :host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-image]) {
174
+ transform: scale(1.1);
175
+ }
176
+
177
+ :host(.hightlight-card) .card-border {
178
+ box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
179
+ width: 100%;
180
+ border-radius: var(--ptc-border-radius-medium);
181
+ overflow: hidden;
182
+ }
183
+ :host(.hightlight-card) .card-border:hover .card-media {
184
+ transform: scale(1.1);
185
+ }
186
+ :host(.hightlight-card) .card-layout {
187
+ display: block;
188
+ position: relative;
189
+ }
190
+ :host(.hightlight-card) .link-wrapper {
191
+ outline: none;
192
+ text-decoration: none;
193
+ }
194
+ :host(.hightlight-card) .link-wrapper:hover {
195
+ outline: none;
196
+ text-decoration: none;
197
+ }
198
+ :host(.hightlight-card) .link-wrapper:hover ::slotted([slot=slot-description]) {
199
+ height: var(--ptc-layout-spacing-05);
200
+ opacity: 1;
201
+ }
202
+ :host(.hightlight-card) .card-media {
203
+ width: 100%;
204
+ height: auto;
205
+ min-height: 450px;
206
+ position: relative;
207
+ transform: scale(1);
208
+ transform-origin: center bottom;
209
+ transition: transform var(--ptc-transition-medium) var(--ptc-standard-ease);
210
+ transition-delay: var(--ptc-delay-medium);
211
+ }
212
+ :host(.hightlight-card) .card-body {
213
+ position: absolute;
214
+ bottom: 0;
215
+ top: auto;
216
+ left: 0;
217
+ right: auto;
218
+ padding: var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);
219
+ background-color: var(--color-white);
220
+ }
221
+ :host(.hightlight-card) .card-body h3 {
222
+ font-size: 30px;
223
+ line-height: 1.27;
224
+ font-weight: var(--ptc-font-weight-bold);
225
+ color: var(--color-primary-uigrey);
226
+ margin: var(--ptc-element-spacing-04) 0;
227
+ }
228
+ :host(.hightlight-card) ::slotted([slot=slot-description]) {
229
+ height: 0;
230
+ opacity: 0;
231
+ transition: height var(--ptc-transition-medium) var(--ptc-standard-ease), opacity var(--ptc-transition-fast) var(--ptc-standard-ease);
232
+ transition-delay: var(--ptc-delay-medium);
100
233
  }
@@ -38,11 +38,17 @@ export class PtcCard {
38
38
  this.styles && h("style", null, this.styles),
39
39
  h("div", { class: "card-border", part: "border-wrapper" },
40
40
  h(Tag, Object.assign({ class: classMap, part: "card-layout" }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {})),
41
- this.hasImage || this.hasLottie || this.hasVideo ? (h("div", { class: "card-media", part: "media-wrapper" }, this.hasLottie ? h("slot", { name: "slot-lottie" }) : null)) : null,
41
+ this.hasImage || this.hasLottie || this.hasVideo ? (h("div", { class: "card-media", part: "media-wrapper" }, this.getMediaSlot ? h("slot", { name: this.getMediaSlot() }) : null)) : null,
42
42
  h("div", { class: "card-body", part: "body-wrapper" },
43
- !!this.heading ? ([h("h3", { class: "ptc-h3", part: "card-heading" }, this.heading),
44
- h("slot", { name: "slot-after-heading" })]) : null,
45
- h("slot", { name: "slot-description" }))))));
43
+ h("slot", { name: "slot-before-heading" }),
44
+ !!this.heading
45
+ ? [
46
+ h("h3", { class: "ptc-h3", part: "card-heading" }, this.heading),
47
+ h("slot", { name: "slot-after-heading" }),
48
+ ]
49
+ : null,
50
+ h("slot", { name: "slot-description" }),
51
+ !!this.cardDate ? h("ptc-date", { "date-string": `${this.cardDate}`, "date-styles": "::part(part-ptc-date){color:#40434a;font-size:var(--ptc-font-size-medium);margin-top:var(--ptc-element-spacing-04);display:inline-block;}" }) : null)))));
46
52
  }
47
53
  getCssClassMap() {
48
54
  return {
@@ -50,6 +56,20 @@ export class PtcCard {
50
56
  ['link-wrapper']: !!this.cardType ? true : false,
51
57
  };
52
58
  }
59
+ getMediaSlot() {
60
+ if (this.hasLottie) {
61
+ return 'slot-lottie';
62
+ }
63
+ else if (this.hasVideo) {
64
+ return 'slot-video';
65
+ }
66
+ else if (this.hasImage) {
67
+ return 'slot-image';
68
+ }
69
+ else {
70
+ return null;
71
+ }
72
+ }
53
73
  static get is() { return "ptc-card"; }
54
74
  static get encapsulation() { return "shadow"; }
55
75
  static get originalStyleUrls() { return {
@@ -63,8 +83,8 @@ export class PtcCard {
63
83
  "type": "string",
64
84
  "mutable": false,
65
85
  "complexType": {
66
- "original": "'simple-card' | 'lottie-card' | 'custom-card'",
67
- "resolved": "\"custom-card\" | \"lottie-card\" | \"simple-card\"",
86
+ "original": "'simple-card' | 'lottie-card' | 'custom-card' | 'clip-edge-card' | 'hightlight-card'",
87
+ "resolved": "\"clip-edge-card\" | \"custom-card\" | \"hightlight-card\" | \"lottie-card\" | \"simple-card\"",
68
88
  "references": {}
69
89
  },
70
90
  "required": false,
@@ -202,6 +222,23 @@ export class PtcCard {
202
222
  "attribute": "heading",
203
223
  "reflect": false
204
224
  },
225
+ "cardDate": {
226
+ "type": "string",
227
+ "mutable": false,
228
+ "complexType": {
229
+ "original": "string",
230
+ "resolved": "string",
231
+ "references": {}
232
+ },
233
+ "required": false,
234
+ "optional": true,
235
+ "docs": {
236
+ "tags": [],
237
+ "text": "Card Date"
238
+ },
239
+ "attribute": "card-date",
240
+ "reflect": false
241
+ },
205
242
  "styles": {
206
243
  "type": "string",
207
244
  "mutable": false,
@@ -22,11 +22,22 @@ export class PtcDate {
22
22
  this.country = "en-US";
23
23
  }
24
24
  render() {
25
- const date = new Date(this.year, this.month, this.day);
25
+ // const newDate = new Date(this.year, this.month, this.day);
26
26
  return (h(Host, null,
27
- h("span", null, date.toLocaleDateString(this.country, { year: 'numeric', month: 'short', day: 'numeric' }))));
27
+ this.dateStyles && h("style", null, this.dateStyles),
28
+ h("span", { part: "part-ptc-date" }, this.getDate().toLocaleDateString(this.country, { year: 'numeric', month: 'short', day: 'numeric' }))));
29
+ }
30
+ getDate() {
31
+ if (this.dateString) {
32
+ let newDate = new Date(this.dateString.replace(/-/g, '\/'));
33
+ return newDate;
34
+ }
35
+ else {
36
+ return new Date(this.year, this.month, this.day);
37
+ }
28
38
  }
29
39
  static get is() { return "ptc-date"; }
40
+ static get encapsulation() { return "shadow"; }
30
41
  static get originalStyleUrls() { return {
31
42
  "$": ["ptc-date.scss"]
32
43
  }; }
@@ -105,6 +116,40 @@ export class PtcDate {
105
116
  "attribute": "country",
106
117
  "reflect": false,
107
118
  "defaultValue": "\"en-US\""
119
+ },
120
+ "dateString": {
121
+ "type": "string",
122
+ "mutable": false,
123
+ "complexType": {
124
+ "original": "string",
125
+ "resolved": "string",
126
+ "references": {}
127
+ },
128
+ "required": false,
129
+ "optional": true,
130
+ "docs": {
131
+ "tags": [],
132
+ "text": "Date\nexamples: 2000-1-1 or 2000/01/01"
133
+ },
134
+ "attribute": "date-string",
135
+ "reflect": false
136
+ },
137
+ "dateStyles": {
138
+ "type": "string",
139
+ "mutable": false,
140
+ "complexType": {
141
+ "original": "string",
142
+ "resolved": "string",
143
+ "references": {}
144
+ },
145
+ "required": false,
146
+ "optional": true,
147
+ "docs": {
148
+ "tags": [],
149
+ "text": "Injected styles"
150
+ },
151
+ "attribute": "date-styles",
152
+ "reflect": false
108
153
  }
109
154
  }; }
110
155
  }
@@ -18,6 +18,18 @@
18
18
  background-position: 50% 50%;
19
19
  }
20
20
 
21
+ .radius-sm {
22
+ border-radius: var(--ptc-border-radius-small);
23
+ }
24
+
25
+ .radius-md {
26
+ border-radius: var(--ptc-border-radius-medium);
27
+ }
28
+
29
+ .radius-lg {
30
+ border-radius: var(--ptc-border-radius-large);
31
+ }
32
+
21
33
  /* XS */
22
34
  /* max-width: $screen-xs-max */
23
35
  @media (max-width: 767px) {
@@ -27,7 +39,7 @@
27
39
  }
28
40
  /* SM */
29
41
  /* min-width: $screen-sm-min) and (max-width: $screen-sm-max */
30
- @media (min-width: 480px) and (max-width: 991px) {
42
+ @media (min-width: 768px) and (max-width: 991px) {
31
43
  .hidden-sm {
32
44
  display: none !important;
33
45
  }