@ptcwebops/ptcw-design 0.0.6 → 0.0.7
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/loader.cjs.js +1 -1
- package/dist/cjs/ptc-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-link.cjs.entry.js +1 -1
- package/dist/cjs/ptc-ncard.cjs.entry.js +50 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ptc-card/ptc-card.js +1 -1
- package/dist/collection/components/ptc-link/ptc-link.css +4 -4
- package/dist/collection/components/ptc-ncard/ptc-ncard.css +3 -0
- package/dist/collection/components/ptc-ncard/ptc-ncard.js +162 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +50 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ptc-card.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +1 -1
- package/dist/esm/ptc-ncard.entry.js +46 -0
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/{p-29d02e2b.entry.js → p-76dfa56f.entry.js} +1 -1
- package/dist/ptcw-design/p-a802ffd7.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-ncard/ptc-ncard.d.ts +28 -0
- package/dist/types/components.d.ts +61 -0
- package/package.json +1 -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-card.cjs",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"headingArrow":[4,"heading-arrow"],"target":[1],"rel":[1],"heading":[1],"headingPosition":[1,"heading-position"],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["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-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",[[4,"ptc-list",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["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]}]]],["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]}]]],["icon-asset.cjs",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
|
|
17
|
+
return index.bootstrapLazy([["ptc-card.cjs",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"headingArrow":[4,"heading-arrow"],"target":[1],"rel":[1],"heading":[1],"headingPosition":[1,"heading-position"],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["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-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",[[4,"ptc-list",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["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-ncard.cjs",[[1,"ptc-ncard",{"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["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]}]]],["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]}]]],["icon-asset.cjs",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -52,7 +52,7 @@ const PtcCard = class {
|
|
|
52
52
|
const Tag = this.cardHref ? 'a' : 'div';
|
|
53
53
|
//const hPositionClass = this.headingPosition === 'center' ? ('is-placed-center'):(this.headingPosition === 'right' ? ('is-placed-right'):('is-placed-left'));
|
|
54
54
|
const classMap = this.getCssClassMap();
|
|
55
|
-
return (index.h(index.Host, { class: classMap }, index.h("div", { class: "card-border", part: "c-border-option" }, index.h(Tag, Object.assign({}, (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: "is-grid" }, index.h("div", { class: "is-col-12 is-placed-center" }, index.h("slot", { name: "card-meida" })))) : null, index.h("div", { class: "card-body", part: "c-body-option" }, index.h("div", { class: "is-grid has-no-row-gap" }, index.h("div", { class: "is-col-12" }, index.h("slot", { name: "before-heading" })), index.h("div", { class: {
|
|
55
|
+
return (index.h(index.Host, { class: classMap }, index.h("div", { class: "card-border", part: "c-border-option" }, index.h(Tag, Object.assign({}, (!!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: "is-grid" }, index.h("div", { class: "is-col-12 is-placed-center" }, index.h("slot", { name: "card-meida" })))) : null, index.h("div", { class: "card-body", part: "c-body-option" }, index.h("div", { class: "is-grid has-no-row-gap" }, index.h("div", { class: "is-col-12" }, index.h("slot", { name: "before-heading" })), index.h("div", { class: {
|
|
56
56
|
'is-col-12': true,
|
|
57
57
|
[this.headingPosition]: true,
|
|
58
58
|
} }, index.h("span", { class: "heading" }, this.heading), this.cardHref && this.headingArrow ? index.h("icon-asset", { type: "solid", size: "small", color: "ptc-green", name: "arrow-right" }) : null), index.h("div", { class: "is-col-12 is-placed-left body-space" }, index.h("slot", { name: "body-content" }))))))));
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-ac192914.js');
|
|
6
6
|
|
|
7
|
-
const ptcLinkCss = ".disabled{pointer-events:none;cursor:default;text-decoration:none}.ptc-link{display:inline-block;color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal);margin-bottom:var(--ptc-element-spacing-01);outline:none;text-decoration:none}.simple::after{content:\"\";position:absolute;width:100%;left:0px;bottom:2px;transition:opacity var(--ptc-transition-fast) var(--ptc-standard-ease);border-bottom:2px solid var(--color-primary-green);opacity:0}.simple:hover.simple::after{opacity:1}.arrow{margin-right:var(--ptc-element-spacing-01)}.arrow::after{position:absolute;display:block;content:\"\";width:var(--ptc-element-spacing-06);border-bottom:2px solid var(--color-primary-green);bottom:1px;transition:width var(--ptc-transition-fast) var(--ptc-standard-ease)}.arrow:hover.arrow::after{width:100%}.uppercase{text-transform:uppercase}.small{font-size:var(--ptc-font-size-small)}.medium{font-size:var(--ptc-font-size-medium)}.large{font-size:var(--ptc-font-size-large)}icon-asset{position:absolute;right:-25px;transition:transform var(--ptc-transition-fast) var(--ptc-standard-ease)}icon-asset svg{fill:var(--color-primary-green) !important}.ptc-link:hover.arrow icon-asset{transform:translateX(var(--ptc-element-spacing-04))}.nav-title{font-size:17px;line-height:var(--ptc-line-height-dense);letter-spacing:var(--ptc-element-spacing-01);color:#cac8c8;text-shadow:1px 1px 2px rgba(0, 0, 0, 0.8);font-weight:var(--ptc-font-weight-semibold)}.primary-nav-link{display:inline-block;position:relative;font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-normal);font-weight:var(--ptc-font-weight-bold);color:var(--color-white);transition:color var(--ptc-transition-slow) ease;padding:var(--ptc-element-spacing-04) 50px;background-color:
|
|
7
|
+
const ptcLinkCss = ".disabled{pointer-events:none;cursor:default;text-decoration:none}.ptc-link{display:inline-block;color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal);margin-bottom:var(--ptc-element-spacing-01);outline:none;text-decoration:none}.simple::after{content:\"\";position:absolute;width:100%;left:0px;bottom:2px;transition:opacity var(--ptc-transition-fast) var(--ptc-standard-ease);border-bottom:2px solid var(--color-primary-green);opacity:0}.simple:hover.simple::after{opacity:1}.arrow{margin-right:var(--ptc-element-spacing-01)}.arrow::after{position:absolute;display:block;content:\"\";width:var(--ptc-element-spacing-06);border-bottom:2px solid var(--color-primary-green);bottom:1px;transition:width var(--ptc-transition-fast) var(--ptc-standard-ease)}.arrow:hover.arrow::after{width:100%}.uppercase{text-transform:uppercase}.small{font-size:var(--ptc-font-size-small)}.medium{font-size:var(--ptc-font-size-medium)}.large{font-size:var(--ptc-font-size-large)}icon-asset{position:absolute;right:-25px;transition:transform var(--ptc-transition-fast) var(--ptc-standard-ease)}icon-asset svg{fill:var(--color-primary-green) !important}.ptc-link:hover.arrow icon-asset{transform:translateX(var(--ptc-element-spacing-04))}.nav-title{font-size:17px;line-height:var(--ptc-line-height-dense);letter-spacing:var(--ptc-element-spacing-01);color:#cac8c8;text-shadow:1px 1px 2px rgba(0, 0, 0, 0.8);font-weight:var(--ptc-font-weight-semibold)}.primary-nav-link{display:inline-block;position:relative;font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-normal);font-weight:var(--ptc-font-weight-bold);color:var(--color-white);transition:color var(--ptc-transition-slow) ease;padding:var(--ptc-element-spacing-04) 50px;background-color:transparent;text-decoration:none;outline:none}.primary-nav-link:hover{color:var(--color-secondary-turtlegreen);text-decoration:none;outline:none;background-color:transparent}.nav-title-link{font-family:var(--ptc-font-secondary-latin);font-size:var(--ptc-font-size-medium);font-weight:var(--ptc-font-weight-bold);line-height:1.56;color:var(--color-white);text-decoration:none;outline:none;background-color:transparent;transition:color var(--ptc-transition-medium) var(--ptc-decelerated-ease);border-bottom:1.5px solid transparent}.nav-title-link:hover{color:var(--color-white);border-bottom:1.5px solid var(--color-secondary-turtlegreen)}.secondary-nav-link{display:inline-block;position:relative;font-size:var(--ptc-font-size-x-small);line-height:20px;font-weight:var(--ptc-font-weight-light);color:var(--color-white);transition:color var(--ptc-transition-slow) ease;padding:10px 15px;background-color:transparent;text-decoration:none;outline:none}.secondary-nav-link:hover{color:var(--color-secondary-turtlegreen);text-decoration:none;outline:none;background-color:transparent}.footer-nav-link{color:var(--color-white);transition:border var(--ptc-transition-medium) var(--ptc-standard-ease), color var(--ptc-transition-medium) var(--ptc-standard-ease);border-bottom:1px solid transparent;outline:none;text-decoration:none;font-weight:var(--ptc-font-weight-semibold);line-height:1.73;letter-spacing:1.13px;text-align:left;font-size:15px}.footer-nav-link:hover{outline:none;text-decoration:none;border-bottom:0.1rem solid var(--color-secondary-turtlegreen);color:var(--color-secondary-turtlegreen)}.copyright-link{color:var(--color-white);font-size:13px;font-weight:var(--ptc-font-weight-normal);line-height:2;display:inline-block}";
|
|
8
8
|
|
|
9
9
|
const PtcLink = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-ac192914.js');
|
|
6
|
+
|
|
7
|
+
const ptcNcardCss = ":host{display:block}";
|
|
8
|
+
|
|
9
|
+
const PtcNcard = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
/**
|
|
13
|
+
* Card Link URL (Optional)
|
|
14
|
+
*/
|
|
15
|
+
this.cardHref = undefined;
|
|
16
|
+
/**
|
|
17
|
+
* (optional) Link card target
|
|
18
|
+
* */
|
|
19
|
+
this.target = '_self';
|
|
20
|
+
/**
|
|
21
|
+
* (optional) Link card rel
|
|
22
|
+
* */
|
|
23
|
+
this.rel = undefined;
|
|
24
|
+
/**
|
|
25
|
+
* If this card has Image
|
|
26
|
+
*/
|
|
27
|
+
this.hasImage = false;
|
|
28
|
+
/**
|
|
29
|
+
* If this card has Video
|
|
30
|
+
*/
|
|
31
|
+
this.hasVideo = false;
|
|
32
|
+
/**
|
|
33
|
+
* If this card has Lottie Image
|
|
34
|
+
*/
|
|
35
|
+
this.hasLottie = false;
|
|
36
|
+
}
|
|
37
|
+
render() {
|
|
38
|
+
const Tag = !!this.cardHref ? 'a' : 'div';
|
|
39
|
+
const classMap = this.getCssClassMap();
|
|
40
|
+
return (index.h(index.Host, null, index.h("div", { class: "card-border", part: "border-wrapper" }, index.h(Tag, Object.assign({ class: classMap }, (!!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" }, index.h("slot", { name: "slot-body" }))))));
|
|
41
|
+
}
|
|
42
|
+
getCssClassMap() {
|
|
43
|
+
return {
|
|
44
|
+
['is-grid']: true,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
PtcNcard.style = ptcNcardCss;
|
|
49
|
+
|
|
50
|
+
exports.ptc_ncard = PtcNcard;
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["ptc-card.cjs",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"headingArrow":[4,"heading-arrow"],"target":[1],"rel":[1],"heading":[1],"headingPosition":[1,"heading-position"],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["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-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",[[4,"ptc-list",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["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]}]]],["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]}]]],["icon-asset.cjs",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
|
|
18
|
+
return index.bootstrapLazy([["ptc-card.cjs",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"headingArrow":[4,"heading-arrow"],"target":[1],"rel":[1],"heading":[1],"headingPosition":[1,"heading-position"],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["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-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",[[4,"ptc-list",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["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-ncard.cjs",[[1,"ptc-ncard",{"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["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]}]]],["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]}]]],["icon-asset.cjs",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
|
|
19
19
|
});
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"./components/ptc-lottie/ptc-lottie.js",
|
|
15
15
|
"./components/ptc-nav/ptc-nav.js",
|
|
16
16
|
"./components/ptc-nav-item/ptc-nav-item.js",
|
|
17
|
+
"./components/ptc-ncard/ptc-ncard.js",
|
|
17
18
|
"./components/ptc-overlay/ptc-overlay.js",
|
|
18
19
|
"./components/ptc-para/ptc-para.js",
|
|
19
20
|
"./components/ptc-picture/ptc-picture.js",
|
|
@@ -46,7 +46,7 @@ export class PtcCard {
|
|
|
46
46
|
const classMap = this.getCssClassMap();
|
|
47
47
|
return (h(Host, { class: classMap },
|
|
48
48
|
h("div", { class: "card-border", part: "c-border-option" },
|
|
49
|
-
h(Tag, Object.assign({}, (this.cardHref ? { href: this.cardHref } : {}), (this.target && this.cardHref ? { target: this.target } : {}), (this.rel && this.cardHref ? { rel: this.rel } : {})),
|
|
49
|
+
h(Tag, Object.assign({}, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {})),
|
|
50
50
|
this.hasImage || this.hasLottie || this.hasVideo ? (h("div", { class: "is-grid" },
|
|
51
51
|
h("div", { class: "is-col-12 is-placed-center" },
|
|
52
52
|
h("slot", { name: "card-meida" })))) : null,
|
|
@@ -92,7 +92,7 @@ icon-asset svg {
|
|
|
92
92
|
color: var(--color-white);
|
|
93
93
|
transition: color var(--ptc-transition-slow) ease;
|
|
94
94
|
padding: var(--ptc-element-spacing-04) 50px;
|
|
95
|
-
background-color:
|
|
95
|
+
background-color: transparent;
|
|
96
96
|
text-decoration: none;
|
|
97
97
|
outline: none;
|
|
98
98
|
}
|
|
@@ -100,7 +100,7 @@ icon-asset svg {
|
|
|
100
100
|
color: var(--color-secondary-turtlegreen);
|
|
101
101
|
text-decoration: none;
|
|
102
102
|
outline: none;
|
|
103
|
-
background-color:
|
|
103
|
+
background-color: transparent;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.nav-title-link {
|
|
@@ -129,7 +129,7 @@ icon-asset svg {
|
|
|
129
129
|
color: var(--color-white);
|
|
130
130
|
transition: color var(--ptc-transition-slow) ease;
|
|
131
131
|
padding: 10px 15px;
|
|
132
|
-
background-color:
|
|
132
|
+
background-color: transparent;
|
|
133
133
|
text-decoration: none;
|
|
134
134
|
outline: none;
|
|
135
135
|
}
|
|
@@ -137,7 +137,7 @@ icon-asset svg {
|
|
|
137
137
|
color: var(--color-secondary-turtlegreen);
|
|
138
138
|
text-decoration: none;
|
|
139
139
|
outline: none;
|
|
140
|
-
background-color:
|
|
140
|
+
background-color: transparent;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.footer-nav-link {
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { Component, Prop, Host, h } from '@stencil/core';
|
|
2
|
+
export class PtcNcard {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Card Link URL (Optional)
|
|
6
|
+
*/
|
|
7
|
+
this.cardHref = undefined;
|
|
8
|
+
/**
|
|
9
|
+
* (optional) Link card target
|
|
10
|
+
* */
|
|
11
|
+
this.target = '_self';
|
|
12
|
+
/**
|
|
13
|
+
* (optional) Link card rel
|
|
14
|
+
* */
|
|
15
|
+
this.rel = undefined;
|
|
16
|
+
/**
|
|
17
|
+
* If this card has Image
|
|
18
|
+
*/
|
|
19
|
+
this.hasImage = false;
|
|
20
|
+
/**
|
|
21
|
+
* If this card has Video
|
|
22
|
+
*/
|
|
23
|
+
this.hasVideo = false;
|
|
24
|
+
/**
|
|
25
|
+
* If this card has Lottie Image
|
|
26
|
+
*/
|
|
27
|
+
this.hasLottie = false;
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
const Tag = !!this.cardHref ? 'a' : 'div';
|
|
31
|
+
const classMap = this.getCssClassMap();
|
|
32
|
+
return (h(Host, null,
|
|
33
|
+
h("div", { class: "card-border", part: "border-wrapper" },
|
|
34
|
+
h(Tag, Object.assign({ class: classMap }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {})),
|
|
35
|
+
this.hasImage || this.hasLottie || this.hasVideo ? (h("div", { class: "card-media", part: "media-wrapper" }, this.hasLottie ? (h("slot", { name: "slot-lottie" })) : null)) : null,
|
|
36
|
+
h("div", { class: "card-body", part: "body-wrapper" },
|
|
37
|
+
h("slot", { name: "slot-body" }))))));
|
|
38
|
+
}
|
|
39
|
+
getCssClassMap() {
|
|
40
|
+
return {
|
|
41
|
+
['is-grid']: true,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
static get is() { return "ptc-ncard"; }
|
|
45
|
+
static get encapsulation() { return "shadow"; }
|
|
46
|
+
static get originalStyleUrls() { return {
|
|
47
|
+
"$": ["ptc-ncard.scss"]
|
|
48
|
+
}; }
|
|
49
|
+
static get styleUrls() { return {
|
|
50
|
+
"$": ["ptc-ncard.css"]
|
|
51
|
+
}; }
|
|
52
|
+
static get properties() { return {
|
|
53
|
+
"cardHref": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "string",
|
|
58
|
+
"resolved": "string",
|
|
59
|
+
"references": {}
|
|
60
|
+
},
|
|
61
|
+
"required": false,
|
|
62
|
+
"optional": true,
|
|
63
|
+
"docs": {
|
|
64
|
+
"tags": [],
|
|
65
|
+
"text": "Card Link URL (Optional)"
|
|
66
|
+
},
|
|
67
|
+
"attribute": "card-href",
|
|
68
|
+
"reflect": false,
|
|
69
|
+
"defaultValue": "undefined"
|
|
70
|
+
},
|
|
71
|
+
"target": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"mutable": false,
|
|
74
|
+
"complexType": {
|
|
75
|
+
"original": "string",
|
|
76
|
+
"resolved": "string",
|
|
77
|
+
"references": {}
|
|
78
|
+
},
|
|
79
|
+
"required": false,
|
|
80
|
+
"optional": true,
|
|
81
|
+
"docs": {
|
|
82
|
+
"tags": [],
|
|
83
|
+
"text": "(optional) Link card target"
|
|
84
|
+
},
|
|
85
|
+
"attribute": "target",
|
|
86
|
+
"reflect": false,
|
|
87
|
+
"defaultValue": "'_self'"
|
|
88
|
+
},
|
|
89
|
+
"rel": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"mutable": false,
|
|
92
|
+
"complexType": {
|
|
93
|
+
"original": "string",
|
|
94
|
+
"resolved": "string",
|
|
95
|
+
"references": {}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": true,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": "(optional) Link card rel"
|
|
102
|
+
},
|
|
103
|
+
"attribute": "rel",
|
|
104
|
+
"reflect": false,
|
|
105
|
+
"defaultValue": "undefined"
|
|
106
|
+
},
|
|
107
|
+
"hasImage": {
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "boolean",
|
|
112
|
+
"resolved": "boolean",
|
|
113
|
+
"references": {}
|
|
114
|
+
},
|
|
115
|
+
"required": false,
|
|
116
|
+
"optional": false,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [],
|
|
119
|
+
"text": "If this card has Image"
|
|
120
|
+
},
|
|
121
|
+
"attribute": "has-image",
|
|
122
|
+
"reflect": false,
|
|
123
|
+
"defaultValue": "false"
|
|
124
|
+
},
|
|
125
|
+
"hasVideo": {
|
|
126
|
+
"type": "boolean",
|
|
127
|
+
"mutable": false,
|
|
128
|
+
"complexType": {
|
|
129
|
+
"original": "boolean",
|
|
130
|
+
"resolved": "boolean",
|
|
131
|
+
"references": {}
|
|
132
|
+
},
|
|
133
|
+
"required": false,
|
|
134
|
+
"optional": false,
|
|
135
|
+
"docs": {
|
|
136
|
+
"tags": [],
|
|
137
|
+
"text": "If this card has Video"
|
|
138
|
+
},
|
|
139
|
+
"attribute": "has-video",
|
|
140
|
+
"reflect": false,
|
|
141
|
+
"defaultValue": "false"
|
|
142
|
+
},
|
|
143
|
+
"hasLottie": {
|
|
144
|
+
"type": "boolean",
|
|
145
|
+
"mutable": false,
|
|
146
|
+
"complexType": {
|
|
147
|
+
"original": "boolean",
|
|
148
|
+
"resolved": "boolean",
|
|
149
|
+
"references": {}
|
|
150
|
+
},
|
|
151
|
+
"required": false,
|
|
152
|
+
"optional": false,
|
|
153
|
+
"docs": {
|
|
154
|
+
"tags": [],
|
|
155
|
+
"text": "If this card has Lottie Image"
|
|
156
|
+
},
|
|
157
|
+
"attribute": "has-lottie",
|
|
158
|
+
"reflect": false,
|
|
159
|
+
"defaultValue": "false"
|
|
160
|
+
}
|
|
161
|
+
}; }
|
|
162
|
+
}
|
|
@@ -86,6 +86,12 @@ export const PtcNavItem: {
|
|
|
86
86
|
new (): PtcNavItem;
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
+
interface PtcNcard extends Components.PtcNcard, HTMLElement {}
|
|
90
|
+
export const PtcNcard: {
|
|
91
|
+
prototype: PtcNcard;
|
|
92
|
+
new (): PtcNcard;
|
|
93
|
+
};
|
|
94
|
+
|
|
89
95
|
interface PtcOverlay extends Components.PtcOverlay, HTMLElement {}
|
|
90
96
|
export const PtcOverlay: {
|
|
91
97
|
prototype: PtcOverlay;
|
|
@@ -13664,7 +13664,7 @@ const PtcCard$1 = class extends HTMLElement {
|
|
|
13664
13664
|
const Tag = this.cardHref ? 'a' : 'div';
|
|
13665
13665
|
//const hPositionClass = this.headingPosition === 'center' ? ('is-placed-center'):(this.headingPosition === 'right' ? ('is-placed-right'):('is-placed-left'));
|
|
13666
13666
|
const classMap = this.getCssClassMap();
|
|
13667
|
-
return (h(Host, { class: classMap }, h("div", { class: "card-border", part: "c-border-option" }, h(Tag, Object.assign({}, (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 ? (h("div", { class: "is-grid" }, h("div", { class: "is-col-12 is-placed-center" }, h("slot", { name: "card-meida" })))) : null, h("div", { class: "card-body", part: "c-body-option" }, h("div", { class: "is-grid has-no-row-gap" }, h("div", { class: "is-col-12" }, h("slot", { name: "before-heading" })), h("div", { class: {
|
|
13667
|
+
return (h(Host, { class: classMap }, h("div", { class: "card-border", part: "c-border-option" }, h(Tag, Object.assign({}, (!!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 ? (h("div", { class: "is-grid" }, h("div", { class: "is-col-12 is-placed-center" }, h("slot", { name: "card-meida" })))) : null, h("div", { class: "card-body", part: "c-body-option" }, h("div", { class: "is-grid has-no-row-gap" }, h("div", { class: "is-col-12" }, h("slot", { name: "before-heading" })), h("div", { class: {
|
|
13668
13668
|
'is-col-12': true,
|
|
13669
13669
|
[this.headingPosition]: true,
|
|
13670
13670
|
} }, h("span", { class: "heading" }, this.heading), this.cardHref && this.headingArrow ? h("icon-asset", { type: "solid", size: "small", color: "ptc-green", name: "arrow-right" }) : null), h("div", { class: "is-col-12 is-placed-left body-space" }, h("slot", { name: "body-content" }))))))));
|
|
@@ -13855,7 +13855,7 @@ const PtcImg$1 = class extends HTMLElement {
|
|
|
13855
13855
|
static get style() { return ptcImgCss; }
|
|
13856
13856
|
};
|
|
13857
13857
|
|
|
13858
|
-
const ptcLinkCss = ".disabled{pointer-events:none;cursor:default;text-decoration:none}.ptc-link{display:inline-block;color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal);margin-bottom:var(--ptc-element-spacing-01);outline:none;text-decoration:none}.simple::after{content:\"\";position:absolute;width:100%;left:0px;bottom:2px;transition:opacity var(--ptc-transition-fast) var(--ptc-standard-ease);border-bottom:2px solid var(--color-primary-green);opacity:0}.simple:hover.simple::after{opacity:1}.arrow{margin-right:var(--ptc-element-spacing-01)}.arrow::after{position:absolute;display:block;content:\"\";width:var(--ptc-element-spacing-06);border-bottom:2px solid var(--color-primary-green);bottom:1px;transition:width var(--ptc-transition-fast) var(--ptc-standard-ease)}.arrow:hover.arrow::after{width:100%}.uppercase{text-transform:uppercase}.small{font-size:var(--ptc-font-size-small)}.medium{font-size:var(--ptc-font-size-medium)}.large{font-size:var(--ptc-font-size-large)}icon-asset{position:absolute;right:-25px;transition:transform var(--ptc-transition-fast) var(--ptc-standard-ease)}icon-asset svg{fill:var(--color-primary-green) !important}.ptc-link:hover.arrow icon-asset{transform:translateX(var(--ptc-element-spacing-04))}.nav-title{font-size:17px;line-height:var(--ptc-line-height-dense);letter-spacing:var(--ptc-element-spacing-01);color:#cac8c8;text-shadow:1px 1px 2px rgba(0, 0, 0, 0.8);font-weight:var(--ptc-font-weight-semibold)}.primary-nav-link{display:inline-block;position:relative;font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-normal);font-weight:var(--ptc-font-weight-bold);color:var(--color-white);transition:color var(--ptc-transition-slow) ease;padding:var(--ptc-element-spacing-04) 50px;background-color:
|
|
13858
|
+
const ptcLinkCss = ".disabled{pointer-events:none;cursor:default;text-decoration:none}.ptc-link{display:inline-block;color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal);margin-bottom:var(--ptc-element-spacing-01);outline:none;text-decoration:none}.simple::after{content:\"\";position:absolute;width:100%;left:0px;bottom:2px;transition:opacity var(--ptc-transition-fast) var(--ptc-standard-ease);border-bottom:2px solid var(--color-primary-green);opacity:0}.simple:hover.simple::after{opacity:1}.arrow{margin-right:var(--ptc-element-spacing-01)}.arrow::after{position:absolute;display:block;content:\"\";width:var(--ptc-element-spacing-06);border-bottom:2px solid var(--color-primary-green);bottom:1px;transition:width var(--ptc-transition-fast) var(--ptc-standard-ease)}.arrow:hover.arrow::after{width:100%}.uppercase{text-transform:uppercase}.small{font-size:var(--ptc-font-size-small)}.medium{font-size:var(--ptc-font-size-medium)}.large{font-size:var(--ptc-font-size-large)}icon-asset{position:absolute;right:-25px;transition:transform var(--ptc-transition-fast) var(--ptc-standard-ease)}icon-asset svg{fill:var(--color-primary-green) !important}.ptc-link:hover.arrow icon-asset{transform:translateX(var(--ptc-element-spacing-04))}.nav-title{font-size:17px;line-height:var(--ptc-line-height-dense);letter-spacing:var(--ptc-element-spacing-01);color:#cac8c8;text-shadow:1px 1px 2px rgba(0, 0, 0, 0.8);font-weight:var(--ptc-font-weight-semibold)}.primary-nav-link{display:inline-block;position:relative;font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-normal);font-weight:var(--ptc-font-weight-bold);color:var(--color-white);transition:color var(--ptc-transition-slow) ease;padding:var(--ptc-element-spacing-04) 50px;background-color:transparent;text-decoration:none;outline:none}.primary-nav-link:hover{color:var(--color-secondary-turtlegreen);text-decoration:none;outline:none;background-color:transparent}.nav-title-link{font-family:var(--ptc-font-secondary-latin);font-size:var(--ptc-font-size-medium);font-weight:var(--ptc-font-weight-bold);line-height:1.56;color:var(--color-white);text-decoration:none;outline:none;background-color:transparent;transition:color var(--ptc-transition-medium) var(--ptc-decelerated-ease);border-bottom:1.5px solid transparent}.nav-title-link:hover{color:var(--color-white);border-bottom:1.5px solid var(--color-secondary-turtlegreen)}.secondary-nav-link{display:inline-block;position:relative;font-size:var(--ptc-font-size-x-small);line-height:20px;font-weight:var(--ptc-font-weight-light);color:var(--color-white);transition:color var(--ptc-transition-slow) ease;padding:10px 15px;background-color:transparent;text-decoration:none;outline:none}.secondary-nav-link:hover{color:var(--color-secondary-turtlegreen);text-decoration:none;outline:none;background-color:transparent}.footer-nav-link{color:var(--color-white);transition:border var(--ptc-transition-medium) var(--ptc-standard-ease), color var(--ptc-transition-medium) var(--ptc-standard-ease);border-bottom:1px solid transparent;outline:none;text-decoration:none;font-weight:var(--ptc-font-weight-semibold);line-height:1.73;letter-spacing:1.13px;text-align:left;font-size:15px}.footer-nav-link:hover{outline:none;text-decoration:none;border-bottom:0.1rem solid var(--color-secondary-turtlegreen);color:var(--color-secondary-turtlegreen)}.copyright-link{color:var(--color-white);font-size:13px;font-weight:var(--ptc-font-weight-normal);line-height:2;display:inline-block}";
|
|
13859
13859
|
|
|
13860
13860
|
const PtcLink$1 = class extends HTMLElement {
|
|
13861
13861
|
constructor() {
|
|
@@ -14045,6 +14045,51 @@ const PtcNavItem$1 = class extends HTMLElement {
|
|
|
14045
14045
|
static get style() { return ptcNavItemCss; }
|
|
14046
14046
|
};
|
|
14047
14047
|
|
|
14048
|
+
const ptcNcardCss = ":host{display:block}";
|
|
14049
|
+
|
|
14050
|
+
const PtcNcard$1 = class extends HTMLElement {
|
|
14051
|
+
constructor() {
|
|
14052
|
+
super();
|
|
14053
|
+
this.__registerHost();
|
|
14054
|
+
attachShadow(this);
|
|
14055
|
+
/**
|
|
14056
|
+
* Card Link URL (Optional)
|
|
14057
|
+
*/
|
|
14058
|
+
this.cardHref = undefined;
|
|
14059
|
+
/**
|
|
14060
|
+
* (optional) Link card target
|
|
14061
|
+
* */
|
|
14062
|
+
this.target = '_self';
|
|
14063
|
+
/**
|
|
14064
|
+
* (optional) Link card rel
|
|
14065
|
+
* */
|
|
14066
|
+
this.rel = undefined;
|
|
14067
|
+
/**
|
|
14068
|
+
* If this card has Image
|
|
14069
|
+
*/
|
|
14070
|
+
this.hasImage = false;
|
|
14071
|
+
/**
|
|
14072
|
+
* If this card has Video
|
|
14073
|
+
*/
|
|
14074
|
+
this.hasVideo = false;
|
|
14075
|
+
/**
|
|
14076
|
+
* If this card has Lottie Image
|
|
14077
|
+
*/
|
|
14078
|
+
this.hasLottie = false;
|
|
14079
|
+
}
|
|
14080
|
+
render() {
|
|
14081
|
+
const Tag = !!this.cardHref ? 'a' : 'div';
|
|
14082
|
+
const classMap = this.getCssClassMap();
|
|
14083
|
+
return (h(Host, null, h("div", { class: "card-border", part: "border-wrapper" }, h(Tag, Object.assign({ class: classMap }, (!!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 ? (h("div", { class: "card-media", part: "media-wrapper" }, this.hasLottie ? (h("slot", { name: "slot-lottie" })) : null)) : null, h("div", { class: "card-body", part: "body-wrapper" }, h("slot", { name: "slot-body" }))))));
|
|
14084
|
+
}
|
|
14085
|
+
getCssClassMap() {
|
|
14086
|
+
return {
|
|
14087
|
+
['is-grid']: true,
|
|
14088
|
+
};
|
|
14089
|
+
}
|
|
14090
|
+
static get style() { return ptcNcardCss; }
|
|
14091
|
+
};
|
|
14092
|
+
|
|
14048
14093
|
const ptcOverlayCss = ":host{display:block}";
|
|
14049
14094
|
|
|
14050
14095
|
const PtcOverlay$1 = class extends HTMLElement {
|
|
@@ -14231,6 +14276,7 @@ const PtcList = /*@__PURE__*/proxyCustomElement(PtcList$1, [4,"ptc-list",{"listT
|
|
|
14231
14276
|
const PtcLottie = /*@__PURE__*/proxyCustomElement(PtcLottie$1, [1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]);
|
|
14232
14277
|
const PtcNav = /*@__PURE__*/proxyCustomElement(PtcNav$1, [1,"ptc-nav"]);
|
|
14233
14278
|
const PtcNavItem = /*@__PURE__*/proxyCustomElement(PtcNavItem$1, [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"]]]);
|
|
14279
|
+
const PtcNcard = /*@__PURE__*/proxyCustomElement(PtcNcard$1, [1,"ptc-ncard",{"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]);
|
|
14234
14280
|
const PtcOverlay = /*@__PURE__*/proxyCustomElement(PtcOverlay$1, [4,"ptc-overlay"]);
|
|
14235
14281
|
const PtcPara = /*@__PURE__*/proxyCustomElement(PtcPara$1, [4,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"]}]);
|
|
14236
14282
|
const PtcPicture = /*@__PURE__*/proxyCustomElement(PtcPicture$1, [4,"ptc-picture",{"lazy":[1]}]);
|
|
@@ -14255,6 +14301,7 @@ const defineCustomElements = (opts) => {
|
|
|
14255
14301
|
PtcLottie,
|
|
14256
14302
|
PtcNav,
|
|
14257
14303
|
PtcNavItem,
|
|
14304
|
+
PtcNcard,
|
|
14258
14305
|
PtcOverlay,
|
|
14259
14306
|
PtcPara,
|
|
14260
14307
|
PtcPicture,
|
|
@@ -14269,4 +14316,4 @@ const defineCustomElements = (opts) => {
|
|
|
14269
14316
|
}
|
|
14270
14317
|
};
|
|
14271
14318
|
|
|
14272
|
-
export { IconAsset, ListItem, LottiePlayer, MyComponent, PtcButton, PtcCard, PtcDate, PtcFooter, PtcImage, PtcImg, PtcLink, PtcList, PtcLottie, PtcNav, PtcNavItem, PtcOverlay, PtcPara, PtcPicture, PtcSpacer, PtcSpan, PtcTitle, defineCustomElements };
|
|
14319
|
+
export { IconAsset, ListItem, LottiePlayer, MyComponent, PtcButton, PtcCard, PtcDate, PtcFooter, PtcImage, PtcImg, PtcLink, PtcList, PtcLottie, PtcNav, PtcNavItem, PtcNcard, PtcOverlay, PtcPara, PtcPicture, PtcSpacer, PtcSpan, PtcTitle, defineCustomElements };
|
package/dist/esm/loader.js
CHANGED
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["ptc-card",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"headingArrow":[4,"heading-arrow"],"target":[1],"rel":[1],"heading":[1],"headingPosition":[1,"heading-position"],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["ptc-link",[[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",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["list-item",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-button",[[4,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"]}]]],["ptc-date",[[0,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1]}]]],["ptc-footer",[[1,"ptc-footer"]]],["ptc-image",[[1,"ptc-image",{"src":[1],"alt":[1],"oldSrc":[32]}]]],["ptc-img",[[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",[[4,"ptc-list",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["ptc-nav",[[1,"ptc-nav"]]],["ptc-nav-item",[[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",[[4,"ptc-overlay"]]],["ptc-para",[[4,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"]}]]],["ptc-picture",[[4,"ptc-picture",{"lazy":[1]}]]],["ptc-spacer",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span",[[4,"ptc-span",{"spanStyle":[1,"span-style"]}]]],["ptc-title",[[1,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["lottie-player",[[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]}]]],["icon-asset",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
|
|
13
|
+
return bootstrapLazy([["ptc-card",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"headingArrow":[4,"heading-arrow"],"target":[1],"rel":[1],"heading":[1],"headingPosition":[1,"heading-position"],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["ptc-link",[[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",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["list-item",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-button",[[4,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"]}]]],["ptc-date",[[0,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1]}]]],["ptc-footer",[[1,"ptc-footer"]]],["ptc-image",[[1,"ptc-image",{"src":[1],"alt":[1],"oldSrc":[32]}]]],["ptc-img",[[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",[[4,"ptc-list",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["ptc-nav",[[1,"ptc-nav"]]],["ptc-nav-item",[[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-ncard",[[1,"ptc-ncard",{"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["ptc-overlay",[[4,"ptc-overlay"]]],["ptc-para",[[4,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"]}]]],["ptc-picture",[[4,"ptc-picture",{"lazy":[1]}]]],["ptc-spacer",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span",[[4,"ptc-span",{"spanStyle":[1,"span-style"]}]]],["ptc-title",[[1,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["lottie-player",[[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]}]]],["icon-asset",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -48,7 +48,7 @@ const PtcCard = class {
|
|
|
48
48
|
const Tag = this.cardHref ? 'a' : 'div';
|
|
49
49
|
//const hPositionClass = this.headingPosition === 'center' ? ('is-placed-center'):(this.headingPosition === 'right' ? ('is-placed-right'):('is-placed-left'));
|
|
50
50
|
const classMap = this.getCssClassMap();
|
|
51
|
-
return (h(Host, { class: classMap }, h("div", { class: "card-border", part: "c-border-option" }, h(Tag, Object.assign({}, (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 ? (h("div", { class: "is-grid" }, h("div", { class: "is-col-12 is-placed-center" }, h("slot", { name: "card-meida" })))) : null, h("div", { class: "card-body", part: "c-body-option" }, h("div", { class: "is-grid has-no-row-gap" }, h("div", { class: "is-col-12" }, h("slot", { name: "before-heading" })), h("div", { class: {
|
|
51
|
+
return (h(Host, { class: classMap }, h("div", { class: "card-border", part: "c-border-option" }, h(Tag, Object.assign({}, (!!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 ? (h("div", { class: "is-grid" }, h("div", { class: "is-col-12 is-placed-center" }, h("slot", { name: "card-meida" })))) : null, h("div", { class: "card-body", part: "c-body-option" }, h("div", { class: "is-grid has-no-row-gap" }, h("div", { class: "is-col-12" }, h("slot", { name: "before-heading" })), h("div", { class: {
|
|
52
52
|
'is-col-12': true,
|
|
53
53
|
[this.headingPosition]: true,
|
|
54
54
|
} }, h("span", { class: "heading" }, this.heading), this.cardHref && this.headingArrow ? h("icon-asset", { type: "solid", size: "small", color: "ptc-green", name: "arrow-right" }) : null), h("div", { class: "is-col-12 is-placed-left body-space" }, h("slot", { name: "body-content" }))))))));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-5b1c792c.js';
|
|
2
2
|
|
|
3
|
-
const ptcLinkCss = ".disabled{pointer-events:none;cursor:default;text-decoration:none}.ptc-link{display:inline-block;color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal);margin-bottom:var(--ptc-element-spacing-01);outline:none;text-decoration:none}.simple::after{content:\"\";position:absolute;width:100%;left:0px;bottom:2px;transition:opacity var(--ptc-transition-fast) var(--ptc-standard-ease);border-bottom:2px solid var(--color-primary-green);opacity:0}.simple:hover.simple::after{opacity:1}.arrow{margin-right:var(--ptc-element-spacing-01)}.arrow::after{position:absolute;display:block;content:\"\";width:var(--ptc-element-spacing-06);border-bottom:2px solid var(--color-primary-green);bottom:1px;transition:width var(--ptc-transition-fast) var(--ptc-standard-ease)}.arrow:hover.arrow::after{width:100%}.uppercase{text-transform:uppercase}.small{font-size:var(--ptc-font-size-small)}.medium{font-size:var(--ptc-font-size-medium)}.large{font-size:var(--ptc-font-size-large)}icon-asset{position:absolute;right:-25px;transition:transform var(--ptc-transition-fast) var(--ptc-standard-ease)}icon-asset svg{fill:var(--color-primary-green) !important}.ptc-link:hover.arrow icon-asset{transform:translateX(var(--ptc-element-spacing-04))}.nav-title{font-size:17px;line-height:var(--ptc-line-height-dense);letter-spacing:var(--ptc-element-spacing-01);color:#cac8c8;text-shadow:1px 1px 2px rgba(0, 0, 0, 0.8);font-weight:var(--ptc-font-weight-semibold)}.primary-nav-link{display:inline-block;position:relative;font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-normal);font-weight:var(--ptc-font-weight-bold);color:var(--color-white);transition:color var(--ptc-transition-slow) ease;padding:var(--ptc-element-spacing-04) 50px;background-color:
|
|
3
|
+
const ptcLinkCss = ".disabled{pointer-events:none;cursor:default;text-decoration:none}.ptc-link{display:inline-block;color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal);margin-bottom:var(--ptc-element-spacing-01);outline:none;text-decoration:none}.simple::after{content:\"\";position:absolute;width:100%;left:0px;bottom:2px;transition:opacity var(--ptc-transition-fast) var(--ptc-standard-ease);border-bottom:2px solid var(--color-primary-green);opacity:0}.simple:hover.simple::after{opacity:1}.arrow{margin-right:var(--ptc-element-spacing-01)}.arrow::after{position:absolute;display:block;content:\"\";width:var(--ptc-element-spacing-06);border-bottom:2px solid var(--color-primary-green);bottom:1px;transition:width var(--ptc-transition-fast) var(--ptc-standard-ease)}.arrow:hover.arrow::after{width:100%}.uppercase{text-transform:uppercase}.small{font-size:var(--ptc-font-size-small)}.medium{font-size:var(--ptc-font-size-medium)}.large{font-size:var(--ptc-font-size-large)}icon-asset{position:absolute;right:-25px;transition:transform var(--ptc-transition-fast) var(--ptc-standard-ease)}icon-asset svg{fill:var(--color-primary-green) !important}.ptc-link:hover.arrow icon-asset{transform:translateX(var(--ptc-element-spacing-04))}.nav-title{font-size:17px;line-height:var(--ptc-line-height-dense);letter-spacing:var(--ptc-element-spacing-01);color:#cac8c8;text-shadow:1px 1px 2px rgba(0, 0, 0, 0.8);font-weight:var(--ptc-font-weight-semibold)}.primary-nav-link{display:inline-block;position:relative;font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-normal);font-weight:var(--ptc-font-weight-bold);color:var(--color-white);transition:color var(--ptc-transition-slow) ease;padding:var(--ptc-element-spacing-04) 50px;background-color:transparent;text-decoration:none;outline:none}.primary-nav-link:hover{color:var(--color-secondary-turtlegreen);text-decoration:none;outline:none;background-color:transparent}.nav-title-link{font-family:var(--ptc-font-secondary-latin);font-size:var(--ptc-font-size-medium);font-weight:var(--ptc-font-weight-bold);line-height:1.56;color:var(--color-white);text-decoration:none;outline:none;background-color:transparent;transition:color var(--ptc-transition-medium) var(--ptc-decelerated-ease);border-bottom:1.5px solid transparent}.nav-title-link:hover{color:var(--color-white);border-bottom:1.5px solid var(--color-secondary-turtlegreen)}.secondary-nav-link{display:inline-block;position:relative;font-size:var(--ptc-font-size-x-small);line-height:20px;font-weight:var(--ptc-font-weight-light);color:var(--color-white);transition:color var(--ptc-transition-slow) ease;padding:10px 15px;background-color:transparent;text-decoration:none;outline:none}.secondary-nav-link:hover{color:var(--color-secondary-turtlegreen);text-decoration:none;outline:none;background-color:transparent}.footer-nav-link{color:var(--color-white);transition:border var(--ptc-transition-medium) var(--ptc-standard-ease), color var(--ptc-transition-medium) var(--ptc-standard-ease);border-bottom:1px solid transparent;outline:none;text-decoration:none;font-weight:var(--ptc-font-weight-semibold);line-height:1.73;letter-spacing:1.13px;text-align:left;font-size:15px}.footer-nav-link:hover{outline:none;text-decoration:none;border-bottom:0.1rem solid var(--color-secondary-turtlegreen);color:var(--color-secondary-turtlegreen)}.copyright-link{color:var(--color-white);font-size:13px;font-weight:var(--ptc-font-weight-normal);line-height:2;display:inline-block}";
|
|
4
4
|
|
|
5
5
|
const PtcLink = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-5b1c792c.js';
|
|
2
|
+
|
|
3
|
+
const ptcNcardCss = ":host{display:block}";
|
|
4
|
+
|
|
5
|
+
const PtcNcard = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* Card Link URL (Optional)
|
|
10
|
+
*/
|
|
11
|
+
this.cardHref = undefined;
|
|
12
|
+
/**
|
|
13
|
+
* (optional) Link card target
|
|
14
|
+
* */
|
|
15
|
+
this.target = '_self';
|
|
16
|
+
/**
|
|
17
|
+
* (optional) Link card rel
|
|
18
|
+
* */
|
|
19
|
+
this.rel = undefined;
|
|
20
|
+
/**
|
|
21
|
+
* If this card has Image
|
|
22
|
+
*/
|
|
23
|
+
this.hasImage = false;
|
|
24
|
+
/**
|
|
25
|
+
* If this card has Video
|
|
26
|
+
*/
|
|
27
|
+
this.hasVideo = false;
|
|
28
|
+
/**
|
|
29
|
+
* If this card has Lottie Image
|
|
30
|
+
*/
|
|
31
|
+
this.hasLottie = false;
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
const Tag = !!this.cardHref ? 'a' : 'div';
|
|
35
|
+
const classMap = this.getCssClassMap();
|
|
36
|
+
return (h(Host, null, h("div", { class: "card-border", part: "border-wrapper" }, h(Tag, Object.assign({ class: classMap }, (!!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 ? (h("div", { class: "card-media", part: "media-wrapper" }, this.hasLottie ? (h("slot", { name: "slot-lottie" })) : null)) : null, h("div", { class: "card-body", part: "body-wrapper" }, h("slot", { name: "slot-body" }))))));
|
|
37
|
+
}
|
|
38
|
+
getCssClassMap() {
|
|
39
|
+
return {
|
|
40
|
+
['is-grid']: true,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
PtcNcard.style = ptcNcardCss;
|
|
45
|
+
|
|
46
|
+
export { PtcNcard as ptc_ncard };
|
package/dist/esm/ptcw-design.js
CHANGED
|
@@ -13,5 +13,5 @@ const patchBrowser = () => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["ptc-card",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"headingArrow":[4,"heading-arrow"],"target":[1],"rel":[1],"heading":[1],"headingPosition":[1,"heading-position"],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["ptc-link",[[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",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["list-item",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-button",[[4,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"]}]]],["ptc-date",[[0,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1]}]]],["ptc-footer",[[1,"ptc-footer"]]],["ptc-image",[[1,"ptc-image",{"src":[1],"alt":[1],"oldSrc":[32]}]]],["ptc-img",[[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",[[4,"ptc-list",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["ptc-nav",[[1,"ptc-nav"]]],["ptc-nav-item",[[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",[[4,"ptc-overlay"]]],["ptc-para",[[4,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"]}]]],["ptc-picture",[[4,"ptc-picture",{"lazy":[1]}]]],["ptc-spacer",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span",[[4,"ptc-span",{"spanStyle":[1,"span-style"]}]]],["ptc-title",[[1,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["lottie-player",[[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]}]]],["icon-asset",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
|
|
16
|
+
return bootstrapLazy([["ptc-card",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"headingArrow":[4,"heading-arrow"],"target":[1],"rel":[1],"heading":[1],"headingPosition":[1,"heading-position"],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["ptc-link",[[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",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["list-item",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-button",[[4,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"]}]]],["ptc-date",[[0,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1]}]]],["ptc-footer",[[1,"ptc-footer"]]],["ptc-image",[[1,"ptc-image",{"src":[1],"alt":[1],"oldSrc":[32]}]]],["ptc-img",[[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",[[4,"ptc-list",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["ptc-nav",[[1,"ptc-nav"]]],["ptc-nav-item",[[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-ncard",[[1,"ptc-ncard",{"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["ptc-overlay",[[4,"ptc-overlay"]]],["ptc-para",[[4,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"]}]]],["ptc-picture",[[4,"ptc-picture",{"lazy":[1]}]]],["ptc-spacer",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span",[[4,"ptc-span",{"spanStyle":[1,"span-style"]}]]],["ptc-title",[[1,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["lottie-player",[[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]}]]],["icon-asset",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
|
|
17
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o,H as e}from"./p-4f366fc3.js";const r=class{constructor(o){t(this,o),this.disabled=!1,this.external=!1,this.target="_self",this.theme="simple",this.uppercase=!1,this.fontSize="medium"}render(){const t=this.getCssClassMap();return o(e,null,o("a",{class:t,href:this.href,target:this.external?"_blank":this.target,title:this.linkTitle},"arrow"==this.theme?o("icon-asset",{type:"solid",size:"small",name:"arrow-right"}):"",o("slot",null)))}getCssClassMap(){return{"ptc-link":!0,[this.theme]:!0,uppercase:this.uppercase,disabled:this.disabled,[this.fontSize]:!0}}};r.style='.disabled{pointer-events:none;cursor:default;text-decoration:none}.ptc-link{display:inline-block;color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal);margin-bottom:var(--ptc-element-spacing-01);outline:none;text-decoration:none}.simple::after{content:"";position:absolute;width:100%;left:0px;bottom:2px;transition:opacity var(--ptc-transition-fast) var(--ptc-standard-ease);border-bottom:2px solid var(--color-primary-green);opacity:0}.simple:hover.simple::after{opacity:1}.arrow{margin-right:var(--ptc-element-spacing-01)}.arrow::after{position:absolute;display:block;content:"";width:var(--ptc-element-spacing-06);border-bottom:2px solid var(--color-primary-green);bottom:1px;transition:width var(--ptc-transition-fast) var(--ptc-standard-ease)}.arrow:hover.arrow::after{width:100%}.uppercase{text-transform:uppercase}.small{font-size:var(--ptc-font-size-small)}.medium{font-size:var(--ptc-font-size-medium)}.large{font-size:var(--ptc-font-size-large)}icon-asset{position:absolute;right:-25px;transition:transform var(--ptc-transition-fast) var(--ptc-standard-ease)}icon-asset svg{fill:var(--color-primary-green) !important}.ptc-link:hover.arrow icon-asset{transform:translateX(var(--ptc-element-spacing-04))}.nav-title{font-size:17px;line-height:var(--ptc-line-height-dense);letter-spacing:var(--ptc-element-spacing-01);color:#cac8c8;text-shadow:1px 1px 2px rgba(0, 0, 0, 0.8);font-weight:var(--ptc-font-weight-semibold)}.primary-nav-link{display:inline-block;position:relative;font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-normal);font-weight:var(--ptc-font-weight-bold);color:var(--color-white);transition:color var(--ptc-transition-slow) ease;padding:var(--ptc-element-spacing-04) 50px;background-color:
|
|
1
|
+
import{r as t,h as o,H as e}from"./p-4f366fc3.js";const r=class{constructor(o){t(this,o),this.disabled=!1,this.external=!1,this.target="_self",this.theme="simple",this.uppercase=!1,this.fontSize="medium"}render(){const t=this.getCssClassMap();return o(e,null,o("a",{class:t,href:this.href,target:this.external?"_blank":this.target,title:this.linkTitle},"arrow"==this.theme?o("icon-asset",{type:"solid",size:"small",name:"arrow-right"}):"",o("slot",null)))}getCssClassMap(){return{"ptc-link":!0,[this.theme]:!0,uppercase:this.uppercase,disabled:this.disabled,[this.fontSize]:!0}}};r.style='.disabled{pointer-events:none;cursor:default;text-decoration:none}.ptc-link{display:inline-block;color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal);margin-bottom:var(--ptc-element-spacing-01);outline:none;text-decoration:none}.simple::after{content:"";position:absolute;width:100%;left:0px;bottom:2px;transition:opacity var(--ptc-transition-fast) var(--ptc-standard-ease);border-bottom:2px solid var(--color-primary-green);opacity:0}.simple:hover.simple::after{opacity:1}.arrow{margin-right:var(--ptc-element-spacing-01)}.arrow::after{position:absolute;display:block;content:"";width:var(--ptc-element-spacing-06);border-bottom:2px solid var(--color-primary-green);bottom:1px;transition:width var(--ptc-transition-fast) var(--ptc-standard-ease)}.arrow:hover.arrow::after{width:100%}.uppercase{text-transform:uppercase}.small{font-size:var(--ptc-font-size-small)}.medium{font-size:var(--ptc-font-size-medium)}.large{font-size:var(--ptc-font-size-large)}icon-asset{position:absolute;right:-25px;transition:transform var(--ptc-transition-fast) var(--ptc-standard-ease)}icon-asset svg{fill:var(--color-primary-green) !important}.ptc-link:hover.arrow icon-asset{transform:translateX(var(--ptc-element-spacing-04))}.nav-title{font-size:17px;line-height:var(--ptc-line-height-dense);letter-spacing:var(--ptc-element-spacing-01);color:#cac8c8;text-shadow:1px 1px 2px rgba(0, 0, 0, 0.8);font-weight:var(--ptc-font-weight-semibold)}.primary-nav-link{display:inline-block;position:relative;font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-normal);font-weight:var(--ptc-font-weight-bold);color:var(--color-white);transition:color var(--ptc-transition-slow) ease;padding:var(--ptc-element-spacing-04) 50px;background-color:transparent;text-decoration:none;outline:none}.primary-nav-link:hover{color:var(--color-secondary-turtlegreen);text-decoration:none;outline:none;background-color:transparent}.nav-title-link{font-family:var(--ptc-font-secondary-latin);font-size:var(--ptc-font-size-medium);font-weight:var(--ptc-font-weight-bold);line-height:1.56;color:var(--color-white);text-decoration:none;outline:none;background-color:transparent;transition:color var(--ptc-transition-medium) var(--ptc-decelerated-ease);border-bottom:1.5px solid transparent}.nav-title-link:hover{color:var(--color-white);border-bottom:1.5px solid var(--color-secondary-turtlegreen)}.secondary-nav-link{display:inline-block;position:relative;font-size:var(--ptc-font-size-x-small);line-height:20px;font-weight:var(--ptc-font-weight-light);color:var(--color-white);transition:color var(--ptc-transition-slow) ease;padding:10px 15px;background-color:transparent;text-decoration:none;outline:none}.secondary-nav-link:hover{color:var(--color-secondary-turtlegreen);text-decoration:none;outline:none;background-color:transparent}.footer-nav-link{color:var(--color-white);transition:border var(--ptc-transition-medium) var(--ptc-standard-ease), color var(--ptc-transition-medium) var(--ptc-standard-ease);border-bottom:1px solid transparent;outline:none;text-decoration:none;font-weight:var(--ptc-font-weight-semibold);line-height:1.73;letter-spacing:1.13px;text-align:left;font-size:15px}.footer-nav-link:hover{outline:none;text-decoration:none;border-bottom:0.1rem solid var(--color-secondary-turtlegreen);color:var(--color-secondary-turtlegreen)}.copyright-link{color:var(--color-white);font-size:13px;font-weight:var(--ptc-font-weight-normal);line-height:2;display:inline-block}';export{r as ptc_link}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as t,H as i}from"./p-4f366fc3.js";const r=class{constructor(t){s(this,t),this.cardHref=void 0,this.target="_self",this.rel=void 0,this.hasImage=!1,this.hasVideo=!1,this.hasLottie=!1}render(){const s=this.cardHref?"a":"div",r=this.getCssClassMap();return t(i,null,t("div",{class:"card-border",part:"border-wrapper"},t(s,Object.assign({class:r},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?t("div",{class:"card-media",part:"media-wrapper"},this.hasLottie?t("slot",{name:"slot-lottie"}):null):null,t("div",{class:"card-body",part:"body-wrapper"},t("slot",{name:"slot-body"})))))}getCssClassMap(){return{"is-grid":!0}}};r.style=":host{display:block}";export{r as ptc_ncard}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-4f366fc3.js";(()=>{const t=import.meta.url,
|
|
1
|
+
import{p as e,b as t}from"./p-4f366fc3.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((e=>t([["p-df01ac95",[[1,"ptc-card",{cardType:[1,"card-type"],cardHref:[1,"card-href"],headingArrow:[4,"heading-arrow"],target:[1],rel:[1],heading:[1],headingPosition:[1,"heading-position"],hasImage:[4,"has-image"],hasVideo:[4,"has-video"],hasLottie:[4,"has-lottie"]}]]],["p-76dfa56f",[[1,"ptc-link",{disabled:[516],external:[516],href:[1],target:[1],linkTitle:[1,"link-title"],theme:[1],uppercase:[4],fontSize:[1,"font-size"]}]]],["p-07624831",[[1,"ptc-lottie",{jsonSrc:[1025,"json-src"],speed:[1026]}]]],["p-31f4bd0c",[[4,"list-item",{listType:[1,"list-type"],linkHref:[1,"link-href"]}]]],["p-ac0ad25e",[[1,"my-component",{first:[1],middle:[1],last:[1]}]]],["p-85131a2a",[[4,"ptc-button",{disabled:[516],type:[1],color:[1],iconAnimation:[1,"icon-animation"],iconPosition:[1,"icon-position"]}]]],["p-8b6c805c",[[0,"ptc-date",{year:[2],month:[2],day:[2],country:[1]}]]],["p-0a44a2f7",[[1,"ptc-footer"]]],["p-c169281f",[[1,"ptc-image",{src:[1],alt:[1],oldSrc:[32]}]]],["p-1b4fd3da",[[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"]]]]],["p-15a428d4",[[4,"ptc-list",{listType:[1,"list-type"],linkHref:[1,"link-href"]}]]],["p-3af43980",[[1,"ptc-nav"]]],["p-fe6a3ba5",[[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"]]]]],["p-a802ffd7",[[1,"ptc-ncard",{cardHref:[1,"card-href"],target:[1],rel:[1],hasImage:[4,"has-image"],hasVideo:[4,"has-video"],hasLottie:[4,"has-lottie"]}]]],["p-662ae9b6",[[4,"ptc-overlay"]]],["p-b0b2e82c",[[4,"ptc-para",{fontSize:[1,"font-size"],fontWeight:[1,"font-weight"],paraStyle:[1,"para-style"]}]]],["p-01dc360c",[[4,"ptc-picture",{lazy:[1]}]]],["p-2d357f92",[[1,"ptc-spacer",{breakpoint:[1],size:[1],direction:[1]}]]],["p-9f96864d",[[4,"ptc-span",{spanStyle:[1,"span-style"]}]]],["p-77f87fa3",[[1,"ptc-title",{type:[1],textAlign:[1,"text-align"],upperline:[1]}]]],["p-ce8b8a72",[[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]}]]],["p-1a26bade",[[0,"icon-asset",{name:[1],size:[1],type:[1],spin:[1],pulse:[1],color:[1]}]]]],e)));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare class PtcNcard {
|
|
2
|
+
/**
|
|
3
|
+
* Card Link URL (Optional)
|
|
4
|
+
*/
|
|
5
|
+
cardHref?: string;
|
|
6
|
+
/**
|
|
7
|
+
* (optional) Link card target
|
|
8
|
+
* */
|
|
9
|
+
target?: string;
|
|
10
|
+
/**
|
|
11
|
+
* (optional) Link card rel
|
|
12
|
+
* */
|
|
13
|
+
rel?: string;
|
|
14
|
+
/**
|
|
15
|
+
* If this card has Image
|
|
16
|
+
*/
|
|
17
|
+
hasImage: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* If this card has Video
|
|
20
|
+
*/
|
|
21
|
+
hasVideo: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* If this card has Lottie Image
|
|
24
|
+
*/
|
|
25
|
+
hasLottie: boolean;
|
|
26
|
+
render(): any;
|
|
27
|
+
private getCssClassMap;
|
|
28
|
+
}
|
|
@@ -232,6 +232,32 @@ export namespace Components {
|
|
|
232
232
|
*/
|
|
233
233
|
"url": string;
|
|
234
234
|
}
|
|
235
|
+
interface PtcNcard {
|
|
236
|
+
/**
|
|
237
|
+
* Card Link URL (Optional)
|
|
238
|
+
*/
|
|
239
|
+
"cardHref"?: string;
|
|
240
|
+
/**
|
|
241
|
+
* If this card has Image
|
|
242
|
+
*/
|
|
243
|
+
"hasImage": boolean;
|
|
244
|
+
/**
|
|
245
|
+
* If this card has Lottie Image
|
|
246
|
+
*/
|
|
247
|
+
"hasLottie": boolean;
|
|
248
|
+
/**
|
|
249
|
+
* If this card has Video
|
|
250
|
+
*/
|
|
251
|
+
"hasVideo": boolean;
|
|
252
|
+
/**
|
|
253
|
+
* (optional) Link card rel
|
|
254
|
+
*/
|
|
255
|
+
"rel"?: string;
|
|
256
|
+
/**
|
|
257
|
+
* (optional) Link card target
|
|
258
|
+
*/
|
|
259
|
+
"target"?: string;
|
|
260
|
+
}
|
|
235
261
|
interface PtcOverlay {
|
|
236
262
|
}
|
|
237
263
|
interface PtcPara {
|
|
@@ -368,6 +394,12 @@ declare global {
|
|
|
368
394
|
prototype: HTMLPtcNavItemElement;
|
|
369
395
|
new (): HTMLPtcNavItemElement;
|
|
370
396
|
};
|
|
397
|
+
interface HTMLPtcNcardElement extends Components.PtcNcard, HTMLStencilElement {
|
|
398
|
+
}
|
|
399
|
+
var HTMLPtcNcardElement: {
|
|
400
|
+
prototype: HTMLPtcNcardElement;
|
|
401
|
+
new (): HTMLPtcNcardElement;
|
|
402
|
+
};
|
|
371
403
|
interface HTMLPtcOverlayElement extends Components.PtcOverlay, HTMLStencilElement {
|
|
372
404
|
}
|
|
373
405
|
var HTMLPtcOverlayElement: {
|
|
@@ -419,6 +451,7 @@ declare global {
|
|
|
419
451
|
"ptc-lottie": HTMLPtcLottieElement;
|
|
420
452
|
"ptc-nav": HTMLPtcNavElement;
|
|
421
453
|
"ptc-nav-item": HTMLPtcNavItemElement;
|
|
454
|
+
"ptc-ncard": HTMLPtcNcardElement;
|
|
422
455
|
"ptc-overlay": HTMLPtcOverlayElement;
|
|
423
456
|
"ptc-para": HTMLPtcParaElement;
|
|
424
457
|
"ptc-picture": HTMLPtcPictureElement;
|
|
@@ -662,6 +695,32 @@ declare namespace LocalJSX {
|
|
|
662
695
|
*/
|
|
663
696
|
"url"?: string;
|
|
664
697
|
}
|
|
698
|
+
interface PtcNcard {
|
|
699
|
+
/**
|
|
700
|
+
* Card Link URL (Optional)
|
|
701
|
+
*/
|
|
702
|
+
"cardHref"?: string;
|
|
703
|
+
/**
|
|
704
|
+
* If this card has Image
|
|
705
|
+
*/
|
|
706
|
+
"hasImage"?: boolean;
|
|
707
|
+
/**
|
|
708
|
+
* If this card has Lottie Image
|
|
709
|
+
*/
|
|
710
|
+
"hasLottie"?: boolean;
|
|
711
|
+
/**
|
|
712
|
+
* If this card has Video
|
|
713
|
+
*/
|
|
714
|
+
"hasVideo"?: boolean;
|
|
715
|
+
/**
|
|
716
|
+
* (optional) Link card rel
|
|
717
|
+
*/
|
|
718
|
+
"rel"?: string;
|
|
719
|
+
/**
|
|
720
|
+
* (optional) Link card target
|
|
721
|
+
*/
|
|
722
|
+
"target"?: string;
|
|
723
|
+
}
|
|
665
724
|
interface PtcOverlay {
|
|
666
725
|
}
|
|
667
726
|
interface PtcPara {
|
|
@@ -727,6 +786,7 @@ declare namespace LocalJSX {
|
|
|
727
786
|
"ptc-lottie": PtcLottie;
|
|
728
787
|
"ptc-nav": PtcNav;
|
|
729
788
|
"ptc-nav-item": PtcNavItem;
|
|
789
|
+
"ptc-ncard": PtcNcard;
|
|
730
790
|
"ptc-overlay": PtcOverlay;
|
|
731
791
|
"ptc-para": PtcPara;
|
|
732
792
|
"ptc-picture": PtcPicture;
|
|
@@ -753,6 +813,7 @@ declare module "@stencil/core" {
|
|
|
753
813
|
"ptc-lottie": LocalJSX.PtcLottie & JSXBase.HTMLAttributes<HTMLPtcLottieElement>;
|
|
754
814
|
"ptc-nav": LocalJSX.PtcNav & JSXBase.HTMLAttributes<HTMLPtcNavElement>;
|
|
755
815
|
"ptc-nav-item": LocalJSX.PtcNavItem & JSXBase.HTMLAttributes<HTMLPtcNavItemElement>;
|
|
816
|
+
"ptc-ncard": LocalJSX.PtcNcard & JSXBase.HTMLAttributes<HTMLPtcNcardElement>;
|
|
756
817
|
"ptc-overlay": LocalJSX.PtcOverlay & JSXBase.HTMLAttributes<HTMLPtcOverlayElement>;
|
|
757
818
|
"ptc-para": LocalJSX.PtcPara & JSXBase.HTMLAttributes<HTMLPtcParaElement>;
|
|
758
819
|
"ptc-picture": LocalJSX.PtcPicture & JSXBase.HTMLAttributes<HTMLPtcPictureElement>;
|