@jumpgroup/jump-design-system 0.3.41 → 0.3.43

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 (115) hide show
  1. package/dist/cjs/jump-design-system.cjs.js +1 -1
  2. package/dist/cjs/jump-filter-checkbox.cjs.entry.js +2 -2
  3. package/dist/cjs/jump-filter.cjs.entry.js +15 -5
  4. package/dist/cjs/jump-filter.cjs.entry.js.map +1 -1
  5. package/dist/cjs/jump-filtergroup.cjs.entry.js +3 -3
  6. package/dist/cjs/jump-navbar.cjs.entry.js +5 -5
  7. package/dist/cjs/jump-pagination-table.cjs.entry.js +3 -3
  8. package/dist/cjs/jump-pagination.cjs.entry.js +3 -3
  9. package/dist/cjs/jump-quantity.cjs.entry.js +3 -3
  10. package/dist/cjs/jump-search-bar.cjs.entry.js +2 -2
  11. package/dist/cjs/jump-tab-item.cjs.entry.js +2 -2
  12. package/dist/cjs/jump-tab-panel.cjs.entry.js +1 -1
  13. package/dist/cjs/jump-tab.cjs.entry.js +1 -1
  14. package/dist/cjs/loader.cjs.js +1 -1
  15. package/dist/collection/components/jump-accordion/jump-accordion.stories.js +18 -0
  16. package/dist/collection/components/jump-accordion/jump-accordion.stories.js.map +1 -1
  17. package/dist/collection/components/jump-accordion-group/jump-accordion-group.stories.js +8 -1
  18. package/dist/collection/components/jump-accordion-group/jump-accordion-group.stories.js.map +1 -1
  19. package/dist/collection/components/jump-filter/jump-filter.css +24 -0
  20. package/dist/collection/components/jump-filter/jump-filter.js +52 -5
  21. package/dist/collection/components/jump-filter/jump-filter.js.map +1 -1
  22. package/dist/collection/components/jump-filter/jump-filter.stories.js +5 -0
  23. package/dist/collection/components/jump-filter/jump-filter.stories.js.map +1 -1
  24. package/dist/collection/components/jump-filter-checkbox/jump-filter-checkbox.js +2 -2
  25. package/dist/collection/components/jump-filtergroup/jump-filtergroup.js +3 -3
  26. package/dist/collection/components/jump-navbar/jump-navbar.js +5 -5
  27. package/dist/collection/components/jump-pagination/jump-pagination.js +3 -3
  28. package/dist/collection/components/jump-pagination/jump-pagination.stories.js +19 -3
  29. package/dist/collection/components/jump-pagination/jump-pagination.stories.js.map +1 -1
  30. package/dist/collection/components/jump-pagination-table/jump-pagination-table.js +3 -3
  31. package/dist/collection/components/jump-pagination-table/jump-pagination-table.stories.js +31 -3
  32. package/dist/collection/components/jump-pagination-table/jump-pagination-table.stories.js.map +1 -1
  33. package/dist/collection/components/jump-quantity/jump-quantity.js +3 -3
  34. package/dist/collection/components/jump-search-bar/jump-search-bar.js +2 -2
  35. package/dist/collection/components/jump-search-bar/jump-search-bar.stories.js +23 -3
  36. package/dist/collection/components/jump-search-bar/jump-search-bar.stories.js.map +1 -1
  37. package/dist/collection/components/jump-tab/jump-tab.js +1 -1
  38. package/dist/collection/components/jump-tab-item/jump-tab-item-boxed.stories.js +25 -4
  39. package/dist/collection/components/jump-tab-item/jump-tab-item-boxed.stories.js.map +1 -1
  40. package/dist/collection/components/jump-tab-item/jump-tab-item-inline.stories.js +25 -4
  41. package/dist/collection/components/jump-tab-item/jump-tab-item-inline.stories.js.map +1 -1
  42. package/dist/collection/components/jump-tab-item/jump-tab-item-rounded.stories.js +16 -2
  43. package/dist/collection/components/jump-tab-item/jump-tab-item-rounded.stories.js.map +1 -1
  44. package/dist/collection/components/jump-tab-item/jump-tab-item-sheet.stories.js +16 -2
  45. package/dist/collection/components/jump-tab-item/jump-tab-item-sheet.stories.js.map +1 -1
  46. package/dist/collection/components/jump-tab-item/jump-tab-item.js +2 -2
  47. package/dist/collection/components/jump-tab-panel/jump-tab-panel.js +1 -1
  48. package/dist/components/jump-filter-checkbox.js +2 -2
  49. package/dist/components/jump-filter.js +18 -5
  50. package/dist/components/jump-filter.js.map +1 -1
  51. package/dist/components/jump-filtergroup.js +3 -3
  52. package/dist/components/jump-navbar.js +5 -5
  53. package/dist/components/jump-pagination-table.js +3 -3
  54. package/dist/components/jump-pagination.js +3 -3
  55. package/dist/components/jump-quantity.js +3 -3
  56. package/dist/components/jump-search-bar.js +2 -2
  57. package/dist/components/jump-tab-item.js +2 -2
  58. package/dist/components/jump-tab-panel.js +1 -1
  59. package/dist/components/jump-tab.js +1 -1
  60. package/dist/esm/jump-design-system.js +1 -1
  61. package/dist/esm/jump-filter-checkbox.entry.js +2 -2
  62. package/dist/esm/jump-filter.entry.js +15 -5
  63. package/dist/esm/jump-filter.entry.js.map +1 -1
  64. package/dist/esm/jump-filtergroup.entry.js +3 -3
  65. package/dist/esm/jump-navbar.entry.js +5 -5
  66. package/dist/esm/jump-pagination-table.entry.js +3 -3
  67. package/dist/esm/jump-pagination.entry.js +3 -3
  68. package/dist/esm/jump-quantity.entry.js +3 -3
  69. package/dist/esm/jump-search-bar.entry.js +2 -2
  70. package/dist/esm/jump-tab-item.entry.js +2 -2
  71. package/dist/esm/jump-tab-panel.entry.js +1 -1
  72. package/dist/esm/jump-tab.entry.js +1 -1
  73. package/dist/esm/loader.js +1 -1
  74. package/dist/jump-design-system/jump-design-system.esm.js +1 -1
  75. package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
  76. package/dist/jump-design-system/{p-15416bf7.entry.js → p-134e548b.entry.js} +2 -2
  77. package/dist/jump-design-system/{p-4cd128b5.entry.js → p-1c882126.entry.js} +2 -2
  78. package/dist/jump-design-system/p-26d18480.entry.js +2 -0
  79. package/dist/jump-design-system/{p-6def596d.entry.js → p-30c9d7c7.entry.js} +2 -2
  80. package/dist/jump-design-system/{p-eb71b342.entry.js → p-396d2541.entry.js} +2 -2
  81. package/dist/jump-design-system/p-5f12bbbb.entry.js +2 -0
  82. package/dist/jump-design-system/{p-54230a70.entry.js → p-745c61b2.entry.js} +2 -2
  83. package/dist/jump-design-system/{p-6563f128.entry.js → p-87d6c01a.entry.js} +2 -2
  84. package/dist/jump-design-system/{p-5d9817a2.entry.js → p-8bdb9702.entry.js} +2 -2
  85. package/dist/jump-design-system/p-e441d6ea.entry.js +2 -0
  86. package/dist/jump-design-system/p-e441d6ea.entry.js.map +1 -0
  87. package/dist/jump-design-system/{p-ce3c1ff9.entry.js → p-f371718a.entry.js} +2 -2
  88. package/dist/jump-design-system-elements.json +8 -0
  89. package/dist/types/components/jump-accordion/jump-accordion.stories.d.ts +34 -0
  90. package/dist/types/components/jump-accordion-group/jump-accordion-group.stories.d.ts +13 -0
  91. package/dist/types/components/jump-filter/jump-filter.d.ts +3 -0
  92. package/dist/types/components/jump-pagination/jump-pagination.stories.d.ts +32 -0
  93. package/dist/types/components/jump-pagination-table/jump-pagination-table.stories.d.ts +56 -0
  94. package/dist/types/components/jump-search-bar/jump-search-bar.stories.d.ts +40 -0
  95. package/dist/types/components/jump-tab-item/jump-tab-item-boxed.stories.d.ts +39 -0
  96. package/dist/types/components/jump-tab-item/jump-tab-item-inline.stories.d.ts +39 -0
  97. package/dist/types/components/jump-tab-item/jump-tab-item-rounded.stories.d.ts +26 -0
  98. package/dist/types/components/jump-tab-item/jump-tab-item-sheet.stories.d.ts +26 -0
  99. package/dist/types/components.d.ts +4 -0
  100. package/package.json +1 -1
  101. package/readme.md +33 -0
  102. package/dist/jump-design-system/p-0f27d163.entry.js +0 -2
  103. package/dist/jump-design-system/p-7b43933f.entry.js +0 -2
  104. package/dist/jump-design-system/p-fbd2cbb8.entry.js +0 -2
  105. package/dist/jump-design-system/p-fbd2cbb8.entry.js.map +0 -1
  106. /package/dist/jump-design-system/{p-15416bf7.entry.js.map → p-134e548b.entry.js.map} +0 -0
  107. /package/dist/jump-design-system/{p-4cd128b5.entry.js.map → p-1c882126.entry.js.map} +0 -0
  108. /package/dist/jump-design-system/{p-0f27d163.entry.js.map → p-26d18480.entry.js.map} +0 -0
  109. /package/dist/jump-design-system/{p-6def596d.entry.js.map → p-30c9d7c7.entry.js.map} +0 -0
  110. /package/dist/jump-design-system/{p-eb71b342.entry.js.map → p-396d2541.entry.js.map} +0 -0
  111. /package/dist/jump-design-system/{p-7b43933f.entry.js.map → p-5f12bbbb.entry.js.map} +0 -0
  112. /package/dist/jump-design-system/{p-54230a70.entry.js.map → p-745c61b2.entry.js.map} +0 -0
  113. /package/dist/jump-design-system/{p-6563f128.entry.js.map → p-87d6c01a.entry.js.map} +0 -0
  114. /package/dist/jump-design-system/{p-5d9817a2.entry.js.map → p-8bdb9702.entry.js.map} +0 -0
  115. /package/dist/jump-design-system/{p-ce3c1ff9.entry.js.map → p-f371718a.entry.js.map} +0 -0
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["jump-button_2.cjs",[[1,"jump-button",{"disabled":[4],"variant":[1],"outline":[4],"size":[1],"full":[4],"pill":[4],"text":[4],"onlyIcon":[4,"only-icon"],"href":[1],"target":[1],"type":[1],"name":[1],"value":[1],"ariaLabel":[1,"aria-label"],"class":[1],"buttonId":[1,"button-id"]}],[1,"jump-icon",{"class":[1],"library":[1],"name":[1],"category":[1],"size":[1],"label":[1],"src":[1]}]]],["jump-card-ecommerce.cjs",[[1,"jump-card-ecommerce",{"onlyIconButton":[4,"only-icon-button"],"hasBackground":[4,"has-background"],"badge":[1],"favorite":[1540],"hasFavorite":[4,"has-favorite"],"hasSlotForFavorite":[4,"has-slot-for-favorite"],"favoriteHref":[1,"favorite-href"],"link":[1],"img":[1],"imgAlt":[1,"img-alt"],"hoverImg":[1,"hover-img"],"hoverImgAlt":[1,"hover-img-alt"],"videoSrc":[1,"video-src"],"notificationUrl":[1,"notification-url"],"notificationText":[1,"notification-text"],"productName":[1,"product-name"],"subtitle":[1],"productId":[1,"product-id"],"price":[2],"salePrice":[2,"sale-price"],"currency":[1],"outOfStock":[1540,"out-of-stock"],"outOfStockText":[1,"out-of-stock-text"],"addToCartText":[1,"add-to-cart-text"],"waitingListText":[1,"waiting-list-text"],"addToWaitingList":[4,"add-to-waiting-list"],"isMini":[4,"is-mini"],"addedToCart":[4,"added-to-cart"],"endAddedToCart":[4,"end-added-to-cart"],"variations":[32],"selectedVariation":[32],"priceFormatted":[32],"salePriceFormatted":[32],"setPrice":[64]},[[0,"jump-card-ecommerce-option-connected","addOption"]]]]],["jump-filter.cjs",[[1,"jump-filter",{"direction":[1],"filterHeading":[1,"filter-heading"],"filterButtonLabel":[1,"filter-button-label"],"filterButtonIcon":[1,"filter-button-icon"],"mobileThreshold":[2,"mobile-threshold"],"filters":[8],"activeFilters":[32],"showMobileFilters":[32],"isMobile":[32],"getFilters":[64]},[[0,"jump-filterchange","filterChangeHandler"],[9,"resize","handleResize"]],{"showMobileFilters":["watchHandler"]}]]],["jump-filtergroup.cjs",[[1,"jump-filtergroup",{"name":[1],"heading":[1],"otherLabel":[1,"other-label"],"lessLabel":[1,"less-label"],"maxElements":[2,"max-elements"],"variant":[1],"label":[32],"values":[32],"value":[32],"slotItems":[32],"inputs":[32],"showMore":[32],"getValues":[64],"getActiveAmount":[64],"getInputs":[64],"getName":[64]},null,{"showMore":["watchShowMore"]}]]],["jump-navbar.cjs",[[1,"jump-navbar",{"logo":[16],"navItems":[16],"secondaryNavItems":[16],"mobileThreshold":[2,"mobile-threshold"],"type":[1],"navPosition":[1,"nav-position"],"megaMenuAlignment":[1,"mega-menu-alignment"],"sticky":[4],"stickyThreshold":[2,"sticky-threshold"],"mobileLogo":[16],"user":[16],"isMobile":[32]},[[9,"resize","handleResize"]]]]],["jump-pagination.cjs",[[1,"jump-pagination",{"pagLabel":[1,"pag-label"],"last":[2],"showFirstAndLast":[4,"show-first-and-last"],"current":[32]},null,{"current":["watchcurrent"]}]]],["jump-pagination-table.cjs",[[0,"jump-pagination-table",{"elementsRanges":[1,"elements-ranges"],"pagLabel":[513,"pag-label"],"labelElementsPerPage":[513,"label-elements-per-page"],"total":[514],"first":[514],"last":[514],"showFirstAndLast":[516,"show-first-and-last"],"elementsRangesArray":[32],"elPerPage":[32]},null,{"elementsRanges":["elementsRangesChanged"],"elPerPage":["elPerPageChanged"]}]]],["jump-quantity.cjs",[[65,"jump-quantity",{"min":[2],"max":[2],"step":[2],"label":[1],"type":[1],"variant":[1],"showButtons":[4,"show-buttons"],"value":[2],"currentValue":[32],"getValue":[64],"reset":[64]},null,{"value":["onValueChange"]}]]],["jump-search-bar.cjs",[[1,"jump-search-bar",{"placeholder":[1],"identifier":[1],"debounceTime":[2,"debounce-time"],"searchType":[1,"search-type"],"variant":[1]}]]],["jump-accordion.cjs",[[1,"jump-accordion",{"variant":[1],"summary":[1],"disabled":[4],"open":[516],"icon":[1],"identifier":[1]},[[0,"sl-show","handleShow"]]]]],["jump-tab-item.cjs",[[1,"jump-tab-item",{"identifier":[1],"iconName":[1,"icon-name"],"iconPosition":[1,"icon-position"],"label":[1],"active":[4],"disabled":[4],"variant":[32]}]]],["jump-accordion-group.cjs",[[1,"jump-accordion-group",{"variant":[1],"groupIdentifier":[1,"group-identifier"]}]]],["jump-card.cjs",[[4,"jump-card",{"horizontal":[4],"dark":[4],"shadow":[4],"border":[4],"borderRadius":[4,"border-radius"],"topBorderContentRadius":[4,"top-border-content-radius"],"boxed":[4],"roundedMedia":[4,"rounded-media"],"imgSrc":[1,"img-src"],"imgAlt":[1,"img-alt"],"videoSrc":[1,"video-src"]}]]],["jump-card-ecommerce-option.cjs",[[1,"jump-card-ecommerce-option",{"code":[1],"imgUrl":[1,"img-url"],"label":[1],"sku":[1],"taxonomy":[1]}]]],["jump-filter-checkbox.cjs",[[1,"jump-filter-checkbox",{"value":[1],"label":[1],"checked":[516],"count":[8],"isChecked":[64]}]]],["jump-tab.cjs",[[1,"jump-tab",{"disabled":[4],"alignment":[1],"fullBorder":[4,"full-border"],"tabGroupName":[1,"tab-group-name"],"variant":[1]},[[0,"jump-change-active-tab","changeActiveTabHandler"]]]]],["jump-tab-panel.cjs",[[1,"jump-tab-panel",{"identifier":[1],"active":[4]}]]],["jump-badge.cjs",[[1,"jump-badge",{"label":[1],"variant":[513],"dimension":[513],"soft":[516],"outline":[516]}]]]], options);
22
+ return index.bootstrapLazy([["jump-button_2.cjs",[[1,"jump-button",{"disabled":[4],"variant":[1],"outline":[4],"size":[1],"full":[4],"pill":[4],"text":[4],"onlyIcon":[4,"only-icon"],"href":[1],"target":[1],"type":[1],"name":[1],"value":[1],"ariaLabel":[1,"aria-label"],"class":[1],"buttonId":[1,"button-id"]}],[1,"jump-icon",{"class":[1],"library":[1],"name":[1],"category":[1],"size":[1],"label":[1],"src":[1]}]]],["jump-card-ecommerce.cjs",[[1,"jump-card-ecommerce",{"onlyIconButton":[4,"only-icon-button"],"hasBackground":[4,"has-background"],"badge":[1],"favorite":[1540],"hasFavorite":[4,"has-favorite"],"hasSlotForFavorite":[4,"has-slot-for-favorite"],"favoriteHref":[1,"favorite-href"],"link":[1],"img":[1],"imgAlt":[1,"img-alt"],"hoverImg":[1,"hover-img"],"hoverImgAlt":[1,"hover-img-alt"],"videoSrc":[1,"video-src"],"notificationUrl":[1,"notification-url"],"notificationText":[1,"notification-text"],"productName":[1,"product-name"],"subtitle":[1],"productId":[1,"product-id"],"price":[2],"salePrice":[2,"sale-price"],"currency":[1],"outOfStock":[1540,"out-of-stock"],"outOfStockText":[1,"out-of-stock-text"],"addToCartText":[1,"add-to-cart-text"],"waitingListText":[1,"waiting-list-text"],"addToWaitingList":[4,"add-to-waiting-list"],"isMini":[4,"is-mini"],"addedToCart":[4,"added-to-cart"],"endAddedToCart":[4,"end-added-to-cart"],"variations":[32],"selectedVariation":[32],"priceFormatted":[32],"salePriceFormatted":[32],"setPrice":[64]},[[0,"jump-card-ecommerce-option-connected","addOption"]]]]],["jump-filter.cjs",[[1,"jump-filter",{"direction":[1],"filterHeading":[1,"filter-heading"],"filterButtonLabel":[1,"filter-button-label"],"filterButtonIcon":[1,"filter-button-icon"],"mobileThreshold":[2,"mobile-threshold"],"filters":[8],"showCount":[4,"show-count"],"offCanvasOverlay":[4,"off-canvas-overlay"],"activeFilters":[32],"showMobileFilters":[32],"isMobile":[32],"offCanvasClasses":[32],"getFilters":[64]},[[0,"jump-filterchange","filterChangeHandler"],[9,"resize","handleResize"]],{"showMobileFilters":["watchHandler"]}]]],["jump-filtergroup.cjs",[[1,"jump-filtergroup",{"name":[1],"heading":[1],"otherLabel":[1,"other-label"],"lessLabel":[1,"less-label"],"maxElements":[2,"max-elements"],"variant":[1],"label":[32],"values":[32],"value":[32],"slotItems":[32],"inputs":[32],"showMore":[32],"getValues":[64],"getActiveAmount":[64],"getInputs":[64],"getName":[64]},null,{"showMore":["watchShowMore"]}]]],["jump-navbar.cjs",[[1,"jump-navbar",{"logo":[16],"navItems":[16],"secondaryNavItems":[16],"mobileThreshold":[2,"mobile-threshold"],"type":[1],"navPosition":[1,"nav-position"],"megaMenuAlignment":[1,"mega-menu-alignment"],"sticky":[4],"stickyThreshold":[2,"sticky-threshold"],"mobileLogo":[16],"user":[16],"isMobile":[32]},[[9,"resize","handleResize"]]]]],["jump-pagination.cjs",[[1,"jump-pagination",{"pagLabel":[1,"pag-label"],"last":[2],"showFirstAndLast":[4,"show-first-and-last"],"current":[32]},null,{"current":["watchcurrent"]}]]],["jump-pagination-table.cjs",[[0,"jump-pagination-table",{"elementsRanges":[1,"elements-ranges"],"pagLabel":[513,"pag-label"],"labelElementsPerPage":[513,"label-elements-per-page"],"total":[514],"first":[514],"last":[514],"showFirstAndLast":[516,"show-first-and-last"],"elementsRangesArray":[32],"elPerPage":[32]},null,{"elementsRanges":["elementsRangesChanged"],"elPerPage":["elPerPageChanged"]}]]],["jump-quantity.cjs",[[65,"jump-quantity",{"min":[2],"max":[2],"step":[2],"label":[1],"type":[1],"variant":[1],"showButtons":[4,"show-buttons"],"value":[2],"currentValue":[32],"getValue":[64],"reset":[64]},null,{"value":["onValueChange"]}]]],["jump-search-bar.cjs",[[1,"jump-search-bar",{"placeholder":[1],"identifier":[1],"debounceTime":[2,"debounce-time"],"searchType":[1,"search-type"],"variant":[1]}]]],["jump-accordion.cjs",[[1,"jump-accordion",{"variant":[1],"summary":[1],"disabled":[4],"open":[516],"icon":[1],"identifier":[1]},[[0,"sl-show","handleShow"]]]]],["jump-tab-item.cjs",[[1,"jump-tab-item",{"identifier":[1],"iconName":[1,"icon-name"],"iconPosition":[1,"icon-position"],"label":[1],"active":[4],"disabled":[4],"variant":[32]}]]],["jump-accordion-group.cjs",[[1,"jump-accordion-group",{"variant":[1],"groupIdentifier":[1,"group-identifier"]}]]],["jump-card.cjs",[[4,"jump-card",{"horizontal":[4],"dark":[4],"shadow":[4],"border":[4],"borderRadius":[4,"border-radius"],"topBorderContentRadius":[4,"top-border-content-radius"],"boxed":[4],"roundedMedia":[4,"rounded-media"],"imgSrc":[1,"img-src"],"imgAlt":[1,"img-alt"],"videoSrc":[1,"video-src"]}]]],["jump-card-ecommerce-option.cjs",[[1,"jump-card-ecommerce-option",{"code":[1],"imgUrl":[1,"img-url"],"label":[1],"sku":[1],"taxonomy":[1]}]]],["jump-filter-checkbox.cjs",[[1,"jump-filter-checkbox",{"value":[1],"label":[1],"checked":[516],"count":[8],"isChecked":[64]}]]],["jump-tab.cjs",[[1,"jump-tab",{"disabled":[4],"alignment":[1],"fullBorder":[4,"full-border"],"tabGroupName":[1,"tab-group-name"],"variant":[1]},[[0,"jump-change-active-tab","changeActiveTabHandler"]]]]],["jump-tab-panel.cjs",[[1,"jump-tab-panel",{"identifier":[1],"active":[4]}]]],["jump-badge.cjs",[[1,"jump-badge",{"label":[1],"variant":[513],"dimension":[513],"soft":[516],"outline":[516]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -809,8 +809,8 @@ const JumpFilterCheckbox = class {
809
809
  return this.el.checked;
810
810
  }
811
811
  render() {
812
- return (index.h(index.Host, { key: '046c23b0b66c4699aa0962a8113e682e42714452', ref: (host) => this.host = host }, this.value && this.label &&
813
- index.h("sl-checkbox", { key: 'c3a433acde331fa96f433339c56ab2a37e474fbd', value: this.value, ref: (el) => this.el = el, checked: this.checked }, this.label), this.count && index.h("span", { key: '3dfa72e71a55d99a0b54c6ae31bc9c696025264d', class: "count" }, this.count)));
812
+ return (index.h(index.Host, { key: 'c1ed5c7a59979dbe46338b2df91e5ab73c0547bd', ref: (host) => this.host = host }, this.value && this.label &&
813
+ index.h("sl-checkbox", { key: 'de838d7ec4dedc45935bca737c71251028adc658', value: this.value, ref: (el) => this.el = el, checked: this.checked }, this.label), this.count && index.h("span", { key: '4e7ca6acfdc390a1a9511d52c00135783e57b1cd', class: "count" }, this.count)));
814
814
  }
815
815
  };
816
816
  JumpFilterCheckbox.style = JumpFilterCheckboxStyle0;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-97b3526b.js');
6
6
 
7
- const jumpFilterCss = ":host{--primary-standard:var(--secondary-hard, #435171);--jump-button-background-hover:red;--bg-drawer:var(--bg-drawer, #fff);--header-height:var(--header-height, 80px);--drawer-width:var(--drawer-width, 240px)}:host h3{margin:0}.filtersDrawer{position:fixed;display:flex;flex-direction:column;gap:2.5rem;left:-100vw;top:var(--header-height);height:-webkit-fill-available;max-height:calc(100vh - var(--header-height));transition:0.3s all ease-in-out;background-color:var(--bg-drawer, #fff);padding:1rem;width:100%;max-width:var(--drawer-width);box-shadow:8px 0 15px 0 rgba(0, 0, 0, 0.1490196078);z-index:2;overflow:auto}.filtersDrawer[aria-hidden=false]{left:0;transition:0.3s all ease-in-out}.filtersDrawer[aria-hidden=false] .filtersDrawer__close{position:fixed;top:calc(var(--header-height) + 1rem);left:calc(var(--drawer-width) - 2rem)}@media (min-width: 768px){.filtersDrawer{position:relative;left:0;height:auto;max-width:initial;box-shadow:none}}.filtersDrawer .filtersDrawer__header{display:flex;justify-content:flex-start;align-items:center;gap:0.5rem}";
7
+ const jumpFilterCss = ":host{--primary-standard:var(--secondary-hard, #435171);--jump-button-background-hover:red;--bg-drawer:var(--bg-drawer, #fff);--header-height:var(--header-height, 80px);--drawer-width:var(--drawer-width, 240px);--overlay-bg-color:var(--overlay-bg-color, rgba(0, 0, 0, 0.35))}:host h3{margin:0}.filtersDrawer__overlay{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);background-color:var(--overlay-bg-color, rgba(0, 0, 0, 0.35));z-index:1;width:100vw;height:100vh;display:none;opacity:0;transition:opacity 0.3s ease-in-out}.filtersDrawer__overlay.filtersDrawer__overlay--active{display:block}.filtersDrawer__overlay.filtersDrawer__overlay--active{opacity:1}.filtersDrawer{position:fixed;display:flex;flex-direction:column;gap:2.5rem;left:-100vw;top:var(--header-height);height:-webkit-fill-available;max-height:calc(100vh - var(--header-height));transition:0.3s all ease-in-out;background-color:var(--bg-drawer, #fff);padding:1rem;width:100%;max-width:var(--drawer-width);box-shadow:8px 0 15px 0 rgba(0, 0, 0, 0.1490196078);z-index:2;overflow:auto}.filtersDrawer[aria-hidden=false]{left:0;right:0;width:auto;transition:0.3s all ease-in-out}.filtersDrawer[aria-hidden=false] .filtersDrawer__close{position:fixed;top:calc(var(--header-height) + 1rem);left:calc(var(--drawer-width) - 2rem)}@media (min-width: 768px){.filtersDrawer{position:relative;left:0;height:auto;max-width:initial;max-height:initial;box-shadow:none}}.filtersDrawer .filtersDrawer__header{display:flex;justify-content:flex-start;align-items:center;gap:0.5rem}";
8
8
  const JumpFilterStyle0 = jumpFilterCss;
9
9
 
10
10
  const JumpFilter = class {
@@ -16,9 +16,12 @@ const JumpFilter = class {
16
16
  this.filterButtonIcon = 'sliders';
17
17
  this.mobileThreshold = 768;
18
18
  this.filters = undefined;
19
+ this.showCount = false;
20
+ this.offCanvasOverlay = false;
19
21
  this.activeFilters = 0;
20
22
  this.showMobileFilters = false;
21
23
  this.isMobile = false;
24
+ this.offCanvasClasses = 'filtersDrawer__overlay';
22
25
  }
23
26
  filterChangeHandler(event) {
24
27
  //set this.filter as this.filters[event.detail.name] = event.detail.value; even if not present
@@ -35,10 +38,12 @@ const JumpFilter = class {
35
38
  if (newValue) {
36
39
  (_a = this.mobileToggle) === null || _a === void 0 ? void 0 : _a.setAttribute('aria-expanded', 'true');
37
40
  (_b = this.filtersDrawer) === null || _b === void 0 ? void 0 : _b.setAttribute('aria-hidden', 'false');
41
+ this.offCanvasClasses = 'filtersDrawer__overlay filtersDrawer__overlay--active';
38
42
  }
39
43
  else {
40
44
  (_c = this.mobileToggle) === null || _c === void 0 ? void 0 : _c.setAttribute('aria-expanded', 'false');
41
45
  (_d = this.filtersDrawer) === null || _d === void 0 ? void 0 : _d.setAttribute('aria-hidden', 'true');
46
+ this.offCanvasClasses = 'filtersDrawer__overlay';
42
47
  }
43
48
  }
44
49
  }
@@ -52,10 +57,15 @@ const JumpFilter = class {
52
57
  this.handleResize();
53
58
  }
54
59
  render() {
55
- return (index.h(index.Host, { key: 'b45c2e4a0ed8985f709b5ef0cd6796c73f78080b', mobileFilters: this.showMobileFilters }, this.isMobile && index.h("jump-button", { key: 'a8bf5423d154fe3dc7c91bc12a379fc30ab85992', ref: (el) => { this.mobileToggle = el; }, buttonId: this.filterButtonIcon, variant: 'primary', outline: true, onClick: () => this.showMobileFilters = !this.showMobileFilters }, index.h("slot", { key: 'e9cdf515fe9d1f5f6c557f1b345ccaa5e75ed5ba', name: "prefix" }, this.filterButtonIcon &&
56
- index.h("jump-icon", { key: '7175bf68ccc5cba19384ac74de269a83a9321f9c', library: "fa", category: "regular", name: this.filterButtonIcon, size: "small" }), this.filterButtonLabel), index.h("slot", { key: '43d5a322cf0d0828b821abfb8bdfe14a9c2bf706', name: "suffix" }, this.activeFilters > 0 &&
57
- index.h("jump-badge", { key: '2d27ab99d6980334ca33b7d75ccceef9561005b0', label: this.activeFilters.toString(), variant: "success", soft: true, dimension: "dot" }, "1"))), index.h("div", { key: 'b960e02353e147de8dc633b6f3fa74e8aebd4fc1', ref: (el) => { this.filtersDrawer = el; }, class: "filtersDrawer", "data-variant": this.direction }, !this.isMobile &&
58
- index.h("div", { key: '6c86c707343eab1720d49208d487dacfed2c7a69', class: 'filtersDrawer__header' }, index.h("jump-icon", { key: '44e43addc3beecc57cc0b5a4bbc1f004df9f4ea3', class: "small", name: this.filterButtonIcon }), index.h("h3", { key: '49893521129b517c91caa15fb38d7c1bfc17be2c' }, this.filterHeading)), this.isMobile && index.h("jump-icon", { key: '91d6bfe0b195cad204df517eb4e2ab02b141a3a8', library: "lucide", name: "x", size: "small", label: "", class: 'filtersDrawer__close', onClick: () => this.showMobileFilters = false }), index.h("slot", { key: '5691db6520a4ea84d3b3ea5b1b4c622893770317' }))));
60
+ return (index.h(index.Host, { key: 'a6887d6f754cdba0e3ec854c0e553d4805c62c63', mobileFilters: this.showMobileFilters }, this.isMobile && index.h("jump-button", { key: '0194221f6ba4be2f547d8b6495f94c9d716e8be1', ref: (el) => {
61
+ this.mobileToggle = el;
62
+ }, buttonId: this.filterButtonIcon, variant: 'primary', outline: true, onClick: () => this.showMobileFilters = !this.showMobileFilters }, index.h("slot", { key: '5b60281b75d958d605c97b69be6576f177538740', name: "prefix" }, this.filterButtonIcon &&
63
+ index.h("jump-icon", { key: 'c85beb03fd5132192bfa5f2d83c1e5cec64c4f4e', library: "fa", category: "regular", name: this.filterButtonIcon, size: "small" }), this.filterButtonLabel), index.h("slot", { key: '9bf612b73c9c0d69172ed6caff94e1f34541c539', name: "suffix" }, this.activeFilters > 0 &&
64
+ index.h("jump-badge", { key: '8c01c39288672210dc546ecb72fa7ef4d9c60bef', label: this.activeFilters.toString(), variant: "success", soft: true, dimension: "dot" }, "1"))), this.offCanvasOverlay &&
65
+ index.h("div", { key: 'b588e7ab489541c92a04df32ad40a5c31238451a', class: this.offCanvasClasses, onClick: () => this.showMobileFilters = false }), index.h("div", { key: 'af8c4b52c7a87461e98a63d2040999b179c6c372', ref: (el) => {
66
+ this.filtersDrawer = el;
67
+ }, class: "filtersDrawer", "data-variant": this.direction }, !this.isMobile &&
68
+ index.h("div", { key: 'fde6a476ff39c470b91030a2ea00c73392a7644d', class: 'filtersDrawer__header' }, index.h("jump-icon", { key: '4173961bcb0943d9de12c853968e503917bf6063', class: "small", name: this.filterButtonIcon }), index.h("h3", { key: 'c7e1982a2805e714acab2d9ca5ba3a3c8b925e6e' }, this.filterHeading)), this.isMobile && index.h("jump-icon", { key: '95e0e48852c12f9474482410e0a4aec7dd348d1f', library: "lucide", name: "x", size: "small", label: "", class: 'filtersDrawer__close', onClick: () => this.showMobileFilters = false }), index.h("slot", { key: '0185bb00a4bd55193ff3cf9594f45a3d2da9f8d9' }))));
59
69
  }
60
70
  static get watchers() { return {
61
71
  "showMobileFilters": ["watchHandler"]
@@ -1 +1 @@
1
- {"file":"jump-filter.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,aAAa,GAAG,uiCAAuiC,CAAC;AAC9jC,yBAAe,aAAa;;MCMf,UAAU;;;yBAE0B,UAAU;6BACzB,YAAY;iCACR,QAAQ;gCACT,SAAS;+BACV,GAAG;;6BAGJ,CAAC;iCACI,KAAK;wBACd,KAAK;;IAMlC,mBAAmB,CAAC,KAAkB;;QAEpC,IAAI,CAAC,OAAO,mCAAO,IAAI,CAAC,OAAO,KAAE,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,GAAC,CAAC;QAC3E,OAAO,CAAC,GAAG,CAAC,0CAA0C,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;;KAKvE;IAGD,YAAY;QACV,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC;KAC1D;IAGD,YAAY,CAAC,QAAiB,EAAE,QAAiB;;QAC/C,IAAI,QAAQ,KAAK,QAAQ,EAAE;YACzB,IAAI,QAAQ,EAAE;gBACZ,MAAA,IAAI,CAAC,YAAY,0CAAE,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;gBACzD,MAAA,IAAI,CAAC,aAAa,0CAAE,YAAY,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;aAC1D;iBAAM;gBACL,MAAA,IAAI,CAAC,YAAY,0CAAE,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;gBAC1D,MAAA,IAAI,CAAC,aAAa,0CAAE,YAAY,CAAC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AAC,aAAa,CAAM,CACzB,EACD,IAAI,CAAC,QAAQ,IAAIA,wEAAW,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,EAAE,EAAC,KAAK,EAAE,sBAAsB,EAC1G,OAAO,EAAE,MAAM,IAAI,CAAC,iBAAiB,GAAG,KAAK,GAAc,EAC3DA,oEAAa,CACT,CACL,EACP;KACH;;;;;;;;;","names":["h","Host"],"sources":["src/components/jump-filter/jump-filter.scss?tag=jump-filter&encapsulation=shadow","src/components/jump-filter/jump-filter.tsx"],"sourcesContent":[":host {\n --primary-standard: var(--secondary-hard, #435171);\n //--jump-button-background-hover: var(--secondary-hard, #435171);\n --jump-button-background-hover: red;\n --bg-drawer: var(--bg-drawer, #fff);\n --header-height: var(--header-height, 80px);\n --drawer-width: var(--drawer-width, 240px);\n\n h3 {\n margin: 0;\n }\n}\n\n.filtersDrawer {\n position: fixed;\n display: flex;\n flex-direction: column;\n gap: 2.5rem;\n left: -100vw;\n top: var(--header-height);\n height: -webkit-fill-available;\n max-height: calc(100vh - var(--header-height));\n transition: 0.3s all ease-in-out;\n background-color: var(--bg-drawer, #fff);\n padding: 1rem;\n width: 100%;\n max-width: var(--drawer-width);\n box-shadow: 8px 0 15px 0 #00000026;\n z-index: 2;\n overflow: auto;\n\n &[aria-hidden=\"false\"] {\n left: 0;\n transition: 0.3s all ease-in-out;\n\n .filtersDrawer__close {\n position: fixed;\n top: calc(var(--header-height) + 1rem);\n left: calc(var(--drawer-width) - 2rem);\n }\n }\n\n @media (min-width: 768px) { //md breakpoint tailwind\n position: relative;\n left: 0;\n height: auto;\n max-width: initial;\n box-shadow: none;\n }\n\n .filtersDrawer__header {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: 0.5rem;\n }\n}\n","import { Component, Host, Prop, h, State, Listen, Method, Watch } from '@stencil/core';\n\n@Component({\n tag: 'jump-filter',\n styleUrl: 'jump-filter.scss',\n shadow: true,\n})\nexport class JumpFilter {\n\n @Prop() direction: 'horizontal' | 'vertical' = 'vertical';\n @Prop() filterHeading: string = 'Filtra per';\n @Prop() filterButtonLabel: string = 'Filtri';\n @Prop() filterButtonIcon: string = 'sliders';\n @Prop() mobileThreshold: number = 768;\n @Prop() filters: any;\n\n @State() activeFilters: number = 0;\n @State() showMobileFilters: boolean = false;\n @State() isMobile: boolean = false;\n\n mobileToggle: HTMLElement | null;\n filtersDrawer: HTMLElement;\n\n @Listen('jump-filterchange')\n filterChangeHandler(event: CustomEvent) {\n //set this.filter as this.filters[event.detail.name] = event.detail.value; even if not present\n this.filters = {...this.filters, [event.detail.name]: event.detail.values};\n console.log('Received the custom filterChange event: ', this.filters);\n\n\n\n //TODO: increment this.activeFilters\n }\n\n @Listen('resize', { target: 'window' })\n handleResize() {\n this.isMobile = window.innerWidth < this.mobileThreshold;\n }\n\n @Watch('showMobileFilters')\n watchHandler(newValue: boolean, oldValue: boolean) {\n if (newValue !== oldValue) {\n if (newValue) {\n this.mobileToggle?.setAttribute('aria-expanded', 'true');\n this.filtersDrawer?.setAttribute('aria-hidden', 'false');\n } else {\n this.mobileToggle?.setAttribute('aria-expanded', 'false');\n this.filtersDrawer?.setAttribute('aria-hidden', 'true');\n }\n }\n }\n\n /**\n * Get the active filters from the component\n */\n @Method()\n async getFilters() {\n return this.filters;\n }\n\n componentDidLoad(){\n this.handleResize();\n }\n\n render() {\n return (\n <Host mobileFilters={this.showMobileFilters}>\n {this.isMobile && <jump-button\n ref={(el) => {this.mobileToggle = el}}\n buttonId={this.filterButtonIcon} variant={'primary'} outline\n onClick={() => this.showMobileFilters = !this.showMobileFilters}>\n <slot name=\"prefix\">\n {this.filterButtonIcon &&\n <jump-icon library=\"fa\" category=\"regular\" name={this.filterButtonIcon} size=\"small\"></jump-icon>}\n {this.filterButtonLabel}\n </slot>\n <slot name=\"suffix\">\n {this.activeFilters > 0 &&\n <jump-badge label={this.activeFilters.toString()} variant=\"success\" soft dimension=\"dot\">1</jump-badge>}\n </slot>\n </jump-button>}\n\n {<div\n ref={(el) => {this.filtersDrawer = el}}\n class=\"filtersDrawer\" data-variant={this.direction}>\n {!this.isMobile &&\n <div class={'filtersDrawer__header'}>\n <jump-icon class=\"small\" name={this.filterButtonIcon}></jump-icon>\n <h3>{this.filterHeading}</h3>\n </div>}\n {this.isMobile && <jump-icon library=\"lucide\" name=\"x\" size=\"small\" label=\"\" class={'filtersDrawer__close'}\n onClick={() => this.showMobileFilters = false}></jump-icon>}\n <slot></slot>\n </div>}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"jump-filter.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,aAAa,GAAG,ugDAAugD,CAAC;AAC9hD,yBAAe,aAAa;;MCMf,UAAU;;;yBAE0B,UAAU;6BACzB,YAAY;iCACR,QAAQ;gCACT,SAAS;+BACV,GAAG;;yBAER,KAAK;gCACE,KAAK;6BAER,CAAC;iCACI,KAAK;wBACd,KAAK;gCACE,wBAAwB;;IAM5D,mBAAmB,CAAC,KAAkB;;QAEpC,IAAI,CAAC,OAAO,mCAAQ,IAAI,CAAC,OAAO,KAAE,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,GAAE,CAAC;QAC7E,OAAO,CAAC,GAAG,CAAC,0CAA0C,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;;KAIvE;IAGD,YAAY;QACV,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC;KAC1D;IAGD,YAAY,CAAC,QAAiB,EAAE,QAAiB;;QAC/C,IAAI,QAAQ,KAAK,QAAQ,EAAE;YACzB,IAAI,QAAQ,EAAE;gBACZ,MAAA,IAAI,CAAC,YAAY,0CAAE,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;gBACzD,MAAA,IAAI,CAAC,aAAa,0CAAE,YAAY,CAAC,aAAa,EAAE,OAAO,CAA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IAAI,CAAC,gBAAgB,EAC5B,OAAO,EAAE,MAAM,IAAI,CAAC,iBAAiB,GAAG,KAAK,GAAQ,EAE3DA,kEACC,GAAG,EAAE,CAAC,EAAE;gBACN,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;aACzB,EACD,KAAK,EAAC,eAAe,kBAAe,IAAI,CAAC,SAAS,IACjD,CAAC,IAAI,CAAC,QAAQ;YACbA,kEAAK,KAAK,EAAE,uBAAuB,IACjCA,wEAAW,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,IAAI,CAAC,gBAAgB,GAAc,EAClEA,mEAAK,IAAI,CAAC,aAAa,CAAM,CACzB,EACP,IAAI,CAAC,QAAQ,IAAIA,wEAAW,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,EAAE,EAAC,KAAK,EAAE,sBAAsB,EAC7E,OAAO,EAAE,MAAM,IAAI,CAAC,iBAAiB,GAAG,KAAK,GAAc,EACxFA,oEAAa,CACT,CACD,EACP;KACH;;;;;;;;;","names":["h","Host"],"sources":["src/components/jump-filter/jump-filter.scss?tag=jump-filter&encapsulation=shadow","src/components/jump-filter/jump-filter.tsx"],"sourcesContent":[":host {\n --primary-standard: var(--secondary-hard, #435171);\n //--jump-button-background-hover: var(--secondary-hard, #435171);\n --jump-button-background-hover: red;\n --bg-drawer: var(--bg-drawer, #fff);\n --header-height: var(--header-height, 80px);\n --drawer-width: var(--drawer-width, 240px);\n --overlay-bg-color: var(--overlay-bg-color, rgba(0, 0, 0, 0.35));\n\n h3 {\n margin: 0;\n }\n}\n\n@mixin fade-in-out($duration: 0.3s, $ease: ease-in-out) {\n opacity: 0;\n transition: opacity $duration $ease;\n\n &.filtersDrawer__overlay--active {\n opacity: 1;\n }\n}\n\n.filtersDrawer__overlay {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: var(--overlay-bg-color, rgba(0, 0, 0, 0.35));\n z-index: 1;\n width: 100vw;\n height: 100vh;\n display: none;\n\n &.filtersDrawer__overlay--active {\n display: block;\n }\n\n @include fade-in-out();\n}\n\n.filtersDrawer {\n position: fixed;\n display: flex;\n flex-direction: column;\n gap: 2.5rem;\n left: -100vw;\n top: var(--header-height);\n height: -webkit-fill-available;\n max-height: calc(100vh - var(--header-height));\n transition: 0.3s all ease-in-out;\n background-color: var(--bg-drawer, #fff);\n padding: 1rem;\n width: 100%;\n max-width: var(--drawer-width);\n box-shadow: 8px 0 15px 0 #00000026;\n z-index: 2;\n overflow: auto;\n\n &[aria-hidden=\"false\"] {\n left: 0;\n right: 0;\n width: auto;\n transition: 0.3s all ease-in-out;\n\n .filtersDrawer__close {\n position: fixed;\n top: calc(var(--header-height) + 1rem);\n left: calc(var(--drawer-width) - 2rem);\n }\n }\n\n @media (min-width: 768px) { //md breakpoint tailwind\n position: relative;\n left: 0;\n height: auto;\n max-width: initial;\n max-height: initial;\n box-shadow: none;\n }\n\n .filtersDrawer__header {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: 0.5rem;\n }\n}\n","import { Component, Host, Prop, h, State, Listen, Method, Watch } from '@stencil/core';\n\n@Component({\n tag: 'jump-filter',\n styleUrl: 'jump-filter.scss',\n shadow: true,\n})\nexport class JumpFilter {\n\n @Prop() direction: 'horizontal' | 'vertical' = 'vertical';\n @Prop() filterHeading: string = 'Filtra per';\n @Prop() filterButtonLabel: string = 'Filtri';\n @Prop() filterButtonIcon: string = 'sliders';\n @Prop() mobileThreshold: number = 768;\n @Prop() filters: any;\n @Prop() showCount: boolean = false;\n @Prop() offCanvasOverlay: boolean = false;\n\n @State() activeFilters: number = 0;\n @State() showMobileFilters: boolean = false;\n @State() isMobile: boolean = false;\n @State() offCanvasClasses: string = 'filtersDrawer__overlay';\n\n mobileToggle: HTMLElement | null;\n filtersDrawer: HTMLElement;\n\n @Listen('jump-filterchange')\n filterChangeHandler(event: CustomEvent) {\n //set this.filter as this.filters[event.detail.name] = event.detail.value; even if not present\n this.filters = { ...this.filters, [event.detail.name]: event.detail.values };\n console.log('Received the custom filterChange event: ', this.filters);\n\n\n //TODO: increment this.activeFilters\n }\n\n @Listen('resize', { target: 'window' })\n handleResize() {\n this.isMobile = window.innerWidth < this.mobileThreshold;\n }\n\n @Watch('showMobileFilters')\n watchHandler(newValue: boolean, oldValue: boolean) {\n if (newValue !== oldValue) {\n if (newValue) {\n this.mobileToggle?.setAttribute('aria-expanded', 'true');\n this.filtersDrawer?.setAttribute('aria-hidden', 'false');\n this.offCanvasClasses = 'filtersDrawer__overlay filtersDrawer__overlay--active';\n } else {\n this.mobileToggle?.setAttribute('aria-expanded', 'false');\n this.filtersDrawer?.setAttribute('aria-hidden', 'true');\n this.offCanvasClasses = 'filtersDrawer__overlay';\n }\n }\n }\n\n /**\n * Get the active filters from the component\n */\n @Method()\n async getFilters() {\n return this.filters;\n }\n\n componentDidLoad() {\n this.handleResize();\n }\n\n render() {\n return (\n <Host mobileFilters={this.showMobileFilters}>\n {this.isMobile && <jump-button\n ref={(el) => {\n this.mobileToggle = el;\n }}\n buttonId={this.filterButtonIcon} variant={'primary'} outline\n onClick={() => this.showMobileFilters = !this.showMobileFilters}>\n <slot name=\"prefix\">\n {this.filterButtonIcon &&\n <jump-icon library=\"fa\" category=\"regular\" name={this.filterButtonIcon} size=\"small\"></jump-icon>}\n {this.filterButtonLabel}\n </slot>\n <slot name=\"suffix\">\n {this.activeFilters > 0 &&\n <jump-badge label={this.activeFilters.toString()} variant=\"success\" soft dimension=\"dot\">1</jump-badge>}\n </slot>\n </jump-button>}\n\n {this.offCanvasOverlay &&\n <div class={this.offCanvasClasses}\n onClick={() => this.showMobileFilters = false}></div>}\n\n {<div\n ref={(el) => {\n this.filtersDrawer = el;\n }}\n class=\"filtersDrawer\" data-variant={this.direction}>\n {!this.isMobile &&\n <div class={'filtersDrawer__header'}>\n <jump-icon class=\"small\" name={this.filterButtonIcon}></jump-icon>\n <h3>{this.filterHeading}</h3>\n </div>}\n {this.isMobile && <jump-icon library=\"lucide\" name=\"x\" size=\"small\" label=\"\" class={'filtersDrawer__close'}\n onClick={() => this.showMobileFilters = false}></jump-icon>}\n <slot></slot>\n </div>}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -136,10 +136,10 @@ const JumpFiltergroup = class {
136
136
  //this.toggleHiddenItems();
137
137
  }
138
138
  render() {
139
- return (index.h(index.Host, { key: '617ff708e4d0d0e253ffc68ef6b09454979b825c' }, this.heading && index.h("h5", { key: '3b52d2bd28904d992a9e6484dffd4fd843912460' }, this.heading), index.h("div", { key: 'c58c3529632b7a12f5672f003db9c2796dfd3ab9', class: "filterGroup" }, index.h("slot", { key: '9a670a5c3413cb70509ce46c9e9120f11d274f00', ref: (el) => (this.slotItemsWrapper = el) })), this.inputs.length > this.maxElements &&
140
- index.h("jump-button", { key: '6501171c07fc582145449de789b5a6d65e4288e2', variant: "primary", size: "small", text: true, name: this.label, "aria-label": this.label, ref: (showMoreBtn) => {
139
+ return (index.h(index.Host, { key: 'd9c404b2cf02f6ccf99ee90fa016f3be62ca744d' }, this.heading && index.h("h5", { key: 'cbb0fcd303422832ad6a95a3659da5009a31a01f' }, this.heading), index.h("div", { key: '48581de8b6c699f5292cbeec105732da52afce2e', class: "filterGroup" }, index.h("slot", { key: '1d9891b55f19aba6bc3996d68c69f0bcda162729', ref: (el) => (this.slotItemsWrapper = el) })), this.inputs.length > this.maxElements &&
140
+ index.h("jump-button", { key: 'c04e54b74f4441b390bfa91794a775c10dc32ba0', variant: "primary", size: "small", text: true, name: this.label, "aria-label": this.label, ref: (showMoreBtn) => {
141
141
  this.showMoreBtn = showMoreBtn;
142
- }, onClick: () => this.handleShowMore() }, this.label, index.h("jump-icon", { key: 'f58c9913533102fa524f25d8e713224875e05ca1', slot: "suffix", name: !this.showMore ? 'chevron-down' : 'chevron-up' }))));
142
+ }, onClick: () => this.handleShowMore() }, this.label, index.h("jump-icon", { key: '231791a78b2ecefb2c7c841d5440162766dc0ad4', slot: "suffix", name: !this.showMore ? 'chevron-down' : 'chevron-up' }))));
143
143
  }
144
144
  static get watchers() { return {
145
145
  "showMore": ["watchShowMore"]
@@ -28,14 +28,14 @@ const JumpNavbar = class {
28
28
  }
29
29
  render() {
30
30
  var _a, _b;
31
- return (index.h(index.Host, { key: '87fa483a27dc0314a3fadcc0b7c4cf61013ad98d' }, index.h("jump-button", { key: 'b2756659bde1018ea284a59d0919729e593364ac', variant: "primary", size: "small", text: true, href: this.logo['link'], target: (_a = this.logo['target']) !== null && _a !== void 0 ? _a : '_self' }, index.h("img", { key: 'b3b7d8f6028d16d0967d7fdb71068cd9f2a0636c', src: this.logo['image_url'], alt: this.logo['alt'] })), this.isMobile &&
32
- index.h("div", { key: '9ff3e44a80259536f2bbb58ccc6be5967a3dc189', class: "MobileMenuOffCanvas" }, index.h("div", { key: 'c8e35bfbea3eb84d9df53fe8f18fa5cdccfe31c0', class: "MobileMenuOffCanvas__Header" }, "/* TODO: ricerca + pulsante chiusura + profilo utente con immagine */"), index.h("div", { key: 'ac6ad3c511ce635f4aa541a8326e97a77d3c4f2b', class: "MobileMenuOffCanvas__Navbar" }, this.navbar.cloneNode(true)), index.h("div", { key: 'f0f1ef266da0efa437c08df92a7d481b68892329', class: "MobileMenuOffCanvas__Footer" }, "/* TODO: langswitcher */", this.mobileLogo &&
33
- index.h("jump-button", { key: '6eaa0a821b15ea28e8a8672e03cf51c5e57a1ca1', variant: "primary", size: "small", text: true, href: this.mobileLogo['link'], target: (_b = this.mobileLogo['target']) !== null && _b !== void 0 ? _b : '_self' }, index.h("img", { key: '7ef8f3187b555bc27172d062fb19a20423409bbc', src: this.mobileLogo['image_url'], alt: this.mobileLogo['alt'] })))), index.h("nav", { key: 'ab7a9bcbd9e907448a6dc393f1efa32e80752856', ref: (el) => {
31
+ return (index.h(index.Host, { key: '4d846e61a027637ebe6023e9e155d754a716a0cb' }, index.h("jump-button", { key: '590ef7421967e36e061d4d2d49d9d8b10b0cb7d3', variant: "primary", size: "small", text: true, href: this.logo['link'], target: (_a = this.logo['target']) !== null && _a !== void 0 ? _a : '_self' }, index.h("img", { key: '951c8ad45b8e3cd754fd4426c73358541d7bb612', src: this.logo['image_url'], alt: this.logo['alt'] })), this.isMobile &&
32
+ index.h("div", { key: '4deeaa5bbdf1b9434dd8a4afbf32953aa7eabbe6', class: "MobileMenuOffCanvas" }, index.h("div", { key: '284504331b55f1fcb79408da6616c85b7d9542ee', class: "MobileMenuOffCanvas__Header" }, "/* TODO: ricerca + pulsante chiusura + profilo utente con immagine */"), index.h("div", { key: 'a8ba842d267d77aecf0a211e9c37052617b3ffd8', class: "MobileMenuOffCanvas__Navbar" }, this.navbar.cloneNode(true)), index.h("div", { key: '7b08ba459362c3c6ee68ad2915f9a8addadafbde', class: "MobileMenuOffCanvas__Footer" }, "/* TODO: langswitcher */", this.mobileLogo &&
33
+ index.h("jump-button", { key: '28ca557df1446898114567a84813c41cc1d47d73', variant: "primary", size: "small", text: true, href: this.mobileLogo['link'], target: (_b = this.mobileLogo['target']) !== null && _b !== void 0 ? _b : '_self' }, index.h("img", { key: '315be508f2902a9a5a69aff78b4c36d8daf3e1aa', src: this.mobileLogo['image_url'], alt: this.mobileLogo['alt'] })))), index.h("nav", { key: '19ece653a9c3c6d7728a12744ffe8c06618c1f97', ref: (el) => {
34
34
  this.navbar = el;
35
- } }, index.h("ul", { key: '70c90191941c1b371218a69216f30921c5e097af' }, this.navItems.map((item) => (index.h("li", null, index.h("jump-button", { variant: "primary", size: "small", text: true, href: item.link, target: item.target, class: item.class }, item.text, this.secondaryNavItems.some(secondaryItem => secondaryItem.parent === item.id) &&
35
+ } }, index.h("ul", { key: 'e60bf04441e02eca702dcc7760df97388c1f1043' }, this.navItems.map((item) => (index.h("li", null, index.h("jump-button", { variant: "primary", size: "small", text: true, href: item.link, target: item.target, class: item.class }, item.text, this.secondaryNavItems.some(secondaryItem => secondaryItem.parent === item.id) &&
36
36
  index.h("jump-icon", { slot: "suffix", library: "lucide", name: "chevron-down", size: "small" })), this.secondaryNavItems.map((secondaryItem) => (secondaryItem.parent === item.id &&
37
37
  index.h("ul", { "data-parent": secondaryItem.parent }, secondaryItem.title &&
38
- index.h("h4", null, secondaryItem.title), " /* TODO: utilizzare jump-heading? */", secondaryItem.items.map((subItem) => (index.h("li", null, index.h("jump-button", { variant: "primary", size: "small", text: true, href: subItem.link, target: subItem.target, class: subItem.class }, subItem.text)))))))))))), index.h("slot", { key: '7edb581eab5c8942b9670129f893e92eefe9b5f3', name: "actions" }, index.h("slot", { key: '9e1eaf7c15bd2767d78d00a594a28f1d867ebb6d', name: "lang_switcher" }), index.h("slot", { key: '9cff169f4012c9dc87e9b6b78497f3c0e53dae58', name: "search" }), index.h("slot", { key: '465d61b9266c7ff12cfd434decd44579b84ab908', name: "buttons" }), index.h("slot", { key: 'c7e66e9bc83921f327f4f7fe74e3e68ac3d4a44a', name: "cart" }))));
38
+ index.h("h4", null, secondaryItem.title), " /* TODO: utilizzare jump-heading? */", secondaryItem.items.map((subItem) => (index.h("li", null, index.h("jump-button", { variant: "primary", size: "small", text: true, href: subItem.link, target: subItem.target, class: subItem.class }, subItem.text)))))))))))), index.h("slot", { key: 'cde57eeb4d6586c370fbfb5d10e02dc423427af5', name: "actions" }, index.h("slot", { key: 'ad86ec7167939e4624489d0db2cbd3a7aa6bc721', name: "lang_switcher" }), index.h("slot", { key: 'c87b4a71d6183f21aff9155143e22a1fbe6cc7c4', name: "search" }), index.h("slot", { key: 'ac62a46a3aac954fb915e134ffcc149ece432a5f', name: "buttons" }), index.h("slot", { key: '0d49662ba2bba745efbd9d8151917c780cdfd632', name: "cart" }))));
39
39
  }
40
40
  };
41
41
  JumpNavbar.style = JumpNavbarStyle0;
@@ -81,9 +81,9 @@ const JumpPaginationTable = class {
81
81
  /* --------------------- RENDER ------------------------------- */
82
82
  render() {
83
83
  var _a;
84
- return (index.h(index.Host, { key: '68cfdc8f670c77a14605e4f151b41e2d551531e5', class: "JumpPaginationTable" }, index.h("div", { key: '80d51c132999625d22b6e7ed73867e79a043ae99', class: "JumpPaginationTable__Wrapper" }, index.h("div", { key: '709e412acf386ad3149e7a04208a0ea4948b4f0b', class: "elementsPerPage" }, index.h("label", { key: '73985f2877b3c242b8deccb68ac11c878780e6ee', htmlFor: "elements" }, (_a = this.labelElementsPerPage) !== null && _a !== void 0 ? _a : 'Elements per page'), index.h("select", { key: '0def3077b6dc04018aecd2f50b0301bc19c29527', name: "elements", id: "elements", onChange: (e) => this.setElPerPage(e) }, this.elementsRangesArray.map((range) => (index.h("option", { value: range, selected: (this.elPerPage == range) && true }, range))))), index.h("div", { key: 'c2691bc0e79d043625977b276ac38ec10a41d73b', class: "indicators" }, index.h("div", { key: 'd9d62ca7b06479244bb396d38fc01dd86236515d', class: "elements" }, index.h("span", { key: '51ea23a9d77319738404c8b6ead86ea0a9052e1c' }, index.h("span", { key: '8fd64ef028151ae61c31998f72036ff4c9c9f151' }, this.first), " - ", index.h("span", { key: 'a001b2a509920566c34a41afb24a823e0445c3e2' }, this.last), " ", this.pagLabel, " ", index.h("span", { key: '9a27e142353e7d410655f270988183a82c0792a1' }, this.total))), index.h("div", { key: 'ba778721da92c9147449de9d0869a06d65615602', class: "arrow" }, this.showFirstAndLast &&
85
- index.h("jump-button", { key: '76dfd54bfa05a6c33489aa41f9150c793fac5f85', 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 }, " ", index.h("jump-icon", { key: '0aee871e37e2e5b5190fc62cd8c8617d209f57ed', slot: "suffix", name: "chevrons-left" }), " "), index.h("jump-button", { key: '9e82cf38238d358a4084078b975a3f75bf55e9fe', 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 }, " ", index.h("jump-icon", { key: '7303a4371e0540dfa28feaf4a1f69662b646e64b', slot: "suffix", name: "chevron-left" }), " "), index.h("jump-button", { key: '4bfb0713a9a374c30873e046b7ded26965cfce84', 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 }, " ", index.h("jump-icon", { key: '52c929962accd14480152a0dfd2e03904fd79fc4', slot: "suffix", name: "chevron-right" }), " "), this.showFirstAndLast &&
86
- index.h("jump-button", { key: '6f0c43ef094c622447cd1095ab70ce6bfd2c464a', 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 }, " ", index.h("jump-icon", { key: 'cb05b4a61efdebf03a17b353f17572d038df251f', slot: "suffix", name: "chevrons-right" }), " "))))));
84
+ return (index.h(index.Host, { key: '1dda2093aa5db80f7f6260ec3b7b5bd72d4052e0', class: "JumpPaginationTable" }, index.h("div", { key: '5a2b79b4edae8d0e57634adebf82420e0af35c70', class: "JumpPaginationTable__Wrapper" }, index.h("div", { key: 'a850c96c7271cb8a1c397a9a2ddc73bdf2ee7c29', class: "elementsPerPage" }, index.h("label", { key: '6492f9b966c7d478294d94e094738326c61cdccd', htmlFor: "elements" }, (_a = this.labelElementsPerPage) !== null && _a !== void 0 ? _a : 'Elements per page'), index.h("select", { key: '9267913fac8a30d4a9c0808311cadcc1bbaf3040', name: "elements", id: "elements", onChange: (e) => this.setElPerPage(e) }, this.elementsRangesArray.map((range) => (index.h("option", { value: range, selected: (this.elPerPage == range) && true }, range))))), index.h("div", { key: 'b537b63284129d72b74f5840c746e8c2af64ad5b', class: "indicators" }, index.h("div", { key: '953b71539236ec5568aa05c27c6013b410cf1bb2', class: "elements" }, index.h("span", { key: 'a4a7e076ae54547c28efe931abc6c47e46a10210' }, index.h("span", { key: '9aef003d0e4ae086054ed93474f41f41c9a8c9a0' }, this.first), " - ", index.h("span", { key: '8b21dcbe189896770d960f234be75b79aa472488' }, this.last), " ", this.pagLabel, " ", index.h("span", { key: '5bed4022d88261ba0f81ea1c4efe638e7b618256' }, this.total))), index.h("div", { key: 'e5e9157e33a0bc378ce23c067ca1697118f8e60a', class: "arrow" }, this.showFirstAndLast &&
85
+ index.h("jump-button", { key: '425e0f5133d814a6d4ebc73a0286cddbb377e778', 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 }, " ", index.h("jump-icon", { key: '042d40650b7e22c7039f7a36f6bd139219ae7ee6', slot: "suffix", name: "chevrons-left" }), " "), index.h("jump-button", { key: '766ebbcfa2d5dec6094fa38f42b1a4fa41bc96d3', 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 }, " ", index.h("jump-icon", { key: 'f7e98586070a619cc614c2aaaf7cc8176f8c8737', slot: "suffix", name: "chevron-left" }), " "), index.h("jump-button", { key: 'e72ab0fd379b3ba4028ea454218f75d7d9871988', 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 }, " ", index.h("jump-icon", { key: '92c2a994bbadbdb6ac40044426587bfe8ecf790d', slot: "suffix", name: "chevron-right" }), " "), this.showFirstAndLast &&
86
+ index.h("jump-button", { key: '7028f82644633bfb112f62f2fba3bc7eef9754cf', 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 }, " ", index.h("jump-icon", { key: '4240630bbd9a0c0c219d15a0ea6eeb65883c0a4b', slot: "suffix", name: "chevrons-right" }), " "))))));
87
87
  }
88
88
  static get watchers() { return {
89
89
  "elementsRanges": ["elementsRangesChanged"],
@@ -32,7 +32,7 @@ const JumpPagination = class {
32
32
  }
33
33
  /* --------------------- RENDER ------------------------------- */
34
34
  render() {
35
- return (index.h(index.Host, { key: 'e7b289bce3ef2bcfe2b45135b463feb2390c50a3', class: "JumpPagination" }, index.h("div", { key: '6559e463bf9d9973dd037f6b6a23f20816ef1882', class: "JumpPagination__Wrapper" }, index.h("div", { key: '5650bf9580bd470604e8841faf33e6b029549cda', class: "indicators" }, index.h("div", { key: 'b40e74ede39cd17fd770cf1fc46d46644a86fc63', class: "elements" }, index.h("span", { key: 'af919f31f94448c99291a830dd35da7169cd24ec' }, index.h("span", { key: '96b8773daf276e9285b91f06cf6f5fa28a5d6727' }, this.current), " ", this.pagLabel, " ", index.h("span", { key: 'e7dd92a3a48e23d5c28d1b6e0f3c07cddd837598' }, this.last))), index.h("div", { key: '1a3338a3e913f9c92a530203f91e93f6085b607c', class: "arrow" }, this.showFirstAndLast &&
35
+ return (index.h(index.Host, { key: '0d8a0a487d41050eff65c41bff0e20e7f8abe433', class: "JumpPagination" }, index.h("div", { key: 'c1c91aac8d9ad943ba38f17299d413f6b3a1d5aa', class: "JumpPagination__Wrapper" }, index.h("div", { key: '8dbead9e599c4750a30c7490c4a704d43c7ca9bb', class: "indicators" }, index.h("div", { key: '895b683174acd6517689a1b2e3f69378d5cf2b48', class: "elements" }, index.h("span", { key: 'b0ce7fb257a15f3a1e35548f976bf6baa2308017' }, index.h("span", { key: '84e42742f53628b69f90b88a88817d3c4d2ea5f1' }, this.current), " ", this.pagLabel, " ", index.h("span", { key: 'f85a4f32cf66fec16efa76bfc88e21d4c41e3406' }, this.last))), index.h("div", { key: 'd33612fdd1a9d917256ce8e9f7fce45c158243dc', class: "arrow" }, this.showFirstAndLast &&
36
36
  // <button
37
37
  // onClick={() => {this.current = 1} }
38
38
  // disabled={(this.current === 1) ? true : false}>
@@ -40,14 +40,14 @@ const JumpPagination = class {
40
40
  // disabled={(this.current === 1) ? true : false}
41
41
  // ></jump-icon>
42
42
  // </button>
43
- index.h("jump-button", { key: '23075cb5a2513048e7ee690242f0ce5a54c95538', 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 }, " ", index.h("jump-icon", { key: '0e834c3117fca9d2dd593a4b5ceb3934e7eb547a', slot: "suffix", name: "chevrons-left" }), " "), index.h("jump-button", { key: 'fc27582a142ed6051187692f6a31a2c51f91e4af', 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 }, " ", index.h("jump-icon", { key: 'a2998274cf27c33b80f7fd0c917a5583b70ef8f0', slot: "suffix", name: "chevron-left" }), " "), index.h("jump-button", { key: '26d7a56a2a0312cf526dcf9bc432679c756534f1', 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 }, " ", index.h("jump-icon", { key: '6769d3484fdd63d2fff5268392111137273b9541', slot: "suffix", name: "chevron-right" }), " "), this.showFirstAndLast &&
43
+ index.h("jump-button", { key: '26db97e47f3254b72643f7bb73bbdecdc733c2d6', 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 }, " ", index.h("jump-icon", { key: '16c2e37bd1726c5c6852d74eec67d042cba25d46', slot: "suffix", name: "chevrons-left" }), " "), index.h("jump-button", { key: '105c2ea910ffbfe4d00957158d546c198e3f11b6', 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 }, " ", index.h("jump-icon", { key: 'b0066718df5f60bd148dffad1c9485f631d0a840', slot: "suffix", name: "chevron-left" }), " "), index.h("jump-button", { key: '00f6565f368c82a16d9819208b3babfef09fe1cf', 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 }, " ", index.h("jump-icon", { key: '337627fd7d3486776f609153522df3ba77c44ce0', slot: "suffix", name: "chevron-right" }), " "), this.showFirstAndLast &&
44
44
  // <button
45
45
  // onClick={() => {this.current = this.last}}
46
46
  // disabled={(this.current === this.last) ? true : false}
47
47
  // >
48
48
  // <jump-icon library="fa" category="regular" name="chevrons-right" size="small" slot="prefix"></jump-icon>
49
49
  // </button>
50
- index.h("jump-button", { key: '7e3c33e8a7c7d7c1dbaeb6009781602023f71133', 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 }, " ", index.h("jump-icon", { key: '418f61b2481e76f5766a92e6b7c8d0fad5dcd70a', slot: "suffix", name: "chevrons-right" }), " "))))));
50
+ index.h("jump-button", { key: '2c052d95c792f43f7899b0503ddbfed79c187ef2', 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 }, " ", index.h("jump-icon", { key: 'f77d6a81d0a9e281dd8a845b100cce5a107085cc', slot: "suffix", name: "chevrons-right" }), " "))))));
51
51
  }
52
52
  static get watchers() { return {
53
53
  "current": ["watchcurrent"]
@@ -74,11 +74,11 @@ const JumpQuantity = class {
74
74
  }
75
75
  }
76
76
  render() {
77
- return (index.h(index.Host, { key: 'c8c5cbaed22ce180cc74a88fe785a1f7b1846c1c', value: this.value, "data-variant": this.variant, "data-hasbuttons": this.showButtons }, this.label && index.h("label", { key: '92006694c00522d202fba822c843365ab6e0d51b' }, this.label), index.h("div", { key: '6299b0b6c5a5b64fbcc7c2206a5d4af5c9f45113', class: `jump-quantity__InnerWrapper` }, this.showButtons &&
78
- index.h("jump-button", { key: '8d8d7b4a24d527ebc10ea47500de30ed9cc39040', onClick: () => this.currentValue = this.currentValue - this.step, disabled: this.currentValue <= this.min, variant: 'neutral', size: 'custom' }, index.h("jump-icon", { key: '34037f49b6b3cba457b2b6c5db774da655c25b3b', library: "lucide", name: "minus", size: "small" })), index.h("input", { key: '93a3a85df493c9d10f98fc93f694d7962162eedd', ref: (el) => {
77
+ return (index.h(index.Host, { key: 'ead75876fa94102bc05c2edda9c77ade65673d3e', value: this.value, "data-variant": this.variant, "data-hasbuttons": this.showButtons }, this.label && index.h("label", { key: '2a7248865a105f2bfd714fefcb91b84627880558' }, this.label), index.h("div", { key: '3bc3f242e8ff48e56effcc0dd2826ea864ffc09a', class: `jump-quantity__InnerWrapper` }, this.showButtons &&
78
+ index.h("jump-button", { key: 'ede33ddf99123df709159d1321ad8296008031b7', onClick: () => this.currentValue = this.currentValue - this.step, disabled: this.currentValue <= this.min, variant: 'neutral', size: 'custom' }, index.h("jump-icon", { key: '84ec5d8030d67e774217141e19ba65d8830eac2e', library: "lucide", name: "minus", size: "small" })), index.h("input", { key: '7d68b98ef548a479496c10d88fe9055a3d070851', ref: (el) => {
79
79
  this.inputEl = el;
80
80
  }, type: 'number', value: this.currentValue, onInput: (event) => this.handleChange(event), min: this.min, max: this.max, step: this.step, "aria-hasbuttons": this.showButtons }), this.showButtons &&
81
- index.h("jump-button", { key: '76105e10b7432b7fcf0161e44f0e298296b18a6d', onClick: () => this.currentValue = this.currentValue + this.step, disabled: this.currentValue >= this.max, variant: 'neutral', size: 'custom' }, index.h("jump-icon", { key: '5431d4f069b27f418aca9856099e12a777954009', library: "lucide", name: "plus", size: "small" })))));
81
+ index.h("jump-button", { key: '5b8861e22252a67b9ccd79f52af83afa4ebade05', onClick: () => this.currentValue = this.currentValue + this.step, disabled: this.currentValue >= this.max, variant: 'neutral', size: 'custom' }, index.h("jump-icon", { key: '0b771717df4d441a500a0176e43e6fdf26cf9514', library: "lucide", name: "plus", size: "small" })))));
82
82
  }
83
83
  static get formAssociated() { return true; }
84
84
  get el() { return index.getElement(this); }
@@ -49,8 +49,8 @@ const JumpSearchBar = class {
49
49
  ;
50
50
  /* -------------------- RENDER ------------------------- */
51
51
  render() {
52
- return (index.h(index.Host, { key: 'efa1c6cdd7f2cb5d22b50707aee020bab23609b0', class: "JumpSearchBar " + (this.searchType == 'manual' ? 'manual outline' : (this.searchType + " " + this.variant)) }, index.h("input", { key: '823778b4c704a72ff14662dff408b41b4fe79fb1', placeholder: this.placeholder, type: "search", id: this.identifier, class: "search-input", ref: (el) => { this.jumpSearchBar = el; }, onInput: this.searchType === 'auto' ? this.debounce(this.doSearch) : undefined }), this.searchType === 'manual' &&
53
- index.h("jump-button", { key: '8f940966131504f605b0aadb272e0c590fb2b32f', variant: "secondary", size: "medium", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, onClick: () => this.doSearch() }, index.h("jump-icon", { key: 'df8a23cd6a3b8374bfb18fc2a9061ef4af5f887a', slot: "suffix", name: "magnifying-glass" }))));
52
+ return (index.h(index.Host, { key: 'a6ed47f15cdd659528d60d3c4d2b977d3afa5c49', class: "JumpSearchBar " + (this.searchType == 'manual' ? 'manual outline' : (this.searchType + " " + this.variant)) }, index.h("input", { key: '0667503e17f20d6f897c209a4f5c689adf55d00a', placeholder: this.placeholder, type: "search", id: this.identifier, class: "search-input", ref: (el) => { this.jumpSearchBar = el; }, onInput: this.searchType === 'auto' ? this.debounce(this.doSearch) : undefined }), this.searchType === 'manual' &&
53
+ index.h("jump-button", { key: 'a5ba6b253e4d427fa91612412cf98308fc164c05', variant: "secondary", size: "medium", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, onClick: () => this.doSearch() }, index.h("jump-icon", { key: '28d875402acb92e9e76baf97207db9d8880dd258', slot: "suffix", name: "magnifying-glass" }))));
54
54
  }
55
55
  };
56
56
  JumpSearchBar.style = JumpSearchBarStyle0;
@@ -28,8 +28,8 @@ const JumpTabItem = class {
28
28
  this.variant = parentVariant;
29
29
  }
30
30
  render() {
31
- return (index.h(index.Host, { key: 'b897b4a721b51eb035b37a38500527bfeea724e3', ref: (el) => { this.tabEl = el; }, class: "JumpTabItem " + (this.active ? 'active' : '') + " " + (this.variant) + " " + (this.disabled ? 'disabled' : '') }, index.h("div", { key: '8b7db229e28aa1812179119eae507db6fc91b722', 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')) &&
32
- index.h("jump-icon", { key: '6135cd085bfec6cc6c827f1ebb5bf16e8d7ba05c', library: "fa", category: "regular", name: this.iconName, size: "small" }), index.h("span", { key: '79ff37f80ea54ea042cc96e326047595adc75be5', class: "label" }, this.label))));
31
+ return (index.h(index.Host, { key: '7007ce478b8de6630f88ec8ed6da7f3fb0d5dd97', ref: (el) => { this.tabEl = el; }, class: "JumpTabItem " + (this.active ? 'active' : '') + " " + (this.variant) + " " + (this.disabled ? 'disabled' : '') }, index.h("div", { key: '04b6b822ddc49ede102e391c99976a6a41f97ee2', 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')) &&
32
+ index.h("jump-icon", { key: '4337d05e761c69a29d431528992ea7c7efe36268', library: "fa", category: "regular", name: this.iconName, size: "small" }), index.h("span", { key: '17ca0b360fc1bf629d7ddd1598c903a437c833ae', class: "label" }, this.label))));
33
33
  }
34
34
  };
35
35
  JumpTabItem.style = JumpTabItemStyle0;
@@ -14,7 +14,7 @@ const JumpTabPanel = class {
14
14
  this.active = false;
15
15
  }
16
16
  render() {
17
- return (index.h(index.Host, { key: 'c307478192ab5d9b581de68902723c04dcd33278', class: "JumpTabPanel", id: this.identifier }, index.h("div", { key: 'ed8748df27a43e0b68be3eacb614eba1aa64d887', class: "JumpTabPanel__Content " + (this.active ? 'active' : '') }, index.h("slot", { key: '22a5c9f17117ea16bbbda5bb067ea4a998f62a32' }))));
17
+ return (index.h(index.Host, { key: '1057ea1667cef613a262c5eb4720445c0e406731', class: "JumpTabPanel", id: this.identifier }, index.h("div", { key: '1b05a31f18518cf65f037f5a605e67d1221bb9dd', class: "JumpTabPanel__Content " + (this.active ? 'active' : '') }, index.h("slot", { key: 'cf471584939f94b0f26b80eab1c524edf5d55078' }))));
18
18
  }
19
19
  };
20
20
  JumpTabPanel.style = JumpTabPanelStyle0;
@@ -76,7 +76,7 @@ const JumpTab = class {
76
76
  }
77
77
  }
78
78
  render() {
79
- return (index.h(index.Host, { key: 'beb020fdd6c31ad90be02ebcee610df87164d90d', class: "JumpTab " + this.variant, id: this.tabGroupName, ref: (el) => { this.JumpTabEl = el; } }, index.h("div", { key: 'f35ed1271bbe668b86ce881181c823e2e360d01a', class: "Wrapper " + (this.fullBorder ? 'fullBorder' : '') }, index.h("div", { key: '334884fcec4a4c45da838679d7331117f7e17846', class: "ContentWrapper", style: { '--alignment': this.getAlignment(this.alignment) } }, index.h("div", { key: 'a43c5ea347c6ab873b858c37933bae62e7e7af05', class: "Content " + this.variant + " " + (this.disabled ? 'disabled' : '') + " " + (this.fullBorder ? 'fullBorder' : ''), style: { '--alignment': this.getAlignment(this.alignment) } }, index.h("slot", { key: '978d754138a255076ad75defae2aeaeceacf94e2', name: "tab-item" }))), index.h("div", { key: '6f698b504147176979c1b018e40ecf4ea1bf3e81', class: "ContentWrapper" }, index.h("slot", { key: '67568f24719d305d4508b75aef2194623ec689fa', name: "tab-content" })))));
79
+ return (index.h(index.Host, { key: '2375f577b5d1691b0f82ef3c2b54cfc4afd949fa', class: "JumpTab " + this.variant, id: this.tabGroupName, ref: (el) => { this.JumpTabEl = el; } }, index.h("div", { key: 'f073494433715e96f782124311b0d8ac447bf157', class: "Wrapper " + (this.fullBorder ? 'fullBorder' : '') }, index.h("div", { key: 'ae12f817900aca44de6f75deb0e7a9f193611331', class: "ContentWrapper", style: { '--alignment': this.getAlignment(this.alignment) } }, index.h("div", { key: '0f4317b86e0b3f0fde02c6ed3847d1d1b7d0e16d', class: "Content " + this.variant + " " + (this.disabled ? 'disabled' : '') + " " + (this.fullBorder ? 'fullBorder' : ''), style: { '--alignment': this.getAlignment(this.alignment) } }, index.h("slot", { key: '7fab1b1ca960c05732b390608f4ce61f2c8d5bf2', name: "tab-item" }))), index.h("div", { key: 'cba8b1d398833aeeaeddaf9964893b82f6b008f3', class: "ContentWrapper" }, index.h("slot", { key: '7f7d3582f30f21d495b517ace5139babc66e4445', name: "tab-content" })))));
80
80
  }
81
81
  getAlignment(alignment) {
82
82
  switch (alignment) {
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["jump-button_2.cjs",[[1,"jump-button",{"disabled":[4],"variant":[1],"outline":[4],"size":[1],"full":[4],"pill":[4],"text":[4],"onlyIcon":[4,"only-icon"],"href":[1],"target":[1],"type":[1],"name":[1],"value":[1],"ariaLabel":[1,"aria-label"],"class":[1],"buttonId":[1,"button-id"]}],[1,"jump-icon",{"class":[1],"library":[1],"name":[1],"category":[1],"size":[1],"label":[1],"src":[1]}]]],["jump-card-ecommerce.cjs",[[1,"jump-card-ecommerce",{"onlyIconButton":[4,"only-icon-button"],"hasBackground":[4,"has-background"],"badge":[1],"favorite":[1540],"hasFavorite":[4,"has-favorite"],"hasSlotForFavorite":[4,"has-slot-for-favorite"],"favoriteHref":[1,"favorite-href"],"link":[1],"img":[1],"imgAlt":[1,"img-alt"],"hoverImg":[1,"hover-img"],"hoverImgAlt":[1,"hover-img-alt"],"videoSrc":[1,"video-src"],"notificationUrl":[1,"notification-url"],"notificationText":[1,"notification-text"],"productName":[1,"product-name"],"subtitle":[1],"productId":[1,"product-id"],"price":[2],"salePrice":[2,"sale-price"],"currency":[1],"outOfStock":[1540,"out-of-stock"],"outOfStockText":[1,"out-of-stock-text"],"addToCartText":[1,"add-to-cart-text"],"waitingListText":[1,"waiting-list-text"],"addToWaitingList":[4,"add-to-waiting-list"],"isMini":[4,"is-mini"],"addedToCart":[4,"added-to-cart"],"endAddedToCart":[4,"end-added-to-cart"],"variations":[32],"selectedVariation":[32],"priceFormatted":[32],"salePriceFormatted":[32],"setPrice":[64]},[[0,"jump-card-ecommerce-option-connected","addOption"]]]]],["jump-filter.cjs",[[1,"jump-filter",{"direction":[1],"filterHeading":[1,"filter-heading"],"filterButtonLabel":[1,"filter-button-label"],"filterButtonIcon":[1,"filter-button-icon"],"mobileThreshold":[2,"mobile-threshold"],"filters":[8],"activeFilters":[32],"showMobileFilters":[32],"isMobile":[32],"getFilters":[64]},[[0,"jump-filterchange","filterChangeHandler"],[9,"resize","handleResize"]],{"showMobileFilters":["watchHandler"]}]]],["jump-filtergroup.cjs",[[1,"jump-filtergroup",{"name":[1],"heading":[1],"otherLabel":[1,"other-label"],"lessLabel":[1,"less-label"],"maxElements":[2,"max-elements"],"variant":[1],"label":[32],"values":[32],"value":[32],"slotItems":[32],"inputs":[32],"showMore":[32],"getValues":[64],"getActiveAmount":[64],"getInputs":[64],"getName":[64]},null,{"showMore":["watchShowMore"]}]]],["jump-navbar.cjs",[[1,"jump-navbar",{"logo":[16],"navItems":[16],"secondaryNavItems":[16],"mobileThreshold":[2,"mobile-threshold"],"type":[1],"navPosition":[1,"nav-position"],"megaMenuAlignment":[1,"mega-menu-alignment"],"sticky":[4],"stickyThreshold":[2,"sticky-threshold"],"mobileLogo":[16],"user":[16],"isMobile":[32]},[[9,"resize","handleResize"]]]]],["jump-pagination.cjs",[[1,"jump-pagination",{"pagLabel":[1,"pag-label"],"last":[2],"showFirstAndLast":[4,"show-first-and-last"],"current":[32]},null,{"current":["watchcurrent"]}]]],["jump-pagination-table.cjs",[[0,"jump-pagination-table",{"elementsRanges":[1,"elements-ranges"],"pagLabel":[513,"pag-label"],"labelElementsPerPage":[513,"label-elements-per-page"],"total":[514],"first":[514],"last":[514],"showFirstAndLast":[516,"show-first-and-last"],"elementsRangesArray":[32],"elPerPage":[32]},null,{"elementsRanges":["elementsRangesChanged"],"elPerPage":["elPerPageChanged"]}]]],["jump-quantity.cjs",[[65,"jump-quantity",{"min":[2],"max":[2],"step":[2],"label":[1],"type":[1],"variant":[1],"showButtons":[4,"show-buttons"],"value":[2],"currentValue":[32],"getValue":[64],"reset":[64]},null,{"value":["onValueChange"]}]]],["jump-search-bar.cjs",[[1,"jump-search-bar",{"placeholder":[1],"identifier":[1],"debounceTime":[2,"debounce-time"],"searchType":[1,"search-type"],"variant":[1]}]]],["jump-accordion.cjs",[[1,"jump-accordion",{"variant":[1],"summary":[1],"disabled":[4],"open":[516],"icon":[1],"identifier":[1]},[[0,"sl-show","handleShow"]]]]],["jump-tab-item.cjs",[[1,"jump-tab-item",{"identifier":[1],"iconName":[1,"icon-name"],"iconPosition":[1,"icon-position"],"label":[1],"active":[4],"disabled":[4],"variant":[32]}]]],["jump-accordion-group.cjs",[[1,"jump-accordion-group",{"variant":[1],"groupIdentifier":[1,"group-identifier"]}]]],["jump-card.cjs",[[4,"jump-card",{"horizontal":[4],"dark":[4],"shadow":[4],"border":[4],"borderRadius":[4,"border-radius"],"topBorderContentRadius":[4,"top-border-content-radius"],"boxed":[4],"roundedMedia":[4,"rounded-media"],"imgSrc":[1,"img-src"],"imgAlt":[1,"img-alt"],"videoSrc":[1,"video-src"]}]]],["jump-card-ecommerce-option.cjs",[[1,"jump-card-ecommerce-option",{"code":[1],"imgUrl":[1,"img-url"],"label":[1],"sku":[1],"taxonomy":[1]}]]],["jump-filter-checkbox.cjs",[[1,"jump-filter-checkbox",{"value":[1],"label":[1],"checked":[516],"count":[8],"isChecked":[64]}]]],["jump-tab.cjs",[[1,"jump-tab",{"disabled":[4],"alignment":[1],"fullBorder":[4,"full-border"],"tabGroupName":[1,"tab-group-name"],"variant":[1]},[[0,"jump-change-active-tab","changeActiveTabHandler"]]]]],["jump-tab-panel.cjs",[[1,"jump-tab-panel",{"identifier":[1],"active":[4]}]]],["jump-badge.cjs",[[1,"jump-badge",{"label":[1],"variant":[513],"dimension":[513],"soft":[516],"outline":[516]}]]]], options);
11
+ return index.bootstrapLazy([["jump-button_2.cjs",[[1,"jump-button",{"disabled":[4],"variant":[1],"outline":[4],"size":[1],"full":[4],"pill":[4],"text":[4],"onlyIcon":[4,"only-icon"],"href":[1],"target":[1],"type":[1],"name":[1],"value":[1],"ariaLabel":[1,"aria-label"],"class":[1],"buttonId":[1,"button-id"]}],[1,"jump-icon",{"class":[1],"library":[1],"name":[1],"category":[1],"size":[1],"label":[1],"src":[1]}]]],["jump-card-ecommerce.cjs",[[1,"jump-card-ecommerce",{"onlyIconButton":[4,"only-icon-button"],"hasBackground":[4,"has-background"],"badge":[1],"favorite":[1540],"hasFavorite":[4,"has-favorite"],"hasSlotForFavorite":[4,"has-slot-for-favorite"],"favoriteHref":[1,"favorite-href"],"link":[1],"img":[1],"imgAlt":[1,"img-alt"],"hoverImg":[1,"hover-img"],"hoverImgAlt":[1,"hover-img-alt"],"videoSrc":[1,"video-src"],"notificationUrl":[1,"notification-url"],"notificationText":[1,"notification-text"],"productName":[1,"product-name"],"subtitle":[1],"productId":[1,"product-id"],"price":[2],"salePrice":[2,"sale-price"],"currency":[1],"outOfStock":[1540,"out-of-stock"],"outOfStockText":[1,"out-of-stock-text"],"addToCartText":[1,"add-to-cart-text"],"waitingListText":[1,"waiting-list-text"],"addToWaitingList":[4,"add-to-waiting-list"],"isMini":[4,"is-mini"],"addedToCart":[4,"added-to-cart"],"endAddedToCart":[4,"end-added-to-cart"],"variations":[32],"selectedVariation":[32],"priceFormatted":[32],"salePriceFormatted":[32],"setPrice":[64]},[[0,"jump-card-ecommerce-option-connected","addOption"]]]]],["jump-filter.cjs",[[1,"jump-filter",{"direction":[1],"filterHeading":[1,"filter-heading"],"filterButtonLabel":[1,"filter-button-label"],"filterButtonIcon":[1,"filter-button-icon"],"mobileThreshold":[2,"mobile-threshold"],"filters":[8],"showCount":[4,"show-count"],"offCanvasOverlay":[4,"off-canvas-overlay"],"activeFilters":[32],"showMobileFilters":[32],"isMobile":[32],"offCanvasClasses":[32],"getFilters":[64]},[[0,"jump-filterchange","filterChangeHandler"],[9,"resize","handleResize"]],{"showMobileFilters":["watchHandler"]}]]],["jump-filtergroup.cjs",[[1,"jump-filtergroup",{"name":[1],"heading":[1],"otherLabel":[1,"other-label"],"lessLabel":[1,"less-label"],"maxElements":[2,"max-elements"],"variant":[1],"label":[32],"values":[32],"value":[32],"slotItems":[32],"inputs":[32],"showMore":[32],"getValues":[64],"getActiveAmount":[64],"getInputs":[64],"getName":[64]},null,{"showMore":["watchShowMore"]}]]],["jump-navbar.cjs",[[1,"jump-navbar",{"logo":[16],"navItems":[16],"secondaryNavItems":[16],"mobileThreshold":[2,"mobile-threshold"],"type":[1],"navPosition":[1,"nav-position"],"megaMenuAlignment":[1,"mega-menu-alignment"],"sticky":[4],"stickyThreshold":[2,"sticky-threshold"],"mobileLogo":[16],"user":[16],"isMobile":[32]},[[9,"resize","handleResize"]]]]],["jump-pagination.cjs",[[1,"jump-pagination",{"pagLabel":[1,"pag-label"],"last":[2],"showFirstAndLast":[4,"show-first-and-last"],"current":[32]},null,{"current":["watchcurrent"]}]]],["jump-pagination-table.cjs",[[0,"jump-pagination-table",{"elementsRanges":[1,"elements-ranges"],"pagLabel":[513,"pag-label"],"labelElementsPerPage":[513,"label-elements-per-page"],"total":[514],"first":[514],"last":[514],"showFirstAndLast":[516,"show-first-and-last"],"elementsRangesArray":[32],"elPerPage":[32]},null,{"elementsRanges":["elementsRangesChanged"],"elPerPage":["elPerPageChanged"]}]]],["jump-quantity.cjs",[[65,"jump-quantity",{"min":[2],"max":[2],"step":[2],"label":[1],"type":[1],"variant":[1],"showButtons":[4,"show-buttons"],"value":[2],"currentValue":[32],"getValue":[64],"reset":[64]},null,{"value":["onValueChange"]}]]],["jump-search-bar.cjs",[[1,"jump-search-bar",{"placeholder":[1],"identifier":[1],"debounceTime":[2,"debounce-time"],"searchType":[1,"search-type"],"variant":[1]}]]],["jump-accordion.cjs",[[1,"jump-accordion",{"variant":[1],"summary":[1],"disabled":[4],"open":[516],"icon":[1],"identifier":[1]},[[0,"sl-show","handleShow"]]]]],["jump-tab-item.cjs",[[1,"jump-tab-item",{"identifier":[1],"iconName":[1,"icon-name"],"iconPosition":[1,"icon-position"],"label":[1],"active":[4],"disabled":[4],"variant":[32]}]]],["jump-accordion-group.cjs",[[1,"jump-accordion-group",{"variant":[1],"groupIdentifier":[1,"group-identifier"]}]]],["jump-card.cjs",[[4,"jump-card",{"horizontal":[4],"dark":[4],"shadow":[4],"border":[4],"borderRadius":[4,"border-radius"],"topBorderContentRadius":[4,"top-border-content-radius"],"boxed":[4],"roundedMedia":[4,"rounded-media"],"imgSrc":[1,"img-src"],"imgAlt":[1,"img-alt"],"videoSrc":[1,"video-src"]}]]],["jump-card-ecommerce-option.cjs",[[1,"jump-card-ecommerce-option",{"code":[1],"imgUrl":[1,"img-url"],"label":[1],"sku":[1],"taxonomy":[1]}]]],["jump-filter-checkbox.cjs",[[1,"jump-filter-checkbox",{"value":[1],"label":[1],"checked":[516],"count":[8],"isChecked":[64]}]]],["jump-tab.cjs",[[1,"jump-tab",{"disabled":[4],"alignment":[1],"fullBorder":[4,"full-border"],"tabGroupName":[1,"tab-group-name"],"variant":[1]},[[0,"jump-change-active-tab","changeActiveTabHandler"]]]]],["jump-tab-panel.cjs",[[1,"jump-tab-panel",{"identifier":[1],"active":[4]}]]],["jump-badge.cjs",[[1,"jump-badge",{"label":[1],"variant":[513],"dimension":[513],"soft":[516],"outline":[516]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -7,28 +7,46 @@ export default {
7
7
  name: 'identifier',
8
8
  description: 'identificativo dell\'accordion',
9
9
  control: 'text',
10
+ table: {
11
+ type: { summary: 'string' },
12
+ },
10
13
  },
11
14
  summary: {
12
15
  name: 'summary',
13
16
  description: 'inserire la scritta che sarà visualizzata come titolo',
14
17
  control: 'text',
18
+ table: {
19
+ type: { summary: 'string' },
20
+ },
15
21
  },
16
22
  variant: {
17
23
  name: 'variant',
18
24
  description: 'scegliere lo stile dell\'accordion',
19
25
  control: 'select',
20
26
  options: ['divider', 'boxed', 'boxedheader', 'sidestroke'],
27
+ table: {
28
+ type: { summary: 'string' },
29
+ defaultValue: { summary: 'boxed' },
30
+ },
21
31
  },
22
32
  disabled: {
23
33
  name: 'disabled',
24
34
  description: 'disabilita l\'apertura dell\'accordion',
25
35
  control: 'boolean',
36
+ table: {
37
+ type: { summary: 'boolean' },
38
+ defaultValue: { summary: 'false' },
39
+ },
26
40
  },
27
41
  icon: {
28
42
  name: 'icon',
29
43
  description: 'Scegliere il tipo di icona',
30
44
  control: 'select',
31
45
  options: ['chevron', 'plus'],
46
+ table: {
47
+ type: { summary: 'string' },
48
+ defaultValue: { summary: 'chevron' },
49
+ },
32
50
  }
33
51
  }
34
52
  };
@@ -1 +1 @@
1
- {"version":3,"file":"jump-accordion.stories.js","sourceRoot":"","sources":["../../../src/components/jump-accordion/jump-accordion.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAC,MAAM,mBAAmB,CAAC;AAE9D,eAAe;IACb,KAAK,EAAE,gCAAgC;IACvC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,UAAU,EAAC;YACT,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,gCAAgC;YAC7C,OAAO,EAAE,MAAM;SAChB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,uDAAuD;YACpE,OAAO,EAAE,MAAM;SAChB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B;IAC3B,OAAO,EAAE,OAAO;CACjB,CAAC","sourcesContent":["import { generateAttributesFromArgs} from '../../utils/utils';\n\nexport default {\n title: 'Components/Accordion/Accordion',\n tags: ['autodocs'],\n argTypes: {\n identifier:{\n name: 'identifier',\n description: 'identificativo dell\\'accordion',\n control: 'text',\n },\n summary: {\n name: 'summary',\n description: 'inserire la scritta che sarà visualizzata come titolo',\n control: 'text',\n },\n variant: {\n name: 'variant',\n description: 'scegliere lo stile dell\\'accordion',\n control: 'select',\n options: ['divider', 'boxed', 'boxedheader', 'sidestroke'],\n },\n disabled: {\n name: 'disabled',\n description: 'disabilita l\\'apertura dell\\'accordion',\n control: 'boolean',\n },\n icon: {\n name: 'icon',\n description: 'Scegliere il tipo di icona',\n control: 'select',\n options: ['chevron', 'plus'],\n }\n }\n};\n\n/*----- Boxed ----*/\nconst TemplateAccordionBoxed = (args) => {\nconst attributes = generateAttributesFromArgs(args);\n return `<jump-accordion ${attributes}>\n <div slot=\"acc-content\">Contenuto dell'accordion</div> \n </jump-accordion>`\n}\n\nexport const AccordionBoxed = TemplateAccordionBoxed.bind({});\nAccordionBoxed.args = {\n summary: 'Titolo accordion',\n variant: 'boxed',\n icon: 'chevron',\n identifier: 'accordion1',\n};\n\n/*----- Divider ----*/\nconst TemplateAccordionDivider = (args) => {\nconst attributes = generateAttributesFromArgs(args);\n return `<jump-accordion ${attributes}>\n <div slot=\"acc-content\">Contenuto dell'accordion</div> \n </jump-accordion>`\n}\n\nexport const AccordionDivider = TemplateAccordionDivider.bind({});\nAccordionDivider.args = {\n summary: 'Titolo accordion',\n variant: 'divider',\n icon: 'chevron',\n identifier: 'accordion2',\n};\n\n/*----- Sidestroke ----*/\nconst TemplateAccordionSidestroke = (args) => {\nconst attributes = generateAttributesFromArgs(args);\n return `<jump-accordion ${attributes}>\n <div slot=\"acc-content\">Contenuto dell'accordion</div> \n </jump-accordion>`\n}\n\nexport const AccordionSidestroke1 = TemplateAccordionSidestroke.bind({});\nAccordionSidestroke1.args = {\n summary: 'Titolo accordion',\n variant: 'sidestroke',\n icon: 'plus',\n identifier: 'accordion3',\n};\n\n/*----- Boxedheader ----*/\nconst TemplateAccordionBoxedheader = (args) => {\nconst attributes = generateAttributesFromArgs(args);\n return `<jump-accordion ${attributes}>\n<div slot=\"acc-content\">Contenuto dell'accordion</div> \n </jump-accordion>`\n}\n\nexport const AccordionBoxedHeader = TemplateAccordionBoxedheader.bind({});\nAccordionBoxedHeader.args = {\n summary: 'Titolo accordion',\n variant: 'boxedheader',\n icon: 'plus',\n identifier: 'accordion4',\n};\n\n/** Template per mostrare l'esempio di come usare un gruppo di accordion */\nconst TemplateGroup = (args, data) => {\n console.log('args', args);\n let id = data.id;\n return `<div class=\"accordion-group\" style=\"display: flex; flex-direction: column; gap: 8px;\">\n <jump-accordion summary=\"accordion 1\" variant=\"boxed\">\n <div slot=\"acc-content\">Contenuto dell'accordion</div> \n </jump-accordion><jump-accordion summary=\"accordion 2\" variant=\"boxed\">\n <div slot=\"acc-content\">Contenuto dell'accordion</div> \n </jump-accordion><jump-accordion summary=\"accordion 3\" variant=\"boxed\">\n <div slot=\"acc-content\">Contenuto dell'accordion</div> \n </jump-accordion>\n </div>\n <script>\n (function() {\n let container = document.querySelector('#story--${id}');\n container.addEventListener('jump-accordion-open', event => {\n if (event.target.localName === 'jump-accordion') {\n container.querySelectorAll('jump-accordion').forEach(details => {\n if (details !== event.target) {\n details.open = false;\n } else {\n // console.log('entro true');\n details.open = true;\n }\n });\n }\n });\n })();\n </script>`\n}\n\nexport const AccordionGroup = TemplateGroup.bind({});\nAccordionGroup.args = {\n summary: 'Titolo accordion',\n variant: 'boxed',\n};"]}
1
+ {"version":3,"file":"jump-accordion.stories.js","sourceRoot":"","sources":["../../../src/components/jump-accordion/jump-accordion.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAC,MAAM,mBAAmB,CAAC;AAE9D,eAAe;IACb,KAAK,EAAE,gCAAgC;IACvC,IAAI,EAA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,MAAM,UAAU,GAAG,0BAA0B,CAAC,IAAI,CAAC,CAAC;IAClD,OAAO,mBAAmB,UAAU;;oBAElB,CAAA;AACpB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,4BAA4B,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1E,oBAAoB,CAAC,IAAI,GAAG;IAC1B,OAAO,EAAE,kBAAkB;IAC3B,OAAO,EAAE,aAAa;IACtB,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;CACzB,CAAC;AAEF,2EAA2E;AAC3E,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE;IACnC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC1B,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;IACjB,OAAO;;;;;;;;;;;8DAWqD,EAAE;;;;;;;;;;;;;;kBAc9C,CAAA;AAClB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrD,cAAc,CAAC,IAAI,GAAG;IACpB,OAAO,EAAE,kBAAkB;IAC3B,OAAO,EAAE,OAAO;CACjB,CAAC","sourcesContent":["import { generateAttributesFromArgs} from '../../utils/utils';\n\nexport default {\n title: 'Components/Accordion/Accordion',\n tags: ['autodocs'],\n argTypes: {\n identifier:{\n name: 'identifier',\n description: 'identificativo dell\\'accordion',\n control: 'text',\n table: {\n type: { summary: 'string' },\n },\n },\n summary: {\n name: 'summary',\n description: 'inserire la scritta che sarà visualizzata come titolo',\n control: 'text',\n table: {\n type: { summary: 'string' },\n },\n },\n variant: {\n name: 'variant',\n description: 'scegliere lo stile dell\\'accordion',\n control: 'select',\n options: ['divider', 'boxed', 'boxedheader', 'sidestroke'],\n table: {\n type: { summary: 'string' },\n defaultValue: { summary: 'boxed' },\n },\n },\n disabled: {\n name: 'disabled',\n description: 'disabilita l\\'apertura dell\\'accordion',\n control: 'boolean',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: 'false' },\n },\n },\n icon: {\n name: 'icon',\n description: 'Scegliere il tipo di icona',\n control: 'select',\n options: ['chevron', 'plus'],\n table: {\n type: { summary: 'string' },\n defaultValue: { summary: 'chevron' },\n },\n }\n }\n};\n\n/*----- Boxed ----*/\nconst TemplateAccordionBoxed = (args) => {\nconst attributes = generateAttributesFromArgs(args);\n return `<jump-accordion ${attributes}>\n <div slot=\"acc-content\">Contenuto dell'accordion</div> \n </jump-accordion>`\n}\n\nexport const AccordionBoxed = TemplateAccordionBoxed.bind({});\nAccordionBoxed.args = {\n summary: 'Titolo accordion',\n variant: 'boxed',\n icon: 'chevron',\n identifier: 'accordion1',\n};\n\n/*----- Divider ----*/\nconst TemplateAccordionDivider = (args) => {\nconst attributes = generateAttributesFromArgs(args);\n return `<jump-accordion ${attributes}>\n <div slot=\"acc-content\">Contenuto dell'accordion</div> \n </jump-accordion>`\n}\n\nexport const AccordionDivider = TemplateAccordionDivider.bind({});\nAccordionDivider.args = {\n summary: 'Titolo accordion',\n variant: 'divider',\n icon: 'chevron',\n identifier: 'accordion2',\n};\n\n/*----- Sidestroke ----*/\nconst TemplateAccordionSidestroke = (args) => {\nconst attributes = generateAttributesFromArgs(args);\n return `<jump-accordion ${attributes}>\n <div slot=\"acc-content\">Contenuto dell'accordion</div> \n </jump-accordion>`\n}\n\nexport const AccordionSidestroke1 = TemplateAccordionSidestroke.bind({});\nAccordionSidestroke1.args = {\n summary: 'Titolo accordion',\n variant: 'sidestroke',\n icon: 'plus',\n identifier: 'accordion3',\n};\n\n/*----- Boxedheader ----*/\nconst TemplateAccordionBoxedheader = (args) => {\nconst attributes = generateAttributesFromArgs(args);\n return `<jump-accordion ${attributes}>\n<div slot=\"acc-content\">Contenuto dell'accordion</div> \n </jump-accordion>`\n}\n\nexport const AccordionBoxedHeader = TemplateAccordionBoxedheader.bind({});\nAccordionBoxedHeader.args = {\n summary: 'Titolo accordion',\n variant: 'boxedheader',\n icon: 'plus',\n identifier: 'accordion4',\n};\n\n/** Template per mostrare l'esempio di come usare un gruppo di accordion */\nconst TemplateGroup = (args, data) => {\n console.log('args', args);\n let id = data.id;\n return `<div class=\"accordion-group\" style=\"display: flex; flex-direction: column; gap: 8px;\">\n <jump-accordion summary=\"accordion 1\" variant=\"boxed\">\n <div slot=\"acc-content\">Contenuto dell'accordion</div> \n </jump-accordion><jump-accordion summary=\"accordion 2\" variant=\"boxed\">\n <div slot=\"acc-content\">Contenuto dell'accordion</div> \n </jump-accordion><jump-accordion summary=\"accordion 3\" variant=\"boxed\">\n <div slot=\"acc-content\">Contenuto dell'accordion</div> \n </jump-accordion>\n </div>\n <script>\n (function() {\n let container = document.querySelector('#story--${id}');\n container.addEventListener('jump-accordion-open', event => {\n if (event.target.localName === 'jump-accordion') {\n container.querySelectorAll('jump-accordion').forEach(details => {\n if (details !== event.target) {\n details.open = false;\n } else {\n // console.log('entro true');\n details.open = true;\n }\n });\n }\n });\n })();\n </script>`\n}\n\nexport const AccordionGroup = TemplateGroup.bind({});\nAccordionGroup.args = {\n summary: 'Titolo accordion',\n variant: 'boxed',\n};"]}
@@ -8,11 +8,18 @@ export default {
8
8
  description: 'scegliere lo stile dell\'accordion',
9
9
  control: 'select',
10
10
  options: ['divider', 'boxed', 'boxedheader', 'sidestroke'],
11
+ table: {
12
+ type: { summary: 'string' },
13
+ defaultValue: { summary: 'boxed' },
14
+ },
11
15
  },
12
16
  groupIdentifier: {
13
17
  name: 'groupIdentifier',
14
18
  description: 'identificativo del gruppo di accordion',
15
- control: 'text'
19
+ control: 'text',
20
+ table: {
21
+ type: { summary: 'string' },
22
+ },
16
23
  }
17
24
  }
18
25
  };
@@ -1 +1 @@
1
- {"version":3,"file":"jump-accordion-group.stories.js","sourceRoot":"","sources":["../../../src/components/jump-accordion-group/jump-accordion-group.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAC,MAAM,mBA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M,gBAAgB,GAAG,sBAAsB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChE,gBAAgB,CAAC,IAAI,GAAG;IACtB,OAAO,EAAE,aAAa;IACtB,eAAe,EAAE,iBAAiB;CACnC,CAAC","sourcesContent":["import { generateAttributesFromArgs} from '../../utils/utils';\n\nexport default {\n title: 'Components/Accordion/Group',\n tags: ['autodocs'],\n argTypes: {\n variant: {\n name: 'variant',\n description: 'scegliere lo stile dell\\'accordion',\n control: 'select',\n options: ['divider', 'boxed', 'boxedheader', 'sidestroke'],\n },\n groupIdentifier: {\n name: 'groupIdentifier',\n description: 'identificativo del gruppo di accordion',\n control: 'text'\n }\n }\n};\n\nconst TemplateAccordionGroup = (args) => {\nconst attributes = generateAttributesFromArgs(args);\nconsole.log('args', args);\n// console.log('attribtes', attributes.variant);\n return `<jump-accordion-group ${attributes}>\n <jump-accordion summary=\"Titolo accordion\" variant=${args.variant} icon=\"chevron\" identifier=\"accordion1\">\n <div slot=\"acc-content\">Contenuto dell'accordion</div> \n </jump-accordion>\n <jump-accordion summary=\"Titolo accordion 2\" variant=${args.variant} icon=\"chevron\" identifier=\"accordion1\">\n <div slot=\"acc-content\">Contenuto dell'accordion 2</div> \n </jump-accordion>\n </jump-accordion-group>`\n}\n\nexport const GroupBoxed = TemplateAccordionGroup.bind({});\nGroupBoxed.args = {\n variant: 'boxed',\n groupIdentifier: 'accordionGroup1',\n};\n\nexport const GroupDivider = TemplateAccordionGroup.bind({});\nGroupDivider.args = {\n variant: 'divider',\n groupIdentifier: 'accordionGroup1',\n};\n\nexport const GroupSidestroke = TemplateAccordionGroup.bind({});\nGroupSidestroke.args = {\n variant: 'sidestroke',\n groupIdentifier: 'accordionGroup1',\n};\n\nexport const GroupBoxedHeader = TemplateAccordionGroup.bind({});\nGroupBoxedHeader.args = {\n variant: 'boxedheader',\n groupIdentifier: 'accordionGroup1',\n};\n"]}
1
+ {"version":3,"file":"jump-accordion-group.stories.js","sourceRoot":"","sources":["../../../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5D,YAAY,CAAC,IAAI,GAAG;IAClB,OAAO,EAAE,SAAS;IAClB,eAAe,EAAE,iBAAiB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,sBAAsB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/D,eAAe,CAAC,IAAI,GAAG;IACrB,OAAO,EAAE,YAAY;IACrB,eAAe,EAAE,iBAAiB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChE,gBAAgB,CAAC,IAAI,GAAG;IACtB,OAAO,EAAE,aAAa;IACtB,eAAe,EAAE,iBAAiB;CACnC,CAAC","sourcesContent":["import { generateAttributesFromArgs} from '../../utils/utils';\n\nexport default {\n title: 'Components/Accordion/Group',\n tags: ['autodocs'],\n argTypes: {\n variant: {\n name: 'variant',\n description: 'scegliere lo stile dell\\'accordion',\n control: 'select',\n options: ['divider', 'boxed', 'boxedheader', 'sidestroke'],\n table: {\n type: { summary: 'string' },\n defaultValue: { summary: 'boxed' },\n },\n },\n groupIdentifier: {\n name: 'groupIdentifier',\n description: 'identificativo del gruppo di accordion',\n control: 'text',\n table: {\n type: { summary: 'string' },\n },\n }\n }\n};\n\nconst TemplateAccordionGroup = (args) => {\nconst attributes = generateAttributesFromArgs(args);\nconsole.log('args', args);\n// console.log('attribtes', attributes.variant);\n return `<jump-accordion-group ${attributes}>\n <jump-accordion summary=\"Titolo accordion\" variant=${args.variant} icon=\"chevron\" identifier=\"accordion1\">\n <div slot=\"acc-content\">Contenuto dell'accordion</div> \n </jump-accordion>\n <jump-accordion summary=\"Titolo accordion 2\" variant=${args.variant} icon=\"chevron\" identifier=\"accordion1\">\n <div slot=\"acc-content\">Contenuto dell'accordion 2</div> \n </jump-accordion>\n </jump-accordion-group>`\n}\n\nexport const GroupBoxed = TemplateAccordionGroup.bind({});\nGroupBoxed.args = {\n variant: 'boxed',\n groupIdentifier: 'accordionGroup1',\n};\n\nexport const GroupDivider = TemplateAccordionGroup.bind({});\nGroupDivider.args = {\n variant: 'divider',\n groupIdentifier: 'accordionGroup1',\n};\n\nexport const GroupSidestroke = TemplateAccordionGroup.bind({});\nGroupSidestroke.args = {\n variant: 'sidestroke',\n groupIdentifier: 'accordionGroup1',\n};\n\nexport const GroupBoxedHeader = TemplateAccordionGroup.bind({});\nGroupBoxedHeader.args = {\n variant: 'boxedheader',\n groupIdentifier: 'accordionGroup1',\n};\n"]}
@@ -4,11 +4,32 @@
4
4
  --bg-drawer: var(--bg-drawer, #fff);
5
5
  --header-height: var(--header-height, 80px);
6
6
  --drawer-width: var(--drawer-width, 240px);
7
+ --overlay-bg-color: var(--overlay-bg-color, rgba(0, 0, 0, 0.35));
7
8
  }
8
9
  :host h3 {
9
10
  margin: 0;
10
11
  }
11
12
 
13
+ .filtersDrawer__overlay {
14
+ position: fixed;
15
+ top: 50%;
16
+ left: 50%;
17
+ transform: translate(-50%, -50%);
18
+ background-color: var(--overlay-bg-color, rgba(0, 0, 0, 0.35));
19
+ z-index: 1;
20
+ width: 100vw;
21
+ height: 100vh;
22
+ display: none;
23
+ opacity: 0;
24
+ transition: opacity 0.3s ease-in-out;
25
+ }
26
+ .filtersDrawer__overlay.filtersDrawer__overlay--active {
27
+ display: block;
28
+ }
29
+ .filtersDrawer__overlay.filtersDrawer__overlay--active {
30
+ opacity: 1;
31
+ }
32
+
12
33
  .filtersDrawer {
13
34
  position: fixed;
14
35
  display: flex;
@@ -29,6 +50,8 @@
29
50
  }
30
51
  .filtersDrawer[aria-hidden=false] {
31
52
  left: 0;
53
+ right: 0;
54
+ width: auto;
32
55
  transition: 0.3s all ease-in-out;
33
56
  }
34
57
  .filtersDrawer[aria-hidden=false] .filtersDrawer__close {
@@ -42,6 +65,7 @@
42
65
  left: 0;
43
66
  height: auto;
44
67
  max-width: initial;
68
+ max-height: initial;
45
69
  box-shadow: none;
46
70
  }
47
71
  }