@jumpgroup/jump-design-system 0.3.20 → 0.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/dist/cjs/jump-accordion-group.cjs.entry.js +24 -0
  2. package/dist/cjs/jump-accordion-group.cjs.entry.js.map +1 -0
  3. package/dist/cjs/jump-accordion.cjs.entry.js +2 -2
  4. package/dist/cjs/jump-accordion.cjs.entry.js.map +1 -1
  5. package/dist/cjs/jump-badge.cjs.entry.js +1 -1
  6. package/dist/cjs/jump-button_2.cjs.entry.js +1 -1
  7. package/dist/cjs/jump-card-ecommerce-option.cjs.entry.js +1 -1
  8. package/dist/cjs/jump-card-ecommerce.cjs.entry.js +5 -5
  9. package/dist/cjs/jump-card-ecommerce.cjs.entry.js.map +1 -1
  10. package/dist/cjs/jump-card.cjs.entry.js +2 -2
  11. package/dist/cjs/jump-design-system.cjs.js +1 -1
  12. package/dist/cjs/jump-filter-checkbox.cjs.entry.js +2 -2
  13. package/dist/cjs/jump-filter.cjs.entry.js +3 -3
  14. package/dist/cjs/jump-filtergroup.cjs.entry.js +3 -3
  15. package/dist/cjs/jump-pagination-table.cjs.entry.js +3 -3
  16. package/dist/cjs/jump-pagination.cjs.entry.js +3 -3
  17. package/dist/cjs/jump-quantity.cjs.entry.js +3 -3
  18. package/dist/cjs/jump-tab-item.cjs.entry.js +2 -2
  19. package/dist/cjs/jump-tab-panel.cjs.entry.js +1 -1
  20. package/dist/cjs/jump-tab.cjs.entry.js +1 -1
  21. package/dist/cjs/loader.cjs.js +1 -1
  22. package/dist/collection/collection-manifest.json +1 -0
  23. package/dist/collection/components/jump-accordion/jump-accordion.js +4 -4
  24. package/dist/collection/components/jump-accordion/jump-accordion.js.map +1 -1
  25. package/dist/collection/components/jump-accordion/jump-accordion.stories.js +7 -7
  26. package/dist/collection/components/jump-accordion/jump-accordion.stories.js.map +1 -1
  27. package/dist/collection/components/jump-accordion-group/jump-accordion-group.css +12 -0
  28. package/dist/collection/components/jump-accordion-group/jump-accordion-group.js +61 -0
  29. package/dist/collection/components/jump-accordion-group/jump-accordion-group.js.map +1 -0
  30. package/dist/collection/components/jump-accordion-group/jump-accordion-group.stories.js +52 -0
  31. package/dist/collection/components/jump-accordion-group/jump-accordion-group.stories.js.map +1 -0
  32. package/dist/collection/components/jump-accordion-group/test/jump-accordion-group.e2e.js +10 -0
  33. package/dist/collection/components/jump-accordion-group/test/jump-accordion-group.e2e.js.map +1 -0
  34. package/dist/collection/components/jump-accordion-group/test/jump-accordion-group.spec.js +18 -0
  35. package/dist/collection/components/jump-accordion-group/test/jump-accordion-group.spec.js.map +1 -0
  36. package/dist/collection/components/jump-badge/jump-badge.js +1 -1
  37. package/dist/collection/components/jump-button/jump-button.js +1 -1
  38. package/dist/collection/components/jump-card/jump-card.js +2 -2
  39. package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.js +5 -5
  40. package/dist/collection/components/jump-card-ecommerce/jump-card-ecommerce.js.map +1 -1
  41. package/dist/collection/components/jump-card-ecommerce-option/jump-card-ecommerce-option.js +1 -1
  42. package/dist/collection/components/jump-card-ecommerce-option/jump-card-ecommerce-option.stories.js +17 -0
  43. package/dist/collection/components/jump-card-ecommerce-option/jump-card-ecommerce-option.stories.js.map +1 -1
  44. package/dist/collection/components/jump-filter/jump-filter.js +3 -3
  45. package/dist/collection/components/jump-filter-checkbox/jump-filter-checkbox.js +2 -2
  46. package/dist/collection/components/jump-filtergroup/jump-filtergroup.js +3 -3
  47. package/dist/collection/components/jump-pagination/jump-pagination.js +3 -3
  48. package/dist/collection/components/jump-pagination-table/jump-pagination-table.js +3 -3
  49. package/dist/collection/components/jump-quantity/jump-quantity.js +3 -3
  50. package/dist/collection/components/jump-tab/jump-tab.js +1 -1
  51. package/dist/collection/components/jump-tab-item/jump-tab-item.js +2 -2
  52. package/dist/collection/components/jump-tab-panel/jump-tab-panel.js +1 -1
  53. package/dist/components/jump-accordion-group.d.ts +11 -0
  54. package/dist/components/jump-accordion-group.js +41 -0
  55. package/dist/components/jump-accordion-group.js.map +1 -0
  56. package/dist/components/jump-accordion.js +3 -3
  57. package/dist/components/jump-accordion.js.map +1 -1
  58. package/dist/components/jump-badge2.js +1 -1
  59. package/dist/components/jump-button2.js +1 -1
  60. package/dist/components/jump-card-ecommerce-option.js +1 -1
  61. package/dist/components/jump-card-ecommerce.js +5 -5
  62. package/dist/components/jump-card-ecommerce.js.map +1 -1
  63. package/dist/components/jump-card.js +2 -2
  64. package/dist/components/jump-filter-checkbox.js +2 -2
  65. package/dist/components/jump-filter.js +3 -3
  66. package/dist/components/jump-filtergroup.js +3 -3
  67. package/dist/components/jump-pagination-table.js +3 -3
  68. package/dist/components/jump-pagination.js +3 -3
  69. package/dist/components/jump-quantity.js +3 -3
  70. package/dist/components/jump-tab-item.js +2 -2
  71. package/dist/components/jump-tab-panel.js +1 -1
  72. package/dist/components/jump-tab.js +1 -1
  73. package/dist/esm/jump-accordion-group.entry.js +20 -0
  74. package/dist/esm/jump-accordion-group.entry.js.map +1 -0
  75. package/dist/esm/jump-accordion.entry.js +2 -2
  76. package/dist/esm/jump-accordion.entry.js.map +1 -1
  77. package/dist/esm/jump-badge.entry.js +1 -1
  78. package/dist/esm/jump-button_2.entry.js +1 -1
  79. package/dist/esm/jump-card-ecommerce-option.entry.js +1 -1
  80. package/dist/esm/jump-card-ecommerce.entry.js +5 -5
  81. package/dist/esm/jump-card-ecommerce.entry.js.map +1 -1
  82. package/dist/esm/jump-card.entry.js +2 -2
  83. package/dist/esm/jump-design-system.js +1 -1
  84. package/dist/esm/jump-filter-checkbox.entry.js +2 -2
  85. package/dist/esm/jump-filter.entry.js +3 -3
  86. package/dist/esm/jump-filtergroup.entry.js +3 -3
  87. package/dist/esm/jump-pagination-table.entry.js +3 -3
  88. package/dist/esm/jump-pagination.entry.js +3 -3
  89. package/dist/esm/jump-quantity.entry.js +3 -3
  90. package/dist/esm/jump-tab-item.entry.js +2 -2
  91. package/dist/esm/jump-tab-panel.entry.js +1 -1
  92. package/dist/esm/jump-tab.entry.js +1 -1
  93. package/dist/esm/loader.js +1 -1
  94. package/dist/jump-design-system/jump-design-system.esm.js +1 -1
  95. package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
  96. package/dist/jump-design-system/{p-7272666a.entry.js → p-0f44f465.entry.js} +2 -2
  97. package/dist/jump-design-system/p-34cd550e.entry.js +2 -0
  98. package/dist/jump-design-system/p-34cd550e.entry.js.map +1 -0
  99. package/dist/jump-design-system/{p-8eb8c598.entry.js → p-454f8ca1.entry.js} +2 -2
  100. package/dist/jump-design-system/p-454f8ca1.entry.js.map +1 -0
  101. package/dist/jump-design-system/p-4eda6db0.entry.js +2 -0
  102. package/dist/jump-design-system/{p-f0590653.entry.js → p-6872b29d.entry.js} +2 -2
  103. package/dist/jump-design-system/{p-e926995e.entry.js → p-701fa0cf.entry.js} +2 -2
  104. package/dist/jump-design-system/{p-6ad4dc92.entry.js → p-7e81b433.entry.js} +2 -2
  105. package/dist/jump-design-system/{p-95462766.entry.js → p-8e0e49fb.entry.js} +4 -4
  106. package/dist/jump-design-system/p-8e0e49fb.entry.js.map +1 -0
  107. package/dist/jump-design-system/{p-f534e22b.entry.js → p-91d68f85.entry.js} +2 -2
  108. package/dist/jump-design-system/p-93c35d1f.entry.js +2 -0
  109. package/dist/jump-design-system/{p-678bd41e.entry.js → p-99739ce5.entry.js} +2 -2
  110. package/dist/jump-design-system/{p-13950869.entry.js → p-aedff4de.entry.js} +2 -2
  111. package/dist/jump-design-system/{p-acd1dac1.entry.js → p-b72b9130.entry.js} +2 -2
  112. package/dist/jump-design-system/{p-c964c3d9.entry.js → p-d1553b58.entry.js} +2 -2
  113. package/dist/jump-design-system/{p-4d0c4007.entry.js → p-d1586b59.entry.js} +2 -2
  114. package/dist/jump-design-system/{p-6309cc45.entry.js → p-fa75b346.entry.js} +2 -2
  115. package/dist/jump-design-system-elements.json +32 -1
  116. package/dist/types/components/jump-accordion/jump-accordion.d.ts +1 -1
  117. package/dist/types/components/jump-accordion/jump-accordion.stories.d.ts +1 -1
  118. package/dist/types/components/jump-accordion-group/jump-accordion-group.d.ts +5 -0
  119. package/dist/types/components/jump-accordion-group/jump-accordion-group.stories.d.ts +22 -0
  120. package/dist/types/components/jump-card-ecommerce/jump-card-ecommerce.d.ts +1 -1
  121. package/dist/types/components/jump-card-ecommerce-option/jump-card-ecommerce-option.stories.d.ts +1 -0
  122. package/dist/types/components.d.ts +19 -2
  123. package/package.json +4 -1
  124. package/readme.md +1 -1
  125. package/dist/jump-design-system/p-570e63e4.entry.js +0 -2
  126. package/dist/jump-design-system/p-8eb8c598.entry.js.map +0 -1
  127. package/dist/jump-design-system/p-95462766.entry.js.map +0 -1
  128. package/dist/jump-design-system/p-f281e150.entry.js +0 -2
  129. /package/dist/jump-design-system/{p-7272666a.entry.js.map → p-0f44f465.entry.js.map} +0 -0
  130. /package/dist/jump-design-system/{p-570e63e4.entry.js.map → p-4eda6db0.entry.js.map} +0 -0
  131. /package/dist/jump-design-system/{p-f0590653.entry.js.map → p-6872b29d.entry.js.map} +0 -0
  132. /package/dist/jump-design-system/{p-e926995e.entry.js.map → p-701fa0cf.entry.js.map} +0 -0
  133. /package/dist/jump-design-system/{p-6ad4dc92.entry.js.map → p-7e81b433.entry.js.map} +0 -0
  134. /package/dist/jump-design-system/{p-f534e22b.entry.js.map → p-91d68f85.entry.js.map} +0 -0
  135. /package/dist/jump-design-system/{p-f281e150.entry.js.map → p-93c35d1f.entry.js.map} +0 -0
  136. /package/dist/jump-design-system/{p-678bd41e.entry.js.map → p-99739ce5.entry.js.map} +0 -0
  137. /package/dist/jump-design-system/{p-13950869.entry.js.map → p-aedff4de.entry.js.map} +0 -0
  138. /package/dist/jump-design-system/{p-acd1dac1.entry.js.map → p-b72b9130.entry.js.map} +0 -0
  139. /package/dist/jump-design-system/{p-c964c3d9.entry.js.map → p-d1553b58.entry.js.map} +0 -0
  140. /package/dist/jump-design-system/{p-4d0c4007.entry.js.map → p-d1586b59.entry.js.map} +0 -0
  141. /package/dist/jump-design-system/{p-6309cc45.entry.js.map → p-fa75b346.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"jump-card-ecommerce.js","sourceRoot":"","sources":["../../../src/components/jump-card-ecommerce/jump-card-ecommerce.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,OAAO,EAAE,KAAK,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AAerG,MAAM,OAAO,iBAAiB;;8BAQM,KAAK;6BAGN,KAAK;;wBAOmB,KAAK;2BAG/B,KAAK;kCAGE,KAAK;;;;;;;;;gCA2BR,EAAE;;;;;;wBAkBV,GAAG;0BAG6B,KAAK;;;;gCAY5B,KAAK;sBAGf,KAAK;2BAKA,KAAK;8BAEF,KAAK;0BAEJ,EAAE;;;IAoBrC,SAAS,CAAC,CAAC;QACT,IAAI,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,qDAAqD;QAC3E,IAAI,CAAC,UAAU,GAAG,CAAC,GAAG,IAAI,CAAC,UAAU,oBAAO,KAAK,EAAG,CAAC;IACvD,CAAC;IAED,mBAAmB,CAAC,SAAS;QAC3B,IAAI,CAAC,iBAAiB,GAAG,SAAS,CAAC;QACnC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,0CAA0C;IACpF,CAAC;IAGD,iEAAiE;IAEjE,iBAAiB,KAAI,CAAC;IAEtB,gBAAgB;QACd,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QAE5E,IAAG,IAAI,CAAC,cAAc,EAAC,CAAC;YACtB,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,aAAa,EAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACvF,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,CAAC,gBAAgB,EAAE;4BACvF,iBAAW,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,GAAa;4BACvH,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,sBAAsB,CACrD,CAAC,CAAC,CAAC,EAAE,CAGjB,CAEF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["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 taxonomy: 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 /** Indicate if the whislist will be slotted*/\n @Prop() hasSlotForFavorite: boolean = false;\n\n /** Indicates if the favorite button is render as an anchor, and define the url*/\n @Prop() favoriteHref: string;\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 /** Indicate if the card is Mini Card*/\n @Prop() isMini: 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 @State() selectedVariation: 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.selectedVariation = 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 variation: this.selectedVariation ?? 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 && !this.isMini ? 'hasBackground' : '';\n const iconOnlyClass = this.onlyIconButton && !this.isMini ? 'iconOnly' : '';\n const justifyClass = this.outOfStock ? 'justify-between' : '';\n const hasImageOnHover = this.hoverImg ? 'has-hover-image' : '';\n const miniCard = this.isMini ? 'is-mini' : '';\n\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.isMini && this.badge ? <jump-badge class={`${backgroundClass} ${iconOnlyClass}`} variant=\"secondary\" dimension=\"small\" label={this.badge}></jump-badge> : ''}\n \n { !this.isMini && this.hasFavorite ? \n this.favoriteHref != '' ? \n <jump-button href={this.favoriteHref} 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 :\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 : \n this.hasSlotForFavorite ? <div class=\"Favorite\"><slot name=\"favorite\"></slot> </div> : null\n }\n\n <div class={`Media ${iconOnlyClass} ${backgroundClass} ${miniCard}`}>\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 { !this.isMini ? \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 : null}\n { !this.isMini && 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} ${miniCard}`}>\n <div class={`Body ${backgroundClass} ${iconOnlyClass} ${miniCard}`}>\n <div>\n <div class=\"Info\">\n <div class=\"Product\">{this.productName}</div>\n { !this.isMini && this.subtitle ? <div class=\"Subtitle\">{this.subtitle}</div> : null}\n </div>\n\n {this.price ?\n <div class={`Price ${miniCard}`}>\n {!this.isMini && this.salePrice && this.salePrice < this.price ?\n <div class=\"Price__Discount\"> {calculateDiscount(this.price, this.salePrice)}% </div>\n : null}\n\n {!this.isMini ?\n <div class={`Price__Regular ${this.salePrice && this.salePrice < this.price ? 'sale' : ''}`}>\n {this.currency}{this.price}\n </div> \n : \n <div class={`Price__Regular`}>\n {this.currency}{this.salePrice}\n </div> \n }\n\n {!this.isMini && this.salePrice && this.salePrice < this.price ?\n <div class=\"Price__Sale\">{this.currency}{this.salePrice}</div>\n : null}\n </div>\n : null}\n </div>\n\n {!this.isMini ? \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 : null}\n\n {!this.isMini ? <slot name=\"quantity\"></slot> : null}\n </div>\n\n <div class={`Footer ${justifyClass} ${backgroundClass} ${iconOnlyClass} ${miniCard}`}>\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}\n"]}
