@zanichelli/albe-web-components 12.4.2-rc1 → 12.5.0

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 (116) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/index-39ce4edf.js.map +1 -1
  3. package/dist/cjs/index-dc60bee7.js +6 -2
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{utils-be481841.js → utils-2b313a8e.js} +1 -1
  6. package/dist/cjs/{utils-be481841.js.map → utils-2b313a8e.js.map} +1 -1
  7. package/dist/cjs/web-components-library.cjs.js +1 -1
  8. package/dist/cjs/{z-app-header_12.cjs.entry.js → z-app-header_11.cjs.entry.js} +27 -62
  9. package/dist/cjs/z-app-header_11.cjs.entry.js.map +1 -0
  10. package/dist/cjs/z-carousel.cjs.entry.js +66 -36
  11. package/dist/cjs/z-carousel.cjs.entry.js.map +1 -1
  12. package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
  13. package/dist/cjs/z-range-picker.cjs.entry.js +1 -1
  14. package/dist/cjs/z-tag.cjs.entry.js +27 -0
  15. package/dist/cjs/z-tag.cjs.entry.js.map +1 -0
  16. package/dist/collection/beans/index.js.map +1 -1
  17. package/dist/collection/components/buttons/z-button/index.js +2 -2
  18. package/dist/collection/components/buttons/z-button/index.js.map +1 -1
  19. package/dist/collection/components/buttons/z-button/index.spec.js +1 -1
  20. package/dist/collection/components/buttons/z-button/index.spec.js.map +1 -1
  21. package/dist/collection/components/inputs/z-searchbar/index.js +6 -23
  22. package/dist/collection/components/inputs/z-searchbar/index.js.map +1 -1
  23. package/dist/collection/components/inputs/z-searchbar/index.spec.js +0 -13
  24. package/dist/collection/components/inputs/z-searchbar/index.spec.js.map +1 -1
  25. package/dist/collection/components/inputs/z-searchbar/styles.css +0 -14
  26. package/dist/collection/components/z-carousel/index.js +112 -43
  27. package/dist/collection/components/z-carousel/index.js.map +1 -1
  28. package/dist/collection/components/z-carousel/styles.css +62 -46
  29. package/dist/components/index2.js.map +1 -1
  30. package/dist/components/index26.js +22 -45
  31. package/dist/components/index26.js.map +1 -1
  32. package/dist/components/index4.js +2 -2
  33. package/dist/components/index4.js.map +1 -1
  34. package/dist/components/z-app-header.js +20 -26
  35. package/dist/components/z-app-header.js.map +1 -1
  36. package/dist/components/z-carousel.js +75 -41
  37. package/dist/components/z-carousel.js.map +1 -1
  38. package/dist/components/z-tag.js +42 -1
  39. package/dist/components/z-tag.js.map +1 -1
  40. package/dist/esm/index-2255c6c8.js.map +1 -1
  41. package/dist/esm/index-f16bc2ca.js +6 -2
  42. package/dist/esm/loader.js +1 -1
  43. package/dist/esm/{utils-47295eea.js → utils-cd008fbc.js} +1 -1
  44. package/dist/esm/{utils-47295eea.js.map → utils-cd008fbc.js.map} +1 -1
  45. package/dist/esm/web-components-library.js +1 -1
  46. package/dist/esm/{z-app-header_12.entry.js → z-app-header_11.entry.js} +30 -64
  47. package/dist/esm/z-app-header_11.entry.js.map +1 -0
  48. package/dist/esm/z-carousel.entry.js +67 -37
  49. package/dist/esm/z-carousel.entry.js.map +1 -1
  50. package/dist/esm/z-date-picker.entry.js +1 -1
  51. package/dist/esm/z-range-picker.entry.js +1 -1
  52. package/dist/{components/index30.js → esm/z-tag.entry.js} +8 -31
  53. package/dist/esm/z-tag.entry.js.map +1 -0
  54. package/dist/types/beans/index.d.ts +0 -4
  55. package/dist/types/components/inputs/z-searchbar/index.d.ts +0 -5
  56. package/dist/types/components/z-carousel/index.d.ts +30 -11
  57. package/dist/types/components.d.ts +24 -8
  58. package/dist/web-components-library/p-025f494e.js.map +1 -1
  59. package/dist/web-components-library/{p-b475b72d.entry.js → p-0d799f83.entry.js} +2 -2
  60. package/dist/web-components-library/p-1ff4061b.entry.js +2 -0
  61. package/dist/web-components-library/p-1ff4061b.entry.js.map +1 -0
  62. package/dist/web-components-library/{p-939fcf7c.js → p-49a35cf0.js} +1 -1
  63. package/dist/web-components-library/p-647bd8e1.entry.js +2 -0
  64. package/dist/web-components-library/p-647bd8e1.entry.js.map +1 -0
  65. package/dist/web-components-library/p-f2740342.entry.js +2 -0
  66. package/dist/web-components-library/p-f2740342.entry.js.map +1 -0
  67. package/dist/web-components-library/{p-51d22ae9.entry.js → p-fe6f5926.entry.js} +2 -2
  68. package/dist/web-components-library/web-components-library.css +2 -2
  69. package/dist/web-components-library/web-components-library.esm.js +1 -1
  70. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  71. package/loader/cdn.js +1 -1
  72. package/loader/index.cjs.js +1 -1
  73. package/loader/index.d.ts +1 -1
  74. package/loader/index.es2017.js +2 -2
  75. package/loader/index.js +2 -2
  76. package/package.json +3 -8
  77. package/www/build/p-025f494e.js.map +1 -1
  78. package/www/build/{p-b475b72d.entry.js → p-0d799f83.entry.js} +2 -2
  79. package/www/build/p-1ff4061b.entry.js +2 -0
  80. package/www/build/p-1ff4061b.entry.js.map +1 -0
  81. package/www/build/{p-21a94605.css → p-36aea196.css} +2 -2
  82. package/www/build/{p-939fcf7c.js → p-49a35cf0.js} +1 -1
  83. package/www/build/p-4d3ccb53.js +2 -0
  84. package/www/build/p-647bd8e1.entry.js +2 -0
  85. package/www/build/p-647bd8e1.entry.js.map +1 -0
  86. package/www/build/p-f2740342.entry.js +2 -0
  87. package/www/build/p-f2740342.entry.js.map +1 -0
  88. package/www/build/{p-51d22ae9.entry.js → p-fe6f5926.entry.js} +2 -2
  89. package/www/build/web-components-library.css +2 -2
  90. package/www/build/web-components-library.esm.js +1 -1
  91. package/www/build/web-components-library.esm.js.map +1 -1
  92. package/www/index.html +1 -1
  93. package/dist/cjs/z-app-header_12.cjs.entry.js.map +0 -1
  94. package/dist/components/index30.js.map +0 -1
  95. package/dist/esm/z-app-header_12.entry.js.map +0 -1
  96. package/dist/loader/cdn.js +0 -3
  97. package/dist/loader/index.cjs.js +0 -3
  98. package/dist/loader/index.d.ts +0 -21
  99. package/dist/loader/index.es2017.js +0 -3
  100. package/dist/loader/index.js +0 -4
  101. package/dist/loader/package.json +0 -11
  102. package/dist/web-components-library/p-5af8a5e1.entry.js +0 -2
  103. package/dist/web-components-library/p-5af8a5e1.entry.js.map +0 -1
  104. package/dist/web-components-library/p-66f63529.entry.js +0 -2
  105. package/dist/web-components-library/p-66f63529.entry.js.map +0 -1
  106. package/www/build/p-04145311.js +0 -2
  107. package/www/build/p-5af8a5e1.entry.js +0 -2
  108. package/www/build/p-5af8a5e1.entry.js.map +0 -1
  109. package/www/build/p-66f63529.entry.js +0 -2
  110. package/www/build/p-66f63529.entry.js.map +0 -1
  111. /package/dist/web-components-library/{p-b475b72d.entry.js.map → p-0d799f83.entry.js.map} +0 -0
  112. /package/dist/web-components-library/{p-939fcf7c.js.map → p-49a35cf0.js.map} +0 -0
  113. /package/dist/web-components-library/{p-51d22ae9.entry.js.map → p-fe6f5926.entry.js.map} +0 -0
  114. /package/www/build/{p-b475b72d.entry.js.map → p-0d799f83.entry.js.map} +0 -0
  115. /package/www/build/{p-939fcf7c.js.map → p-49a35cf0.js.map} +0 -0
  116. /package/www/build/{p-51d22ae9.entry.js.map → p-fe6f5926.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-carousel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAgB,KAAK,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AACnG,OAAO,EAAC,sBAAsB,EAAE,oBAAoB,EAAE,aAAa,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AAErG;;;;GAIG;AAMH,MAAM,OAAO,SAAS;;QAmDpB,wGAAwG;QAChG,gBAAW,GAAW,IAAI,CAAC;;;sBAvC1B,KAAK;;;kCAYO,GAAG;uBAId,CAAC;;;;;;IA8BX,aAAa;QACX,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAC,WAAW,EAAE,IAAI,CAAC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,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;oBAE7B,cAAQ,IAAI,EAAE,IAAI,CAAC,oBAAoB,KAAK,GAAG,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,qBAAqB,GAAI,CAC5F,CACV,CAAC,CACE,CACP;gBACA,IAAI,CAAC,YAAY,KAAK,oBAAoB,CAAC,OAAO,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,IAAI,CAClF,WAAK,KAAK,EAAC,gCAAgC;oBACzC,YAAM,KAAK,EAAC,SAAS,IAAE,IAAI,CAAC,OAAO,GAAG,CAAC,CAAQ;oBAC/C,qBAAe;oBACf,gBAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAQ,CAC5B,CACP;gBACA,IAAI,CAAC,cAAc,KAAK,sBAAsB,CAAC,MAAM,IAAI,CACxD,gBACE,IAAI,EAAE,WAAW,CAAC,KAAK,EACvB,OAAO,EAAE,aAAa,CAAC,QAAQ,EAC/B,IAAI,EAAC,2BAA2B,EAChC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAC/B,QAAQ,EAAE,CAAC,IAAI,CAAC,eAAe,EAC/B,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,gCAAgC,GAC1F,CACH,CACG,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, h, Prop, Element, Watch, Event, EventEmitter, State, Host} from \"@stencil/core\";\nimport {CarouselArrowsPosition, CarouselProgressMode, ButtonVariant, ControlSize} from \"../../beans\";\n\n/**\n * ZCarousel component.\n * @cssprop --z-carousel-gutter - The gutter between items.\n * @slot - carousel items. use `<li>` elements inside this slot as it is wrapped inside an `<ul>`\n */\n@Component({\n tag: \"z-carousel\",\n styleUrl: \"styles.css\",\n shadow: false,\n})\nexport class ZCarousel {\n @Element() hostElement: HTMLZCarouselElement;\n\n /** The z-carousel is on loading state */\n @Prop()\n isLoading: boolean;\n\n /** The z-carousel title, if given. */\n @Prop()\n label?: string;\n\n /** Shows only one content at a time */\n @Prop()\n single = false;\n\n /** Arrow buttons position */\n @Prop()\n arrowsPosition?: CarouselArrowsPosition;\n\n /** Progress indicator. Only available for `single` mode */\n @Prop()\n progressMode?: CarouselProgressMode;\n\n /** The height of z-carousel ghost loading, this prop is mandatory when isloading is set to true, as otherwise the component won't show. */\n @Prop()\n ghostLoadingHeight = 100;\n\n /** Current item index for single mode. */\n @State()\n current = 0;\n\n /** Items on the slider. */\n @State()\n items: HTMLLIElement[];\n\n /** Index of the indicator to highlight. */\n @State()\n highlightedIndicator: number;\n\n @State()\n canNavigatePrev: boolean;\n\n @State()\n canNavigateNext: boolean;\n\n /** Reference for the items container element. */\n private itemsContainer: HTMLUListElement;\n\n /** Observer that handles current index change when scrolling on single mode. */\n private intersectionObserver: IntersectionObserver;\n\n /** Flag indicating the items container is about to scroll programmatically towards the stored index. */\n private scrollingTo: number = null;\n\n /** Emitted on index change and only in `single` mode. */\n @Event()\n indexChange: EventEmitter;\n\n @Watch(\"current\")\n onIndexChange(): void {\n this.indexChange.emit({currentItem: this.current});\n }\n\n @Watch(\"single\")\n onSingleModeChange(): void {\n if (this.single && !this.intersectionObserver) {\n this.setIntersectionObserver();\n }\n }\n\n /**\n * Set an intersection observer to:\n * - highlight the indicator of the intersecting item during scroll\n * - set the current item to the last intersecting item\n */\n private setIntersectionObserver(): void {\n this.intersectionObserver = new window.IntersectionObserver(\n (entries) => {\n const entry = entries.find((entry) => entry.isIntersecting);\n if (!entry) {\n return;\n }\n\n const entryIndex = this.items.findIndex((item) => item === entry.target);\n this.highlightedIndicator = entryIndex;\n\n /* skip setting the current item if intersection has been triggered by a programmatic scroll\n (@see `goTo` function) and the final index has not been reached */\n if (this.scrollingTo !== null && entryIndex !== this.scrollingTo) {\n return;\n }\n\n this.scrollingTo = null;\n this.current = entryIndex;\n },\n {\n root: this.itemsContainer,\n threshold: 0.5,\n }\n );\n\n this.items.forEach((element) => this.intersectionObserver.observe(element));\n }\n\n private onPrev(): void {\n if (this.single) {\n this.goTo(Math.max(0, this.current - 1));\n\n return;\n }\n\n const scroller = this.itemsContainer;\n if (!scroller) {\n return;\n }\n\n scroller.scrollBy({\n left: -scroller.clientWidth / 2,\n behavior: \"smooth\",\n });\n }\n\n private onNext(): void {\n if (this.single) {\n this.goTo(Math.min(this.current + 1, this.items.length - 1));\n\n return;\n }\n\n const scroller = this.itemsContainer;\n if (!scroller) {\n return;\n }\n\n scroller.scrollBy({\n left: scroller.clientWidth / 2,\n behavior: \"smooth\",\n });\n }\n\n /**\n * Check if navigation buttons can be enabled or not and set local states.\n */\n private checkNavigationValidity(): void {\n if (this.single) {\n this.canNavigatePrev = this.current > 1;\n this.canNavigateNext = this.current < this.items.length - 1;\n }\n\n this.canNavigatePrev = this.itemsContainer.scrollLeft > 0;\n this.canNavigateNext =\n this.itemsContainer.scrollLeft < this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth;\n }\n\n /**\n * Check if footer can be rendered.\n */\n private canShowFooter(): boolean {\n return (\n this.arrowsPosition === CarouselArrowsPosition.BOTTOM ||\n this.progressMode === CarouselProgressMode.DOTS ||\n this.progressMode === CarouselProgressMode.NUMBERS\n );\n }\n\n /**\n * Set current item to passed index.\n * @param {number} index Index to set\n */\n private goTo(index): void {\n if (this.current === index) {\n return;\n }\n\n this.scrollingTo = index;\n // the scroll will trigger the IntersectionObserver and set the current item\n this.itemsContainer.scroll({\n left: this.items[index].offsetLeft,\n behavior: \"smooth\",\n });\n }\n\n componentDidLoad(): void {\n this.itemsContainer = this.hostElement.querySelector(\".z-carousel-items-container\");\n if (!this.itemsContainer) {\n return;\n }\n\n this.items = Array.from(this.itemsContainer.querySelectorAll(\":scope > li\"));\n\n if (this.single) {\n this.setIntersectionObserver();\n }\n\n this.itemsContainer.addEventListener(\"scroll\", this.checkNavigationValidity.bind(this), {passive: true});\n this.checkNavigationValidity();\n\n this.items.forEach((item) => {\n item.setAttribute(\"role\", \"group\");\n item.setAttribute(\"aria-roledescription\", \"slide\");\n });\n }\n\n render(): HTMLZCarouselElement {\n if (this.isLoading) {\n return (\n <Host>\n {this.label && <div class=\"heading-4 z-carousel-title\">{this.label}</div>}\n <div style={{height: `${this.ghostLoadingHeight}px`}}>\n <z-ghost-loading></z-ghost-loading>\n <div class=\"loading-items-container\">\n <slot />\n </div>\n </div>\n </Host>\n );\n }\n\n return (\n <Host>\n <div\n class=\"z-carousel-container\"\n role=\"group\"\n aria-roledescription=\"carousel\"\n aria-label={this.label || \"Carousel\"}\n >\n {this.label && <div class=\"heading-4 z-carousel-title\">{this.label}</div>}\n <div class=\"z-carousel-wrapper\">\n {this.arrowsPosition === CarouselArrowsPosition.OVER && (\n <z-button\n size={ControlSize.SMALL}\n data-direction=\"prev\"\n icon=\"chevron-left\"\n onClick={this.onPrev.bind(this)}\n disabled={!this.canNavigatePrev}\n ariaLabel={this.single ? \"Mostra l'elemento precedente\" : \"Mostra gli elementi precedenti\"}\n />\n )}\n <ul\n class=\"z-carousel-items-container\"\n aria-atomic=\"false\"\n aria-live=\"polite\"\n >\n <slot />\n </ul>\n {this.arrowsPosition === CarouselArrowsPosition.OVER && (\n <z-button\n size={ControlSize.SMALL}\n data-direction=\"next\"\n icon=\"chevron-right\"\n onClick={this.onNext.bind(this)}\n disabled={!this.canNavigateNext}\n ariaLabel={this.single ? \"Mostra l'elemento successivo\" : \"Mostra gli elementi successivi\"}\n />\n )}\n </div>\n </div>\n\n {this.canShowFooter() && (\n <div class=\"z-carousel-footer\">\n {this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (\n <z-button\n size={ControlSize.SMALL}\n variant={ButtonVariant.TERTIARY}\n icon=\"arrow-simple-left-filled\"\n onClick={this.onPrev.bind(this)}\n disabled={!this.canNavigatePrev}\n ariaLabel={this.single ? \"Mostra l'elemento precedente\" : \"Mostra gli elementi precedenti\"}\n />\n )}\n {this.progressMode === CarouselProgressMode.DOTS && this.single && this.items && (\n <div class=\"dots-progress\">\n {this.items.map((_item, key) => (\n <button\n type=\"button\"\n class={{current: this.highlightedIndicator === key}}\n aria-label={\n this.highlightedIndicator === key ? \"Elemento corrente\" : `Spostati all'elemento ${key + 1}`\n }\n onClick={() => this.goTo(key)}\n >\n <z-icon name={this.highlightedIndicator === key ? \"white-circle-filled\" : \"black-circle-filled\"} />\n </button>\n ))}\n </div>\n )}\n {this.progressMode === CarouselProgressMode.NUMBERS && this.single && this.items && (\n <div class=\"numbers-progress interactive-3\">\n <span class=\"current\">{this.current + 1}</span>\n <span>di</span>\n <span>{this.items.length}</span>\n </div>\n )}\n {this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (\n <z-button\n size={ControlSize.SMALL}\n variant={ButtonVariant.TERTIARY}\n icon=\"arrow-simple-right-filled\"\n onClick={this.onNext.bind(this)}\n disabled={!this.canNavigateNext}\n ariaLabel={this.single ? \"Mostra l'elemento successivo\" : \"Mostra gli elementi successivi\"}\n />\n )}\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-carousel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAgB,KAAK,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AACnG,OAAO,EAAC,sBAAsB,EAAE,oBAAoB,EAAE,aAAa,EAAC,MAAM,aAAa,CAAC;AAExF;;;;GAIG;AAMH,MAAM,OAAO,SAAS;;QAkEpB,wGAAwG;QAChG,gBAAW,GAAW,IAAI,CAAC;;;sBAtD1B,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AAC,IAAI,CAAC,EAC/B,QAAQ,EAAE,CAAC,IAAI,CAAC,eAAe,EAC/B,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,gCAAgC,GAC1F,CACH,CACG,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, h, Prop, Element, Watch, Event, EventEmitter, State, Host} from \"@stencil/core\";\nimport {CarouselArrowsPosition, CarouselProgressMode, ButtonVariant} from \"../../beans\";\n\n/**\n * ZCarousel component.\n * @cssprop --z-carousel-gutter - The gutter between items.\n * @slot - Carousel items. Use `<li>` elements inside this slot.\n */\n@Component({\n tag: \"z-carousel\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZCarousel {\n @Element() host: HTMLZCarouselElement;\n\n /** The z-carousel is on loading state */\n @Prop()\n isLoading: boolean;\n\n /** The z-carousel title */\n @Prop()\n label?: string;\n\n /** Shows only one content at a time */\n @Prop({reflect: true})\n single = false;\n\n /** Arrow buttons position */\n @Prop({reflect: true})\n arrowsPosition?: CarouselArrowsPosition;\n\n /** Progress indicator type. Only available for `single` mode */\n @Prop()\n progressMode?: CarouselProgressMode;\n\n /**\n * Whether the navigation arrow buttons over the items are always visible or only on mouse hover.\n * If set to `false`, the arrows will not be visible on mobile.\n * Only meaningful with `arrowsPosition` set to `OVER`.\n */\n @Prop({reflect: true})\n fixedArrows = true;\n\n /** The height of the ghost loader (only visible when `isLoading` is set to `true`) */\n @Prop()\n ghostLoadingHeight = 100;\n\n /** When enabled, navigating next the last item will go back to the first item and vice versa. */\n @Prop()\n infinite = false;\n\n /** Current item index for single mode. */\n @State()\n current = 0;\n\n /** Items on the slider. */\n @State()\n items: HTMLLIElement[];\n\n /** Index of the indicator to highlight. */\n @State()\n highlightedIndicator: number;\n\n @State()\n canNavigatePrev: boolean;\n\n @State()\n canNavigateNext: boolean;\n\n /** Reference for the items container element. */\n protected itemsContainer: HTMLUListElement;\n\n /** Observer that handles current index change when scrolling on single mode. */\n private intersectionObserver: IntersectionObserver;\n\n /** Observer to check if navigation can still be enabled/showed when the size of the items' container changes */\n private resizeObserver: ResizeObserver;\n\n /** Flag indicating the items container is about to scroll programmatically towards the stored index. */\n private scrollingTo: number = null;\n\n /** Emitted on index change and only in `single` mode. */\n @Event()\n indexChange: EventEmitter<{currentItem: number}>;\n\n @Watch(\"current\")\n onIndexChange(): void {\n this.indexChange.emit({currentItem: this.current});\n }\n\n @Watch(\"single\")\n onSingleModeChange(): void {\n if (this.single && !this.intersectionObserver) {\n this.setIntersectionObserver();\n }\n }\n\n @Watch(\"infinite\")\n onInfiniteModeChange(): void {\n this.checkNavigationValidity();\n }\n\n /**\n * Set an intersection observer to:\n * - highlight the indicator of the intersecting item during scroll\n * - set the current item to the last intersecting item\n */\n private setIntersectionObserver(): void {\n this.intersectionObserver = new IntersectionObserver(\n (entries) => {\n const entry = entries.find(({isIntersecting}) => isIntersecting);\n if (!entry) {\n return;\n }\n\n const entryIndex = this.items.findIndex((item) => item === entry.target);\n this.highlightedIndicator = entryIndex;\n\n /* skip setting the current item if intersection has been triggered by a programmatic scroll\n (@see `goTo` function) and the final index has not been reached */\n if (this.scrollingTo !== null && entryIndex !== this.scrollingTo) {\n return;\n }\n\n this.scrollingTo = null;\n this.current = entryIndex;\n },\n {\n root: this.itemsContainer,\n threshold: 0.5,\n }\n );\n\n this.items.forEach((element) => this.intersectionObserver.observe(element));\n }\n\n /** Update items' list and check conditions to allow navigation */\n private onSlotChange(): void {\n this.items = Array.from(this.host.children) as HTMLLIElement[];\n this.checkNavigationValidity();\n this.setIntersectionObserver();\n this.goTo(this.current);\n }\n\n private onPrev(): void {\n if (this.single) {\n this.goTo(this.infinite && this.current - 1 < 0 ? this.items.length - 1 : Math.max(0, this.current - 1));\n\n return;\n }\n\n this.itemsContainer.scrollBy({\n left:\n this.infinite && this.itemsContainer.scrollLeft == 0\n ? this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth\n : -this.itemsContainer.clientWidth / 2,\n behavior: \"smooth\",\n });\n }\n\n private onNext(): void {\n if (this.single) {\n const next =\n this.infinite && this.current + 1 > this.items.length - 1\n ? 0\n : Math.min(this.current + 1, this.items.length - 1);\n\n return this.goTo(next);\n }\n\n this.itemsContainer.scrollBy({\n left:\n this.infinite &&\n this.itemsContainer.scrollLeft == this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth\n ? -this.itemsContainer.scrollWidth\n : this.itemsContainer.clientWidth / 2,\n behavior: \"smooth\",\n });\n }\n\n /**\n * Check if navigation buttons can be enabled and set the relative local states.\n */\n private checkNavigationValidity(): void {\n if (this.infinite) {\n this.canNavigateNext = true;\n this.canNavigatePrev = true;\n\n return;\n }\n\n if (this.single) {\n this.canNavigatePrev = this.current > 1;\n this.canNavigateNext = this.current < this.items.length - 1;\n }\n\n this.canNavigatePrev = this.itemsContainer.scrollLeft > 0;\n this.canNavigateNext =\n this.itemsContainer.scrollLeft < this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth;\n }\n\n /**\n * Check if footer has to be rendered.\n */\n private canShowFooter(): boolean {\n if (!this.canNavigatePrev && !this.canNavigateNext) {\n return false;\n }\n\n return (\n this.arrowsPosition === CarouselArrowsPosition.BOTTOM ||\n this.progressMode === CarouselProgressMode.DOTS ||\n this.progressMode === CarouselProgressMode.NUMBERS\n );\n }\n\n /**\n * Set current item to passed index.\n * @param index Index to set\n */\n private goTo(index: number): void {\n if (this.current === index) {\n return;\n }\n\n this.scrollingTo = index;\n const left = this.items.slice(0, index).reduce((acc, item) => (acc += item.clientWidth), 0);\n // the scroll will trigger the IntersectionObserver and set the current item\n this.itemsContainer.scroll({\n left,\n behavior: \"smooth\",\n });\n }\n\n /** Check if navigation of at least one direction is enabled */\n private get canNavigate(): boolean {\n return this.canNavigatePrev || this.canNavigateNext;\n }\n\n private setupItems(): void {\n this.items = Array.from(this.host.children) as HTMLLIElement[];\n this.items.forEach((item) => {\n item.setAttribute(\"role\", \"group\");\n item.setAttribute(\"aria-roledescription\", \"slide\");\n });\n }\n\n componentDidLoad(): void {\n this.itemsContainer.addEventListener(\"scroll\", this.checkNavigationValidity.bind(this), {passive: true});\n this.resizeObserver = new ResizeObserver(this.checkNavigationValidity.bind(this));\n this.resizeObserver.observe(this.itemsContainer);\n this.setupItems();\n if (this.single) {\n this.setIntersectionObserver();\n }\n this.checkNavigationValidity();\n }\n\n disconnectedCallback(): void {\n this.resizeObserver?.disconnect();\n }\n\n render(): HTMLDivElement | HTMLZCarouselElement {\n if (this.isLoading) {\n return (\n <div class=\"z-carousel-container\">\n {this.label && <div class=\"heading-3-sb z-carousel-title\">{this.label}</div>}\n <div style={{height: `${this.ghostLoadingHeight}px`}}>\n <z-ghost-loading></z-ghost-loading>\n </div>\n </div>\n );\n }\n\n return (\n <Host>\n <div\n class=\"z-carousel-container\"\n role=\"group\"\n aria-roledescription=\"carousel\"\n aria-label={this.label || \"Carousel\"}\n >\n {this.label && <div class=\"z-carousel-title heading-3-sb\">{this.label}</div>}\n <div class=\"z-carousel-wrapper\">\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.SECONDARY}\n data-direction=\"prev\"\n icon=\"arrow-left\"\n onClick={this.onPrev.bind(this)}\n disabled={!this.canNavigatePrev}\n hidden={this.arrowsPosition !== CarouselArrowsPosition.OVER || !this.canNavigate}\n ariaLabel={this.single ? \"Mostra l'elemento precedente\" : \"Mostra gli elementi precedenti\"}\n />\n <ul\n class=\"z-carousel-items-container\"\n aria-atomic=\"false\"\n aria-live=\"polite\"\n ref={(el) => (this.itemsContainer = el)}\n >\n <slot onSlotchange={this.onSlotChange.bind(this)} />\n </ul>\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.SECONDARY}\n data-direction=\"next\"\n icon=\"arrow-right\"\n onClick={this.onNext.bind(this)}\n disabled={!this.canNavigateNext}\n hidden={this.arrowsPosition !== CarouselArrowsPosition.OVER || !this.canNavigate}\n ariaLabel={this.single ? \"Mostra l'elemento successivo\" : \"Mostra gli elementi successivi\"}\n />\n </div>\n </div>\n\n {this.canShowFooter() && (\n <div class=\"z-carousel-footer\">\n {this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.TERTIARY}\n icon=\"arrow-left\"\n onClick={this.onPrev.bind(this)}\n disabled={!this.canNavigatePrev}\n ariaLabel={this.single ? \"Mostra l'elemento precedente\" : \"Mostra gli elementi precedenti\"}\n />\n )}\n {this.progressMode === CarouselProgressMode.DOTS && this.single && this.items && (\n <div class=\"dots-progress\">\n {this.items.map((_, index) => (\n <button\n type=\"button\"\n class={{current: this.highlightedIndicator === index}}\n aria-label={\n this.highlightedIndicator === index ? \"Elemento corrente\" : `Spostati all'elemento ${index + 1}`\n }\n onClick={() => this.goTo(index)}\n />\n ))}\n </div>\n )}\n {this.progressMode === CarouselProgressMode.NUMBERS && this.single && this.items && (\n <div class=\"numbers-progress interactive-1\">\n <span class=\"current\">{this.current + 1}</span>\n <span>di</span>\n <span>{this.items.length}</span>\n </div>\n )}\n {this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.TERTIARY}\n icon=\"arrow-right\"\n onClick={this.onNext.bind(this)}\n disabled={!this.canNavigateNext}\n ariaLabel={this.single ? \"Mostra l'elemento successivo\" : \"Mostra gli elementi successivi\"}\n />\n )}\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
