@jumpgroup/jump-design-system 0.3.1 → 0.3.4
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/jump-card-ecommerce-option.cjs.entry.js +34 -0
- package/dist/cjs/jump-card-ecommerce-option.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-card-ecommerce.cjs.entry.js +46 -28
- package/dist/cjs/jump-card-ecommerce.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-design-system.cjs.js +1 -1
- package/dist/cjs/jump-filter.cjs.entry.js +2 -2
- package/dist/cjs/jump-filtergroup.cjs.entry.js +2 -2
- package/dist/cjs/jump-pagination-table.cjs.entry.js +3 -3
- package/dist/cjs/jump-pagination.cjs.entry.js +3 -3
- package/dist/cjs/jump-quantity.cjs.entry.js +7 -4
- package/dist/cjs/jump-quantity.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-tab-item.cjs.entry.js +2 -2
- package/dist/cjs/jump-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/jump-tab.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/jump-button/jump-button.stories.js +1 -1
- package/dist/collection/components/jump-button/jump-button.stories.js.map +1 -1
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.css +67 -5
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.js +131 -46
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.js.map +1 -1
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.stories.js +119 -75
- package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.stories.js.map +1 -1
- package/dist/collection/components/jump-card-ecommerce-option/jump-card-ecommerce-option.css +3 -0
- package/dist/collection/components/jump-card-ecommerce-option/jump-card-ecommerce-option.js +122 -0
- package/dist/collection/components/jump-card-ecommerce-option/jump-card-ecommerce-option.js.map +1 -0
- package/dist/collection/components/jump-card-ecommerce-option/jump-card-ecommerce-option.stories.js +11 -0
- package/dist/collection/components/jump-card-ecommerce-option/jump-card-ecommerce-option.stories.js.map +1 -0
- package/dist/collection/components/jump-filter/jump-filter.js +2 -2
- package/dist/collection/components/jump-filtergroup/jump-filtergroup.js +2 -2
- package/dist/collection/components/jump-pagination/jump-pagination.js +3 -3
- package/dist/collection/components/jump-pagination-table/jump-pagination-table.js +3 -3
- package/dist/collection/components/jump-quantity/jump-quantity.js +43 -11
- package/dist/collection/components/jump-quantity/jump-quantity.js.map +1 -1
- package/dist/collection/components/jump-tab/jump-tab.js +1 -1
- package/dist/collection/components/jump-tab-item/jump-tab-item.js +2 -2
- package/dist/collection/components/jump-tab-panel/jump-tab-panel.js +1 -1
- package/dist/components/jump-card-ecommerce-option.d.ts +11 -0
- package/dist/components/jump-card-ecommerce-option.js +53 -0
- package/dist/components/jump-card-ecommerce-option.js.map +1 -0
- package/dist/components/jump-card-ecommerce.js +54 -32
- package/dist/components/jump-card-ecommerce.js.map +1 -1
- package/dist/components/jump-filter.js +2 -2
- package/dist/components/jump-filtergroup.js +2 -2
- package/dist/components/jump-pagination-table.js +3 -3
- package/dist/components/jump-pagination.js +3 -3
- package/dist/components/jump-quantity.js +10 -6
- package/dist/components/jump-quantity.js.map +1 -1
- package/dist/components/jump-tab-item.js +2 -2
- package/dist/components/jump-tab-panel.js +1 -1
- package/dist/components/jump-tab.js +1 -1
- package/dist/esm/jump-card-ecommerce-option.entry.js +30 -0
- package/dist/esm/jump-card-ecommerce-option.entry.js.map +1 -0
- package/dist/esm/jump-card-ecommerce.entry.js +46 -28
- package/dist/esm/jump-card-ecommerce.entry.js.map +1 -1
- package/dist/esm/jump-design-system.js +1 -1
- package/dist/esm/jump-filter.entry.js +2 -2
- package/dist/esm/jump-filtergroup.entry.js +2 -2
- package/dist/esm/jump-pagination-table.entry.js +3 -3
- package/dist/esm/jump-pagination.entry.js +3 -3
- package/dist/esm/jump-quantity.entry.js +7 -4
- package/dist/esm/jump-quantity.entry.js.map +1 -1
- package/dist/esm/jump-tab-item.entry.js +2 -2
- package/dist/esm/jump-tab-panel.entry.js +1 -1
- package/dist/esm/jump-tab.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/jump-design-system/jump-design-system.esm.js +1 -1
- package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
- package/dist/jump-design-system/p-4e4cbdaf.entry.js +2 -0
- package/dist/jump-design-system/p-4e4cbdaf.entry.js.map +1 -0
- package/dist/jump-design-system/{p-5d713084.entry.js → p-529a09f6.entry.js} +2 -2
- package/dist/jump-design-system/{p-377a769b.entry.js → p-594b15ee.entry.js} +2 -2
- package/dist/jump-design-system/p-5da7839d.entry.js +2 -0
- package/dist/jump-design-system/{p-a6fc23f7.entry.js → p-65ac4e72.entry.js} +2 -2
- package/dist/jump-design-system/{p-493c7f4a.entry.js → p-8efeaa79.entry.js} +2 -2
- package/dist/jump-design-system/{p-2cb7d817.entry.js → p-95460fa4.entry.js} +2 -2
- package/dist/jump-design-system/p-b92e6459.entry.js +2 -0
- package/dist/jump-design-system/p-b92e6459.entry.js.map +1 -0
- package/dist/jump-design-system/p-bc64407a.entry.js +2 -0
- package/dist/jump-design-system/p-bc64407a.entry.js.map +1 -0
- package/dist/jump-design-system/{p-34a46a10.entry.js → p-d2ee7b9b.entry.js} +2 -2
- package/dist/jump-design-system-elements.json +50 -9
- package/dist/types/components/jump-card-ecommerce/jump-card-ecommerce.d.ts +21 -7
- package/dist/types/components/jump-card-ecommerce/jump-card-ecommerce.stories.d.ts +26 -1
- package/dist/types/components/jump-card-ecommerce-option/jump-card-ecommerce-option.d.ts +9 -0
- package/dist/types/components/jump-card-ecommerce-option/jump-card-ecommerce-option.stories.d.ts +6 -0
- package/dist/types/components/jump-quantity/jump-quantity.d.ts +3 -2
- package/dist/types/components.d.ts +79 -21
- package/package.json +1 -1
- package/dist/jump-design-system/p-5a6fbc53.entry.js +0 -2
- package/dist/jump-design-system/p-7696c03d.entry.js +0 -2
- package/dist/jump-design-system/p-7696c03d.entry.js.map +0 -1
- package/dist/jump-design-system/p-fafe6478.entry.js +0 -2
- package/dist/jump-design-system/p-fafe6478.entry.js.map +0 -1
- /package/dist/jump-design-system/{p-5d713084.entry.js.map → p-529a09f6.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-377a769b.entry.js.map → p-594b15ee.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-5a6fbc53.entry.js.map → p-5da7839d.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-a6fc23f7.entry.js.map → p-65ac4e72.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-493c7f4a.entry.js.map → p-8efeaa79.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-2cb7d817.entry.js.map → p-95460fa4.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-34a46a10.entry.js.map → p-d2ee7b9b.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as o,h as e,H as n}from"./p-4d6cc90d.js";const
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as o,h as e,H as n}from"./p-4d6cc90d.js";const a=":host{display:block;--jump-tabitem-active-color:var(--secondary-standard);--jump-tabitem-color:var(--neutral-grey-secondary);--jump-tabitem-hover-color:var(--neutral-grey-disabled, #CBCBCB);--jump-tabitem-boxed-bg-color:var(--secondary-soft, #EDF2FA);--jump-tabitem-rounded-bg-color:white;font-family:var(--ff-primary)}:host .Content{display:flex;}:host .Content label{font-size:16px}:host .Content.left{flex-direction:row;gap:6px;align-items:center}:host .Content.top{flex-direction:column;gap:2px;align-items:center}:host .Content.inline{color:var(--jump-tabitem-color);padding:12px 24px}:host .Content.inline.active{color:var(--jump-tabitem-active-color)}:host .Content.inline.active span{font-weight:bold}:host .Content.boxed{color:var(--jump-tabitem-color);padding:15px 39px;background-color:transparent;border:1px solid var(--jump-tabitem-boxed-bg-color)}:host .Content.boxed:hover:not(.disabled),:host .Content.boxed:hover:not(.active){background-color:transparent}:host .Content.boxed:hover:not(.disabled) span,:host .Content.boxed:hover:not(.active) span{font-weight:bold}:host .Content.boxed.active{color:var(--jump-tabitem-active-color);background-color:var(--jump-tabitem-boxed-bg-color);border:1px solid var(--jump-tabitem-boxed-bg-color)}:host .Content.boxed.active span{font-weight:bold}:host .Content.rounded{padding:12px 32px;color:var(--jump-tabitem-color)}:host .Content.rounded:hover:not(.disabled){cursor:pointer}:host .Content.rounded:hover:not(.disabled) span{font-weight:bold}:host .Content.rounded.active{color:var(--jump-tabitem-active-color);background-color:var(--jump-tabitem-rounded-bg-color);border:1px solid var(--jump-tabitem-active-color);border-radius:50px}:host .Content.sheet{padding:12px 32px;color:var(--neutral-grey-secondary)}:host .Content.sheet:hover:not(.disabled){cursor:pointer}:host .Content.sheet:hover:not(.disabled) span{font-weight:bold}:host .Content.sheet.active{color:var(--jump-tabitem-active-color);background-color:var(--jump-tabitem-rounded-bg-color);border-radius:8px 8px 0px 0px}:host .Content.disabled{cursor:not-allowed;opacity:0.5;pointer-events:none}:host(.inline){border-bottom:1px solid var(--jump-tabitem-hover-color)}:host(.inline):hover:not(.disabled):not(.active){border-bottom:3px solid var(--jump-tabitem-hover-color);cursor:pointer}:host(.inline.active){border-bottom:3px solid var(--jump-tabitem-active-color)}";const r=a;const i=class{constructor(e){t(this,e);this.changeActiveTab=o(this,"jump-change-active-tab",7);this.identifier=undefined;this.iconName=undefined;this.iconPosition="left";this.label="";this.active=false;this.disabled=false;this.variant="inline"}changeTab(t){this.changeActiveTab.emit({id:t})}componentDidLoad(){console.log("Component has been rendered");let t=this.tabEl.parentElement.getAttribute("variant");this.variant=t}render(){return e(n,{key:"abb94cf6de77cb1e4b4364d3b391c2174949f60f",ref:t=>{this.tabEl=t},class:"JumpTabItem "+(this.active?"active":"")+" "+this.variant},e("div",{key:"240bb79a1e9159b2568b6d98c502841bb3445bf5",class:"Content "+(this.iconName?this.iconPosition:"")+" "+this.variant+" "+(this.active?"active":"")+" "+(this.disabled?"disabled":""),onClick:()=>this.changeTab(this.identifier),id:this.identifier},this.iconName&&(this.variant=="inline"||this.variant=="boxed")&&e("jump-icon",{key:"2aa6dd7c0028f31f2a90a41e08517d1e2d475ab3",library:"fa",category:"regular",name:this.iconName,size:"small"}),e("span",{key:"7104baeadfefd66bfa057e66955067de8988a89e",class:"label"},this.label)))}};i.style=r;export{i as jump_tab_item};
|
|
2
|
+
//# sourceMappingURL=p-8efeaa79.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as a,c as e,h as i,H as t}from"./p-4d6cc90d.js";const r=":host{display:block;--jump-button-color:yellow}.JumpPagination{--jump-pagination-label:var(--neutral-grey-secondary);--jump-pagination-arrows-color:var(--neutral-grey-secondary);--jump-pagination-arrows-disabled:var(--neutral-grey-disabled);font-family:var(--ff-primary)}.JumpPagination__Wrapper{display:flex;justify-content:space-between}.JumpPagination__Wrapper .indicators{font-size:var(--fs-400);font-weight:normal;display:flex;justify-content:space-between;gap:20px;color:var(--jump-pagination-label)}.JumpPagination__Wrapper .indicators .arrow{color:var(--jump-pagination-arrows-color);display:flex;align-items:center;gap:10px}.JumpPagination__Wrapper .indicators .arrow button{background-color:transparent;border:none;cursor:pointer;padding:0px;display:flex;align-items:center}.JumpPagination__Wrapper .indicators .arrow button:disabled{cursor:not-allowed;color:var(--jump-pagination-arrows-disabled)}.JumpPagination__Wrapper .indicators .elements{color:var(--jump-pagination-label);display:flex;align-items:center;gap:5px}";const n=r;const s=class{constructor(i){a(this,i);this.changePage=e(this,"jump-change-page",7);this.current=1;this.pagLabel="di";this.last=10;this.showFirstAndLast=false}watchcurrent(a,e){let i={current:a,previousPage:e,first:1,last:this.last,direction:a>e?"next":"prev"};this.changePage.emit(i)}componentWillLoad(){this.current=1}render(){return i(t,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as a,c as e,h as i,H as t}from"./p-4d6cc90d.js";const r=":host{display:block;--jump-button-color:yellow}.JumpPagination{--jump-pagination-label:var(--neutral-grey-secondary);--jump-pagination-arrows-color:var(--neutral-grey-secondary);--jump-pagination-arrows-disabled:var(--neutral-grey-disabled);font-family:var(--ff-primary)}.JumpPagination__Wrapper{display:flex;justify-content:space-between}.JumpPagination__Wrapper .indicators{font-size:var(--fs-400);font-weight:normal;display:flex;justify-content:space-between;gap:20px;color:var(--jump-pagination-label)}.JumpPagination__Wrapper .indicators .arrow{color:var(--jump-pagination-arrows-color);display:flex;align-items:center;gap:10px}.JumpPagination__Wrapper .indicators .arrow button{background-color:transparent;border:none;cursor:pointer;padding:0px;display:flex;align-items:center}.JumpPagination__Wrapper .indicators .arrow button:disabled{cursor:not-allowed;color:var(--jump-pagination-arrows-disabled)}.JumpPagination__Wrapper .indicators .elements{color:var(--jump-pagination-label);display:flex;align-items:center;gap:5px}";const n=r;const s=class{constructor(i){a(this,i);this.changePage=e(this,"jump-change-page",7);this.current=1;this.pagLabel="di";this.last=10;this.showFirstAndLast=false}watchcurrent(a,e){let i={current:a,previousPage:e,first:1,last:this.last,direction:a>e?"next":"prev"};this.changePage.emit(i)}componentWillLoad(){this.current=1}render(){return i(t,{key:"18d410dc3a9511ace652112d4109918293df9906",class:"JumpPagination"},i("div",{key:"9a7106cc8fad86b9d88df5bae5256c65dec638d2",class:"JumpPagination__Wrapper"},i("div",{key:"408904b95e5ccbc5c8dec7992cf86bc6afa6d668",class:"indicators"},i("div",{key:"89ac5f884a14e1bf4b9d7e191239b66a01f15dfc",class:"elements"},i("span",{key:"daebe2f9181ba0ca7d04534776433b278dd7f45d"},i("span",{key:"1c340139fec9bb56b4419503e96da5db100389ad"},this.current)," ",this.pagLabel," ",i("span",{key:"1c8005a1a84d928bd03a019f55f8ce10bec6ef63"},this.last))),i("div",{key:"22c30cb2b8e201ad83b861bafae9456af3651601",class:"arrow"},this.showFirstAndLast&&i("jump-button",{key:"d33a4ab68bc65b7f3904339d2af6560d5087cc4f",onClick:()=>{this.current=1},variant:"primary",text:true,size:"small",name:"scopri",value:"value","aria-label":"Scopri di più",id:"button",onlyIcon:true,disabled:this.current===1?true:false}," ",i("jump-icon",{key:"96d22863c7fc2cbaae7b72ab96a1ba8217e595a9",slot:"suffix",name:"chevrons-left"})," "),i("jump-button",{key:"db02538122d3d8086efdbf49145c17e0e9af8788",onClick:()=>{this.current--},variant:"primary",text:true,size:"small",name:"scopri",value:"value","aria-label":"Scopri di più",id:"button",onlyIcon:true,disabled:this.current===1?true:false}," ",i("jump-icon",{key:"ffceb9d84a86c2cf2a8f21e0f9f5defea43c5f09",slot:"suffix",name:"chevron-left"})," "),i("jump-button",{key:"855a75372082a8c9f749477ef28c47345f8a14fe",onClick:()=>{this.current++},variant:"primary",text:true,size:"small",name:"scopri",value:"value","aria-label":"Scopri di più",id:"button",onlyIcon:true,disabled:this.current===this.last?true:false}," ",i("jump-icon",{key:"433de11f11450ecee65e4e0a9e4ff579589df7bc",slot:"suffix",name:"chevron-right"})," "),this.showFirstAndLast&&i("jump-button",{key:"80ccd477f717ce04e9c1411f2a8a808247f568ac",onClick:()=>{this.current=this.last},variant:"primary",text:true,size:"small",name:"scopri",value:"value","aria-label":"Scopri di più",id:"button",onlyIcon:true,disabled:this.current===this.last?true:false}," ",i("jump-icon",{key:"93bbfd2eeb6158397e93808f330babb27338a983",slot:"suffix",name:"chevrons-right"})," ")))))}static get watchers(){return{current:["watchcurrent"]}}};s.style=n;export{s as jump_pagination};
|
|
2
|
+
//# sourceMappingURL=p-95460fa4.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as i,h as e,H as s,g as a}from"./p-4d6cc90d.js";const o=":host{--card-max-width:450px;--jump-card-max-width-horizontal:100%;--jump-card-color:var(--neutral-grey-primary);--jump-card-background:transparent;--jump-card-border-color:var(--neutral-grey-background);--jump-card-padding:0.5rem;max-width:var(--card-max-width);overflow:hidden;display:flex;flex-direction:column;position:relative;width:100%;font-family:var(--ff-primary, \"Arial\"), sans-serif;line-height:var(--lh-400, 1.3);background-color:var(--jump-card-background);color:var(--jump-card-color)}:host .Footer,:host .Body{display:flex;width:100%}:host jump-badge{position:absolute;top:1rem;left:1rem;z-index:2}:host jump-badge.hasBackground.iconOnly{top:calc(1rem + 8px);left:calc(1rem + 8px)}:host .Favorite{position:absolute;top:1rem;right:1rem;z-index:2}:host .Favorite.hasBackground.iconOnly{top:calc(1rem + 8px);right:calc(1rem + 8px)}:host .Media{overflow:hidden;position:relative;border-top-left-radius:3px;border-top-right-radius:3px;aspect-ratio:1/1}:host .Media .Images{height:100%;margin:0;position:relative}:host .Media .Images img{height:100%;width:100%;object-fit:cover;position:absolute;top:0;left:0;overflow:hidden}:host .Media .Images__Front{z-index:1;transition:opacity 0.5s linear;cursor:pointer}:host .Media .Images.has-hover-image:hover .Images__Front{opacity:0}:host .Media.hasBackground{background-color:var(--neutral-white)}:host .Media.hasBackground.iconOnly{border-top-left-radius:6px;border-top-right-radius:6px;padding:var(--jump-card-padding) var(--jump-card-padding) 0}:host .Media.hasBackground.iconOnly img{border-radius:6px}:host .NotificationCart{display:none;position:absolute;bottom:0px;width:100%;padding:2rem 1rem;background-color:hsla(0, 0%, 0%, 0.35);box-sizing:border-box;z-index:2;transform:translate3d(0, 0, 0)}:host .NotificationCart.is-active{display:flex;align-items:center;justify-content:center}:host .Content.hasBackground{background-color:var(--neutral-white);padding:calc(var(--jump-card-padding) * 2)}:host .Content.iconOnly{padding:calc(var(--jump-card-padding) * 2) var(--jump-card-padding)}:host .Body{display:flex;flex-direction:column;gap:0.75rem;padding:var(--jump-card-padding) 0}:host .Body>*{display:flex;flex-direction:row;justify-content:space-between}:host .Body>*>*{flex:0 1 auto}:host .Body.hasBackground{padding:0 0 var(--jump-card-padding)}:host .Body.iconOnly{padding:0}:host .Product{font-size:var(--fs-400)}:host .Subtitle{font-size:var(--fs-300);color:var(--neutral-grey-secondary);line-height:1.2}:host .Footer{line-height:var(--lh-400);justify-content:end;padding:var(--jump-card-padding) 0;align-items:flex-end}:host .Footer.justify-between{justify-content:space-between}:host .Footer.hasBackground{padding-bottom:0}:host .Footer.iconOnly{padding:0}:host .OutOfStock{justify-items:start;font-size:var(--fs-300);font-weight:var(--fw-900);color:var(--status-danger-standard)}:host .OnlyIconButton{position:absolute;bottom:0;right:0;background:var(--neutral-white);border-top-left-radius:20px;padding:8px 8px 0px 8px;z-index:2}:host .Price{position:relative;display:grid;grid-template-columns:auto auto;grid-template-rows:1.5rem 1.5rem auto;justify-items:end;align-items:end;column-gap:0.5rem;font-size:var(--fs-500);font-weight:var(--fw-900);line-height:var(--lh-400)}:host .Price>*{display:inline-flex}:host .Price__Regular{text-align:right}:host .Price__Regular.sale{text-decoration:line-through;color:var(--neutral-grey-secondary);font-weight:var(--fw-400);font-size:var(--fs-400);grid-column:2;grid-row:1}:host .Price__Sale{grid-column:2;grid-row:2}:host .Price__Discount{color:var(--status-danger-standard);font-weight:var(--fw-400);font-size:var(--fs-300);grid-column:1;grid-row:1}:host .SelectVariations select{appearance:none;background-color:transparent;border:1px solid var(--neutral-grey-secondary);border-radius:3px;color:var(--neutral-grey-secondary);font-size:var(--fs-300);padding:0.5rem 0.75rem;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E\");background-position:right 0.5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact}.slide-in-bottom{animation:slide-in-bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both}.slide-out-bottom{animation:slide-out-bottom 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both}.fade-in-out{animation-name:fade-in-out;animation-duration:6s;animation-timing-function:ease-in-out}@keyframes fade-in-out{from{opacity:0;transform:translateY(100px)}50%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100px)}}";const r=o;const n=class{constructor(e){t(this,e);this.toggleFavorite=i(this,"jump-toggle-favorite",7);this.productAddToCart=i(this,"jump-add-to-cart",7);this.productWaitingList=i(this,"jump-add-to-waiting-list",7);this.variationSelected=i(this,"jump-variation-selected",7);this.onlyIconButton=false;this.hasBackground=false;this.badge=undefined;this.favorite=false;this.hasFavorite=false;this.link=undefined;this.img=undefined;this.imgAlt=undefined;this.hoverImg=undefined;this.hoverImgAlt=undefined;this.videoSrc=undefined;this.notificationUrl=undefined;this.notificationText="";this.productName=undefined;this.subtitle=undefined;this.productId=undefined;this.price=undefined;this.salePrice=undefined;this.currency="€";this.outOfStock=false;this.outOfStockText=undefined;this.addToCartText=undefined;this.waitingListText=undefined;this.addToWaitingList=false;this.addedToCart=false;this.endAddedToCart=false;this.variations=[]}addOption(t){let i=t.detail;this.variations=[...this.variations,Object.assign({},i)]}onVariationSelected(t){this.variationSelected.emit(t)}componentWillLoad(){}componentDidLoad(){this.jumpQuantityEl=this.JumpCardEcommerce.querySelector("jump-quantity");if(this.jumpQuantityEl){this.jumpQuantityEl.addEventListener("jump-change",this.onQuantityChange.bind(this));this.quantity=this.jumpQuantityEl.getValue().then((t=>{this.quantity=t}))}}disconnectedCallback(){this.jumpQuantityEl=this.JumpCardEcommerce.querySelector("jump-quantity");if(this.jumpQuantityEl){this.jumpQuantityEl.removeEventListener("jump-change",this.onQuantityChange)}}onQuantityChange(t){var i;this.quantity=(i=t.detail.value)!==null&&i!==void 0?i:false}onToggleFavorite(){this.favorite=!this.favorite;this.toggleFavorite.emit({productId:this.productId,favorite:this.favorite})}addProductToCart(){var t;this.addedToCart=true;const i={productId:this.productId,addedToCart:this.addedToCart,quantity:(t=this.quantity)!==null&&t!==void 0?t:null};this.productAddToCart.emit(i);setTimeout((()=>{this.addedToCart=false}),6e3)}waitingList(){this.addToWaitingList=true;this.productWaitingList.emit({productId:this.productId,addToWaitingList:this.addToWaitingList})}render(){const t=this.hasBackground?"hasBackground":"";const i=this.onlyIconButton?"iconOnly":"";const a=this.outOfStock?"justify-between":"";const o=this.hoverImg?"has-hover-image":"";function r(t,i){const e=(t-i)/t*100;return e.toFixed(0)}return e(s,null,this.badge?e("jump-badge",{class:`${t} ${i}`,variant:"secondary",dimension:"small",label:this.badge}):"",this.hasFavorite?e("jump-button",{onClick:()=>this.onToggleFavorite(),class:`Favorite ${t} ${i}`,variant:this.favorite?"primary":"neutral",size:"small",text:true,onlyIcon:true},e("jump-icon",{slot:"prefix",name:"heart",category:this.favorite?"solid":"light",size:"medium"})):null,e("div",{class:`Media ${i} ${t}`},e("a",{href:this.link},e("figure",{class:`Images ${o} `},this.img&&!this.videoSrc?e("img",{class:"Images__Front",src:this.img,alt:this.imgAlt}):"",this.hoverImg&&!this.videoSrc?e("img",{class:"Images__OnHover",src:this.hoverImg,alt:this.hoverImgAlt}):""),this.videoSrc&&!this.img?e("video",{autoplay:true},e("source",{src:this.videoSrc,type:"video/mp4"}),e("source",{src:this.videoSrc,type:"video/mov"}),e("source",{src:this.videoSrc,type:"video/webm"})):""),e("div",{class:`NotificationCart ${this.addedToCart==true?"is-active fade-in-out":""}`},e("jump-button",{href:this.notificationUrl,variant:"white",text:true},e("jump-icon",{slot:"prefix",name:"check"}),e("span",null," ",this.notificationText," "))),this.onlyIconButton?e("div",{class:"OnlyIconButton"},e("jump-button",{variant:"secondary",size:"large",pill:true,onlyIcon:true,onClick:()=>this.addProductToCart()},e("jump-icon",{slot:"prefix",name:"cart-shopping",category:"regular"}))):""),e("div",{class:`Content ${t} ${i}`},e("div",{class:`Body ${t} ${i}`},e("div",null,e("div",{class:"Info"},e("div",{class:"Product"},this.productName),this.subtitle?e("div",{class:"Subtitle"},this.subtitle):null),this.price?e("div",{class:"Price"},this.salePrice&&this.salePrice!=0?e("div",{class:"Price__Discount"}," ",r(this.price,this.salePrice),"% "):null,e("div",{class:`Price__Regular ${this.salePrice?"sale":""}`},this.currency,this.price),this.salePrice?e("div",{class:"Price__Sale"},this.currency,this.salePrice):null):null),e("div",{class:"SelectVariations"},this.variations.length!=0?e("select",{ref:t=>this.variationSelectEl=t,onChange:()=>{let t=this.variationSelectEl.value;let i=this.variations.find((i=>i.code==t));this.onVariationSelected(i)}},this.variations.filter((t=>!t.imgUrl)).map((t=>e("option",{value:t.code},t.label)))):null),e("slot",{name:"quantity"})),e("div",{class:`Footer ${a} ${t} ${i}`},this.outOfStock?e("div",{class:"OutOfStock"},this.outOfStockText?this.outOfStockText:"Esaurito"):"",this.outOfStock?e("jump-button",{variant:"secondary",size:"small",text:true,onClick:()=>this.waitingList()},e("jump-icon",{slot:"prefix",name:!this.outOfStock?"cart-shopping":"bell",category:"regular",size:"small"}),this.waitingListText?this.waitingListText:"Notifica disponibilità"):"",!this.outOfStock&&!this.onlyIconButton?e("jump-button",{variant:"secondary",size:"small",text:true,onClick:()=>this.addProductToCart()},e("jump-icon",{slot:"prefix",name:!this.outOfStock?"cart-shopping":"bell",category:"regular",size:"small"}),this.addToCartText?this.addToCartText:"Aggiungi al carrello"):"")))}get JumpCardEcommerce(){return a(this)}};n.style=r;export{n as jump_card_ecommerce};
|
|
2
|
+
//# sourceMappingURL=p-b92e6459.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["jumpCardEcommerceCss","JumpCardEcommerceStyle0","JumpCardEcommerce","addOption","e","props","detail","this","variations","Object","assign","onVariationSelected","variation","variationSelected","emit","componentWillLoad","componentDidLoad","jumpQuantityEl","querySelector","addEventListener","onQuantityChange","bind","quantity","getValue","then","disconnectedCallback","removeEventListener","_a","value","onToggleFavorite","favorite","toggleFavorite","productId","addProductToCart","addedToCart","payload","productAddToCart","setTimeout","waitingList","addToWaitingList","productWaitingList","render","backgroundClass","hasBackground","iconOnlyClass","onlyIconButton","justifyClass","outOfStock","hasImageOnHover","hoverImg","calculateDiscount","price","salePrice","discount","toFixed","h","Host","badge","class","variant","dimension","label","hasFavorite","onClick","size","text","onlyIcon","slot","name","category","href","link","img","videoSrc","src","alt","imgAlt","hoverImgAlt","autoplay","type","notificationUrl","notificationText","pill","productName","subtitle","currency","length","ref","el","variationSelectEl","onChange","currentValue","currentVariation","find","code","filter","imgUrl","map","outOfStockText","waitingListText","addToCartText"],"sources":["src/components/jump-card-ecommerce/jump-card-ecommerce.scss?tag=jump-card-ecommerce&encapsulation=shadow","src/components/jump-card-ecommerce/jump-card-ecommerce.tsx"],"sourcesContent":[":host {\n --card-max-width: 450px;\n --jump-card-max-width-horizontal: 100%;\n --jump-card-color: var(--neutral-grey-primary);\n --jump-card-background: transparent;\n --jump-card-border-color: var(--neutral-grey-background);\n --jump-card-padding: 0.5rem;\n\n max-width: var(--card-max-width);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n position: relative;\n width: 100%;\n font-family: var(--ff-primary, 'Arial'), sans-serif;\n line-height: var(--lh-400, 1.3);\n background-color: var(--jump-card-background);\n color: var(--jump-card-color);\n\n .Footer,\n .Body {\n display: flex;\n width: 100%;\n }\n\n jump-badge {\n position: absolute;\n top: 1rem;\n left: 1rem;\n z-index: 2;\n\n &.hasBackground.iconOnly {\n top: calc(1rem + 8px);\n left: calc(1rem + 8px);\n }\n }\n\n .Favorite {\n position: absolute;\n top: 1rem;\n right: 1rem;\n z-index: 2;\n\n &.hasBackground.iconOnly {\n top: calc(1rem + 8px);\n right: calc(1rem + 8px);\n }\n }\n\n .Media {\n // aspect-ratio: 3/4;\n overflow: hidden;\n position: relative;\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n aspect-ratio: 1/1;\n\n .Images {\n height: 100%;\n margin: 0;\n position: relative;\n\n img {\n height: 100%;\n width: 100%;\n object-fit: cover;\n position: absolute;\n top: 0;\n left: 0;\n overflow: hidden;\n }\n\n &__Front {\n z-index: 1;\n transition: opacity 0.5s linear;\n cursor: pointer;\n }\n\n &.has-hover-image {\n &:hover .Images__Front {\n opacity: 0;\n }\n }\n }\n\n &.hasBackground {\n background-color: var(--neutral-white);\n\n &.iconOnly {\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n padding: var(--jump-card-padding) var(--jump-card-padding) 0;\n\n img {\n border-radius: 6px;\n }\n }\n }\n }\n\n .NotificationCart {\n display: none;\n position: absolute;\n bottom: 0px;\n width: 100%;\n padding: 2rem 1rem;\n background-color: hsl(0 0% 0% / 35%);\n box-sizing: border-box;\n z-index: 2;\n transform: translate3d(0, 0, 0);\n\n &.is-active {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n }\n\n .Content {\n &.hasBackground {\n background-color: var(--neutral-white);\n padding: calc(var(--jump-card-padding) * 2);\n }\n\n &.iconOnly {\n padding: calc(var(--jump-card-padding) * 2) var(--jump-card-padding);\n }\n }\n\n .Body {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n padding: var(--jump-card-padding) 0;\n\n & > * {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n\n & > * {\n flex: 0 1 auto;\n }\n }\n\n &.hasBackground {\n padding: 0 0 var(--jump-card-padding);\n }\n\n &.iconOnly {\n padding: 0;\n }\n }\n\n .Product {\n font-size: var(--fs-400);\n }\n\n .Subtitle {\n font-size: var(--fs-300);\n color: var(--neutral-grey-secondary);\n line-height: 1.2;\n }\n\n .Footer {\n line-height: var(--lh-400);\n justify-content: end;\n padding: var(--jump-card-padding) 0;\n align-items: flex-end;\n\n &.justify-between {\n justify-content: space-between;\n }\n\n &.hasBackground {\n padding-bottom: 0;\n }\n\n &.iconOnly {\n padding: 0;\n }\n }\n\n .OutOfStock {\n justify-items: start;\n font-size: var(--fs-300);\n font-weight: var(--fw-900);\n color: var(--status-danger-standard);\n }\n\n .OnlyIconButton {\n position: absolute;\n bottom: 0;\n right: 0;\n background: var(--neutral-white);\n border-top-left-radius: 20px;\n padding: 8px 8px 0px 8px;\n z-index: 2;\n }\n\n .Price {\n position: relative;\n display: grid;\n grid-template-columns: auto auto;\n grid-template-rows: 1.5rem 1.5rem auto;\n justify-items: end;\n align-items: end;\n column-gap: 0.5rem;\n\n font-size: var(--fs-500);\n font-weight: var(--fw-900);\n line-height: var(--lh-400);\n\n & > * {\n display: inline-flex;\n }\n\n &__Regular {\n text-align: right;\n\n &.sale {\n text-decoration: line-through;\n color: var(--neutral-grey-secondary);\n font-weight: var(--fw-400);\n font-size: var(--fs-400);\n grid-column: 2;\n grid-row: 1;\n }\n }\n\n &__Sale {\n grid-column: 2;\n grid-row: 2;\n }\n\n &__Discount {\n color: var(--status-danger-standard);\n font-weight: var(--fw-400);\n font-size: var(--fs-300);\n grid-column: 1;\n grid-row: 1;\n }\n }\n\n .SelectVariations {\n select {\n appearance: none;\n background-color: transparent;\n border: 1px solid var(--neutral-grey-secondary);\n border-radius: 3px;\n color: var(--neutral-grey-secondary);\n font-size: var(--fs-300);\n padding: 0.5rem 0.75rem;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E\");\n background-position: right 0.5rem center;\n background-repeat: no-repeat;\n background-size: 1.5em 1.5em;\n padding-right: 2.5rem;\n -webkit-print-color-adjust: exact;\n }\n }\n}\n\n.slide-in-bottom {\n animation: slide-in-bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;\n}\n\n.slide-out-bottom {\n animation: slide-out-bottom 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;\n}\n\n.fade-in-out {\n animation-name: fade-in-out;\n animation-duration: 6s;\n animation-timing-function: ease-in-out;\n}\n\n@keyframes fade-in-out {\n from {\n opacity: 0;\n transform: translateY(100px);\n }\n\n 50% {\n opacity: 1;\n transform: translateY(0);\n }\n\n to {\n opacity: 0;\n transform: translateY(100px);\n }\n}\n","import { Component, Host, h, Prop, Event, EventEmitter, Element, State, Listen} from '@stencil/core';\n\ninterface Variation {\n code: string;\n imgUrl: string;\n label: string;\n // Add more keys as needed\n}\n\n@Component({\n tag: 'jump-card-ecommerce',\n styleUrl: 'jump-card-ecommerce.scss',\n shadow: true,\n})\nexport class JumpCardEcommerce {\n\n @Element() JumpCardEcommerce: HTMLElement;\n jumpQuantityEl;\n\n /* ---------------------- @PROPERTIES ------------------------- */\n\n /** Indicate if card has only icon button*/\n @Prop() onlyIconButton: boolean = false;\n\n /** Indicate if card has background*/\n @Prop() hasBackground: boolean = false;\n\n /** Indicates the badge of the card*/\n @Prop() badge: string;\n \n /** Indicates if the product is favorite */\n \n @Prop({mutable:true, reflect: true}) favorite: boolean = false;\n\n /** Indicate if the whislist is active in shop*/\n @Prop() hasFavorite: boolean = false;\n\n /** Indicates the link of the card*/\n @Prop() link: string;\n\n /** Indicates the image's src of the card*/\n @Prop() img: string ;\n\n /** Indicates the img's alt of the card*/\n @Prop() imgAlt: string;\n\n /** Indicates the over image's src of the card*/\n @Prop() hoverImg: string ;\n\n /** Indicates the hover img's alt of the card*/\n @Prop() hoverImgAlt: string;\n\n /** Indicates the videoSrc of the card*/\n @Prop() videoSrc: string; \n\n /** Indicates the notificationUrl of the card*/\n @Prop() notificationUrl: string;\n\n /** Indicates the notificationText of the card*/\n @Prop() notificationText: string = '';\n\n /** Indicates the title of the card*/\n @Prop() productName: string ;\n\n /** Indicates the subtitle of the card*/\n @Prop() subtitle: string;\n\n /** Indicates the ID of the product, can be also a SKU*/\n @Prop() productId: string ;\n\n /** Indicates the price of the card */\n @Prop() price: number;\n\n /** Indicates the sale price of the card */\n @Prop() salePrice: number;\n\n /** Indicates the currency of the card */\n @Prop() currency: string = '€';\n\n /** Indicates if the product is outOfStock */\n @Prop({mutable:true, reflect: true}) outOfStock: boolean = false;\n \n /** Indicates the outOfStockText of the product*/\n @Prop() outOfStockText: string;\n\n /** Indicates the button class of the add to cart / notification button */\n @Prop() addToCartText: string ;\n\n /** Indicates the button class of the add to cart / notification button */\n @Prop() waitingListText: string ;\n\n /** Indicate if the user request to be notified when te product is avaible*/\n @Prop() addToWaitingList: boolean = false;\n\n /* ---------------------- @STATE ------------------------- */ \n\n /** Indicate if the product is added to cart --> non deve esserci nelle storie! */ \n @Prop() addedToCart: boolean = false;\n\n @Prop() endAddedToCart: boolean = false;\n\n @State() variations: Variation[] = [];\n\n // è una proprietà che viene cambiata solo da dentro\n quantity: number;\n\n variationSelectEl: HTMLSelectElement;\n\n /* ---------------------- @EVENTS ------------------------- */\n \n @Event({eventName: 'jump-toggle-favorite'}) toggleFavorite: EventEmitter;\n\n @Event({eventName: 'jump-add-to-cart'}) productAddToCart: EventEmitter;\n\n @Event({eventName: 'jump-add-to-waiting-list'}) productWaitingList: EventEmitter;\n\n @Event({ eventName: 'jump-variation-selected' }) variationSelected: EventEmitter; // verificare se corretto: aggiungo un evento\n\n @Listen(\"jump-card-ecommerce-option-connected\")\n addOption(e) {\n let props = e.detail; // es {code: 'sku1', imageUrl: 'https://google.com/'}\n this.variations = [...this.variations, { ...props }];\n }\n\n onVariationSelected(variation) {\n this.variationSelected.emit(variation); // verificare se corretto: emetto l'evento\n }\n \n\n /* ---------------------- @LIFECYCLE ------------------------- */\n\n componentWillLoad() {}\n\n componentDidLoad() {\n this.jumpQuantityEl = this.JumpCardEcommerce.querySelector('jump-quantity');\n \n if(this.jumpQuantityEl){\n this.jumpQuantityEl.addEventListener('jump-change', this.onQuantityChange.bind(this));\n this.quantity = this.jumpQuantityEl.getValue().then((quantity) => {\n this.quantity = quantity;\n });\n }\n }\n\n disconnectedCallback() {\n this.jumpQuantityEl = this.JumpCardEcommerce.querySelector('jump-quantity');\n if(this.jumpQuantityEl){\n this.jumpQuantityEl.removeEventListener('jump-change',this.onQuantityChange);\n }\n }\n\n /* ---------------------- @METHODS ------------------------- */\n onQuantityChange(e) {\n this.quantity = e.detail.value ?? false;\n }\n\n onToggleFavorite() {\n this.favorite = !this.favorite;\n this.toggleFavorite.emit(\n {\n productId: this.productId,\n favorite: this.favorite\n }\n ); \n }\n\n addProductToCart() {\n this.addedToCart = true;\n const payload = {\n productId: this.productId,\n addedToCart: this.addedToCart,\n quantity: this.quantity ?? null\n };\n this.productAddToCart.emit(payload);\n\n setTimeout(() => {\n this.addedToCart = false;\n }, 6000);\n }\n\n waitingList() {\n this.addToWaitingList = true;\n this.productWaitingList.emit(\n {\n productId: this.productId,\n addToWaitingList: this.addToWaitingList\n }\n )\n }\n\n render() {\n const backgroundClass = this.hasBackground ? 'hasBackground' : '';\n const iconOnlyClass = this.onlyIconButton ? 'iconOnly' : '';\n const justifyClass = this.outOfStock ? 'justify-between' : '';\n const hasImageOnHover = this.hoverImg ? 'has-hover-image' : '';\n function calculateDiscount(price: number, salePrice: number): string {\n const discount = ((price - salePrice) / price) * 100;\n return discount.toFixed(0);\n };\n\n return (\n <Host>\n {this.badge ? <jump-badge class={`${backgroundClass} ${iconOnlyClass}`} variant=\"secondary\" dimension=\"small\" label={this.badge}></jump-badge> : ''}\n \n {this.hasFavorite ? \n <jump-button onClick={ () => this.onToggleFavorite() } class={`Favorite ${backgroundClass} ${iconOnlyClass}`} variant={this.favorite ? 'primary' : 'neutral'} size=\"small\" text onlyIcon>\n <jump-icon slot=\"prefix\" name=\"heart\" category={this.favorite ? 'solid' : 'light'} size=\"medium\"></jump-icon>\n </jump-button> \n : null}\n\n <div class={`Media ${iconOnlyClass} ${backgroundClass}`}>\n <a href={this.link}>\n <figure class={`Images ${hasImageOnHover} `}>\n {this.img && !this.videoSrc ? <img class=\"Images__Front\" src={this.img} alt={this.imgAlt}></img> : ''}\n {this.hoverImg && !this.videoSrc ? <img class=\"Images__OnHover\" src={this.hoverImg} alt={this.hoverImgAlt}></img> : ''}\n </figure>\n {this.videoSrc && !this.img ? \n <video autoplay> \n <source src={this.videoSrc} type=\"video/mp4\"/> \n <source src={this.videoSrc} type=\"video/mov\"/> \n <source src={this.videoSrc} type=\"video/webm\"/> \n </video> : ''}\n </a> \n <div class={`NotificationCart ${this.addedToCart == true ? 'is-active fade-in-out' : ''}`}>\n <jump-button href={this.notificationUrl} variant=\"white\" text> \n <jump-icon slot=\"prefix\" name=\"check\"></jump-icon> \n <span> {this.notificationText} </span>\n </jump-button>\n </div>\n {this.onlyIconButton ? \n <div class=\"OnlyIconButton\">\n <jump-button variant=\"secondary\" size=\"large\" pill onlyIcon onClick={() => this.addProductToCart()}> \n <jump-icon slot=\"prefix\" name='cart-shopping' category=\"regular\"></jump-icon> \n </jump-button> \n </div>\n : ''\n }\n </div>\n\n <div class={`Content ${backgroundClass} ${iconOnlyClass}`}>\n <div class={`Body ${backgroundClass} ${iconOnlyClass}`}>\n <div>\n <div class=\"Info\">\n <div class=\"Product\">{this.productName}</div>\n {this.subtitle ? <div class=\"Subtitle\">{this.subtitle}</div> : null}\n </div>\n\n {this.price ? \n <div class=\"Price\">\n {this.salePrice && this.salePrice != 0 ? \n <div class=\"Price__Discount\"> {calculateDiscount(this.price, this.salePrice)}% </div>\n : null}\n <div class={`Price__Regular ${this.salePrice ? 'sale' : ''}`}> \n {this.currency}{this.price}\n </div>\n {this.salePrice ? \n <div class=\"Price__Sale\">{this.currency}{this.salePrice}</div>\n : null}\n </div>\n : null}\n </div>\n \n <div class=\"SelectVariations\">\n {this.variations.length != 0 ? \n <select\n ref={(el) => (this.variationSelectEl = el)} //salvo questo elemento in this.variationSelectEl\n onChange={() => {\n let currentValue = this.variationSelectEl.value;\n let currentVariation = this.variations.find(\n (variation) => variation.code == currentValue,\n );\n this.onVariationSelected(currentVariation);\n }}\n >\n {this.variations\n .filter((variation) => !variation.imgUrl)\n .map((variation) => (\n <option value={variation.code}>{variation.label}</option>\n ))}\n </select>\n : null }\n </div>\n <slot name=\"quantity\"></slot>\n </div>\n\n <div class={`Footer ${justifyClass} ${backgroundClass} ${iconOnlyClass}`}>\n \n {this.outOfStock ? <div class=\"OutOfStock\">{this.outOfStockText ? this.outOfStockText : 'Esaurito'}</div> : ''}\n \n { this.outOfStock ? \n <jump-button variant=\"secondary\" size=\"small\" text onClick={() => this.waitingList()}> \n <jump-icon slot=\"prefix\" name={!this.outOfStock ? 'cart-shopping' : 'bell'} category=\"regular\" size=\"small\"></jump-icon> \n {this.waitingListText ? this.waitingListText : 'Notifica disponibilità'} \n </jump-button> : ''\n }\n\n { !this.outOfStock && !this.onlyIconButton ? \n <jump-button variant=\"secondary\" size=\"small\" text onClick={() => this.addProductToCart()}> \n <jump-icon slot=\"prefix\" name={!this.outOfStock ? 'cart-shopping' : 'bell'} category=\"regular\" size=\"small\"></jump-icon> \n {this.addToCartText ? this.addToCartText : 'Aggiungi al carrello'} \n </jump-button> : ''\n }\n\n </div>\n\n </div>\n </Host>\n );\n }\n\n}"],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,c as s,h as t,H as c}from"./p-4d6cc90d.js";const n=":host{display:none}";const i=n;const o=class{constructor(t){e(this,t);this.connectedEvent=s(this,"jump-card-ecommerce-option-connected",7);this.code=undefined;this.imgUrl=undefined;this.label=undefined;this.sku=undefined}componentWillLoad(){this.connectedEvent.emit({code:this.code,label:this.label,imgUrl:this.imgUrl})}render(){return t(c,{key:"21e35180b98eeeaee34582aab33e4cff620c8c29"})}};o.style=i;export{o as jump_card_ecommerce_option};
|
|
2
|
+
//# sourceMappingURL=p-bc64407a.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["jumpCardEcommerceOptionCss","JumpCardEcommerceOptionStyle0","CardEcommerceOption","componentWillLoad","this","connectedEvent","emit","code","label","imgUrl","render","h","Host","key"],"sources":["src/components/jump-card-ecommerce-option/jump-card-ecommerce-option.scss?tag=jump-card-ecommerce-option&encapsulation=shadow","src/components/jump-card-ecommerce-option/jump-card-ecommerce-option.tsx"],"sourcesContent":[":host {\n display: none;\n}\n","import { Component, Host, Event, Prop, h } from \"@stencil/core\";\n\n@Component({\n tag: \"jump-card-ecommerce-option\",\n styleUrl: \"jump-card-ecommerce-option.scss\",\n shadow: true,\n})\nexport class CardEcommerceOption {\n @Prop() code: string;\n @Prop() imgUrl: string;\n @Prop() label: string;\n @Prop() sku: string;\n\n @Event({ eventName: \"jump-card-ecommerce-option-connected\" }) connectedEvent;\n\n componentWillLoad() {\n this.connectedEvent.emit({\n code: this.code,\n label: this.label,\n imgUrl: this.imgUrl,\n });\n }\n\n render() {\n return <Host></Host>;\n }\n}"],"mappings":"yDAAA,MAAMA,EAA6B,sBACnC,MAAAC,EAAeD,E,MCMFE,EAAmB,M,gLAQ9B,iBAAAC,GACEC,KAAKC,eAAeC,KAAK,CACvBC,KAAMH,KAAKG,KACXC,MAAOJ,KAAKI,MACZC,OAAQL,KAAKK,Q,CAIjB,MAAAC,GACE,OAAOC,EAACC,EAAI,CAAAC,IAAA,4C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,c as t,h as a,H as i}from"./p-4d6cc90d.js";const s=":host{display:block;--jump-tab-bg-color:var(--gray-ultralight, #f8f8f8)}:host .Wrapper{display:flex;width:fit-content}:host .Wrapper.rounded{border-radius:50px;background-color:#f8f8f8}";const
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,c as t,h as a,H as i}from"./p-4d6cc90d.js";const s=":host{display:block;--jump-tab-bg-color:var(--gray-ultralight, #f8f8f8)}:host .Wrapper{display:flex;width:fit-content}:host .Wrapper.rounded{border-radius:50px;background-color:#f8f8f8}";const n=s;const c=class{constructor(a){e(this,a);this.setActiveTab=t(this,"jump-change-activetab",7);this.tabGroupName=undefined;this.variant="inline"}changeActiveTabHandler(e){this.setActiveTab.emit(e.detail);const t=getComputedStyle(document.documentElement);const a=t.getPropertyValue("--neutral-grey-secondary").trim();let i=this.JumpTabEl.querySelectorAll("jump-tab-item");if(i.length>0){i.forEach((t=>{if(t.getAttribute("identifier")===e.detail.id){t.setAttribute("active","");if(this.variant==="sheet"){i.forEach(((e,s)=>{if(e!==t&&s!==i.length-1){e.style.borderRight=`1px solid ${a}`}else{e.style.borderRight="1px solid transparent"}}));let e=t.previousElementSibling;if(e){e.style.borderRight="1px solid transparent"}}}else{t.removeAttribute("active")}}))}let s=this.JumpTabEl.querySelectorAll("jump-tab-panel");if(s.length>0){s.forEach((t=>{if(t.getAttribute("identifier")===e.detail.id){t.setAttribute("active","")}else{t.removeAttribute("active")}}))}}componentDidLoad(){console.log("Component has been rendered");if(this.variant==="sheet"){const e=getComputedStyle(document.documentElement);const t=e.getPropertyValue("--neutral-grey-secondary").trim();let a=this.JumpTabEl.querySelectorAll("jump-tab-item");if(a.length>0){a.forEach(((e,i)=>{if(i===a.length-1||e.classList.contains("active")){e.style.borderRight="1px solid transparent"}else{e.style.borderRight=`1px solid ${t}`}}))}}}render(){return a(i,{key:"141d0932c588a4644d67abf4378858eb8a3771f7",class:"JumpTab",id:this.tabGroupName,ref:e=>{this.JumpTabEl=e}},a("div",{key:"2b84773fbb263e8a593793da0db59c0110566ad7",class:"Wrapper "+this.variant},a("slot",{key:"559a5801972af5c746cfca3d0a387855316d10ee",name:"tab-item"})),a("div",{key:"5d2c365e4e6d9694faa073025560e1984135af47"},a("slot",{key:"ebf5b38c8a196ed002c88c24360942d05eb04ef7",name:"tab-content"})))}};c.style=n;export{c as jump_tab};
|
|
2
|
+
//# sourceMappingURL=p-d2ee7b9b.entry.js.map
|
|
@@ -244,30 +244,30 @@
|
|
|
244
244
|
"value": ""
|
|
245
245
|
},
|
|
246
246
|
"attributes": [
|
|
247
|
+
{
|
|
248
|
+
"name": "add-to-cart-text",
|
|
249
|
+
"description": "Indicates the button class of the add to cart / notification button"
|
|
250
|
+
},
|
|
247
251
|
{
|
|
248
252
|
"name": "add-to-waiting-list",
|
|
249
253
|
"description": "Indicate if the user request to be notified when te product is avaible"
|
|
250
254
|
},
|
|
251
255
|
{
|
|
252
256
|
"name": "added-to-cart",
|
|
253
|
-
"description": "Indicate if the product is added to cart"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"name": "addto-cart-text",
|
|
257
|
-
"description": "Indicates the button class of the add to cart / notification button"
|
|
257
|
+
"description": "Indicate if the product is added to cart --> non deve esserci nelle storie!"
|
|
258
258
|
},
|
|
259
259
|
{
|
|
260
260
|
"name": "badge",
|
|
261
261
|
"description": "Indicates the badge of the card"
|
|
262
262
|
},
|
|
263
|
-
{
|
|
264
|
-
"name": "changed-variation",
|
|
265
|
-
"description": "Indicate if the variation is change"
|
|
266
|
-
},
|
|
267
263
|
{
|
|
268
264
|
"name": "currency",
|
|
269
265
|
"description": "Indicates the currency of the card"
|
|
270
266
|
},
|
|
267
|
+
{
|
|
268
|
+
"name": "end-added-to-cart",
|
|
269
|
+
"description": ""
|
|
270
|
+
},
|
|
271
271
|
{
|
|
272
272
|
"name": "favorite",
|
|
273
273
|
"description": "Indicates if the product is favorite"
|
|
@@ -276,6 +276,18 @@
|
|
|
276
276
|
"name": "has-background",
|
|
277
277
|
"description": "Indicate if card has background"
|
|
278
278
|
},
|
|
279
|
+
{
|
|
280
|
+
"name": "has-favorite",
|
|
281
|
+
"description": "Indicate if the whislist is active in shop"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"name": "hover-img",
|
|
285
|
+
"description": "Indicates the over image's src of the card"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "hover-img-alt",
|
|
289
|
+
"description": "Indicates the hover img's alt of the card"
|
|
290
|
+
},
|
|
279
291
|
{
|
|
280
292
|
"name": "img",
|
|
281
293
|
"description": "Indicates the image's src of the card"
|
|
@@ -338,6 +350,31 @@
|
|
|
338
350
|
}
|
|
339
351
|
]
|
|
340
352
|
},
|
|
353
|
+
{
|
|
354
|
+
"name": "jump-card-ecommerce-option",
|
|
355
|
+
"description": {
|
|
356
|
+
"kind": "markdown",
|
|
357
|
+
"value": ""
|
|
358
|
+
},
|
|
359
|
+
"attributes": [
|
|
360
|
+
{
|
|
361
|
+
"name": "code",
|
|
362
|
+
"description": ""
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "img-url",
|
|
366
|
+
"description": ""
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"name": "label",
|
|
370
|
+
"description": ""
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "sku",
|
|
374
|
+
"description": ""
|
|
375
|
+
}
|
|
376
|
+
]
|
|
377
|
+
},
|
|
341
378
|
{
|
|
342
379
|
"name": "jump-filter",
|
|
343
380
|
"description": {
|
|
@@ -589,6 +626,10 @@
|
|
|
589
626
|
}
|
|
590
627
|
]
|
|
591
628
|
},
|
|
629
|
+
{
|
|
630
|
+
"name": "value",
|
|
631
|
+
"description": ""
|
|
632
|
+
},
|
|
592
633
|
{
|
|
593
634
|
"name": "variant",
|
|
594
635
|
"description": "",
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
interface Variation {
|
|
3
|
+
code: string;
|
|
4
|
+
imgUrl: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
2
7
|
export declare class JumpCardEcommerce {
|
|
3
8
|
JumpCardEcommerce: HTMLElement;
|
|
4
9
|
jumpQuantityEl: any;
|
|
@@ -10,16 +15,20 @@ export declare class JumpCardEcommerce {
|
|
|
10
15
|
badge: string;
|
|
11
16
|
/** Indicates if the product is favorite */
|
|
12
17
|
favorite: boolean;
|
|
18
|
+
/** Indicate if the whislist is active in shop*/
|
|
19
|
+
hasFavorite: boolean;
|
|
13
20
|
/** Indicates the link of the card*/
|
|
14
21
|
link: string;
|
|
15
22
|
/** Indicates the image's src of the card*/
|
|
16
23
|
img: string;
|
|
17
24
|
/** Indicates the img's alt of the card*/
|
|
18
25
|
imgAlt: string;
|
|
26
|
+
/** Indicates the over image's src of the card*/
|
|
27
|
+
hoverImg: string;
|
|
28
|
+
/** Indicates the hover img's alt of the card*/
|
|
29
|
+
hoverImgAlt: string;
|
|
19
30
|
/** Indicates the videoSrc of the card*/
|
|
20
31
|
videoSrc: string;
|
|
21
|
-
/** Indicate if the product is added to cart*/
|
|
22
|
-
addedToCart: boolean;
|
|
23
32
|
/** Indicates the notificationUrl of the card*/
|
|
24
33
|
notificationUrl: string;
|
|
25
34
|
/** Indicates the notificationText of the card*/
|
|
@@ -41,18 +50,23 @@ export declare class JumpCardEcommerce {
|
|
|
41
50
|
/** Indicates the outOfStockText of the product*/
|
|
42
51
|
outOfStockText: string;
|
|
43
52
|
/** Indicates the button class of the add to cart / notification button */
|
|
44
|
-
|
|
53
|
+
addToCartText: string;
|
|
45
54
|
/** Indicates the button class of the add to cart / notification button */
|
|
46
55
|
waitingListText: string;
|
|
47
56
|
/** Indicate if the user request to be notified when te product is avaible*/
|
|
48
57
|
addToWaitingList: boolean;
|
|
49
|
-
/** Indicate if the
|
|
50
|
-
|
|
58
|
+
/** Indicate if the product is added to cart --> non deve esserci nelle storie! */
|
|
59
|
+
addedToCart: boolean;
|
|
60
|
+
endAddedToCart: boolean;
|
|
61
|
+
variations: Variation[];
|
|
51
62
|
quantity: number;
|
|
63
|
+
variationSelectEl: HTMLSelectElement;
|
|
52
64
|
toggleFavorite: EventEmitter;
|
|
53
65
|
productAddToCart: EventEmitter;
|
|
54
66
|
productWaitingList: EventEmitter;
|
|
55
|
-
|
|
67
|
+
variationSelected: EventEmitter;
|
|
68
|
+
addOption(e: any): void;
|
|
69
|
+
onVariationSelected(variation: any): void;
|
|
56
70
|
componentWillLoad(): void;
|
|
57
71
|
componentDidLoad(): void;
|
|
58
72
|
disconnectedCallback(): void;
|
|
@@ -60,6 +74,6 @@ export declare class JumpCardEcommerce {
|
|
|
60
74
|
onToggleFavorite(): void;
|
|
61
75
|
addProductToCart(): void;
|
|
62
76
|
waitingList(): void;
|
|
63
|
-
changeVariationBody(event: Event): void;
|
|
64
77
|
render(): any;
|
|
65
78
|
}
|
|
79
|
+
export {};
|
|
@@ -22,6 +22,11 @@ declare const _default: {
|
|
|
22
22
|
description: string;
|
|
23
23
|
control: string;
|
|
24
24
|
};
|
|
25
|
+
hasFavorite: {
|
|
26
|
+
name: string;
|
|
27
|
+
description: string;
|
|
28
|
+
control: string;
|
|
29
|
+
};
|
|
25
30
|
link: {
|
|
26
31
|
name: string;
|
|
27
32
|
description: string;
|
|
@@ -46,6 +51,25 @@ declare const _default: {
|
|
|
46
51
|
exists: boolean;
|
|
47
52
|
};
|
|
48
53
|
};
|
|
54
|
+
hoverImg: {
|
|
55
|
+
name: string;
|
|
56
|
+
description: string;
|
|
57
|
+
control: string;
|
|
58
|
+
defaultValue: string;
|
|
59
|
+
if: {
|
|
60
|
+
arg: string;
|
|
61
|
+
exists: boolean;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
hoverImgAlt: {
|
|
65
|
+
name: string;
|
|
66
|
+
description: string;
|
|
67
|
+
control: string;
|
|
68
|
+
if: {
|
|
69
|
+
arg: string;
|
|
70
|
+
exists: boolean;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
49
73
|
videoSrc: {
|
|
50
74
|
name: string;
|
|
51
75
|
description: string;
|
|
@@ -101,7 +125,7 @@ declare const _default: {
|
|
|
101
125
|
description: string;
|
|
102
126
|
control: string;
|
|
103
127
|
};
|
|
104
|
-
|
|
128
|
+
addToCartText: {
|
|
105
129
|
name: string;
|
|
106
130
|
description: string;
|
|
107
131
|
control: string;
|
|
@@ -115,3 +139,4 @@ declare const _default: {
|
|
|
115
139
|
};
|
|
116
140
|
export default _default;
|
|
117
141
|
export declare const Card: any;
|
|
142
|
+
export declare const CardEvent: any;
|
|
@@ -8,14 +8,15 @@ export declare class JumpQuantity {
|
|
|
8
8
|
type: 'buttons' | 'dropdown' | 'input';
|
|
9
9
|
variant: 'vertical' | 'horizontal';
|
|
10
10
|
showButtons: boolean;
|
|
11
|
+
value: number;
|
|
11
12
|
change: any;
|
|
12
|
-
value: any;
|
|
13
13
|
inputEl: HTMLInputElement;
|
|
14
14
|
onValueChange(newValue: any, oldValue: any): void;
|
|
15
15
|
/**
|
|
16
16
|
* Get the current value
|
|
17
17
|
*/
|
|
18
|
-
getValue(): Promise<
|
|
18
|
+
getValue(): Promise<number>;
|
|
19
|
+
reset(): Promise<void>;
|
|
19
20
|
componentWillLoad(): void;
|
|
20
21
|
formResetCallback(): void;
|
|
21
22
|
handleChange(event: any): void;
|