1
+ {"version":3,"file":"jump-card-ecommerce.js","sourceRoot":"","sources":["../../../src/components/jump-card-ecommerce/jump-card-ecommerce.tsx"],"names":[],"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eAAe,CAAC,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,GAAa;4BACvH,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,sBAAsB,CACrD,CAAC,CAAC,CAAC,EAAE,CAGjB,CAEF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["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 taxonomy: 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 /** Indicate if the whislist will be slotted*/\n @Prop() hasSlotForFavorite: boolean = false;\n\n /** Indicates if the favorite button is render as an anchor, and define the url*/\n @Prop() favoriteHref: string;\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 /** Indicate if the card is Mini Card*/\n @Prop() isMini: 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 @State() selectedVariation: 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() {\n let currentValue = this.variationSelectEl.value;\n let variation = this.variations.find(\n (variation) => variation.code == currentValue,\n );\n this.selectedVariation = 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 variation: this.selectedVariation ?? 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 && !this.isMini ? 'hasBackground' : '';\n const iconOnlyClass = this.onlyIconButton && !this.isMini ? 'iconOnly' : '';\n const justifyClass = this.outOfStock ? 'justify-between' : '';\n const hasImageOnHover = this.hoverImg ? 'has-hover-image' : '';\n const miniCard = this.isMini ? 'is-mini' : '';\n\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.isMini && this.badge ? <jump-badge class={`${backgroundClass} ${iconOnlyClass}`} variant=\"secondary\" dimension=\"small\" label={this.badge}></jump-badge> : ''}\n\n { !this.isMini && this.hasFavorite ?\n this.favoriteHref != '' ?\n <jump-button href={this.favoriteHref} 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 :\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 :\n this.hasSlotForFavorite ? <div class=\"Favorite\"><slot name=\"favorite\"></slot> </div> : null\n }\n\n <div class={`Media ${iconOnlyClass} ${backgroundClass} ${miniCard}`}>\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 { !this.isMini ?\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 : null}\n { !this.isMini && 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} ${miniCard}`}>\n <div class={`Body ${backgroundClass} ${iconOnlyClass} ${miniCard}`}>\n <div>\n <div class=\"Info\">\n <div class=\"Product\">{this.productName}</div>\n { !this.isMini && this.subtitle ? <div class=\"Subtitle\">{this.subtitle}</div> : null}\n </div>\n\n {this.price ?\n <div class={`Price ${miniCard}`}>\n {!this.isMini && this.salePrice && this.salePrice < this.price ?\n <div class=\"Price__Discount\"> {calculateDiscount(this.price, this.salePrice)}% </div>\n : null}\n\n {!this.isMini ?\n <div class={`Price__Regular ${this.salePrice && this.salePrice < this.price ? 'sale' : ''}`}>\n {this.currency}{this.price}\n </div>\n :\n <div class={`Price__Regular`}>\n {this.currency}{ this.salePrice && this.salePrice < this.price ? this.salePrice : this.price}\n </div>\n }\n\n {!this.isMini && this.salePrice && this.salePrice < this.price ?\n <div class=\"Price__Sale\">{this.currency}{this.salePrice}</div>\n : null}\n </div>\n : null}\n </div>\n\n {!this.isMini ?\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\n this.onVariationSelected();\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 : null}\n\n {!this.isMini ? <slot name=\"quantity\"></slot> : null}\n </div>\n\n <div class={`Footer ${justifyClass} ${backgroundClass} ${iconOnlyClass} ${miniCard}`}>\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}\n"]}
@@ -17,7 +17,7 @@ export class CardEcommerceOption {
17
17
  });