@@ -1,51 +1,46 @@
1
- z-carousel {
1
+ :host {
2
2
  font-family: var(--font-family-sans);
3
3
  font-weight: var(--font-rg);
4
4
 
5
5
  --z-carousel-gutter: 0;
6
6
  }
7
7
 
8
- z-carousel[single],
9
- z-carousel[single="true"] {
8
+ :host([single]) {
10
9
  display: flex;
11
10
  flex-direction: column;
12
11
  align-items: center;
13
12
  justify-content: center;
14
13
  }
15
14
 
16
- z-carousel[single="true"] .z-carousel-container,
17
- z-carousel[single] .z-carousel-container {
15
+ :host([single]) .z-carousel-container {
18
16
  width: fit-content;
19
17
  max-width: 100%;
20
18
  }
21
19
 
22
- z-carousel .loading-items-container {
23
- display: none;
24
- }
25
-
26
- z-carousel .z-carousel-container {
20
+ .z-carousel-container {
27
21
  display: flex;
28
22
  flex-direction: column;
29
23
  }
30
24
 
31
- z-carousel .z-carousel-wrapper {
32
- position: relative;
25
+ .z-carousel-title {
26
+ margin-bottom: calc(var(--space-unit) * 2);
33
27
  }
34
28
 
35
- z-carousel .z-carousel-title {
36
- margin-bottom: var(--space-unit);
37
- color: var(--gray800);
29
+ .z-carousel-wrapper {
30
+ position: relative;
38
31
  }
39
32
 
40
- z-carousel .z-carousel-items-container {
33
+ .z-carousel-items-container {
41
34
  display: flex;
42
35
  max-width: 100%;
43
36
  flex-direction: row;
44
37
  margin: 0;
38
+ column-gap: var(--z-carousel-gutter);
45
39
  list-style: none;
46
40
  -ms-overflow-style: none; /* IE and Edge */
47
41
  overflow-x: scroll;
48
42
  padding-inline-start: 0;
43
+ scroll-behavior: smooth;
49
44
  scroll-snap-type: x mandatory;
50
45
 
51
46
  /* Hide scrollbar for IE, Edge and Firefox */
@@ -53,77 +48,98 @@ z-carousel .z-carousel-items-container {
53
48
  }
54
49
 
55
50
  /* Hide scrollbar for Chrome, Safari and Opera */
56
- z-carousel .z-carousel-items-container::-webkit-scrollbar {
51
+ .z-carousel-items-container::-webkit-scrollbar {
57
52
  display: none;
58
53
  }
59
54
 
60
- z-carousel .z-carousel-items-container > *:not(:last-child) {
61
- margin-right: var(--z-carousel-gutter);
62
- }
63
-
64
- z-carousel[single="true"] .z-carousel-items-container > *:not(:last-child),
65
- z-carousel[single] .z-carousel-items-container > *:not(:last-child) {
66
- margin-right: 0;
67
- }
68
-
69
- z-carousel .z-carousel-items-container > li {
55
+ .z-carousel-items-container ::slotted(*) {
70
56
  scroll-snap-align: center;
71
57
  }
72
58
 
73
- z-button[data-direction] {
74
- --z-icon-width: 32px;
75
- --z-icon-height: 32px;
59
+ .z-carousel-navigation-arrow[hidden] {
60
+ display: none;
61
+ }
76
62
 
63
+ .z-carousel-navigation-arrow[data-direction] {
77
64
  position: absolute;
78
65
  bottom: 50%;
79
66
  transform: translateY(50%);
80
67
  }
81
68
 
82
- z-button[data-direction="next"] {
69
+ .z-carousel-navigation-arrow[data-direction="next"] {
83
70
  right: 0;
84
71
  }
85
72
 
86
- z-carousel .z-carousel-footer {
73
+ :host(:not([fixed-arrows])) .z-carousel-wrapper .z-carousel-navigation-arrow {
74
+ display: none;
75
+ }
76
+
77
+ .z-carousel-footer {
87
78
  display: flex;
88
79
  flex-direction: row;
89
80
  align-items: center;
90
81
  justify-content: center;
91
- margin-top: var(--space-unit);
82
+ column-gap: calc(var(--space-unit) * 3);
83
+ }
84
+
85
+ :host([arrows-position="bottom"]) .z-carousel-footer {
86
+ margin-top: calc(var(--space-unit) * 0.75);
92
87
  }
93
88
 
94
- z-carousel .z-carousel-footer .numbers-progress,
95
- z-carousel .z-carousel-footer .dots-progress {
89
+ .z-carousel-footer .numbers-progress,
90
+ .z-carousel-footer .dots-progress {
96
91
  display: flex;
97
92
  align-items: center;
98
93
  justify-content: center;
99
94
  }
100
95
 
101
- z-carousel .z-carousel-footer .dots-progress button {
96
+ .z-carousel-footer .dots-progress {
97
+ column-gap: calc(var(--space-unit) * 3);
98
+ }
99
+
100
+ :host(:not([arrows-position="bottom"])) .z-carousel-footer .dots-progress {
101
+ margin-top: calc(var(--space-unit) * 2);
102
+ }
103
+
104
+ .z-carousel-footer .dots-progress button {
102
105
  display: flex;
106
+ width: calc(var(--space-unit) * 3);
107
+ height: calc(var(--space-unit) * 3);
103
108
  align-items: center;
104
109
  padding: 0;
105
110
  border: none;
106
111
  margin: 0;
107
- background-color: transparent;
112
+ background-color: var(--color-surface03);
113
+ border-radius: calc(var(--space-unit) * 3);
108
114
  }
109
115
 
110
- z-carousel .z-carousel-footer .dots-progress button:not(.current) {
116
+ .z-carousel-footer .dots-progress button.current {
117
+ background-color: var(--color-primary01);
118
+ }
119
+
120
+ .z-carousel-footer .dots-progress button:focus:focus-visible {
121
+ box-shadow: var(--shadow-focus-primary);
122
+ outline: none;
123
+ }
124
+
125
+ .z-carousel-footer .dots-progress button:not(.current) {
111
126
  cursor: pointer;
112
127
  }
113
128
 
114
- z-carousel .z-carousel-footer .numbers-progress {
115
- margin: 0 calc(var(--space-unit) / 2);
129
+ .z-carousel-footer .numbers-progress {
116
130
  column-gap: calc(var(--space-unit) / 2);
117
131
  }
118
132
 
119
- z-carousel .z-carousel-footer .numbers-progress .current {
120
- font-weight: var(--font-sb);
133
+ :host(:not([arrows-position="bottom"])) .z-carousel-footer .numbers-progress {
134
+ margin-top: var(--space-unit);
121
135
  }
122
136
 
123
- z-carousel .z-carousel-footer .dots-progress button.current z-icon {
124
- fill: var(--gray800);
137
+ .z-carousel-footer .numbers-progress .current {
138
+ font-weight: var(--font-sb);
125
139
  }
126
140
 
127
- z-carousel .z-carousel-footer .dots-progress button:not(.current) z-icon {
128
- fill: var(--gray200);
141
+ @media (min-width: 768px) {
142
+ :host(:not([fixed-arrows])) .z-carousel-wrapper:hover .z-carousel-navigation-arrow:not([hidden]) {
143
+ display: flex;
144
+ }
129
145
  }
@@ -1 +1 @@
1
- {"file":"index2.js","mappings":"IAMY;AAAZ,WAAY,WAAW;IACrB,6BAAc,CAAA;IACd,mCAAoB,CAAA;IACpB,+BAAgB,CAAA;IAChB,kCAAmB,CAAA;AACrB,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;IAcW;AAAZ,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,g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,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;AACrB,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B;IAEW;AAAZ,WAAY,wBAAwB;IAClC,uCAAW,CAAA;IACX,6CAAiB,CAAA;AACnB,CAAC,EAHW,wBAAwB,KAAxB,wBAAwB,QAGnC;IAEW;AAAZ,WAAY,sBAAsB;IAChC,uCAAa,CAAA;IACb,2CAAiB,CAAA;AACnB,CAAC,EAHW,sBAAsB,KAAtB,sBAAsB,QAGjC;IAEW;AAAZ,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,2CAAmB,CAAA;AACrB,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B;IA2BW;AAAZ,WAAY,mBAAmB;IAC7B,4CAAqB,CAAA;IACrB,gDAAyB,CAAA;AAC3B,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B;IAEW;AAAZ,WAAY,yBAAyB;IACnC,0CAAa,CAAA;IACb,0CAAa,CAAA;AACf,CAAC,EAHW,yBAAyB,KAAzB,yBAAyB,QAGpC;IAEW;AAAZ,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;IACf,wCAAiB,CAAA;AACnB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B;IAEW;AAAZ,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;AACnB,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;IAEW;AAAZ,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,6CAAyB,CAAA;AAC3B,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB;;;;","names":[],"sources":["src/beans/index.tsx"],"sourcesContent":["export type MyzLink = {\n label: string;\n img: string;\n link: string;\n};\n\nexport enum LicenseType {\n REAL = \"reale\",\n VIRTUAL = \"virtuale\",\n TRIAL = \"saggio\",\n TEMP = \"reale_temp\",\n}\n\nexport type Card = {\n id: string;\n isbn: string;\n volumeTitle: string;\n operaTitle: string;\n img: string;\n authors: string;\n actions: Action[];\n isBookmark: boolean;\n licenseType: LicenseType;\n};\n\nexport enum CardVariant {\n BORDER = \"border\",\n SHADOW = \"shadow\",\n OVERLAY = \"overlay\",\n TEXT = \"text\",\n}\n\nexport type Action = {\n isLink: boolean;\n value: string;\n url?: string;\n};\n\nexport type ListItem = {\n text: string;\n link?: string;\n linktarget?: string;\n icon?: string;\n listitemid?: string;\n};\n\nexport type FilterItem = {\n name: string;\n id: string;\n isActive: boolean;\n isfixed: boolean;\n};\n\nexport type MenuItem = {\n id: string;\n label: string;\n link?: string;\n icon?: string;\n target?: string;\n subMenu?: MenuItem[];\n};\n\nexport type TabItem = {\n id: string;\n label: string;\n icon?: string;\n size?: string;\n selected?: boolean;\n disabled?: boolean;\n};\n\nexport enum NavigationTabsOrientation {\n HORIZONTAL = \"horizontal\",\n VERTICAL = \"vertical\",\n}\n\nexport enum NavigationTabsSize {\n BIG = \"big\",\n SMALL = \"small\",\n}\n\nexport enum NavigationTabsKeyboardEvents {\n LEFT = \"ArrowLeft\",\n RIGHT = \"ArrowRight\",\n UP = \"ArrowUp\",\n DOWN = \"ArrowDown\",\n}\n\nexport type HeaderUserData = {\n islogged: boolean;\n id?: number;\n name?: string;\n usergroup: number;\n userlinks: MenuItem[];\n};\n\nexport type ComboItem = {\n id: string;\n name: string;\n checked: boolean;\n category?: string;\n};\n\nexport enum ButtonVariant {\n PRIMARY = \"primary\",\n SECONDARY = \"secondary\",\n TERTIARY = \"tertiary\",\n}\n\nexport enum ButtonType {\n SUBMIT = \"submit\",\n RESET = \"reset\",\n BUTTON = \"button\",\n}\n\n/**\n * @deprecated Use ControlSize instead\n */\nexport enum ButtonSize {\n BIG = \"big\",\n SMALL = \"small\",\n X_SMALL = \"x-small\",\n}\n\nexport enum ControlSize {\n BIG = \"big\",\n SMALL = \"small\",\n X_SMALL = \"x-small\",\n}\n\nexport enum InputType {\n TEXT = \"text\",\n PASSWORD = \"password\",\n NUMBER = \"number\",\n EMAIL = \"email\",\n TEXTAREA = \"textarea\",\n CHECKBOX = \"checkbox\",\n RADIO = \"radio\",\n TEL = \"tel\",\n URL = \"url\",\n SEARCH = \"search\",\n}\n\nexport enum InputStatus {\n SUCCESS = \"success\",\n ERROR = \"error\",\n WARNING = \"warning\",\n}\n\nexport enum PopoverPosition {\n AUTO = \"auto\",\n TOP = \"top\",\n RIGHT = \"right\",\n BOTTOM = \"bottom\",\n LEFT = \"left\",\n TOP_RIGHT = \"top_right\",\n TOP_LEFT = \"top_left\",\n BOTTOM_RIGHT = \"bottom_right\",\n BOTTOM_LEFT = \"bottom_left\",\n RIGHT_TOP = \"right_top\",\n RIGHT_BOTTOM = \"right_bottom\",\n LEFT_TOP = \"left_top\",\n LEFT_BOTTOM = \"left_bottom\",\n}\n\nexport enum KeyboardKeyCode {\n TAB = 9,\n SPACE = 32,\n ESC = 27,\n ENTER = 13,\n ARROW_UP = 38,\n ARROW_DOWN = 40,\n BACKSPACE = 8,\n DELETE = 46,\n}\n\nexport enum KeyboardCode {\n TAB = \"Tab\",\n SPACE = \"Space\",\n ESC = \"Escape\",\n ENTER = \"Enter\",\n ARROW_UP = \"ArrowUp\",\n ARROW_DOWN = \"ArrowDown\",\n BACKSPACE = \"Backspace\",\n DELETE = \"Delete\",\n}\n\nexport type SelectItem = {\n id: string;\n name: string;\n selected: boolean;\n icon?: string;\n disabled?: boolean;\n category?: string;\n};\n\nexport enum ThemeVariant {\n DARK = \"dark\",\n LIGHT = \"light\",\n}\n\nexport enum DividerSize {\n SMALL = \"small\",\n MEDIUM = \"medium\",\n LARGE = \"large\",\n}\n\nexport enum DividerOrientation {\n HORIZONTAL = \"horizontal\",\n VERTICAL = \"vertical\",\n}\n\nexport enum SortDirection {\n ASC = \"asc\",\n DESC = \"desc\",\n}\n\nexport enum AvatarSize {\n SMALL = \"small\",\n MEDIUM = \"medium\",\n LARGE = \"large\",\n}\n\nexport enum ListSize {\n SMALL = \"small\",\n MEDIUM = \"medium\",\n LARGE = \"large\",\n X_LARGE = \"x-large\",\n}\n\nexport enum ExpandableListStyle {\n ACCORDION = \"accordion\",\n MENU = \"menu\",\n}\n\nexport enum ExpandableListButtonAlign {\n RIGHT = \"right\",\n LEFT = \"left\",\n}\n\nexport enum LabelPosition {\n RIGHT = \"right\",\n LEFT = \"left\",\n}\n\nexport enum ListDividerType {\n NONE = \"none\",\n HEADER = \"header\",\n ELEMENT = \"element\",\n}\n\nexport enum ListType {\n NONE = \"none\",\n ORDERED = \"ordered\",\n UNORDERED = \"unordered\",\n}\n\nexport enum NotificationType {\n SUCCESS = \"success\",\n WARNING = \"warning\",\n ERROR = \"error\",\n}\n\nexport enum AlertType {\n SUCCESS = \"success\",\n WARNING = \"warning\",\n ERROR = \"error\",\n}\n\nexport enum Device {\n MOBILE = \"mobile\",\n TABLET = \"tablet\",\n DESKTOP = \"desktop\",\n DESKTOP_WIDE = \"desktop-wide\",\n}\n\nexport type DictionaryData = {\n author: string;\n year: string;\n title: string;\n description: string;\n onlineLicense: DictionaryLicenseData;\n offlineLicense: DictionaryLicenseData;\n};\n\nexport type DictionaryLicenseData = {\n expiration: string;\n expired: boolean;\n expiring: boolean;\n installations: string;\n};\n\nexport enum PocketStatus {\n PREVIEW = \"preview\",\n OPEN = \"open\",\n CLOSED = \"closed\",\n}\n\nexport enum ToastNotification {\n DARK = \"dark\",\n LIGHT = \"light\",\n ACCENT = \"accent\",\n ERROR = \"error\",\n SUCCESS = \"success\",\n WARNING = \"warning\",\n}\n\nexport enum ToastNotificationTransition {\n SLIDE_IN_LEFT = \"slide-in-left\",\n SLIDE_IN_RIGHT = \"slide-in-right\",\n SLIDE_IN_DOWN = \"slide-in-down\",\n SLIDE_IN_UP = \"slide-in-up\",\n SLIDE_OUT_LEFT = \"slide-out-left\",\n SLIDE_OUT_RIGHT = \"slide-out-right\",\n SLIDE_OUT_DOWN = \"slide-out-down\",\n SLIDE_OUT_UP = \"slide-out-up\",\n}\n\nexport enum ToastNotificationPosition {\n TOP_RIGHT = \"top-right\",\n TOP_LEFT = \"top-left\",\n TOP_CENTRE = \"top-centre\",\n BOTTOM_RIGHT = \"bottom-right\",\n BOTTOM_LEFT = \"bottom-left\",\n BOTTOM_CENTRE = \"bottom-centre\",\n}\n\nexport enum ZTableRowExpandedType {\n EXPANDABLE = \"expandable\",\n PADDING = \"padding\",\n NONE = \"none\",\n}\n\nexport enum ZAriaAlertMode {\n POLITE = \"polite\",\n ASSERTIVE = \"assertive\",\n}\n\nexport enum TransitionDirection {\n LEFT = \"left\",\n RIGHT = \"right\",\n}\n\nexport enum OffCanvasVariant {\n OVERLAY = \"overlay\",\n PUSHCONTENT = \"pushcontent\",\n}\n\nexport enum ZFileUploadType {\n DEFAULT = \"default\",\n DRAGDROP = \"dragdrop\",\n}\n\nexport enum ZChipType {\n DEFAULT = \"default\",\n MEDIUM = \"medium\",\n SMALL = \"small\",\n}\n\nexport enum ZSectionTitleDividerPosition {\n BEFORE = \"before\",\n AFTER = \"after\",\n}\n\nexport enum ZDatePickerMode {\n DATE = \"date\",\n DATE_TIME = \"date-time\",\n MONTHS = \"months\",\n}\n\nexport enum ZDatePickerModeValue {\n DATE = 401,\n DATE_TIME = 523,\n MONTHS = 288,\n}\n\nexport enum ZDatePickerPosition {\n TOP = \"top\",\n BOTTOM = \"bottom\",\n}\n\nexport enum ZRangePickerMode {\n DATE = \"date\",\n DATE_TIME = \"date-time\",\n}\n\nexport type SkipToContentLink = {\n label: string;\n href: string;\n ariaLabel?: string;\n};\n\nexport enum InfoRevealPosition {\n TOP_RIGHT = \"top_right\",\n TOP_LEFT = \"top_left\",\n BOTTOM_RIGHT = \"bottom_right\",\n BOTTOM_LEFT = \"bottom_left\",\n}\n\nexport enum CoverHeroVariant {\n OVERLAY = \"overlay\",\n STACKED = \"stacked\",\n}\n\nexport enum CoverHeroContentPosition {\n TOP = \"top\",\n BOTTOM = \"bottom\",\n}\n\nexport enum CarouselArrowsPosition {\n OVER = \"over\",\n BOTTOM = \"bottom\",\n}\n\nexport enum CarouselProgressMode {\n DOTS = \"dots\",\n NUMBERS = \"numbers\",\n}\n\nexport type SearchbarItem = {\n label: string;\n id?: string;\n icon?: string;\n tag?: {icon?: string; text: string};\n category?: string;\n subcategory?: string;\n};\n\nexport type SearchbarGroupedItem = {\n [key: string]: SearchbarGroup;\n};\n\nexport type SearchbarGroup = {\n items: SearchbarItem[];\n category?: string;\n subcategory?: string;\n};\n\nexport type BreadcrumbPath = {\n text?: string;\n path?: string;\n hasTooltip?: boolean;\n};\n\nexport enum BreadcrumbPathStyle {\n SEMIBOLD = \"semibold\",\n UNDERLINED = \"underlined\",\n}\n\nexport enum BreadcrumbHomepageVariant {\n TEXT = \"text\",\n ICON = \"icon\",\n}\n\nexport enum VisibilityCondition {\n HOVER = \"hover\",\n ALWAYS = \"always\",\n}\n\nexport enum BookCardVariant {\n EXPANDED = \"expanded\",\n COMPACT = \"compact\",\n SEARCH = \"search\",\n}\n\nexport enum AccordionVariant {\n DEFAULT = \"default\",\n BACKGROUND = \"background\",\n}\n"],"version":3}
1
+ {"file":"index2.js","mappings":"IAMY;AAAZ,WAAY,WAAW;IACrB,6BAAc,CAAA;IACd,mCAAoB,CAAA;IACpB,+BAAgB,CAAA;IAChB,kCAAmB,CAAA;AACrB,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;IAcW;AAAZ,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,kCAAmB,CAAA;IACnB,4BAAa,CAAA;AACf,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;IAyCW;AAAZ,WAAY,yBAAyB;IACnC,sDAAyB,CAAA;IACzB,kDAAqB,CAAA;AACvB,CAAC,EAHW,yBAAyB,KAAzB,yBAAyB,QAGpC;IAEW;AAAZ,WAAY,kBAAkB;IAC5B,iCAAW,CAAA;IACX,qCAAe,CAAA;AACjB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B;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B,QAGjC;IAEW;AAAZ,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,2CAAmB,CAAA;AACrB,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B;IA0BW;AAAZ,WAAY,mBAAmB;IAC7B,4CAAqB,CAAA;IACrB,gDAAyB,CAAA;AAC3B,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B;IAEW;AAAZ,WAAY,yBAAyB;IACnC,0CAAa,CAAA;IACb,0CAAa,CAAA;AACf,CAAC,EAHW,yBAAyB,KAAzB,yBAAyB,QAGpC;IAEW;AAAZ,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;IACf,wCAAiB,CAAA;AACnB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B;IAEW;AAAZ,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;AACnB,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;IAEW;AAAZ,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,6CAAyB,CAAA;AAC3B,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB;;;;","names":[],"sources":["src/beans/index.tsx"],"sourcesContent":["export type MyzLink = {\n label: string;\n img: string;\n link: string;\n};\n\nexport enum LicenseType {\n REAL = \"reale\",\n VIRTUAL = \"virtuale\",\n TRIAL = \"saggio\",\n TEMP = \"reale_temp\",\n}\n\nexport type Card = {\n id: string;\n isbn: string;\n volumeTitle: string;\n operaTitle: string;\n img: string;\n authors: string;\n actions: Action[];\n isBookmark: boolean;\n licenseType: LicenseType;\n};\n\nexport enum CardVariant {\n BORDER = \"border\",\n SHADOW = \"shadow\",\n OVERLAY = \"overlay\",\n TEXT = \"text\",\n}\n\nexport type Action = {\n isLink: boolean;\n value: string;\n url?: string;\n};\n\nexport type ListItem = {\n text: string;\n link?: string;\n linktarget?: string;\n icon?: string;\n listitemid?: string;\n};\n\nexport type FilterItem = {\n name: string;\n id: string;\n isActive: boolean;\n isfixed: boolean;\n};\n\nexport type MenuItem = {\n id: string;\n label: string;\n link?: string;\n icon?: string;\n target?: string;\n subMenu?: MenuItem[];\n};\n\nexport type TabItem = {\n id: string;\n label: string;\n icon?: string;\n size?: string;\n selected?: boolean;\n disabled?: boolean;\n};\n\nexport enum NavigationTabsOrientation {\n HORIZONTAL = \"horizontal\",\n VERTICAL = \"vertical\",\n}\n\nexport enum NavigationTabsSize {\n BIG = \"big\",\n SMALL = \"small\",\n}\n\nexport enum NavigationTabsKeyboardEvents {\n LEFT = \"ArrowLeft\",\n RIGHT = \"ArrowRight\",\n UP = \"ArrowUp\",\n DOWN = \"ArrowDown\",\n}\n\nexport type HeaderUserData = {\n islogged: boolean;\n id?: number;\n name?: string;\n usergroup: number;\n userlinks: MenuItem[];\n};\n\nexport type ComboItem = {\n id: string;\n name: string;\n checked: boolean;\n category?: string;\n};\n\nexport enum ButtonVariant {\n PRIMARY = \"primary\",\n SECONDARY = \"secondary\",\n TERTIARY = \"tertiary\",\n}\n\nexport enum ButtonType {\n SUBMIT = \"submit\",\n RESET = \"reset\",\n BUTTON = \"button\",\n}\n\n/**\n * @deprecated Use ControlSize instead\n */\nexport enum ButtonSize {\n BIG = \"big\",\n SMALL = \"small\",\n X_SMALL = \"x-small\",\n}\n\nexport enum ControlSize {\n BIG = \"big\",\n SMALL = \"small\",\n X_SMALL = \"x-small\",\n}\n\nexport enum InputType {\n TEXT = \"text\",\n PASSWORD = \"password\",\n NUMBER = \"number\",\n EMAIL = \"email\",\n TEXTAREA = \"textarea\",\n CHECKBOX = \"checkbox\",\n RADIO = \"radio\",\n TEL = \"tel\",\n URL = \"url\",\n SEARCH = \"search\",\n}\n\nexport enum InputStatus {\n SUCCESS = \"success\",\n ERROR = \"error\",\n WARNING = \"warning\",\n}\n\nexport enum PopoverPosition {\n AUTO = \"auto\",\n TOP = \"top\",\n RIGHT = \"right\",\n BOTTOM = \"bottom\",\n LEFT = \"left\",\n TOP_RIGHT = \"top_right\",\n TOP_LEFT = \"top_left\",\n BOTTOM_RIGHT = \"bottom_right\",\n BOTTOM_LEFT = \"bottom_left\",\n RIGHT_TOP = \"right_top\",\n RIGHT_BOTTOM = \"right_bottom\",\n LEFT_TOP = \"left_top\",\n LEFT_BOTTOM = \"left_bottom\",\n}\n\nexport enum KeyboardKeyCode {\n TAB = 9,\n SPACE = 32,\n ESC = 27,\n ENTER = 13,\n ARROW_UP = 38,\n ARROW_DOWN = 40,\n BACKSPACE = 8,\n DELETE = 46,\n}\n\nexport enum KeyboardCode {\n TAB = \"Tab\",\n SPACE = \"Space\",\n ESC = \"Escape\",\n ENTER = \"Enter\",\n ARROW_UP = \"ArrowUp\",\n ARROW_DOWN = \"ArrowDown\",\n BACKSPACE = \"Backspace\",\n DELETE = \"Delete\",\n}\n\nexport type SelectItem = {\n id: string;\n name: string;\n selected: boolean;\n icon?: string;\n disabled?: boolean;\n category?: string;\n};\n\nexport enum ThemeVariant {\n DARK = \"dark\",\n LIGHT = \"light\",\n}\n\nexport enum DividerSize {\n SMALL = \"small\",\n MEDIUM = \"medium\",\n LARGE = \"large\",\n}\n\nexport enum DividerOrientation {\n HORIZONTAL = \"horizontal\",\n VERTICAL = \"vertical\",\n}\n\nexport enum SortDirection {\n ASC = \"asc\",\n DESC = \"desc\",\n}\n\nexport enum AvatarSize {\n SMALL = \"small\",\n MEDIUM = \"medium\",\n LARGE = \"large\",\n}\n\nexport enum ListSize {\n SMALL = \"small\",\n MEDIUM = \"medium\",\n LARGE = \"large\",\n X_LARGE = \"x-large\",\n}\n\nexport enum ExpandableListStyle {\n ACCORDION = \"accordion\",\n MENU = \"menu\",\n}\n\nexport enum ExpandableListButtonAlign {\n RIGHT = \"right\",\n LEFT = \"left\",\n}\n\nexport enum LabelPosition {\n RIGHT = \"right\",\n LEFT = \"left\",\n}\n\nexport enum ListDividerType {\n NONE = \"none\",\n HEADER = \"header\",\n ELEMENT = \"element\",\n}\n\nexport enum ListType {\n NONE = \"none\",\n ORDERED = \"ordered\",\n UNORDERED = \"unordered\",\n}\n\nexport enum NotificationType {\n SUCCESS = \"success\",\n WARNING = \"warning\",\n ERROR = \"error\",\n}\n\nexport enum AlertType {\n SUCCESS = \"success\",\n WARNING = \"warning\",\n ERROR = \"error\",\n}\n\nexport enum Device {\n MOBILE = \"mobile\",\n TABLET = \"tablet\",\n DESKTOP = \"desktop\",\n DESKTOP_WIDE = \"desktop-wide\",\n}\n\nexport type DictionaryData = {\n author: string;\n year: string;\n title: string;\n description: string;\n onlineLicense: DictionaryLicenseData;\n offlineLicense: DictionaryLicenseData;\n};\n\nexport type DictionaryLicenseData = {\n expiration: string;\n expired: boolean;\n expiring: boolean;\n installations: string;\n};\n\nexport enum PocketStatus {\n PREVIEW = \"preview\",\n OPEN = \"open\",\n CLOSED = \"closed\",\n}\n\nexport enum ToastNotification {\n DARK = \"dark\",\n LIGHT = \"light\",\n ACCENT = \"accent\",\n ERROR = \"error\",\n SUCCESS = \"success\",\n WARNING = \"warning\",\n}\n\nexport enum ToastNotificationTransition {\n SLIDE_IN_LEFT = \"slide-in-left\",\n SLIDE_IN_RIGHT = \"slide-in-right\",\n SLIDE_IN_DOWN = \"slide-in-down\",\n SLIDE_IN_UP = \"slide-in-up\",\n SLIDE_OUT_LEFT = \"slide-out-left\",\n SLIDE_OUT_RIGHT = \"slide-out-right\",\n SLIDE_OUT_DOWN = \"slide-out-down\",\n SLIDE_OUT_UP = \"slide-out-up\",\n}\n\nexport enum ToastNotificationPosition {\n TOP_RIGHT = \"top-right\",\n TOP_LEFT = \"top-left\",\n TOP_CENTRE = \"top-centre\",\n BOTTOM_RIGHT = \"bottom-right\",\n BOTTOM_LEFT = \"bottom-left\",\n BOTTOM_CENTRE = \"bottom-centre\",\n}\n\nexport enum ZTableRowExpandedType {\n EXPANDABLE = \"expandable\",\n PADDING = \"padding\",\n NONE = \"none\",\n}\n\nexport enum ZAriaAlertMode {\n POLITE = \"polite\",\n ASSERTIVE = \"assertive\",\n}\n\nexport enum TransitionDirection {\n LEFT = \"left\",\n RIGHT = \"right\",\n}\n\nexport enum OffCanvasVariant {\n OVERLAY = \"overlay\",\n PUSHCONTENT = \"pushcontent\",\n}\n\nexport enum ZFileUploadType {\n DEFAULT = \"default\",\n DRAGDROP = \"dragdrop\",\n}\n\nexport enum ZChipType {\n DEFAULT = \"default\",\n MEDIUM = \"medium\",\n SMALL = \"small\",\n}\n\nexport enum ZSectionTitleDividerPosition {\n BEFORE = \"before\",\n AFTER = \"after\",\n}\n\nexport enum ZDatePickerMode {\n DATE = \"date\",\n DATE_TIME = \"date-time\",\n MONTHS = \"months\",\n}\n\nexport enum ZDatePickerModeValue {\n DATE = 401,\n DATE_TIME = 523,\n MONTHS = 288,\n}\n\nexport enum ZDatePickerPosition {\n TOP = \"top\",\n BOTTOM = \"bottom\",\n}\n\nexport enum ZRangePickerMode {\n DATE = \"date\",\n DATE_TIME = \"date-time\",\n}\n\nexport type SkipToContentLink = {\n label: string;\n href: string;\n ariaLabel?: string;\n};\n\nexport enum InfoRevealPosition {\n TOP_RIGHT = \"top_right\",\n TOP_LEFT = \"top_left\",\n BOTTOM_RIGHT = \"bottom_right\",\n BOTTOM_LEFT = \"bottom_left\",\n}\n\nexport enum CoverHeroVariant {\n OVERLAY = \"overlay\",\n STACKED = \"stacked\",\n}\n\nexport enum CoverHeroContentPosition {\n TOP = \"top\",\n BOTTOM = \"bottom\",\n}\n\nexport enum CarouselArrowsPosition {\n OVER = \"over\",\n BOTTOM = \"bottom\",\n}\n\nexport enum CarouselProgressMode {\n DOTS = \"dots\",\n NUMBERS = \"numbers\",\n}\n\nexport type SearchbarItem = {\n label: string;\n id?: string;\n icon?: string;\n category?: string;\n subcategory?: string;\n};\n\nexport type SearchbarGroupedItem = {\n [key: string]: SearchbarGroup;\n};\n\nexport type SearchbarGroup = {\n items: SearchbarItem[];\n category?: string;\n subcategory?: string;\n};\n\nexport type BreadcrumbPath = {\n text?: string;\n path?: string;\n hasTooltip?: boolean;\n};\n\nexport enum BreadcrumbPathStyle {\n SEMIBOLD = \"semibold\",\n UNDERLINED = \"underlined\",\n}\n\nexport enum BreadcrumbHomepageVariant {\n TEXT = \"text\",\n ICON = \"icon\",\n}\n\nexport enum VisibilityCondition {\n HOVER = \"hover\",\n ALWAYS = \"always\",\n}\n\nexport enum BookCardVariant {\n EXPANDED = \"expanded\",\n COMPACT = \"compact\",\n SEARCH = \"search\",\n}\n\nexport enum AccordionVariant {\n DEFAULT = \"default\",\n BACKGROUND = \"background\",\n}\n"],"version":3}
@@ -1,17 +1,16 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { e as ControlSize, B as ButtonVariant, p as Device, l as ListDividerType } from './index2.js';
3
- import { r as randomId, g as getDevice, f as handleEnterKeydSubmit } from './utils.js';
4
- import { d as defineCustomElement$9 } from './index4.js';
5
- import { d as defineCustomElement$8 } from './index6.js';
6
- import { d as defineCustomElement$7 } from './index9.js';
7
- import { d as defineCustomElement$6 } from './index10.js';
8
- import { d as defineCustomElement$5 } from './index11.js';
9
- import { d as defineCustomElement$4 } from './index12.js';
10
- import { d as defineCustomElement$3 } from './index13.js';
11
- import { d as defineCustomElement$2 } from './index14.js';
12
- import { d as defineCustomElement$1 } from './index30.js';
2
+ import { e as ControlSize, B as ButtonVariant, l as ListDividerType } from './index2.js';
3
+ import { r as randomId, f as handleEnterKeydSubmit } from './utils.js';
4
+ import { d as defineCustomElement$8 } from './index4.js';
5
+ import { d as defineCustomElement$7 } from './index6.js';
6
+ import { d as defineCustomElement$6 } from './index9.js';
7
+ import { d as defineCustomElement$5 } from './index10.js';
8
+ import { d as defineCustomElement$4 } from './index11.js';
9
+ import { d as defineCustomElement$3 } from './index12.js';
10
+ import { d as defineCustomElement$2 } from './index13.js';
11
+ import { d as defineCustomElement$1 } from './index14.js';
13
12
 
14
- const stylesCss = ":host{z-index:15;display:flex;column-gap:calc(var(--space-unit) * 2);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host,*{box-sizing:border-box}.input-container{position:relative;display:flex;width:100%;flex-direction:column}.results-wrapper{position:absolute;top:calc(100% - 1px);left:0;width:100%;padding:calc(var(--space-unit) / 4);border:var(--border-size-small) solid var(--color-surface03);border-top:none;background:var(--color-surface01)}.results{overflow:auto;max-height:var(--z-searchbar-results-height, 540px);padding:calc(var(--space-unit) / 2) calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}.results::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.results::-webkit-scrollbar-track{background-color:transparent}.results::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.results .category-heading{display:block;font-size:var(--font-size-2);font-weight:var(--font-rg);line-height:var(--font-size-3)}.results .category-heading>*{display:block}.results .category-heading>.category{color:var(--color-text05);font-style:italic}.results .category-heading>.subcategory{margin-top:var(--space-unit);color:var(--color-text01);text-transform:uppercase}.results z-list-element{display:block}.results z-list-element>.list-element{display:flex;justify-content:space-between}.results z-list-element>.list-element>z-tag{border:1px solid var(--gray800);font-size:var(--font-size-1);font-weight:var(--font-sb);--z-tag-bg:white;--z-tag-text-color:var(--color-text01)}.results .item{--z-icon-height:12px;--z-icon-width:12px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-start;color:var(--color-text01);column-gap:calc(var(--space-unit) * 1.5);fill:var(--color-icon02);font-size:var(--font-size-2);line-height:var(--font-size-3)}.results .item.ellipsis>.item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.results .item>.item-label mark{background:var(--color-primary03)}.results .item.has-category{padding-left:calc(var(--space-unit) * 3)}.results .item.item-search{--z-icon-height:16px;--z-icon-width:16px}.results .item-show-all{text-align:center}.results .item-no-results{display:block;font-size:var(--font-size-2);font-style:italic;line-height:var(--font-size-5)}.results .item-no-results>ul{padding-left:calc(var(--space-unit) * 2);margin:var(--space-unit)}@media (min-width: 768px){.results .category-heading{font-size:var(--font-size-3);line-height:var(--font-size-6)}.results .item{font-size:var(--font-size-3);line-height:var(--font-size-6)}.results .item.item-search{--z-icon-height:18px;--z-icon-width:18px}.results .item.ellipsis>.item-label{height:24px}}@media (min-width: 1152px){.results .item{cursor:pointer}.results .item-no-results{cursor:default;font-size:var(--font-size-3);line-height:var(--font-size-6)}}:host([size=\"small\"]) .results :is(.item,.category-heading),:host([size=\"x-small\"]) .results :is(.item,.category-heading){font-size:var(--font-size-2)}:host([size=\"small\"]) .results .item:not(.has-category),:host([size=\"x-small\"]) .results .item:not(.has-category){--z-icon-height:16px;--z-icon-width:16px}:host([size=\"small\"])::part(list-item-container){min-height:calc(var(--space-unit) * 4.5);padding:0}:host([size=\"x-small\"])::part(list-item-container){min-height:calc(var(--space-unit) * 4);padding:0}";
13
+ const stylesCss = ":host{z-index:15;display:flex;column-gap:calc(var(--space-unit) * 2);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host,*{box-sizing:border-box}.input-container{position:relative;display:flex;width:100%;flex-direction:column}.results-wrapper{position:absolute;top:calc(100% - 1px);left:0;width:100%;padding:calc(var(--space-unit) / 4);border:var(--border-size-small) solid var(--color-surface03);border-top:none;background:var(--color-surface01)}.results{overflow:auto;max-height:var(--z-searchbar-results-height, 540px);padding:calc(var(--space-unit) / 2) calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}.results::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.results::-webkit-scrollbar-track{background-color:transparent}.results::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.results .category-heading{display:block;font-size:var(--font-size-2);font-weight:var(--font-rg);line-height:var(--font-size-3)}.results .category-heading>*{display:block}.results .category-heading>.category{color:var(--color-text05);font-style:italic}.results .category-heading>.subcategory{margin-top:var(--space-unit);color:var(--color-text01);text-transform:uppercase}.results z-list-element{display:block}.results .item{--z-icon-height:12px;--z-icon-width:12px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-start;color:var(--color-text01);column-gap:calc(var(--space-unit) * 1.5);fill:var(--color-icon02);font-size:var(--font-size-2);line-height:var(--font-size-3)}.results .item.ellipsis>.item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.results .item>.item-label mark{background:var(--color-primary03)}.results .item.has-category{padding-left:calc(var(--space-unit) * 3)}.results .item.item-search{--z-icon-height:16px;--z-icon-width:16px}.results .item-show-all{text-align:center}.results .item-no-results{display:block;font-size:var(--font-size-2);font-style:italic;line-height:var(--font-size-5)}.results .item-no-results>ul{padding-left:calc(var(--space-unit) * 2);margin:var(--space-unit)}@media (min-width: 768px){.results .category-heading{font-size:var(--font-size-3);line-height:var(--font-size-6)}.results .item{font-size:var(--font-size-3);line-height:var(--font-size-6)}.results .item.item-search{--z-icon-height:18px;--z-icon-width:18px}.results .item.ellipsis>.item-label{height:24px}}@media (min-width: 1152px){.results .item{cursor:pointer}.results .item-no-results{cursor:default;font-size:var(--font-size-3);line-height:var(--font-size-6)}}:host([size=\"small\"]) .results :is(.item,.category-heading),:host([size=\"x-small\"]) .results :is(.item,.category-heading){font-size:var(--font-size-2)}:host([size=\"small\"]) .results .item:not(.has-category),:host([size=\"x-small\"]) .results .item:not(.has-category){--z-icon-height:16px;--z-icon-width:16px}:host([size=\"small\"])::part(list-item-container){min-height:calc(var(--space-unit) * 4.5);padding:0}:host([size=\"x-small\"])::part(list-item-container){min-height:calc(var(--space-unit) * 4);padding:0}";
15
14
  const ZSearchbarStyle0 = stylesCss;
16
15
 
17
16
  const ZSearchbar = /*@__PURE__*/ proxyCustomElement(class ZSearchbar extends HTMLElement {
@@ -41,7 +40,6 @@ const ZSearchbar = /*@__PURE__*/ proxyCustomElement(class ZSearchbar extends HTM
41
40
  this.searchString = this.value;
42
41
  this.currResultsCount = 0;
43
42
  this.showResults = false;
44
- this.isMobile = false;
45
43
  }
46
44
  emitSearchSubmit() {
47
45
  this.searchSubmit.emit(this.inputRef.value);
@@ -67,20 +65,6 @@ const ZSearchbar = /*@__PURE__*/ proxyCustomElement(class ZSearchbar extends HTM
67
65
  this.currResultsCount = this.resultsCount;
68
66
  }
69
67
  }
70
- disconnectedCallback() {
71
- this.resizeObserver.disconnect();
72
- }
73
- componentDidLoad() {
74
- this.resizeObserver = new ResizeObserver(() => {
75
- if (getDevice() === Device.MOBILE && !this.isMobile) {
76
- this.isMobile = true;
77
- }
78
- if (getDevice() !== Device.MOBILE && this.isMobile) {
79
- this.isMobile = false;
80
- }
81
- });
82
- this.resizeObserver.observe(this.element);
83
- }
84
68
  componentWillLoad() {
85
69
  this.resultsItemsList = this.getResultsItemsList();
86
70
  this.currResultsCount = this.resultsCount;
@@ -206,7 +190,7 @@ const ZSearchbar = /*@__PURE__*/ proxyCustomElement(class ZSearchbar extends HTM
206
190
  return listGroups;
207
191
  }
208
192
  renderItem(item, key, divider) {
209
- return (h("z-list-element", { id: `list-item-${this.htmlid}-${key}`, role: "option", tabindex: 0, dividerType: divider ? ListDividerType.ELEMENT : undefined, clickable: true, onClickItem: () => this.emitSearchItemClick(item) }, h("div", { class: "list-element" }, h("span", { class: { "item": true, "ellipsis": this.resultsEllipsis, "has-category": !!item.category } }, (item === null || item === void 0 ? void 0 : item.icon) && (h("z-icon", { class: "item-icon", name: item.icon })), h("span", { class: "item-label", title: item.label, innerHTML: this.renderItemLabel(item.label) })), (item === null || item === void 0 ? void 0 : item.tag) && h("z-tag", { icon: item.tag.icon }, !this.isMobile ? item.tag.text : ""))));
193
+ return (h("z-list-element", { id: `list-item-${this.htmlid}-${key}`, role: "option", tabindex: 0, dividerType: divider ? ListDividerType.ELEMENT : undefined, clickable: true, onClickItem: () => this.emitSearchItemClick(item) }, h("span", { class: { "item": true, "ellipsis": this.resultsEllipsis, "has-category": !!item.category } }, (item === null || item === void 0 ? void 0 : item.icon) && (h("z-icon", { class: "item-icon", name: item.icon })), h("span", { class: "item-label", title: item.label, innerHTML: this.renderItemLabel(item.label) }))));
210
194
  }
211
195
  renderItemLabel(label) {
212
196
  if (!this.searchString) {
@@ -237,9 +221,8 @@ const ZSearchbar = /*@__PURE__*/ proxyCustomElement(class ZSearchbar extends HTM
237
221
  return (h("z-list-element", { role: "option", tabindex: 0, clickable: true, id: `list-item-${this.htmlid}-show-all`, onClickItem: () => (this.currResultsCount = 0), color: "color-primary01" }, h("div", { class: "item-show-all" }, "Vedi tutti i risultati")));
238
222
  }
239
223
  render() {
240
- return (h(Host, { key: '49e7bb3d48c18519e07ac4952188f271895dd1a1', onFocus: () => (this.showResults = true), onClick: (e) => this.handleOutsideClick(e), class: { "has-submit": this.showSearchButton, "has-results": this.autocomplete } }, h("div", { key: '033d0ae0a35385e0d9d915e18887650b997c5688', class: "input-container" }, this.renderInput(), this.renderResults()), this.renderButton()));
224
+ return (h(Host, { key: 'fb00861518eb5646a75f2fa810b907163d720531', onFocus: () => (this.showResults = true), onClick: (e) => this.handleOutsideClick(e), class: { "has-submit": this.showSearchButton, "has-results": this.autocomplete } }, h("div", { key: '10ed44f469ddd16737653dff61427ccde59df735', class: "input-container" }, this.renderInput(), this.renderResults()), this.renderButton()));
241
225
  }
242
- get element() { return this; }
243
226
  static get watchers() { return {
244
227
  "resultsItems": ["watchItems"],
245
228
  "resultsCount": ["watchResultsCount"],
@@ -265,8 +248,7 @@ const ZSearchbar = /*@__PURE__*/ proxyCustomElement(class ZSearchbar extends HTM
265
248
  "variant": [1],
266
249
  "searchString": [32],
267
250
  "currResultsCount": [32],
268
- "showResults": [32],
269
- "isMobile": [32]
251
+ "showResults": [32]
270
252
  }, [[4, "click", "handleOutsideClick"]], {
271
253
  "resultsItems": ["watchItems"],
272
254
  "resultsCount": ["watchResultsCount"],
@@ -277,7 +259,7 @@ function defineCustomElement() {
277
259
  if (typeof customElements === "undefined") {
278
260
  return;
279
261
  }
280
- const components = ["z-searchbar", "z-button", "z-divider", "z-icon", "z-input", "z-input-message", "z-list", "z-list-element", "z-list-group", "z-tag"];
262
+ const components = ["z-searchbar", "z-button", "z-divider", "z-icon", "z-input", "z-input-message", "z-list", "z-list-element", "z-list-group"];
281
263
  components.forEach(tagName => { switch (tagName) {
282
264
  case "z-searchbar":
283
265
  if (!customElements.get(tagName)) {
@@ -285,46 +267,41 @@ function defineCustomElement() {
285
267
  }
286
268
  break;
287
269
  case "z-button":
288
- if (!customElements.get(tagName)) {
289
- defineCustomElement$9();
290
- }
291
- break;
292
- case "z-divider":
293
270
  if (!customElements.get(tagName)) {
294
271
  defineCustomElement$8();
295
272
  }
296
273
  break;
297
- case "z-icon":
274
+ case "z-divider":
298
275
  if (!customElements.get(tagName)) {
299
276
  defineCustomElement$7();
300
277
  }
301
278
  break;
302
- case "z-input":
279
+ case "z-icon":
303
280
  if (!customElements.get(tagName)) {
304
281
  defineCustomElement$6();
305
282
  }
306
283
  break;
307
- case "z-input-message":
284
+ case "z-input":
308
285
  if (!customElements.get(tagName)) {
309
286
  defineCustomElement$5();
310
287
  }
311
288
  break;
312
- case "z-list":
289
+ case "z-input-message":
313
290
  if (!customElements.get(tagName)) {
314
291
  defineCustomElement$4();
315
292
  }
316
293
  break;
317
- case "z-list-element":
294
+ case "z-list":
318
295
  if (!customElements.get(tagName)) {
319
296
  defineCustomElement$3();
320
297
  }
321
298
  break;
322
- case "z-list-group":
299
+ case "z-list-element":
323
300
  if (!customElements.get(tagName)) {
324
301
  defineCustomElement$2();
325
302
  }
326
303
  break;
327
- case "z-tag":
304
+ case "z-list-group":
328
305
  if (!customElements.get(tagName)) {
329
306
  defineCustomElement$1();
330
307
  }