18
18
  }
19
19
  render() {
20
- return h(Host, { key: '01f745fcf8e2c2c42f7bee83066a1b64617d3582' });
20
+ return h(Host, { key: '513b51e00e0cadeb736d677357535665cfd5b8f6' });
21
21
  }
22
22
  static get is() { return "jump-card-ecommerce-option"; }
23
23
  static get encapsulation() { return "shadow"; }
@@ -8,4 +8,21 @@ const Template = (args) => {
8
8
  return `<jump-card-ecommerce-option ${attributes}>Sono una opzione</jump-card-ecommerce-option>`;
9
9
  };
10
10
  export const Example = Template.bind({});
11
+ const TemplateWithCardEcommerceOption = () => {
12
+ return `
13
+ <script>
14
+ window.addEventListener('jump-variation-selected', (e) => {
15
+ console.log('jump-variation-selected', e.detail);
16
+ });
17
+ </script>
18
+ <jump-card-ecommerce class="JumpCardEcommerce hydrated" badge="" link="https://robinsonb2b.test/prodotto/home/top-quality/prodotti-green-ecologici-biologici-per-cani-e-gatti/cibo-da-filiere-ecosostenibili-per-cani/proteine-di-insetto-per-cani/canagan-insect-protein-all-breeds-per-cani/" img="https://media.robinsonpetshop.it/robinsonb2b/uploads/2023/04/25025-Canagan-Insect-Protein-All-Breeds-per-Cani.jpg" img-alt="Canagan Insect Protein All Breeds per Cani" notification-url="https://robinsonb2b.test/carrello/" notification-text="Added to cart" product-name="Canagan" subtitle="Canagan Insect Protein All Breeds per Cani" product-id="84122" price="25.33" sale-price="15.198" currency="€" out-of-stock-text="Expired" addto-cart-text="Add to cart" waiting-list-text="Notify availability" quantity="">
19
+
20
+ <jump-quantity slot="quantity" min="1" max="" step="1" label="Quantity" show-buttons="" variant="horizontal" value="1" data-variant="horizontal" data-hasbuttons="" class="hydrated"></jump-quantity>
21
+
22
+ <jump-card-ecommerce-option code="5kg" label="5 Kg" taxonomy="attribute_pa_pesoconfezione" class="hydrated"></jump-card-ecommerce-option>
23
+ <jump-card-ecommerce-option code="10kg" label="10 Kg" taxonomy="attribute_pa_pesoconfezione" class="hydrated"></jump-card-ecommerce-option>
24
+ <jump-card-ecommerce-option code="15kg" label="1.5 Kg" taxonomy="attribute_pa_pesoconfezione" class="hydrated"></jump-card-ecommerce-option>
25
+ </jump-card-ecommerce>`;
26
+ };
27
+ export const ExampleWithCardEcommerceOption = TemplateWithCardEcommerceOption.bind({});
11
28
  //# sourceMappingURL=jump-card-ecommerce-option.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jump-card-ecommerce-option.stories.js","sourceRoot":"","sources":["../../../src/components/jump-card-ecommerce-option/jump-card-ecommerce-option.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAC,MAAM,mBAAmB,CAAC;AAE9D,eAAe;IACb,KAAK,EAAE,oDAAoD;IAC3D,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACxB,MAAM,UAAU,GAAG,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACpD,OAAO,+BAA+B,UAAU,gDAAgD,CAAA;AAClG,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { generateAttributesFromArgs} from '../../utils/utils';\n\nexport default {\n title: 'Components/CardEcommerceOption/CardEcommerceOption',\n tags: ['autodocs'],\n};\n\nconst Template = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-card-ecommerce-option ${attributes}>Sono una opzione</jump-card-ecommerce-option>`\n}\n\nexport const Example = Template.bind({});\n"]}
1
+ {"version":3,"file":"jump-card-ecommerce-option.stories.js","sourceRoot":"","sources":["../../../src/components/jump-card-ecommerce-option/jump-card-ecommerce-option.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAC,MAAM,mBAAmB,CAAC;AAE9D,eAAe;IACb,KAAK,EAAE,oDAAoD;IAC3D,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACxB,MAAM,UAAU,GAAG,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACpD,OAAO,+BAA+B,UAAU,gDAAgD,CAAA;AAClG,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAEzC,MAAM,+BAA+B,GAAG,GAAG,EAAE;IAC3C,OAAO;;;;;;;;;;;;;yBAagB,CAAA;AACzB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAG,+BAA+B,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { generateAttributesFromArgs} from '../../utils/utils';\n\nexport default {\n title: 'Components/CardEcommerceOption/CardEcommerceOption',\n tags: ['autodocs'],\n};\n\nconst Template = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return `<jump-card-ecommerce-option ${attributes}>Sono una opzione</jump-card-ecommerce-option>`\n}\n\nexport const Example = Template.bind({});\n\nconst TemplateWithCardEcommerceOption = () => {\n return `\n <script>\n window.addEventListener('jump-variation-selected', (e) => {\n console.log('jump-variation-selected', e.detail);\n });\n</script>\n<jump-card-ecommerce class=\"JumpCardEcommerce hydrated\" badge=\"\" link=\"https://robinsonb2b.test/prodotto/home/top-quality/prodotti-green-ecologici-biologici-per-cani-e-gatti/cibo-da-filiere-ecosostenibili-per-cani/proteine-di-insetto-per-cani/canagan-insect-protein-all-breeds-per-cani/\" img=\"https://media.robinsonpetshop.it/robinsonb2b/uploads/2023/04/25025-Canagan-Insect-Protein-All-Breeds-per-Cani.jpg\" img-alt=\"Canagan Insect Protein All Breeds per Cani\" notification-url=\"https://robinsonb2b.test/carrello/\" notification-text=\"Added to cart\" product-name=\"Canagan\" subtitle=\"Canagan Insect Protein All Breeds per Cani\" product-id=\"84122\" price=\"25.33\" sale-price=\"15.198\" currency=\"€\" out-of-stock-text=\"Expired\" addto-cart-text=\"Add to cart\" waiting-list-text=\"Notify availability\" quantity=\"\">\n\n <jump-quantity slot=\"quantity\" min=\"1\" max=\"\" step=\"1\" label=\"Quantity\" show-buttons=\"\" variant=\"horizontal\" value=\"1\" data-variant=\"horizontal\" data-hasbuttons=\"\" class=\"hydrated\"></jump-quantity>\n\n <jump-card-ecommerce-option code=\"5kg\" label=\"5 Kg\" taxonomy=\"attribute_pa_pesoconfezione\" class=\"hydrated\"></jump-card-ecommerce-option>\n <jump-card-ecommerce-option code=\"10kg\" label=\"10 Kg\" taxonomy=\"attribute_pa_pesoconfezione\" class=\"hydrated\"></jump-card-ecommerce-option>\n <jump-card-ecommerce-option code=\"15kg\" label=\"1.5 Kg\" taxonomy=\"attribute_pa_pesoconfezione\" class=\"hydrated\"></jump-card-ecommerce-option>\n </jump-card-ecommerce>`\n}\n\nexport const ExampleWithCardEcommerceOption = TemplateWithCardEcommerceOption.bind({});\n"]}
@@ -39,9 +39,9 @@ export class JumpFilter {
39
39
  }
40
40
  }
41
41
  render() {
42
- return (h(Host, { key: '1a69c784c5b6db624ee6429ba62dd9d39af4464d', mobileFilters: this.showMobileFilters }, this.isMobile && h("jump-button", { key: 'd7d685bf59530898edbf96808d6698ed9bc8cbd1', ref: (el) => { this.mobileToggle = el; }, buttonId: this.filterButtonIcon, variant: 'primary', outline: true }, h("slot", { key: '995c601cf706391e6a07697c2df29a47294d5979', name: "prefix" }, this.filterButtonIcon &&
43
- h("jump-icon", { key: '3a9272ac7f8c7a90939764cec46ef2747d2c0c37', library: "fa", category: "regular", name: this.filterButtonIcon, size: "small" }), this.filterButtonLabel), h("slot", { key: 'd5f4b65a97aaf640c4df6425194851f32897c553', name: "suffix" }, this.activeFilters > 0 ? `(${this.activeFilters})` : '0')), h("div", { key: 'aaac47cc408e75769c6cab47a8754c7cb1087e5b', ref: (el) => { this.filtersDrawer = el; }, class: "filtersDrawer", "data-variant": this.direction }, !this.isMobile &&
44
- h("div", { key: 'ebb54761b44ff83c26e3f6982f305ecd4b2e10af', class: 'filtersDrawer__header' }, h("jump-icon", { key: 'efd7fa78b5c7acf918115bd04461359468f7d83f', class: "small", name: this.filterButtonIcon }), h("h3", { key: '4eb1630d8ea915ee02a8d3a565c44a770ee6faad' }, this.filterHeading)), h("slot", { key: 'e77819fc97c8f6c675cbf750a7675a2073d57ed3' }))));
42
+ return (h(Host, { key: '3049b1240794053d3b8a447472ea7cd12e582cee', mobileFilters: this.showMobileFilters }, this.isMobile && h("jump-button", { key: '9afa1f491f6e30cf5c3cf04ec090b154b9899550', ref: (el) => { this.mobileToggle = el; }, buttonId: this.filterButtonIcon, variant: 'primary', outline: true }, h("slot", { key: '5aa6d8bb6c55282b13800981714aceaa56320c53', name: "prefix" }, this.filterButtonIcon &&
43
+ h("jump-icon", { key: 'f21fd5794db5e29d8c1b19c8cb8bfe96c98fdac2', library: "fa", category: "regular", name: this.filterButtonIcon, size: "small" }), this.filterButtonLabel), h("slot", { key: '4a6cf7c5c051e20c1b0d44ab31fe69de74cfc830', name: "suffix" }, this.activeFilters > 0 ? `(${this.activeFilters})` : '0')), h("div", { key: '1dc1ce448843b14b5aebc6c71cc2bdaf2e307089', ref: (el) => { this.filtersDrawer = el; }, class: "filtersDrawer", "data-variant": this.direction }, !this.isMobile &&
44
+ h("div", { key: '9295a1be0a2d16626378ff7f34fff88d5bbd64e9', class: 'filtersDrawer__header' }, h("jump-icon", { key: '00bbce686428814df35a8b805f9af31494fc1905', class: "small", name: this.filterButtonIcon }), h("h3", { key: '293a54757203dbc7d956e54511abfb795f641300' }, this.filterHeading)), h("slot", { key: 'cdc55812ea249e64a2cfc440ded599c1cb792aef' }))));
45
45
  }
46
46
  static get is() { return "jump-filter"; }
47
47
  static get encapsulation() { return "shadow"; }
@@ -29,8 +29,8 @@ export class JumpFilterCheckbox {
29
29
  return this.el.checked;
30
30
  }
31
31
  render() {
32
- return (h(Host, { key: '758a9ecb3ef2c18e2bbc49b08d8ff61a280343b1', ref: (host) => this.host = host }, this.value && this.label &&
33
- h("sl-checkbox", { key: 'cb755e8fb4863967583ec43b5e50df7cc9f22f3d', value: this.value, ref: (el) => this.el = el, checked: this.checked }, this.label), this.count && h("span", { key: 'd66bd4ae9299f8987fda43b047c1b1d75c79e822', class: "count" }, this.count)));
32
+ return (h(Host, { key: '74dd2712e19e9d67905d219acf1cf18e8f75d770', ref: (host) => this.host = host }, this.value && this.label &&
33
+ h("sl-checkbox", { key: '72abd14bff4427b060ffd8daad69e8bc7146dc59', value: this.value, ref: (el) => this.el = el, checked: this.checked }, this.label), this.count && h("span", { key: 'e7d7ca80d82c9ad1d1bf58ca2075a6a565b38350', class: "count" }, this.count)));
34
34
  }
35
35
  static get is() { return "jump-filter-checkbox"; }
36
36
  static get encapsulation() { return "shadow"; }
@@ -119,10 +119,10 @@ export class JumpFiltergroup {
119
119
  //this.toggleHiddenItems();
120
120
  }
121
121
  render() {
122
- return (h(Host, { key: 'ce3016053c9b873e638053b21f57531e0b67bbe9' }, this.heading && h("h5", { key: '37ba791d0c3e7ba91bf9832dddbbc31c2778146d' }, this.heading), h("div", { key: '67cbb514b3633bd3804b930414f42b9f3281f700', class: "filterGroup" }, h("slot", { key: 'fdf5b012a9da04de96fab8f91ea856f42ac8c62b', ref: (el) => (this.slotItemsWrapper = el) })), this.inputs.length > this.maxElements &&
123
- h("jump-button", { key: '25c97a595a2d210938483a673e511020f77435e1', variant: "primary", size: "small", text: true, name: this.showMore ? this.otherLabel : this.lessLabel, "aria-label": this.showMore ? this.otherLabel : this.lessLabel, ref: (showMoreBtn) => {
122
+ return (h(Host, { key: '045985358fca061c90927a20b4c151cfd2fa9f99' }, this.heading && h("h5", { key: '8555c17428efebcc4fe267556d058f344821125c' }, this.heading), h("div", { key: '7053c6a0eb8df8242e7eec49c1eb08c81354b1d6', class: "filterGroup" }, h("slot", { key: '22bef57eb5de8599d85950c8c54fd2d4b33380a1', ref: (el) => (this.slotItemsWrapper = el) })), this.inputs.length > this.maxElements &&
123
+ h("jump-button", { key: '59007765335212a6c5377dd74ed0111d8d19e290', variant: "primary", size: "small", text: true, name: this.showMore ? this.otherLabel : this.lessLabel, "aria-label": this.showMore ? this.otherLabel : this.lessLabel, ref: (showMoreBtn) => {
124
124
  this.showMoreBtn = showMoreBtn;
125
- }, onClick: () => this.handleShowMore() }, this.showMore ? this.otherLabel : this.lessLabel, h("jump-icon", { key: '962d1cc09d45e12a6a998d8313ce56b337c599f4', slot: "suffix", name: this.showMore ? 'chevron-down' : 'chevron-up' }))));
125
+ }, onClick: () => this.handleShowMore() }, this.showMore ? this.otherLabel : this.lessLabel, h("jump-icon", { key: 'cdb2ebb1458763cfd456eaf223213802a449ba96', slot: "suffix", name: this.showMore ? 'chevron-down' : 'chevron-up' }))));
126
126
  }
127
127
  static get is() { return "jump-filtergroup"; }
128
128
  static get encapsulation() { return "shadow"; }
@@ -22,7 +22,7 @@ export class JumpPagination {
22
22
  }
23
23
  /* --------------------- RENDER ------------------------------- */
24
24
  render() {
25
- return (h(Host, { key: '65046c855bd1191502ecbe892f623b4f10d36f26', class: "JumpPagination" }, h("div", { key: '028b565a05e0fa852245e9899bb5c6cd98263cce', class: "JumpPagination__Wrapper" }, h("div", { key: 'e6c2d1402547dd8468e28764ba7e008a1624abb4', class: "indicators" }, h("div", { key: '53f9585d4cf3f99b37e25f84626553d79876d569', class: "elements" }, h("span", { key: '734c0828eeca8698a190c81d1a50899e4fcd0989' }, h("span", { key: 'd777032abe327a870b87194ddc7361601051ff6c' }, this.current), " ", this.pagLabel, " ", h("span", { key: '68433e5f31462e39561bbcc2fbff17ae4ebaa8a7' }, this.last))), h("div", { key: '36dd0dbd2f91d97e089cfe08664b70815d7d825a', class: "arrow" }, this.showFirstAndLast &&
25
+ return (h(Host, { key: '6dfabf0d657b923bfe827907e2d607c4bd593115', class: "JumpPagination" }, h("div", { key: 'c650c3684c5fa6c3c81e4e26d8b5c0d2711f1f4a', class: "JumpPagination__Wrapper" }, h("div", { key: 'a5b900b96f1688d0ee7ee127c3b76b18c8e991c5', class: "indicators" }, h("div", { key: '6c2ab60611f5afdee28ac75298df6e5586fa6517', class: "elements" }, h("span", { key: 'd30b3989ea3a2ab86b2aa7e776df3c314b03a3d1' }, h("span", { key: '6ede11163b85988f3b7952c0bc7809e6f0020ac5' }, this.current), " ", this.pagLabel, " ", h("span", { key: '1a3757f38cf9b676e65e5d0b1924255fc2056bb0' }, this.last))), h("div", { key: 'f1f8bf078f214faca027767f05b933dcc98e2df4', class: "arrow" }, this.showFirstAndLast &&
26
26
  // <button
27
27
  // onClick={() => {this.current = 1} }
28
28
  // disabled={(this.current === 1) ? true : false}>
@@ -30,14 +30,14 @@ export class JumpPagination {
30
30
  // disabled={(this.current === 1) ? true : false}
31
31
  // ></jump-icon>
32
32
  // </button>
33
- h("jump-button", { key: 'a5d7ebcae749f265b8efe90fc04ad18dca4bdae2', onClick: () => { this.current = 1; }, variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: (this.current === 1) ? true : false }, " ", h("jump-icon", { key: '7cdf207787fe88998e0850ec85f64b917b170c74', slot: "suffix", name: "chevrons-left" }), " "), h("jump-button", { key: '297ff533f48da04c0da5a7ab33342c5913768fcb', onClick: () => { this.current--; }, variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: (this.current === 1) ? true : false }, " ", h("jump-icon", { key: '13167c3b923ec229ff6112d246deaf7b59c3fbc7', slot: "suffix", name: "chevron-left" }), " "), h("jump-button", { key: 'b06cbb03ebc2c8fc4123051fd03177a80bc5a5ae', onClick: () => { this.current++; }, variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: (this.current === this.last) ? true : false }, " ", h("jump-icon", { key: 'be3783abb94b0e7b7fc7cbc3542923ecb22e0211', slot: "suffix", name: "chevron-right" }), " "), this.showFirstAndLast &&
33
+ h("jump-button", { key: '8dfd1d3851b8cd28c14ae55950b01e06b9647cce', onClick: () => { this.current = 1; }, variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: (this.current === 1) ? true : false }, " ", h("jump-icon", { key: 'f45e7ec9bd1186c7d4689f2585ede2e320443a7b', slot: "suffix", name: "chevrons-left" }), " "), h("jump-button", { key: '684984168c728a9c687ae9c48002259f939c00e6', onClick: () => { this.current--; }, variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: (this.current === 1) ? true : false }, " ", h("jump-icon", { key: 'dff0cc8d6f49ad1cb38cf7ea6041531a1d2e8edb', slot: "suffix", name: "chevron-left" }), " "), h("jump-button", { key: '432d2378ce09d2848cfd4a2e2bd279a8104aed79', onClick: () => { this.current++; }, variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: (this.current === this.last) ? true : false }, " ", h("jump-icon", { key: 'b3749b007c9957aaa4385106460494dd8e628bb9', slot: "suffix", name: "chevron-right" }), " "), this.showFirstAndLast &&
34
34
  // <button
35
35
  // onClick={() => {this.current = this.last}}
36
36
  // disabled={(this.current === this.last) ? true : false}
37
37
  // >
38
38
  // <jump-icon library="fa" category="regular" name="chevrons-right" size="small" slot="prefix"></jump-icon>
39
39
  // </button>
40
- h("jump-button", { key: 'a2c99a817aee2a4d3382e23952f30c7248a08b58', onClick: () => { this.current = this.last; }, variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: (this.current === this.last) ? true : false }, " ", h("jump-icon", { key: '6233f7f08663f11f680b23d376a168339c3b48ec', slot: "suffix", name: "chevrons-right" }), " "))))));
40
+ h("jump-button", { key: '1139a6c84e1867208f402615e3a9f758ff56a4a4', onClick: () => { this.current = this.last; }, variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: (this.current === this.last) ? true : false }, " ", h("jump-icon", { key: '01385e77b0c8b039af414cb6ce8c7fa179f76b96', slot: "suffix", name: "chevrons-right" }), " "))))));
41
41
  }
42
42
  static get is() { return "jump-pagination"; }
43
43
  static get encapsulation() { return "shadow"; }
@@ -70,9 +70,9 @@ export class JumpPaginationTable {
70
70
  /* --------------------- RENDER ------------------------------- */
71
71
  render() {
72
72
  var _a;
73
- return (h(Host, { key: '9b2d529a1a4dafefe9107bedf7704d73d75b8fcb', class: "JumpPaginationTable" }, h("div", { key: 'd09e5e9b4b368332b7f92f86be272c4a12d4ffec', class: "JumpPaginationTable__Wrapper" }, h("div", { key: 'e3af23dcf805cc6f529517c91f3f2fabbc543b35', class: "elementsPerPage" }, h("label", { key: 'c7558061326b23be95e391657224792d590bb918', htmlFor: "elements" }, (_a = this.labelElementsPerPage) !== null && _a !== void 0 ? _a : 'Elements per page'), h("select", { key: '96f73a7f3f3aedd6d059b2e0dd8ce9133ab6654e', name: "elements", id: "elements", onChange: (e) => this.setElPerPage(e) }, this.elementsRangesArray.map((range) => (h("option", { value: range, selected: (this.elPerPage == range) && true }, range))))), h("div", { key: '9160bf35ac48db7d2de9644da5f590b0bf6b0a3d', class: "indicators" }, h("div", { key: '09a475d1ac56cdfeb6135fe2b97f5758490981c3', class: "elements" }, h("span", { key: '3f11d9667843fb263353f2cdaa15fcfe7a6949dd' }, h("span", { key: '93024d6f5a7d7c44cc52a8c74dda2a62de0760e0' }, this.first), " - ", h("span", { key: '86324150394c9b2703919e05414d39e189738c9c' }, this.last), " ", this.pagLabel, " ", h("span", { key: '263569874c6a61abc9b4a854123496a4a2c3e6b8' }, this.total))), h("div", { key: '33730450809d5a29e0b878991c5dc33b9b15e03f', class: "arrow" }, this.showFirstAndLast &&
74
- h("jump-button", { key: 'a56e565e29993942be493299fdcf7e52ca771f26', onClick: () => this.doChangePage('first'), variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: this.first === 1 }, " ", h("jump-icon", { key: '996ac7867f6216d82f19367c5ffa68f2e76a62d5', slot: "suffix", name: "chevrons-left" }), " "), h("jump-button", { key: '981929a37256f2b5dec3a7cee990bb48b49a4cc4', onClick: () => this.doChangePage('previous'), variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: this.first === 1 }, " ", h("jump-icon", { key: '2b52a244117ec4b788ca0c09c6e5d43cdb61ef2d', slot: "suffix", name: "chevron-left" }), " "), h("jump-button", { key: '1150e0c8b53c344d3217224873b2303257070e16', onClick: () => this.doChangePage('next'), variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: this.last === this.total }, " ", h("jump-icon", { key: '7877f5b820eee313b898c1f60d81643217a84b62', slot: "suffix", name: "chevron-right" }), " "), this.showFirstAndLast &&
75
- h("jump-button", { key: '2a28e054e8fb46b256f5d6ea3d35a68e1f510458', onClick: () => this.doChangePage('last'), variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: this.last === this.total }, " ", h("jump-icon", { key: '913d1c6baaed22a5e746322866dc17b409c46cde', slot: "suffix", name: "chevrons-right" }), " "))))));
73
+ return (h(Host, { key: '05cc7342c23f7addfc29dcd2e2ce15ee979d5978', class: "JumpPaginationTable" }, h("div", { key: 'cfa4b3f89e06dfe13ec965ac40ce031ed1871763', class: "JumpPaginationTable__Wrapper" }, h("div", { key: '4f876ccf87d40b9e9243416f58af9b15a2feba2e', class: "elementsPerPage" }, h("label", { key: '9a3cce63a825cb410445f66679080ebc7f9b188b', htmlFor: "elements" }, (_a = this.labelElementsPerPage) !== null && _a !== void 0 ? _a : 'Elements per page'), h("select", { key: '5bca39ee7fd8d301a23888ad19e8cb97155cdd26', name: "elements", id: "elements", onChange: (e) => this.setElPerPage(e) }, this.elementsRangesArray.map((range) => (h("option", { value: range, selected: (this.elPerPage == range) && true }, range))))), h("div", { key: 'be7da51c23244f749cf1422898f8cbc950fec886', class: "indicators" }, h("div", { key: '2ea6d1cb27c01757182941cb7079aa27c23db88f', class: "elements" }, h("span", { key: '7dd6136cbb0cbeec9c0bd7da1cfd9052777ffb8c' }, h("span", { key: '75955627db16a0346816ff3d19da8a733e35278e' }, this.first), " - ", h("span", { key: 'df317f7c7aac18421c66a79201a5775f59baba10' }, this.last), " ", this.pagLabel, " ", h("span", { key: '5502d41a0e0fa0318da443fd2989668eeaae182d' }, this.total))), h("div", { key: 'da0e8a247346c37c0835210e3e94ff96c058be2a', class: "arrow" }, this.showFirstAndLast &&
74
+ h("jump-button", { key: '909ad386104dfa8514fc7da5c1257696a90af4c1', onClick: () => this.doChangePage('first'), variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: this.first === 1 }, " ", h("jump-icon", { key: '3b3fdef996e042bdc33f88b47f861ee4ecc413c1', slot: "suffix", name: "chevrons-left" }), " "), h("jump-button", { key: 'ac09f89f7cfa0a409538b1e02323a33b07badb59', onClick: () => this.doChangePage('previous'), variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: this.first === 1 }, " ", h("jump-icon", { key: '7d0b19c2767c667b34d01a180f0efd204ccba3b7', slot: "suffix", name: "chevron-left" }), " "), h("jump-button", { key: 'd3517acb7e443ba5f2acaf37e577ce45e669e517', onClick: () => this.doChangePage('next'), variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: this.last === this.total }, " ", h("jump-icon", { key: '31910f4c14100cd7b77b5252c0f3efed98b23e9d', slot: "suffix", name: "chevron-right" }), " "), this.showFirstAndLast &&
75
+ h("jump-button", { key: 'dbb858d2a2c8501b1698af3627aea4d2643f2d48', onClick: () => this.doChangePage('last'), variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: this.last === this.total }, " ", h("jump-icon", { key: '4befdc4e4a8735cc970faeb4ff8d50e718ad0907', slot: "suffix", name: "chevrons-right" }), " "))))));
76
76
  }
77
77
  static get is() { return "jump-pagination-table"; }
78
78
  static get originalStyleUrls() {
@@ -44,11 +44,11 @@ export class JumpQuantity {
44
44
  }
45
45
  }
46
46
  render() {
47
- return (h(Host, { key: 'e6811567495ec8f0f16869fe2b212dab943a4270', value: this.value, "data-variant": this.variant, "data-hasbuttons": this.showButtons }, this.label && h("label", { key: 'dd4d955b9a235c21332047bc095c82a1d094c88a' }, this.label), h("div", { key: 'aef877055f40d01b7d10380ca6ed31e43361cf48', class: `jump-quantity__InnerWrapper` }, this.showButtons &&
48
- h("jump-button", { key: '9475c6106e9b671e43ccf152b4ee2cb7ff08792a', onClick: () => this.value = this.value - this.step, disabled: this.value <= this.min, variant: 'neutral', size: 'custom' }, h("jump-icon", { key: '5f8035d8f1247efb13b5cc10740ed371d2b6a692', library: "lucide", name: "minus", size: "small" })), h("input", { key: '980ab6a976445d76346b3819d0656bbb38072f31', ref: (el) => {
47
+ return (h(Host, { key: 'ddbdb7054f022710743a0e1be66e1483764877aa', value: this.value, "data-variant": this.variant, "data-hasbuttons": this.showButtons }, this.label && h("label", { key: '81427af22327a3942b26cd9bc191659ec94e4442' }, this.label), h("div", { key: '73b09e58f64a9c5075e3735a7f65a4f0352b52f4', class: `jump-quantity__InnerWrapper` }, this.showButtons &&
48
+ h("jump-button", { key: '1fb3364874ffeae4f49d47d988b8ed4abcaf0786', onClick: () => this.value = this.value - this.step, disabled: this.value <= this.min, variant: 'neutral', size: 'custom' }, h("jump-icon", { key: 'd2285a71c9a26d14015f93f961814bd8d6ba2938', library: "lucide", name: "minus", size: "small" })), h("input", { key: '0d6daa4896d64165eca2c856765f1cf0720ccd48', ref: (el) => {
49
49
  this.inputEl = el;
50
50
  }, type: 'number', value: this.value, onInput: (event) => this.handleChange(event), min: this.min, max: this.max, step: this.step, "aria-hasbuttons": this.showButtons }), this.showButtons &&
51
- h("jump-button", { key: '9ebffb55fe109434fd5816bb9eb3772880f6bbe6', onClick: () => this.value = this.value + this.step, disabled: this.value >= this.max, variant: 'neutral', size: 'custom' }, h("jump-icon", { key: '348f7746cdbf81dc3661ee94655d594e52349463', library: "lucide", name: "plus", size: "small" })))));
51
+ h("jump-button", { key: '58b4df54beabe0480ac2a4962ffcb494333cb99c', onClick: () => this.value = this.value + this.step, disabled: this.value >= this.max, variant: 'neutral', size: 'custom' }, h("jump-icon", { key: '7563ce381545ca32848ea2d42b8c93ab7a2cc5ff', library: "lucide", name: "plus", size: "small" })))));
52
52
  }
53
53
  static get is() { return "jump-quantity"; }
54
54
  static get encapsulation() { return "shadow"; }
@@ -72,7 +72,7 @@ export class JumpTab {
72
72
  }
73
73
  }
74
74
  render() {
75
- return (h(Host, { key: '3a44a455188ba68c8a032673181732b78cd9354e', class: "JumpTab", id: this.tabGroupName, ref: (el) => { this.JumpTabEl = el; } }, h("div", { key: 'c96a5609bbe3f72f1d587376cfae0e2dba5df433', class: "Wrapper " + this.variant }, h("slot", { key: 'aca6f37c75035073855dafcfb811065b23c40b75', name: "tab-item" })), h("div", { key: 'c16d14edc24c21f69e4bb72bc4a118b5011411df' }, h("slot", { key: 'ca9bf6d369db3be19d716c6395d6f922f0d477e2', name: "tab-content" }))));
75
+ return (h(Host, { key: '448b1af679f938cf07c8389c38fa577bc9c2f425', class: "JumpTab", id: this.tabGroupName, ref: (el) => { this.JumpTabEl = el; } }, h("div", { key: '2a16ce043e5aee8e2ab2a08ecf9be13ff904eace', class: "Wrapper " + this.variant }, h("slot", { key: 'bb719dcd643d0e85504bd94ef6dc85ac5a86c624', name: "tab-item" })), h("div", { key: '5c3ac375fbd779ef6da03ab867200916f020c20b' }, h("slot", { key: 'd34fe6675bb5ceaf9f1c76351b577ea97c74c004', name: "tab-content" }))));
76
76
  }
77
77
  static get is() { return "jump-tab"; }
78
78
  static get encapsulation() { return "shadow"; }
@@ -19,8 +19,8 @@ export class JumpTabItem {
19
19
  this.variant = parentVariant;
20
20
  }
21
21
  render() {
22
- return (h(Host, { key: '0bc03e23fbe7133b152ee378b40437975cabf5f8', ref: (el) => { this.tabEl = el; }, class: "JumpTabItem " + (this.active ? 'active' : '') + " " + (this.variant) }, h("div", { key: 'f34ea1bf3292b6ae1995f3b4d055d811fd3f8d80', 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')) &&
23
- h("jump-icon", { key: 'd2c483a3a4b997227336d31fe25f342951aeaf60', library: "fa", category: "regular", name: this.iconName, size: "small" }), h("span", { key: 'e4b14bbec4dee6288b618c2c6cfb1b1377b070c8', class: "label" }, this.label))));
22
+ return (h(Host, { key: 'f7d5e1dd4f895739a30af71e5a717f597c9fb531', ref: (el) => { this.tabEl = el; }, class: "JumpTabItem " + (this.active ? 'active' : '') + " " + (this.variant) }, h("div", { key: '9cb6191f3f860fa1e17e440dc009173d07d94f24', 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')) &&
23
+ h("jump-icon", { key: '39714079d26a8bafe0da96cd317f00755b9999b5', library: "fa", category: "regular", name: this.iconName, size: "small" }), h("span", { key: 'f1e254bbadf8c94ce034eb346ade54fc20b3e3da', class: "label" }, this.label))));
24
24
  }
25
25
  static get is() { return "jump-tab-item"; }
26
26
  static get encapsulation() { return "shadow"; }
@@ -5,7 +5,7 @@ export class JumpTabPanel {
5
5
  this.active = false;
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: 'f1915ec3ee0123aa64a1b7e5fca21617ccbc4ee0', class: "JumpTabPanel", id: this.identifier }, h("div", { key: 'd559e4945498ec4d17fd0ed6c4cc7fd79410b94b', class: "JumpTabPanel__Content " + (this.active ? 'active' : '') }, h("slot", { key: 'cddc57310ed0fc0a9090267a3f61eabd4770f8ee' }))));
8
+ return (h(Host, { key: '359fc4d638f54a0a773fa2693cce1e671debe39f', class: "JumpTabPanel", id: this.identifier }, h("div", { key: '766c75c1c8df88c36452b488aab737bddc8ff893', class: "JumpTabPanel__Content " + (this.active ? 'active' : '') }, h("slot", { key: '3ed59d7eaf7430c669ee1317fd2f0e1796e281d6' }))));
9
9
  }
10
10
  static get is() { return "jump-tab-panel"; }
11
11
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface JumpAccordionGroup extends Components.JumpAccordionGroup, HTMLElement {}
4
+ export const JumpAccordionGroup: {
5
+ prototype: JumpAccordionGroup;
6
+ new (): JumpAccordionGroup;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,41 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+
3
+ const jumpAccordionGroupCss = ":host{display:flex;flex-direction:column}:host(.boxed),:host(.boxedheader),:host(.sidestroke){gap:8px}:host(.divider){gap:4px}";
4
+ const JumpAccordionGroupStyle0 = jumpAccordionGroupCss;
5
+
6
+ const JumpAccordionGroup$1 = /*@__PURE__*/ proxyCustomElement(class JumpAccordionGroup extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.__attachShadow();
11
+ this.variant = undefined;
12
+ this.groupIdentifier = undefined;
13
+ }
14
+ render() {
15
+ return (h(Host, { key: '38cc6b122de79f7a7df088028b09fcd2807f84d6', class: "JumpAccordionGroup " + (this.variant), id: this.groupIdentifier }, h("slot", { key: 'e22ef6902ad5dc8d9e4d6c78efa250f617770d6d' })));
16
+ }
17
+ static get style() { return JumpAccordionGroupStyle0; }
18
+ }, [1, "jump-accordion-group", {
19
+ "variant": [1],
20
+ "groupIdentifier": [1, "group-identifier"]
21
+ }]);
22
+ function defineCustomElement$1() {
23
+ if (typeof customElements === "undefined") {
24
+ return;
25
+ }
26
+ const components = ["jump-accordion-group"];
27
+ components.forEach(tagName => { switch (tagName) {
28
+ case "jump-accordion-group":
29
+ if (!customElements.get(tagName)) {
30
+ customElements.define(tagName, JumpAccordionGroup$1);
31
+ }
32
+ break;
33
+ } });
34
+ }
35
+
36
+ const JumpAccordionGroup = JumpAccordionGroup$1;
37
+ const defineCustomElement = defineCustomElement$1;
38
+
39
+ export { JumpAccordionGroup, defineCustomElement };
40
+
41
+ //# sourceMappingURL=jump-accordion-group.js.map
@@ -0,0 +1 @@
1
+ {"file":"jump-accordion-group.js","mappings":";;AAAA,MAAM,qBAAqB,GAAG,gIAAgI,CAAC;AAC/J,iCAAe,qBAAqB;;MCMvBA,oBAAkB;;;;;;;;IAI7B,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,KAAK,EAAE,qBAAqB,IAAI,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,eAAe,IAC3E,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;","names":["JumpAccordionGroup"],"sources":["src/components/jump-accordion-group/jump-accordion-group.css?tag=jump-accordion-group&encapsulation=shadow","src/components/jump-accordion-group/jump-accordion-group.tsx"],"sourcesContent":[":host {\n display: flex;\n flex-direction: column;\n}\n\n:host(.boxed), :host(.boxedheader), :host(.sidestroke) {\n gap: 8px;\n}\n\n:host(.divider) {\n gap: 4px;\n}","import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'jump-accordion-group',\n styleUrl: 'jump-accordion-group.css',\n shadow: true,\n})\nexport class JumpAccordionGroup {\n @Prop() variant: \"divider\" | \"boxed\" | \"boxedheader\" | \"sidestroke\";\n @Prop() groupIdentifier: string;\n\n render() {\n return (\n <Host class={\"JumpAccordionGroup \" + (this.variant)} id={this.groupIdentifier}>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -518,7 +518,7 @@ const JumpAccordion$1 = /*@__PURE__*/ proxyCustomElement(class JumpAccordion ext
518
518
  this.disabled = undefined;
519
519
  this.open = undefined;
520
520
  this.icon = undefined;
521
- this.id = undefined;
521
+ this.identifier = undefined;
522
522
  }
523
523
  /* ---------------------- @LISTEN ------------------------- */
524
524
  handleShow() {
@@ -541,7 +541,7 @@ const JumpAccordion$1 = /*@__PURE__*/ proxyCustomElement(class JumpAccordion ext
541
541
  }
542
542
  }
543
543
  render() {
544
- return (h(Host, { key: '55c161e236dd934ad4046a8621f30fb982cb616e', class: "JumpAccordion " + (this.variant), open: this.open }, h("sl-details", { key: 'b567334b3eead4dd1b974ac5ffe048972386d9a1', class: "item", summary: this.summary, disabled: this.disabled, open: this.open }, this.renderIcons(), h("slot", { key: '911e4e49e513b4b2806315eef1f0e7e0a5993bb6', name: "acc-content" }))));
544
+ return (h(Host, { key: '0bf4df9cd8b59e2dbb716360d2c55c294c1e7cd5', class: "JumpAccordion " + (this.variant), open: this.open, id: this.identifier }, h("sl-details", { key: 'b453e7c90758e88ed92bb479ee0a87d10716d653', class: "item", summary: this.summary, disabled: this.disabled, open: this.open }, this.renderIcons(), h("slot", { key: 'ea98bc779ab7aca79eeef5436c26d53bb4ac3b16', name: "acc-content" }))));
545
545
  }
546
546
  static get style() { return JumpAccordionStyle0; }
547
547
  }, [1, "jump-accordion", {
@@ -550,7 +550,7 @@ const JumpAccordion$1 = /*@__PURE__*/ proxyCustomElement(class JumpAccordion ext
550
550
  "disabled": [4],
551
551
  "open": [516],
552
552
  "icon": [1],
553
- "id": [1]
553
+ "identifier": [1]
554
554
  }, [[0, "sl-show", "handleShow"]]]);
555
555
  function defineCustomElement$1() {
556
556
  if (typeof customElements === "undefined") {