@zanichelli/albe-web-components 12.1.4-rc → 12.2.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.
- package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
- package/dist/cjs/breakpoints-ebe1a437.js +9 -0
- package/dist/cjs/hammer-4f20813e.js +2650 -0
- package/dist/cjs/icons-d385b990.js +862 -0
- package/dist/cjs/index-00b6f6ba.js +20 -0
- package/dist/cjs/index-115387e6.js +17 -0
- package/dist/cjs/index-195ca522.js +2326 -0
- package/dist/cjs/index-20f305f7.js +17 -0
- package/dist/cjs/index-23ca3837.js +53 -0
- package/dist/cjs/index-270a4cf7.js +22 -0
- package/dist/cjs/index-2b0eb1f0.js +34 -0
- package/dist/cjs/index-4e41767c.js +21 -0
- package/dist/cjs/index-53c72420.js +79 -0
- package/dist/cjs/index-544902f0.js +21 -0
- package/dist/cjs/index-bb84dc1c.js +21 -0
- package/dist/cjs/index-cf9497bc.js +344 -0
- package/dist/cjs/index-d30158ef.js +67 -0
- package/dist/cjs/index-df08bc63.js +29 -0
- package/dist/cjs/index-e3bf75bc.js +41 -0
- package/dist/cjs/index-e78caf11.js +74 -0
- package/dist/cjs/index-f64e5dfe.js +17 -0
- package/dist/cjs/index-f6910e7f.js +21 -0
- package/dist/cjs/index.cjs.js +331 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/utils-8335dca3.js +2706 -0
- package/dist/cjs/utils-ee86db4f.js +110 -0
- package/dist/cjs/web-components-library.cjs.js +19 -0
- package/dist/cjs/z-accordion.cjs.entry.js +67 -0
- package/dist/cjs/z-alert.cjs.entry.js +19 -0
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +53 -0
- package/dist/cjs/z-app-header_11.cjs.entry.js +1077 -0
- package/dist/cjs/z-aria-alert.cjs.entry.js +19 -0
- package/dist/cjs/z-avatar.cjs.entry.js +44 -0
- package/dist/cjs/z-book-card.cjs.entry.js +126 -0
- package/dist/cjs/z-breadcrumb.cjs.entry.js +232 -0
- package/dist/cjs/z-button-sort.cjs.entry.js +53 -0
- package/dist/cjs/z-card.cjs.entry.js +53 -0
- package/dist/cjs/z-carousel.cjs.entry.js +150 -0
- package/dist/cjs/z-chip.cjs.entry.js +32 -0
- package/dist/cjs/z-combobox.cjs.entry.js +201 -0
- package/dist/cjs/z-contextual-menu.cjs.entry.js +46 -0
- package/dist/cjs/z-cover-hero.cjs.entry.js +57 -0
- package/dist/cjs/z-date-picker.cjs.entry.js +477 -0
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +1016 -0
- package/dist/cjs/z-file-upload.cjs.entry.js +185 -0
- package/dist/cjs/z-file.cjs.entry.js +48 -0
- package/dist/cjs/z-ghost-loading.cjs.entry.js +19 -0
- package/dist/cjs/z-info-box.cjs.entry.js +25 -0
- package/dist/cjs/z-info-reveal.cjs.entry.js +65 -0
- package/dist/cjs/z-link.cjs.entry.js +74 -0
- package/dist/cjs/z-logo.cjs.entry.js +26 -0
- package/dist/cjs/z-menu-section.cjs.entry.js +54 -0
- package/dist/cjs/z-menu.cjs.entry.js +119 -0
- package/dist/cjs/z-messages-pocket.cjs.entry.js +46 -0
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +63 -0
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +36 -0
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +19 -0
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +69 -0
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +23 -0
- package/dist/cjs/z-myz-card-info.cjs.entry.js +129 -0
- package/dist/cjs/z-myz-card-list.cjs.entry.js +38 -0
- package/dist/cjs/z-myz-card_4.cjs.entry.js +108 -0
- package/dist/cjs/z-myz-list-item.cjs.entry.js +37 -0
- package/dist/cjs/z-myz-list.cjs.entry.js +35 -0
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +74 -0
- package/dist/cjs/z-navigation-tab.cjs.entry.js +73 -0
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +229 -0
- package/dist/cjs/z-notification.cjs.entry.js +41 -0
- package/dist/cjs/z-otp.cjs.entry.js +41 -0
- package/dist/cjs/z-pagination.cjs.entry.js +229 -0
- package/dist/cjs/z-panel-elem.cjs.entry.js +34 -0
- package/dist/cjs/z-pocket-message.cjs.entry.js +19 -0
- package/dist/cjs/z-pocket_3.cjs.entry.js +125 -0
- package/dist/cjs/z-popover.cjs.entry.js +328 -0
- package/dist/cjs/z-range-picker.cjs.entry.js +361 -0
- package/dist/cjs/z-section-title.cjs.entry.js +33 -0
- package/dist/cjs/z-select.cjs.entry.js +336 -0
- package/dist/cjs/z-skip-to-content.cjs.entry.js +74 -0
- package/dist/cjs/z-slideshow.cjs.entry.js +129 -0
- package/dist/cjs/z-stepper-item.cjs.entry.js +22 -0
- package/dist/cjs/z-stepper.cjs.entry.js +19 -0
- package/dist/cjs/z-table-body.cjs.entry.js +10 -0
- package/dist/cjs/z-table-cell.cjs.entry.js +11 -0
- package/dist/cjs/z-table-deprecated.cjs.entry.js +91 -0
- package/dist/cjs/z-table-empty-box.cjs.entry.js +10 -0
- package/dist/cjs/z-table-expanded-row.cjs.entry.js +10 -0
- package/dist/cjs/z-table-footer.cjs.entry.js +10 -0
- package/dist/cjs/z-table-head.cjs.entry.js +10 -0
- package/dist/cjs/z-table-header-row.cjs.entry.js +10 -0
- package/dist/cjs/z-table-header.cjs.entry.js +13 -0
- package/dist/cjs/z-table-row.cjs.entry.js +11 -0
- package/dist/cjs/z-table-sticky-footer.cjs.entry.js +10 -0
- package/dist/cjs/z-table.cjs.entry.js +58 -0
- package/dist/cjs/z-tag.cjs.entry.js +22 -0
- package/dist/cjs/z-tbody.cjs.entry.js +10 -0
- package/dist/cjs/z-td.cjs.entry.js +11 -0
- package/dist/cjs/z-tfoot.cjs.entry.js +10 -0
- package/dist/cjs/z-th.cjs.entry.js +11 -0
- package/dist/cjs/z-thead.cjs.entry.js +10 -0
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +56 -0
- package/dist/cjs/z-toast-notification.cjs.entry.js +200 -0
- package/dist/cjs/z-toggle-button.cjs.entry.js +36 -0
- package/dist/cjs/z-toggle-switch.cjs.entry.js +51 -0
- package/dist/cjs/z-tooltip.cjs.entry.js +37 -0
- package/dist/cjs/z-tr.cjs.entry.js +15 -0
- package/dist/cjs/z-visually-hidden.cjs.entry.js +19 -0
- package/dist/collection/beans/index.js +342 -0
- package/dist/collection/collection-manifest.json +106 -0
- package/dist/collection/components/buttons/z-button/index.js +262 -0
- package/dist/collection/components/buttons/z-button/styles.css +149 -0
- package/dist/collection/components/buttons/z-button-sort/index.js +220 -0
- package/dist/collection/components/buttons/z-button-sort/styles.css +84 -0
- package/dist/collection/components/buttons/z-chip/index.js +147 -0
- package/dist/collection/components/buttons/z-chip/styles.css +122 -0
- package/dist/collection/components/buttons/z-toggle-button/index.js +146 -0
- package/dist/collection/components/buttons/z-toggle-button/styles.css +60 -0
- package/dist/collection/components/buttons/z-toggle-switch/index.js +144 -0
- package/dist/collection/components/buttons/z-toggle-switch/styles.css +104 -0
- package/dist/collection/components/date-picker/styles.css +565 -0
- package/dist/collection/components/date-picker/utils.js +76 -0
- package/dist/collection/components/date-picker/z-date-picker/index.js +295 -0
- package/dist/collection/components/date-picker/z-range-picker/index.js +593 -0
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js +53 -0
- package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +51 -0
- package/dist/collection/components/file-upload/z-file/index.js +131 -0
- package/dist/collection/components/file-upload/z-file/styles.css +23 -0
- package/dist/collection/components/file-upload/z-file-upload/index.js +363 -0
- package/dist/collection/components/file-upload/z-file-upload/styles.css +84 -0
- package/dist/collection/components/icons/icons.js +858 -0
- package/dist/collection/components/icons/z-icon/index.js +114 -0
- package/dist/collection/components/icons/z-icon/styles.css +14 -0
- package/dist/collection/components/index.js +8 -0
- package/dist/collection/components/indicators/z-stepper/index.js +21 -0
- package/dist/collection/components/indicators/z-stepper/styles.css +19 -0
- package/dist/collection/components/indicators/z-stepper-item/index.js +93 -0
- package/dist/collection/components/indicators/z-stepper-item/styles.css +114 -0
- package/dist/collection/components/inputs/z-combobox/index.js +570 -0
- package/dist/collection/components/inputs/z-combobox/styles.css +194 -0
- package/dist/collection/components/inputs/z-input/index.js +899 -0
- package/dist/collection/components/inputs/z-input/styles.css +397 -0
- package/dist/collection/components/inputs/z-input-message/index.js +89 -0
- package/dist/collection/components/inputs/z-input-message/styles.css +48 -0
- package/dist/collection/components/inputs/z-searchbar/index.js +599 -0
- package/dist/collection/components/inputs/z-searchbar/styles.css +185 -0
- package/dist/collection/components/inputs/z-select/index.js +767 -0
- package/dist/collection/components/inputs/z-select/styles.css +123 -0
- package/dist/collection/components/list/z-list/index.js +113 -0
- package/dist/collection/components/list/z-list/styles.css +6 -0
- package/dist/collection/components/list/z-list-element/index.js +545 -0
- package/dist/collection/components/list/z-list-element/styles.css +121 -0
- package/dist/collection/components/list/z-list-group/index.js +175 -0
- package/dist/collection/components/list/z-list-group/styles.css +21 -0
- package/dist/collection/components/list/z-toast-notification-list/index.js +105 -0
- package/dist/collection/components/list/z-toast-notification-list/styles.css +100 -0
- package/dist/collection/components/logo/z-logo/index.js +131 -0
- package/dist/collection/components/logo/z-logo/styles.css +29 -0
- package/dist/collection/components/modal/z-modal/index.js +351 -0
- package/dist/collection/components/modal/z-modal/styles.css +251 -0
- package/dist/collection/components/navigation/z-app-header/index.js +449 -0
- package/dist/collection/components/navigation/z-app-header/index.stories.js +393 -0
- package/dist/collection/components/navigation/z-app-header/styles.css +441 -0
- package/dist/collection/components/navigation/z-menu/index.js +250 -0
- package/dist/collection/components/navigation/z-menu/styles.css +217 -0
- package/dist/collection/components/navigation/z-menu-section/index.js +125 -0
- package/dist/collection/components/navigation/z-menu-section/styles.css +123 -0
- package/dist/collection/components/navigation/z-navigation-tabs/index.js +367 -0
- package/dist/collection/components/navigation/z-navigation-tabs/index.stories.js +12 -0
- package/dist/collection/components/navigation/z-navigation-tabs/styles.css +212 -0
- package/dist/collection/components/notification/z-info-box/index.js +85 -0
- package/dist/collection/components/notification/z-info-box/styles.css +23 -0
- package/dist/collection/components/notification/z-notification/index.js +195 -0
- package/dist/collection/components/notification/z-notification/styles.css +114 -0
- package/dist/collection/components/notification/z-toast-notification/index.js +399 -0
- package/dist/collection/components/notification/z-toast-notification/styles.css +254 -0
- package/dist/collection/components/notification/z-tooltip/index.js +157 -0
- package/dist/collection/components/notification/z-tooltip/styles.css +17 -0
- package/dist/collection/components/panel/z-panel-elem/index.js +197 -0
- package/dist/collection/components/panel/z-panel-elem/styles.css +46 -0
- package/dist/collection/components/table/cells/z-td/index.js +147 -0
- package/dist/collection/components/table/cells/z-td/styles.css +59 -0
- package/dist/collection/components/table/cells/z-th/index.js +209 -0
- package/dist/collection/components/table/cells/z-th/styles.css +88 -0
- package/dist/collection/components/table/z-table/index.js +86 -0
- package/dist/collection/components/table/z-table/styles.css +22 -0
- package/dist/collection/components/table/z-tbody/index.js +22 -0
- package/dist/collection/components/table/z-tbody/styles.css +4 -0
- package/dist/collection/components/table/z-tfoot/index.js +50 -0
- package/dist/collection/components/table/z-tfoot/styles.css +13 -0
- package/dist/collection/components/table/z-thead/index.js +50 -0
- package/dist/collection/components/table/z-thead/styles.css +19 -0
- package/dist/collection/components/table/z-tr/index.js +133 -0
- package/dist/collection/components/table/z-tr/styles.css +87 -0
- package/dist/collection/components/z-accordion/index.js +255 -0
- package/dist/collection/components/z-accordion/styles.css +255 -0
- package/dist/collection/components/z-anchor-navigation/index.js +95 -0
- package/dist/collection/components/z-anchor-navigation/styles.css +128 -0
- package/dist/collection/components/z-aria-alert/index.js +39 -0
- package/dist/collection/components/z-avatar/index.js +142 -0
- package/dist/collection/components/z-avatar/styles.css +32 -0
- package/dist/collection/components/z-book-card/index.js +392 -0
- package/dist/collection/components/z-book-card/styles.css +476 -0
- package/dist/collection/components/z-breadcrumb/index.js +392 -0
- package/dist/collection/components/z-breadcrumb/styles.css +146 -0
- package/dist/collection/components/z-card/index.js +148 -0
- package/dist/collection/components/z-card/styles.css +213 -0
- package/dist/collection/components/z-carousel/index.js +304 -0
- package/dist/collection/components/z-carousel/styles.css +129 -0
- package/dist/collection/components/z-contextual-menu/index.js +126 -0
- package/dist/collection/components/z-contextual-menu/styles.css +60 -0
- package/dist/collection/components/z-cover-hero/index.js +146 -0
- package/dist/collection/components/z-cover-hero/styles.css +93 -0
- package/dist/collection/components/z-divider/index.js +95 -0
- package/dist/collection/components/z-divider/styles.css +37 -0
- package/dist/collection/components/z-ghost-loading/index.js +18 -0
- package/dist/collection/components/z-ghost-loading/styles.css +34 -0
- package/dist/collection/components/z-info-reveal/index.js +147 -0
- package/dist/collection/components/z-info-reveal/styles.css +103 -0
- package/dist/collection/components/z-offcanvas/index.js +162 -0
- package/dist/collection/components/z-offcanvas/styles.css +182 -0
- package/dist/collection/components/z-pagination/index.js +435 -0
- package/dist/collection/components/z-pagination/styles.css +199 -0
- package/dist/collection/components/z-popover/index.js +513 -0
- package/dist/collection/components/z-popover/styles.css +147 -0
- package/dist/collection/components/z-section-title/index.js +88 -0
- package/dist/collection/components/z-section-title/styles.css +45 -0
- package/dist/collection/components/z-skip-to-content/index.js +147 -0
- package/dist/collection/components/z-skip-to-content/styles.css +81 -0
- package/dist/collection/components/z-tag/index.js +65 -0
- package/dist/collection/components/z-tag/styles.css +46 -0
- package/dist/collection/components/z-visually-hidden/index.js +18 -0
- package/dist/collection/components/z-visually-hidden/styles.css +12 -0
- package/dist/collection/constants/breakpoints.js +4 -0
- package/dist/collection/constants/icons.js +6 -0
- package/dist/collection/deprecated/navigation-tab.css +138 -0
- package/dist/collection/deprecated/z-link/index.js +318 -0
- package/dist/collection/deprecated/z-link/styles.css +167 -0
- package/dist/collection/deprecated/z-navigation-tab/index.js +290 -0
- package/dist/collection/deprecated/z-navigation-tab-link/index.js +313 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-body/index.js +26 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-body/styles.css +9 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-cell/index.js +84 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-cell/styles.css +58 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-deprecated/index.js +363 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-deprecated/styles.css +115 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-empty-box/index.js +75 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-empty-box/styles.css +38 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-expanded-row/index.js +42 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-expanded-row/styles.css +9 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-footer/index.js +25 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-footer/styles.css +5 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-head/index.js +25 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-head/styles.css +5 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-header/index.js +226 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-header/styles.css +71 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-header-row/index.js +44 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-header-row/styles.css +13 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-row/index.js +95 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-row/styles.css +45 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/index.js +22 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/styles.css +11 -0
- package/dist/collection/index.js +7 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +129 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +44 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +151 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/styles.css +62 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +22 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/styles.css +13 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +93 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/styles.css +11 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +177 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +72 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +219 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +181 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +22 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/styles.css +20 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +109 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +59 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +81 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +69 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +199 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +93 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +60 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/styles.css +41 -0
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +78 -0
- package/dist/collection/snowflakes/myz/list/z-myz-list/styles.css +4 -0
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +192 -0
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +66 -0
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +120 -0
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/styles.css +102 -0
- package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +191 -0
- package/dist/collection/snowflakes/myz/pocket/z-pocket/styles.css +44 -0
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +84 -0
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/styles.css +41 -0
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +93 -0
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/styles.css +27 -0
- package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.js +22 -0
- package/dist/collection/snowflakes/myz/pocket/z-pocket-message/styles.css +44 -0
- package/dist/collection/snowflakes/myz/z-alert/index.js +47 -0
- package/dist/collection/snowflakes/myz/z-alert/styles.css +28 -0
- package/dist/collection/snowflakes/myz/z-otp/index.js +120 -0
- package/dist/collection/snowflakes/myz/z-otp/styles.css +47 -0
- package/dist/collection/snowflakes/myz/z-slideshow/index.js +180 -0
- package/dist/collection/snowflakes/myz/z-slideshow/styles.css +127 -0
- package/dist/collection/utils/storybook-utils.js +76 -0
- package/dist/collection/utils/utils.js +115 -0
- package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
- package/dist/esm/breakpoints-9b81eb1b.js +5 -0
- package/dist/esm/hammer-c3266b17.js +2648 -0
- package/dist/esm/icons-e3232103.js +860 -0
- package/dist/esm/index-0a587f24.js +51 -0
- package/dist/esm/index-0cdc998f.js +19 -0
- package/dist/esm/index-361b27f9.js +15 -0
- package/dist/esm/index-47f23745.js +344 -0
- package/dist/esm/index-4968ce56.js +2298 -0
- package/dist/esm/index-4d1853ea.js +77 -0
- package/dist/esm/index-531501d7.js +15 -0
- package/dist/esm/index-6161978d.js +27 -0
- package/dist/esm/index-772a7413.js +20 -0
- package/dist/esm/index-816801e5.js +18 -0
- package/dist/esm/index-85dc8bc0.js +32 -0
- package/dist/esm/index-88a23895.js +19 -0
- package/dist/esm/index-8f7fd43f.js +19 -0
- package/dist/esm/index-af5c6b4c.js +15 -0
- package/dist/esm/index-dc50a9ae.js +72 -0
- package/dist/esm/index-e6ee76f0.js +39 -0
- package/dist/esm/index-fac1fe6c.js +19 -0
- package/dist/esm/index-fb19ca57.js +65 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/utils-2a4ef29d.js +100 -0
- package/dist/esm/utils-8e0bd81d.js +2700 -0
- package/dist/esm/web-components-library.js +17 -0
- package/dist/esm/z-accordion.entry.js +63 -0
- package/dist/esm/z-alert.entry.js +15 -0
- package/dist/esm/z-anchor-navigation.entry.js +49 -0
- package/dist/esm/z-app-header_11.entry.js +1063 -0
- package/dist/esm/z-aria-alert.entry.js +15 -0
- package/dist/esm/z-avatar.entry.js +40 -0
- package/dist/esm/z-book-card.entry.js +122 -0
- package/dist/esm/z-breadcrumb.entry.js +228 -0
- package/dist/esm/z-button-sort.entry.js +49 -0
- package/dist/esm/z-card.entry.js +49 -0
- package/dist/esm/z-carousel.entry.js +146 -0
- package/dist/esm/z-chip.entry.js +28 -0
- package/dist/esm/z-combobox.entry.js +197 -0
- package/dist/esm/z-contextual-menu.entry.js +42 -0
- package/dist/esm/z-cover-hero.entry.js +53 -0
- package/dist/esm/z-date-picker.entry.js +473 -0
- package/dist/esm/z-dragdrop-area_2.entry.js +1011 -0
- package/dist/esm/z-file-upload.entry.js +181 -0
- package/dist/esm/z-file.entry.js +44 -0
- package/dist/esm/z-ghost-loading.entry.js +15 -0
- package/dist/esm/z-info-box.entry.js +21 -0
- package/dist/esm/z-info-reveal.entry.js +61 -0
- package/dist/esm/z-link.entry.js +70 -0
- package/dist/esm/z-logo.entry.js +22 -0
- package/dist/esm/z-menu-section.entry.js +50 -0
- package/dist/esm/z-menu.entry.js +115 -0
- package/dist/esm/z-messages-pocket.entry.js +42 -0
- package/dist/esm/z-myz-card-alert.entry.js +59 -0
- package/dist/esm/z-myz-card-dictionary.entry.js +32 -0
- package/dist/esm/z-myz-card-footer-sections.entry.js +15 -0
- package/dist/esm/z-myz-card-footer.entry.js +65 -0
- package/dist/esm/z-myz-card-icon.entry.js +19 -0
- package/dist/esm/z-myz-card-info.entry.js +125 -0
- package/dist/esm/z-myz-card-list.entry.js +34 -0
- package/dist/esm/z-myz-card_4.entry.js +101 -0
- package/dist/esm/z-myz-list-item.entry.js +33 -0
- package/dist/esm/z-myz-list.entry.js +31 -0
- package/dist/esm/z-navigation-tab-link.entry.js +70 -0
- package/dist/esm/z-navigation-tab.entry.js +69 -0
- package/dist/esm/z-navigation-tabs.entry.js +225 -0
- package/dist/esm/z-notification.entry.js +37 -0
- package/dist/esm/z-otp.entry.js +37 -0
- package/dist/esm/z-pagination.entry.js +225 -0
- package/dist/esm/z-panel-elem.entry.js +30 -0
- package/dist/esm/z-pocket-message.entry.js +15 -0
- package/dist/esm/z-pocket_3.entry.js +119 -0
- package/dist/esm/z-popover.entry.js +324 -0
- package/dist/esm/z-range-picker.entry.js +357 -0
- package/dist/esm/z-section-title.entry.js +29 -0
- package/dist/esm/z-select.entry.js +332 -0
- package/dist/esm/z-skip-to-content.entry.js +70 -0
- package/dist/esm/z-slideshow.entry.js +125 -0
- package/dist/esm/z-stepper-item.entry.js +18 -0
- package/dist/esm/z-stepper.entry.js +15 -0
- package/dist/esm/z-table-body.entry.js +2 -0
- package/dist/esm/z-table-cell.entry.js +3 -0
- package/dist/esm/z-table-deprecated.entry.js +87 -0
- package/dist/esm/z-table-empty-box.entry.js +2 -0
- package/dist/esm/z-table-expanded-row.entry.js +2 -0
- package/dist/esm/z-table-footer.entry.js +2 -0
- package/dist/esm/z-table-head.entry.js +2 -0
- package/dist/esm/z-table-header-row.entry.js +2 -0
- package/dist/esm/z-table-header.entry.js +5 -0
- package/dist/esm/z-table-row.entry.js +3 -0
- package/dist/esm/z-table-sticky-footer.entry.js +2 -0
- package/dist/esm/z-table.entry.js +54 -0
- package/dist/esm/z-tag.entry.js +18 -0
- package/dist/esm/z-tbody.entry.js +2 -0
- package/dist/esm/z-td.entry.js +3 -0
- package/dist/esm/z-tfoot.entry.js +2 -0
- package/dist/esm/z-th.entry.js +3 -0
- package/dist/esm/z-thead.entry.js +2 -0
- package/dist/esm/z-toast-notification-list.entry.js +52 -0
- package/dist/esm/z-toast-notification.entry.js +196 -0
- package/dist/esm/z-toggle-button.entry.js +32 -0
- package/dist/esm/z-toggle-switch.entry.js +47 -0
- package/dist/esm/z-tooltip.entry.js +33 -0
- package/dist/esm/z-tr.entry.js +7 -0
- package/dist/esm/z-visually-hidden.entry.js +15 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/beans/index.d.ts +398 -0
- package/dist/types/components/buttons/z-button/index.d.ts +31 -0
- package/dist/types/components/buttons/z-button-sort/index.d.ts +28 -0
- package/dist/types/components/buttons/z-chip/index.d.ts +18 -0
- package/dist/types/components/buttons/z-toggle-button/index.d.ts +17 -0
- package/dist/types/components/buttons/z-toggle-switch/index.d.ts +17 -0
- package/dist/types/components/date-picker/utils.d.ts +4 -0
- package/dist/types/components/date-picker/z-date-picker/index.d.ts +29 -0
- package/dist/types/components/date-picker/z-range-picker/index.d.ts +52 -0
- package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +9 -0
- package/dist/types/components/file-upload/z-file/index.d.ts +22 -0
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +52 -0
- package/dist/types/components/icons/icons.d.ts +1549 -0
- package/dist/types/components/icons/z-icon/index.d.ts +14 -0
- package/dist/types/components/index.d.ts +0 -0
- package/dist/types/components/indicators/z-stepper/index.d.ts +6 -0
- package/dist/types/components/indicators/z-stepper-item/index.d.ts +19 -0
- package/dist/types/components/inputs/z-combobox/index.d.ts +71 -0
- package/dist/types/components/inputs/z-input/index.d.ts +103 -0
- package/dist/types/components/inputs/z-input-message/index.d.ts +12 -0
- package/dist/types/components/inputs/z-searchbar/index.d.ts +73 -0
- package/dist/types/components/inputs/z-select/index.d.ts +84 -0
- package/dist/types/components/list/z-list/index.d.ts +19 -0
- package/dist/types/components/list/z-list-element/index.d.ts +101 -0
- package/dist/types/components/list/z-list-group/index.d.ts +28 -0
- package/dist/types/components/list/z-toast-notification-list/index.d.ts +14 -0
- package/dist/types/components/logo/z-logo/index.d.ts +15 -0
- package/dist/types/components/modal/z-modal/index.d.ts +49 -0
- package/dist/types/components/navigation/z-app-header/index.d.ts +149 -0
- package/dist/types/components/navigation/z-menu/index.d.ts +61 -0
- package/dist/types/components/navigation/z-menu-section/index.d.ts +31 -0
- package/dist/types/components/navigation/z-navigation-tabs/index.d.ts +114 -0
- package/dist/types/components/notification/z-info-box/index.d.ts +14 -0
- package/dist/types/components/notification/z-notification/index.d.ts +32 -0
- package/dist/types/components/notification/z-toast-notification/index.d.ts +56 -0
- package/dist/types/components/notification/z-tooltip/index.d.ts +32 -0
- package/dist/types/components/panel/z-panel-elem/index.d.ts +25 -0
- package/dist/types/components/table/cells/z-td/index.d.ts +37 -0
- package/dist/types/components/table/cells/z-th/index.d.ts +56 -0
- package/dist/types/components/table/z-table/index.d.ts +28 -0
- package/dist/types/components/table/z-tbody/index.d.ts +7 -0
- package/dist/types/components/table/z-tfoot/index.d.ts +11 -0
- package/dist/types/components/table/z-thead/index.d.ts +11 -0
- package/dist/types/components/table/z-tr/index.d.ts +41 -0
- package/dist/types/components/z-accordion/index.d.ts +65 -0
- package/dist/types/components/z-anchor-navigation/index.d.ts +39 -0
- package/dist/types/components/z-aria-alert/index.d.ts +6 -0
- package/dist/types/components/z-avatar/index.d.ts +16 -0
- package/dist/types/components/z-book-card/index.d.ts +95 -0
- package/dist/types/components/z-breadcrumb/index.d.ts +56 -0
- package/dist/types/components/z-card/index.d.ts +38 -0
- package/dist/types/components/z-carousel/index.d.ts +63 -0
- package/dist/types/components/z-contextual-menu/index.d.ts +26 -0
- package/dist/types/components/z-cover-hero/index.d.ts +41 -0
- package/dist/types/components/z-divider/index.d.ts +10 -0
- package/dist/types/components/z-ghost-loading/index.d.ts +3 -0
- package/dist/types/components/z-info-reveal/index.d.ts +29 -0
- package/dist/types/components/z-offcanvas/index.d.ts +27 -0
- package/dist/types/components/z-pagination/index.d.ts +109 -0
- package/dist/types/components/z-popover/index.d.ts +69 -0
- package/dist/types/components/z-section-title/index.d.ts +25 -0
- package/dist/types/components/z-skip-to-content/index.d.ts +21 -0
- package/dist/types/components/z-tag/index.d.ts +13 -0
- package/dist/types/components/z-visually-hidden/index.d.ts +3 -0
- package/dist/types/components.d.ts +5258 -0
- package/dist/types/constants/breakpoints.d.ts +4 -0
- package/dist/types/constants/icons.d.ts +6 -0
- package/dist/types/deprecated/z-link/index.d.ts +41 -0
- package/dist/types/deprecated/z-navigation-tab/index.d.ts +69 -0
- package/dist/types/deprecated/z-navigation-tab-link/index.d.ts +77 -0
- package/dist/types/deprecated/z-table-deprecated/z-table-body/index.d.ts +8 -0
- package/dist/types/deprecated/z-table-deprecated/z-table-cell/index.d.ts +14 -0
- package/dist/types/deprecated/z-table-deprecated/z-table-deprecated/index.d.ts +59 -0
- package/dist/types/deprecated/z-table-deprecated/z-table-empty-box/index.d.ts +15 -0
- package/dist/types/deprecated/z-table-deprecated/z-table-expanded-row/index.d.ts +8 -0
- package/dist/types/deprecated/z-table-deprecated/z-table-footer/index.d.ts +8 -0
- package/dist/types/deprecated/z-table-deprecated/z-table-head/index.d.ts +8 -0
- package/dist/types/deprecated/z-table-deprecated/z-table-header/index.d.ts +31 -0
- package/dist/types/deprecated/z-table-deprecated/z-table-header-row/index.d.ts +9 -0
- package/dist/types/deprecated/z-table-deprecated/z-table-row/index.d.ts +16 -0
- package/dist/types/deprecated/z-table-deprecated/z-table-sticky-footer/index.d.ts +7 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +16 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +19 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +7 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +12 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +24 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +34 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +7 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +19 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +9 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +36 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +9 -0
- package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +11 -0
- package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +25 -0
- package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +16 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +25 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +12 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +18 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +7 -0
- package/dist/types/snowflakes/myz/z-alert/index.d.ts +9 -0
- package/dist/types/snowflakes/myz/z-otp/index.d.ts +17 -0
- package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +30 -0
- package/dist/types/stencil-public-runtime.d.ts +1576 -0
- package/dist/types/utils/storybook-utils.d.ts +50 -0
- package/dist/types/utils/utils.d.ts +24 -0
- package/dist/web-components-library/index.esm.js +1 -0
- package/dist/web-components-library/p-01e2e8d4.entry.js +1 -0
- package/dist/web-components-library/p-035fbb3e.entry.js +1 -0
- package/dist/web-components-library/p-03b13390.entry.js +1 -0
- package/dist/web-components-library/p-04b2ab0d.entry.js +1 -0
- package/dist/web-components-library/p-05ba9739.entry.js +1 -0
- package/dist/web-components-library/p-06c94384.entry.js +1 -0
- package/dist/web-components-library/p-100207d8.entry.js +1 -0
- package/dist/web-components-library/p-1086a0fa.entry.js +1 -0
- package/dist/web-components-library/p-112455b1.js +1 -0
- package/dist/web-components-library/p-138bc87e.entry.js +1 -0
- package/dist/web-components-library/p-13fc4378.js +1 -0
- package/dist/web-components-library/p-15a606ce.entry.js +1 -0
- package/dist/web-components-library/p-19876b0d.entry.js +1 -0
- package/dist/web-components-library/p-1d805413.entry.js +1 -0
- package/dist/web-components-library/p-29fa362c.entry.js +1 -0
- package/dist/web-components-library/p-2cb45213.entry.js +1 -0
- package/dist/web-components-library/p-3327e5f0.entry.js +1 -0
- package/dist/web-components-library/p-33305cc8.entry.js +1 -0
- package/dist/web-components-library/p-3636078a.entry.js +1 -0
- package/dist/web-components-library/p-376f2928.entry.js +1 -0
- package/dist/web-components-library/p-392899e9.entry.js +1 -0
- package/dist/web-components-library/p-39b7ad4f.entry.js +1 -0
- package/dist/web-components-library/p-3bb2d909.entry.js +1 -0
- package/dist/web-components-library/p-485fd3db.entry.js +1 -0
- package/dist/web-components-library/p-49f4e9a0.entry.js +1 -0
- package/dist/web-components-library/p-4d0d5d93.entry.js +1 -0
- package/dist/web-components-library/p-50f78a81.entry.js +1 -0
- package/dist/web-components-library/p-51bfa8ba.entry.js +1 -0
- package/dist/web-components-library/p-5338cc37.entry.js +1 -0
- package/dist/web-components-library/p-571b55dc.js +1 -0
- package/dist/web-components-library/p-57c6d414.entry.js +1 -0
- package/dist/web-components-library/p-5944a8f2.entry.js +1 -0
- package/dist/web-components-library/p-5c177ba5.entry.js +1 -0
- package/dist/web-components-library/p-5d274fcc.entry.js +1 -0
- package/dist/web-components-library/p-5f202970.entry.js +1 -0
- package/dist/web-components-library/p-5fd3ed9c.entry.js +1 -0
- package/dist/web-components-library/p-61c00383.entry.js +1 -0
- package/dist/web-components-library/p-68410ea2.js +1 -0
- package/dist/web-components-library/p-6a4403c6.entry.js +1 -0
- package/dist/web-components-library/p-6ed0aaab.entry.js +1 -0
- package/dist/web-components-library/p-7426f322.js +1 -0
- package/dist/web-components-library/p-7588fbf0.js +1 -0
- package/dist/web-components-library/p-7907bdf7.entry.js +1 -0
- package/dist/web-components-library/p-7b990086.js +1 -0
- package/dist/web-components-library/p-7c5ddeb0.entry.js +1 -0
- package/dist/web-components-library/p-80e52459.js +1 -0
- package/dist/web-components-library/p-81006561.js +2 -0
- package/dist/web-components-library/p-86758f78.entry.js +1 -0
- package/dist/web-components-library/p-8a45ae2a.entry.js +1 -0
- package/dist/web-components-library/p-8c31e60b.entry.js +1 -0
- package/dist/web-components-library/p-9021c92a.js +1 -0
- package/dist/web-components-library/p-94afe4dd.entry.js +1 -0
- package/dist/web-components-library/p-9508cd3e.js +1 -0
- package/dist/web-components-library/p-95370f75.js +1 -0
- package/dist/web-components-library/p-96fc8078.entry.js +1 -0
- package/dist/web-components-library/p-98204840.entry.js +1 -0
- package/dist/web-components-library/p-98badafc.js +1 -0
- package/dist/web-components-library/p-9b0bcd43.entry.js +1 -0
- package/dist/web-components-library/p-9c1ed1e8.entry.js +1 -0
- package/dist/web-components-library/p-9ff2fc8e.entry.js +1 -0
- package/dist/web-components-library/p-a01baa71.js +1 -0
- package/dist/web-components-library/p-a1663ab1.entry.js +1 -0
- package/dist/web-components-library/p-a3587fd6.entry.js +16 -0
- package/dist/web-components-library/p-a4502b1e.entry.js +1 -0
- package/dist/web-components-library/p-a48e5c46.entry.js +1 -0
- package/dist/web-components-library/p-a50262e8.entry.js +1 -0
- package/dist/web-components-library/p-a862a070.entry.js +1 -0
- package/dist/web-components-library/p-a9d2edee.entry.js +1 -0
- package/dist/web-components-library/p-acb89afa.entry.js +1 -0
- package/dist/web-components-library/p-b2527ca1.entry.js +1 -0
- package/dist/web-components-library/p-b497e33e.js +1 -0
- package/dist/web-components-library/p-b99039ed.js +1 -0
- package/dist/web-components-library/p-c298cb2f.js +1 -0
- package/dist/web-components-library/p-c44d87bd.entry.js +1 -0
- package/dist/web-components-library/p-c6e7991f.entry.js +1 -0
- package/dist/web-components-library/p-c9bc5148.js +1 -0
- package/dist/web-components-library/p-ca472d1c.entry.js +1 -0
- package/dist/web-components-library/p-cbb670c5.js +1 -0
- package/dist/web-components-library/p-cc009af8.entry.js +1 -0
- package/dist/web-components-library/p-cd561d69.js +1 -0
- package/dist/web-components-library/p-d2946762.entry.js +1 -0
- package/dist/web-components-library/p-db0a64af.js +1 -0
- package/dist/web-components-library/p-dd4fc386.entry.js +1 -0
- package/dist/web-components-library/p-de5688e9.entry.js +1 -0
- package/dist/web-components-library/p-decbd59d.entry.js +1 -0
- package/dist/web-components-library/p-e43e61ac.js +7 -0
- package/dist/web-components-library/p-e54d4ef9.entry.js +1 -0
- package/dist/web-components-library/p-e7c6d651.entry.js +1 -0
- package/dist/web-components-library/p-ed42ceca.entry.js +1 -0
- package/dist/web-components-library/p-f058316f.entry.js +1 -0
- package/dist/web-components-library/p-f14105c6.entry.js +1 -0
- package/dist/web-components-library/p-f3cc3f27.entry.js +1 -0
- package/dist/web-components-library/p-f46fa177.entry.js +1 -0
- package/dist/web-components-library/p-f4e2e76b.entry.js +1 -0
- package/dist/web-components-library/p-f5ae1514.entry.js +1 -0
- package/dist/web-components-library/p-f5bc7dda.entry.js +1 -0
- package/dist/web-components-library/p-f8383e14.entry.js +1 -0
- package/dist/web-components-library/p-f976f29f.js +1 -0
- package/dist/web-components-library/p-f9873cb9.entry.js +1 -0
- package/dist/web-components-library/p-fd58b7a2.entry.js +1 -0
- package/dist/web-components-library/p-fde82dc3.js +1 -0
- package/dist/web-components-library/p-ff5a6e34.entry.js +1 -0
- package/dist/web-components-library/p-ffde06d1.entry.js +1 -0
- package/dist/web-components-library/web-components-library.css +3 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +2 -2
- package/react/components.d.ts +97 -0
- package/react/components.js +104 -0
- package/react/components.js.map +1 -0
- package/react/index.js +14 -0
- package/react/index.js.map +1 -0
- package/react/react-component-lib/createComponent.d.ts +10 -0
- package/react/react-component-lib/createComponent.js +98 -0
- package/react/react-component-lib/createComponent.js.map +1 -0
- package/react/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/react/react-component-lib/createOverlayComponent.js +116 -0
- package/react/react-component-lib/createOverlayComponent.js.map +1 -0
- package/react/react-component-lib/index.d.ts +2 -0
- package/react/react-component-lib/index.js +8 -0
- package/react/react-component-lib/index.js.map +1 -0
- package/react/react-component-lib/interfaces.d.ts +29 -0
- package/react/react-component-lib/interfaces.js +3 -0
- package/react/react-component-lib/interfaces.js.map +1 -0
- package/react/react-component-lib/utils/attachProps.d.ts +12 -0
- package/react/react-component-lib/utils/attachProps.js +105 -0
- package/react/react-component-lib/utils/attachProps.js.map +1 -0
- package/react/react-component-lib/utils/case.d.ts +2 -0
- package/react/react-component-lib/utils/case.js +12 -0
- package/react/react-component-lib/utils/case.js.map +1 -0
- package/react/react-component-lib/utils/dev.d.ts +2 -0
- package/react/react-component-lib/utils/dev.js +18 -0
- package/react/react-component-lib/utils/dev.js.map +1 -0
- package/react/react-component-lib/utils/index.d.ts +10 -0
- package/react/react-component-lib/utils/index.js +54 -0
- package/react/react-component-lib/utils/index.js.map +1 -0
- package/www/assets/favicon.png +0 -0
- package/www/assets/images/png/arrowDown.png +0 -0
- package/www/assets/images/png/arrowUp.png +0 -0
- package/www/assets/images/png/back-button.png +0 -0
- package/www/assets/images/png/bovolenta-logo.png +0 -0
- package/www/assets/images/png/cart-icon.png +0 -0
- package/www/assets/images/png/cea-logo.png +0 -0
- package/www/assets/images/png/clitt-logo.png +0 -0
- package/www/assets/images/png/down-arrow.png +0 -0
- package/www/assets/images/png/download.png +0 -0
- package/www/assets/images/png/facebook.png +0 -0
- package/www/assets/images/png/gruoss.png +0 -0
- package/www/assets/images/png/instagram.png +0 -0
- package/www/assets/images/png/lucisano-logo.png +0 -0
- package/www/assets/images/png/myzanichelli-logo.png +0 -0
- package/www/assets/images/png/question-mark.png +0 -0
- package/www/assets/images/png/suitcase-icon.png +0 -0
- package/www/assets/images/png/twitter.png +0 -0
- package/www/assets/images/png/up-arrow.png +0 -0
- package/www/assets/images/png/user.png +0 -0
- package/www/assets/images/png/user_transparent.png +0 -0
- package/www/assets/images/png/youtube.png +0 -0
- package/www/assets/images/png/zanichelli-add-book-gray@8x.png +0 -0
- package/www/assets/images/png/zanichelli-book-remove-gray@8x.png +0 -0
- package/www/assets/images/png/zanichelli-error-image.png +0 -0
- package/www/assets/images/png/zanichelli-external-link-2@8x.png +0 -0
- package/www/assets/images/png/zanichelli-external-link-3@8x.png +0 -0
- package/www/assets/images/png/zanichelli-external-link@8x.png +0 -0
- package/www/assets/images/png/zanichelli-logo-2.png +0 -0
- package/www/assets/images/png/zanichelli-logo-footer.png +0 -0
- package/www/assets/images/png/zanichelli-logo.png +0 -0
- package/www/build/index.esm.js +1 -0
- package/www/build/p-01e2e8d4.entry.js +1 -0
- package/www/build/p-035fbb3e.entry.js +1 -0
- package/www/build/p-03b13390.entry.js +1 -0
- package/www/build/p-04b2ab0d.entry.js +1 -0
- package/www/build/p-05ba9739.entry.js +1 -0
- package/www/build/p-06c94384.entry.js +1 -0
- package/www/build/p-100207d8.entry.js +1 -0
- package/www/build/p-1086a0fa.entry.js +1 -0
- package/www/build/p-112455b1.js +1 -0
- package/www/build/p-138bc87e.entry.js +1 -0
- package/www/build/p-13fc4378.js +1 -0
- package/www/build/p-15a606ce.entry.js +1 -0
- package/www/build/p-19876b0d.entry.js +1 -0
- package/www/build/p-1d805413.entry.js +1 -0
- package/www/build/p-21a94605.css +3 -0
- package/www/build/p-29fa362c.entry.js +1 -0
- package/www/build/p-2cb45213.entry.js +1 -0
- package/www/build/p-3327e5f0.entry.js +1 -0
- package/www/build/p-33305cc8.entry.js +1 -0
- package/www/build/p-3636078a.entry.js +1 -0
- package/www/build/p-376f2928.entry.js +1 -0
- package/www/build/p-392899e9.entry.js +1 -0
- package/www/build/p-39b7ad4f.entry.js +1 -0
- package/www/build/p-3bb2d909.entry.js +1 -0
- package/www/build/p-485fd3db.entry.js +1 -0
- package/www/build/p-49f4e9a0.entry.js +1 -0
- package/www/build/p-4acb5cef.js +1 -0
- package/www/build/p-4d0d5d93.entry.js +1 -0
- package/www/build/p-50f78a81.entry.js +1 -0
- package/www/build/p-51bfa8ba.entry.js +1 -0
- package/www/build/p-5338cc37.entry.js +1 -0
- package/www/build/p-571b55dc.js +1 -0
- package/www/build/p-57c6d414.entry.js +1 -0
- package/www/build/p-5944a8f2.entry.js +1 -0
- package/www/build/p-5c177ba5.entry.js +1 -0
- package/www/build/p-5d274fcc.entry.js +1 -0
- package/www/build/p-5f202970.entry.js +1 -0
- package/www/build/p-5fd3ed9c.entry.js +1 -0
- package/www/build/p-61c00383.entry.js +1 -0
- package/www/build/p-68410ea2.js +1 -0
- package/www/build/p-6a4403c6.entry.js +1 -0
- package/www/build/p-6ed0aaab.entry.js +1 -0
- package/www/build/p-7426f322.js +1 -0
- package/www/build/p-7588fbf0.js +1 -0
- package/www/build/p-7907bdf7.entry.js +1 -0
- package/www/build/p-7b990086.js +1 -0
- package/www/build/p-7c5ddeb0.entry.js +1 -0
- package/www/build/p-80e52459.js +1 -0
- package/www/build/p-81006561.js +2 -0
- package/www/build/p-86758f78.entry.js +1 -0
- package/www/build/p-8a45ae2a.entry.js +1 -0
- package/www/build/p-8c31e60b.entry.js +1 -0
- package/www/build/p-9021c92a.js +1 -0
- package/www/build/p-94afe4dd.entry.js +1 -0
- package/www/build/p-9508cd3e.js +1 -0
- package/www/build/p-95370f75.js +1 -0
- package/www/build/p-96fc8078.entry.js +1 -0
- package/www/build/p-98204840.entry.js +1 -0
- package/www/build/p-98badafc.js +1 -0
- package/www/build/p-9b0bcd43.entry.js +1 -0
- package/www/build/p-9c1ed1e8.entry.js +1 -0
- package/www/build/p-9ff2fc8e.entry.js +1 -0
- package/www/build/p-a01baa71.js +1 -0
- package/www/build/p-a1663ab1.entry.js +1 -0
- package/www/build/p-a3587fd6.entry.js +16 -0
- package/www/build/p-a4502b1e.entry.js +1 -0
- package/www/build/p-a48e5c46.entry.js +1 -0
- package/www/build/p-a50262e8.entry.js +1 -0
- package/www/build/p-a862a070.entry.js +1 -0
- package/www/build/p-a9d2edee.entry.js +1 -0
- package/www/build/p-acb89afa.entry.js +1 -0
- package/www/build/p-b2527ca1.entry.js +1 -0
- package/www/build/p-b497e33e.js +1 -0
- package/www/build/p-b99039ed.js +1 -0
- package/www/build/p-c298cb2f.js +1 -0
- package/www/build/p-c44d87bd.entry.js +1 -0
- package/www/build/p-c6e7991f.entry.js +1 -0
- package/www/build/p-c9bc5148.js +1 -0
- package/www/build/p-ca472d1c.entry.js +1 -0
- package/www/build/p-cbb670c5.js +1 -0
- package/www/build/p-cc009af8.entry.js +1 -0
- package/www/build/p-cd561d69.js +1 -0
- package/www/build/p-d2946762.entry.js +1 -0
- package/www/build/p-db0a64af.js +1 -0
- package/www/build/p-dd4fc386.entry.js +1 -0
- package/www/build/p-de5688e9.entry.js +1 -0
- package/www/build/p-decbd59d.entry.js +1 -0
- package/www/build/p-e43e61ac.js +7 -0
- package/www/build/p-e54d4ef9.entry.js +1 -0
- package/www/build/p-e7c6d651.entry.js +1 -0
- package/www/build/p-ed42ceca.entry.js +1 -0
- package/www/build/p-f058316f.entry.js +1 -0
- package/www/build/p-f14105c6.entry.js +1 -0
- package/www/build/p-f3cc3f27.entry.js +1 -0
- package/www/build/p-f46fa177.entry.js +1 -0
- package/www/build/p-f4e2e76b.entry.js +1 -0
- package/www/build/p-f5ae1514.entry.js +1 -0
- package/www/build/p-f5bc7dda.entry.js +1 -0
- package/www/build/p-f8383e14.entry.js +1 -0
- package/www/build/p-f976f29f.js +1 -0
- package/www/build/p-f9873cb9.entry.js +1 -0
- package/www/build/p-fd58b7a2.entry.js +1 -0
- package/www/build/p-fde82dc3.js +1 -0
- package/www/build/p-ff5a6e34.entry.js +1 -0
- package/www/build/p-ffde06d1.entry.js +1 -0
- package/www/build/web-components-library.css +3 -0
- package/www/build/web-components-library.esm.js +1 -0
- package/www/build/web-components-library.js +33 -0
- package/www/host.config.json +15 -0
- package/www/index.html +1 -0
- package/www/pages/book-cards.html +595 -0
- package/www/pages/file-upload.html +258 -0
- package/www/pages/notification.html +299 -0
- package/CHANGELOG.md +0 -2844
- /package/{src-react/index.ts → react/index.d.ts} +0 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4968ce56.js';
|
|
2
|
+
import { w as ZFileUploadType, p as Device, D as DividerSize } from './index-47f23745.js';
|
|
3
|
+
import { g as getDevice } from './utils-2a4ef29d.js';
|
|
4
|
+
import './breakpoints-9b81eb1b.js';
|
|
5
|
+
|
|
6
|
+
const stylesCss = ":host{color:var(--color-text01);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.container{display:flex;flex-direction:column}:host .modal-wrapper{display:flex;align-items:center;justify-content:center}:host .modal-wrapper>.files-wrapper{display:flex;flex-direction:column;margin:calc(var(--space-unit) * 4);gap:var(--space-unit)}:host .text-container{display:flex;flex-direction:column;margin:auto}:host .text-container .body-1{text-align:center}:host .text-container .upload-link{color:var(--color-link-primary);cursor:pointer}:host .text-container .upload-link-text{margin-bottom:var(--space-unit)}input#file-elem{display:none}#title{display:inline-block;margin-bottom:var(--space-unit)}:host>.container>z-button{display:inline-block;margin-top:calc(var(--space-unit) * 3)}:host>.container>.files-container.hidden{display:none}:host>.container>.files-container>.heading-4-sb{display:inline-block;margin:calc(var(--space-unit) * 3) 0}:host>.container>.files-container>.files-wrapper{display:flex;flex-wrap:wrap;column-gap:calc(var(--space-unit) * 2);row-gap:calc(var(--space-unit) * 2)}:host>.container>.files-container>z-divider{margin-top:calc(var(--space-unit) * 3);margin-bottom:0}@media only screen and (min-width: 768px){:host>.container>z-button{align-self:flex-start}}";
|
|
7
|
+
|
|
8
|
+
const ZFileUpload = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.fileInput = createEvent(this, "fileInput", 7);
|
|
12
|
+
/** Prop indicating the file upload type - can be default or dragdrop */
|
|
13
|
+
this.type = ZFileUploadType.DEFAULT;
|
|
14
|
+
/** Files added by the user */
|
|
15
|
+
this.files = [];
|
|
16
|
+
this.inputAttributes = {
|
|
17
|
+
type: "file",
|
|
18
|
+
id: "file-elem",
|
|
19
|
+
multiple: true,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/** Listen removeFile event sent from z-file component */
|
|
23
|
+
removeFileListener(e) {
|
|
24
|
+
const files = this.files;
|
|
25
|
+
const file = files.find((file) => file.name === e.detail.fileName);
|
|
26
|
+
if (file) {
|
|
27
|
+
const index = files.indexOf(file);
|
|
28
|
+
if (index >= 0) {
|
|
29
|
+
files.splice(index, 1);
|
|
30
|
+
this.files = [...files];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/** Listen fileDropped event sent from z-dragdrop-area component */
|
|
35
|
+
fileDroppedListener(e) {
|
|
36
|
+
this.input.files = e.detail;
|
|
37
|
+
this.fileInputHandler();
|
|
38
|
+
}
|
|
39
|
+
componentDidUpdate() {
|
|
40
|
+
this.handleAccessibility();
|
|
41
|
+
this.invalidFiles.size && this.errorModal.focus();
|
|
42
|
+
}
|
|
43
|
+
componentWillLoad() {
|
|
44
|
+
this.invalidFiles = new Map();
|
|
45
|
+
}
|
|
46
|
+
fileInputHandler() {
|
|
47
|
+
if (this.input.files.length) {
|
|
48
|
+
this.invalidFiles = this.checkFiles(Array.from(this.input.files));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
/** get array of uploaded files */
|
|
52
|
+
async getFiles() {
|
|
53
|
+
return this.files;
|
|
54
|
+
}
|
|
55
|
+
getType() {
|
|
56
|
+
if (getDevice() !== Device.DESKTOP && getDevice() !== Device.DESKTOP_WIDE) {
|
|
57
|
+
return ZFileUploadType.DEFAULT;
|
|
58
|
+
}
|
|
59
|
+
return this.type;
|
|
60
|
+
}
|
|
61
|
+
handleAccessibility() {
|
|
62
|
+
const lastFile = this.el.querySelector("z-file:last-child z-chip button");
|
|
63
|
+
if (this.files.length > 0 && lastFile) {
|
|
64
|
+
lastFile.focus();
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
this.getType() === ZFileUploadType.DEFAULT
|
|
68
|
+
? this.button.querySelector("button").focus()
|
|
69
|
+
: this.uploadLink.focus();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
checkFiles(files) {
|
|
73
|
+
const errors = new Map();
|
|
74
|
+
const sizeErrorString = `supera i ${this.fileMaxSize}MB`;
|
|
75
|
+
const formatErrorString = " ha un'estensione non prevista";
|
|
76
|
+
files.forEach((file) => {
|
|
77
|
+
const fileSize = file.size / 1024 / 1024;
|
|
78
|
+
const fileFormatOk = this.acceptedFormat
|
|
79
|
+
.split(",")
|
|
80
|
+
.some((ext) => file.name.toLowerCase().endsWith(ext.trim()));
|
|
81
|
+
const fileSizeOk = fileSize <= this.fileMaxSize;
|
|
82
|
+
if (fileSizeOk && fileFormatOk) {
|
|
83
|
+
if (!this.files.find((f) => f.name === file.name)) {
|
|
84
|
+
this.files.push(file);
|
|
85
|
+
this.fileInput.emit(file);
|
|
86
|
+
this.input.value = "";
|
|
87
|
+
}
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
errors.set(file.name, []);
|
|
91
|
+
if (!fileSizeOk) {
|
|
92
|
+
errors.get(file.name).push(sizeErrorString);
|
|
93
|
+
}
|
|
94
|
+
if (!fileFormatOk) {
|
|
95
|
+
errors.get(file.name).push(formatErrorString);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
return errors;
|
|
99
|
+
}
|
|
100
|
+
renderTitle() {
|
|
101
|
+
return (h("h2", { class: "heading-2-sb", id: "title" }, this.mainTitle));
|
|
102
|
+
}
|
|
103
|
+
renderDescription(cssClass) {
|
|
104
|
+
return h("span", { class: cssClass }, this.description);
|
|
105
|
+
}
|
|
106
|
+
renderAllowedFileExtensions() {
|
|
107
|
+
let fileFormatString = "";
|
|
108
|
+
let fileWeightString = "";
|
|
109
|
+
if (this.acceptedFormat) {
|
|
110
|
+
const fileFormat = this.acceptedFormat
|
|
111
|
+
.split(", ")
|
|
112
|
+
.map((string) => string.substring(1).toUpperCase())
|
|
113
|
+
.join(", ");
|
|
114
|
+
fileFormatString = ` nei formati ${fileFormat}`;
|
|
115
|
+
}
|
|
116
|
+
if (this.fileMaxSize) {
|
|
117
|
+
fileWeightString = ` per un massimo di ${this.fileMaxSize}MB di peso`;
|
|
118
|
+
}
|
|
119
|
+
const finalString = `Puoi allegare file${fileFormatString}${fileWeightString}.`;
|
|
120
|
+
return h("span", { class: "body-3" }, fileFormatString || fileWeightString ? finalString : null);
|
|
121
|
+
}
|
|
122
|
+
renderFileSection() {
|
|
123
|
+
return (h("section", { class: `files-container ${!this.files.length ? "hidden" : ""}` }, h("h4", { class: "heading-4-sb" }, "File appena caricati"), h("div", { class: "files-wrapper" }, h("slot", { name: "files" })), h("z-divider", { size: DividerSize.MEDIUM })));
|
|
124
|
+
}
|
|
125
|
+
renderInput() {
|
|
126
|
+
return (h("input", Object.assign({}, this.inputAttributes, { onChange: () => this.fileInputHandler(), accept: this.acceptedFormat, ref: (val) => (this.input = val) })));
|
|
127
|
+
}
|
|
128
|
+
renderUploadButton() {
|
|
129
|
+
return [
|
|
130
|
+
this.renderInput(),
|
|
131
|
+
h("z-button", { onClick: () => this.input.click(), onKeyPress: (e) => {
|
|
132
|
+
if (e.code == "Space" || e.code == "Enter") {
|
|
133
|
+
e.preventDefault();
|
|
134
|
+
this.input.click();
|
|
135
|
+
}
|
|
136
|
+
}, id: "fileSelect", variant: this.buttonVariant, icon: "upload", ref: (val) => (this.button = val) }, "Allega"),
|
|
137
|
+
];
|
|
138
|
+
}
|
|
139
|
+
renderUploadLink() {
|
|
140
|
+
return [
|
|
141
|
+
this.renderInput(),
|
|
142
|
+
h("span", { class: "body-1 upload-link-text" }, "Trascinalo qui o", " ", h("span", { tabIndex: 0, class: "body-1-sb upload-link", onClick: () => this.input.click(), onKeyPress: (e) => {
|
|
143
|
+
if (e.code == "Space" || e.code == "Enter") {
|
|
144
|
+
e.preventDefault();
|
|
145
|
+
this.input.click();
|
|
146
|
+
}
|
|
147
|
+
}, ref: (val) => (this.uploadLink = val) }, "caricalo"), " ", "dal tuo computer"),
|
|
148
|
+
];
|
|
149
|
+
}
|
|
150
|
+
renderDefaultMode() {
|
|
151
|
+
return [
|
|
152
|
+
this.renderDescription("body-3-sb"),
|
|
153
|
+
this.renderAllowedFileExtensions(),
|
|
154
|
+
this.renderFileSection(),
|
|
155
|
+
this.renderUploadButton(),
|
|
156
|
+
];
|
|
157
|
+
}
|
|
158
|
+
renderDragDropMode() {
|
|
159
|
+
return [
|
|
160
|
+
this.renderFileSection(),
|
|
161
|
+
h("z-dragdrop-area", null, h("div", { class: "text-container" }, this.renderDescription("body-1"), this.renderUploadLink(), this.renderAllowedFileExtensions())),
|
|
162
|
+
];
|
|
163
|
+
}
|
|
164
|
+
formatErrorString(key, value) {
|
|
165
|
+
var _a, _b;
|
|
166
|
+
const bothErrors = value[0] && value[1] ? ", " : "";
|
|
167
|
+
return `Il file ${key} ${(_a = value[0]) !== null && _a !== void 0 ? _a : ""}${bothErrors} ${(_b = value[1]) !== null && _b !== void 0 ? _b : ""} e non può quindi essere caricato.`;
|
|
168
|
+
}
|
|
169
|
+
handleErrorModalContent() {
|
|
170
|
+
return (h("div", { slot: "modalContent" }, h("div", { class: "modal-wrapper" }, h("div", { class: "files" }, Array.from(this.invalidFiles).map(([key, value]) => {
|
|
171
|
+
return h("span", { class: "body-3" }, this.formatErrorString(key, value));
|
|
172
|
+
})))));
|
|
173
|
+
}
|
|
174
|
+
render() {
|
|
175
|
+
return (h(Host, null, h("div", { tabIndex: 0, class: `container ${this.getType()}` }, this.renderTitle(), this.getType() == ZFileUploadType.DEFAULT ? this.renderDefaultMode() : this.renderDragDropMode()), !!this.invalidFiles.size && (h("z-modal", { tabIndex: 0, ref: (val) => (this.errorModal = val), modaltitle: "Attenzione", onModalClose: () => (this.invalidFiles = new Map()), onModalBackgroundClick: () => (this.invalidFiles = new Map()) }, this.handleErrorModalContent()))));
|
|
176
|
+
}
|
|
177
|
+
get el() { return getElement(this); }
|
|
178
|
+
};
|
|
179
|
+
ZFileUpload.style = stylesCss;
|
|
180
|
+
|
|
181
|
+
export { ZFileUpload as z_file_upload };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4968ce56.js';
|
|
2
|
+
import { x as ZChipType, P as PopoverPosition } from './index-47f23745.js';
|
|
3
|
+
import { t as tabletBreakpoint } from './breakpoints-9b81eb1b.js';
|
|
4
|
+
|
|
5
|
+
const stylesCss = ".sc-z-file-h{position:relative;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.sc-z-file-h>z-popover.sc-z-file{z-index:10}.sc-z-file-h>z-popover.sc-z-file>.tooltip-content.sc-z-file{white-space:nowrap}.sc-z-file-h>z-chip.sc-z-file span.sc-z-file{display:block;overflow:hidden;max-width:250px;letter-spacing:0.32px;line-height:1.33;text-overflow:ellipsis;white-space:nowrap}";
|
|
6
|
+
|
|
7
|
+
const ZFile = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.removeFile = createEvent(this, "removeFile", 7);
|
|
11
|
+
this.allowPopover = false;
|
|
12
|
+
this.popoverVisible = false;
|
|
13
|
+
}
|
|
14
|
+
removeFileHandler() {
|
|
15
|
+
this.removeFile.emit({ fileName: this.fileName });
|
|
16
|
+
this.el.remove();
|
|
17
|
+
}
|
|
18
|
+
onMouseOver() {
|
|
19
|
+
this.popoverVisible = true;
|
|
20
|
+
}
|
|
21
|
+
onMouseLeave() {
|
|
22
|
+
this.popoverVisible = false;
|
|
23
|
+
}
|
|
24
|
+
onInteractiveIconClick() {
|
|
25
|
+
this.removeFileHandler();
|
|
26
|
+
}
|
|
27
|
+
componentDidLoad() {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
if (this.elementHasEllipsis() && window.innerWidth > tabletBreakpoint) {
|
|
30
|
+
this.allowPopover = true;
|
|
31
|
+
}
|
|
32
|
+
(_b = (_a = this.icon) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
33
|
+
}
|
|
34
|
+
elementHasEllipsis() {
|
|
35
|
+
return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
|
|
36
|
+
}
|
|
37
|
+
render() {
|
|
38
|
+
return (h(Host, null, this.allowPopover && (h("z-popover", { open: this.popoverVisible, position: PopoverPosition.AUTO, bindTo: this.chip }, h("span", { class: "body-5 tooltip-content" }, this.ellipsis.innerText))), h("z-chip", { ref: (el) => (this.chip = el), id: `chip-${this.fileNumber}`, interactiveIcon: "multiply-circled", type: ZChipType.DEFAULT }, h("span", { ref: (el) => (this.ellipsis = el), tabIndex: -1 }, this.fileName))));
|
|
39
|
+
}
|
|
40
|
+
get el() { return getElement(this); }
|
|
41
|
+
};
|
|
42
|
+
ZFile.style = stylesCss;
|
|
43
|
+
|
|
44
|
+
export { ZFile as z_file };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-4968ce56.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ":host{display:inline-block;overflow:hidden;width:100%;height:100%;background:var(--color-surface02);border-radius:var(--border-radius);transform:translate3d(0, 0, 0)}:host::after{display:block;width:100%;height:100%;animation:progress 1.6s ease-in-out infinite;background-image:linear-gradient(\n 90deg,\n var(--color-surface02) 0%,\n var(--color-surface03) 95%,\n var(--color-surface02) 100%\n );content:\"\";filter:blur(6px)}@keyframes progress{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}";
|
|
4
|
+
|
|
5
|
+
const ZGhostLoading = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return h(Host, null);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
ZGhostLoading.style = stylesCss;
|
|
14
|
+
|
|
15
|
+
export { ZGhostLoading as z_ghost_loading };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-4968ce56.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{display:flex;width:inherit;padding:calc(var(--space-unit) * 2);background:var(--color-primary03);border-radius:var(--border-radius)}:host>div>slot{color:var(--color-text01);font-size:14px}:host>div>z-icon{margin-left:calc(var(--space-unit) * 2);cursor:pointer;fill:var(--color-primary01)}";
|
|
4
|
+
|
|
5
|
+
const ZInfoBox = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.infoBoxClose = createEvent(this, "infoBoxClose", 7);
|
|
9
|
+
/** render close icon flag */
|
|
10
|
+
this.isclosable = true;
|
|
11
|
+
}
|
|
12
|
+
emitInfoBoxClose() {
|
|
13
|
+
this.infoBoxClose.emit({ boxid: this.boxid });
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (h("div", { id: this.boxid }, h("slot", { name: "content" }), this.isclosable && (h("z-icon", { name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() }))));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
ZInfoBox.style = stylesCss;
|
|
20
|
+
|
|
21
|
+
export { ZInfoBox as z_info_box };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-4968ce56.js';
|
|
2
|
+
import { J as InfoRevealPosition } from './index-47f23745.js';
|
|
3
|
+
|
|
4
|
+
const stylesCss = ":host{--z-info-reveal-theme--surface:var(--color-black);--z-info-reveal-theme--text:var(--color-white);--z-info-reveal-shadow:var(--shadow-2);--z-info-reveal-max-width:375px;position:relative;display:flex;width:fit-content;background-color:var(--z-info-reveal-theme--surface);color:var(--z-info-reveal-theme--text);font-size:var(--font-size-3);font-weight:var(--font-rg);letter-spacing:0;line-height:1.5}button{padding:0;border:none;background-color:transparent;border-radius:0;color:inherit;cursor:pointer;fill:currentcolor;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit}z-icon{--z-icon-width:calc(var(--space-unit) * 3);--z-icon-height:calc(var(--space-unit) * 3);display:flex}.z-info-reveal-trigger{display:flex;width:fit-content;height:100%;align-items:center;padding:calc(var(--space-unit) / 2);box-shadow:var(--z-info-reveal-shadow);column-gap:calc(var(--space-unit) / 2)}:host([position=\"top_left\"]) .z-info-reveal-trigger,:host([position=\"bottom_left\"]) .z-info-reveal-trigger{flex-direction:row-reverse}:host([open]) .z-info-reveal-trigger{box-shadow:none}.info-box{position:absolute;display:flex;max-width:var(--z-info-reveal-max-width);padding:calc(var(--space-unit) / 2);background-color:var(--z-info-reveal-theme--surface);box-shadow:var(--z-info-reveal-shadow);column-gap:calc(var(--space-unit) / 2);cursor:pointer}:host([position=\"bottom_left\"]) .info-box,:host([position=\"bottom_right\"]) .info-box{bottom:0}:host([position=\"top_right\"]) .info-box,:host([position=\"bottom_right\"]) .info-box{right:0}:host([position=\"top_left\"]) .info-box,:host([position=\"bottom_left\"]) .info-box{left:0;flex-direction:row-reverse}::slotted(*){display:none;width:max-content}::slotted([data-current]){display:block}:host([position=\"top_left\"]) .z-info-reveal-close,:host([position=\"top_right\"]) .z-info-reveal-close{align-self:flex-start}:host([position=\"bottom_left\"]) .z-info-reveal-close,:host([position=\"bottom_right\"]) .z-info-reveal-close{align-self:flex-end}";
|
|
5
|
+
|
|
6
|
+
const ZInfoReveal = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
/** Name of the icon for the open button */
|
|
10
|
+
this.icon = "informationsource";
|
|
11
|
+
/** Info reveal's position */
|
|
12
|
+
this.position = InfoRevealPosition.BOTTOM_RIGHT;
|
|
13
|
+
/** Whether the info panel is open. */
|
|
14
|
+
this.open = false;
|
|
15
|
+
/** Current index for the info queue. */
|
|
16
|
+
this.currentIndex = null;
|
|
17
|
+
}
|
|
18
|
+
watchItems() {
|
|
19
|
+
Array.from(this.el.children).forEach((child, index) => {
|
|
20
|
+
if (this.currentIndex === index) {
|
|
21
|
+
child.setAttribute("data-current", "");
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
child.removeAttribute("data-current");
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Open the info box.
|
|
30
|
+
*/
|
|
31
|
+
openInfoBox() {
|
|
32
|
+
this.currentIndex = 0;
|
|
33
|
+
this.open = true;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Close the info box.
|
|
37
|
+
*/
|
|
38
|
+
closeInfoBox() {
|
|
39
|
+
this.open = false;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Navigate slotted info.
|
|
43
|
+
* It closes the info box after the last info has been navigated.
|
|
44
|
+
*/
|
|
45
|
+
next() {
|
|
46
|
+
this.currentIndex = this.currentIndex + 1;
|
|
47
|
+
if (this.currentIndex === this.el.children.length) {
|
|
48
|
+
this.closeInfoBox();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
return (h(Host, { open: this.open }, h("button", { class: "z-info-reveal-trigger", onClick: this.openInfoBox.bind(this) }, this.label && h("span", { class: "z-info-reveal-label" }, this.label), h("z-icon", { name: this.icon })), this.open && (h("div", { class: "info-box", onClick: this.next.bind(this), tabIndex: 0 }, h("slot", null), h("button", { class: "z-info-reveal-close", onClick: this.closeInfoBox.bind(this) }, h("z-icon", { name: "close" }))))));
|
|
53
|
+
}
|
|
54
|
+
get el() { return getElement(this); }
|
|
55
|
+
static get watchers() { return {
|
|
56
|
+
"currentIndex": ["watchItems"]
|
|
57
|
+
}; }
|
|
58
|
+
};
|
|
59
|
+
ZInfoReveal.style = stylesCss;
|
|
60
|
+
|
|
61
|
+
export { ZInfoReveal as z_info_reveal };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-4968ce56.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ":host{--font-size-link:inherit;--font-weight-link:inherit;font-family:var(--font-family-sans);font-size:var(--font-size-link);font-weight:var(--font-weight-link);line-height:inherit;outline:none}:host([big]){--font-size-link:16px;--font-weight-link:var(--font-sb)}a{display:inline-flex;align-items:center;padding:calc(var(--space-unit) / 2) 0;border-top:var(--border-size-medium) solid transparent;border-bottom:var(--border-size-medium) solid transparent;color:var(--color-link-primary);cursor:pointer;fill:var(--color-link-primary);text-decoration:none}a:hover,a:focus,a:active{text-decoration:underline}a.active{color:var(--color-active-link);fill:var(--color-active-link)}a:hover,a:focus{color:var(--color-hover-link);fill:var(--color-hover-link)}a:active{color:var(--color-pressed-link);fill:var(--color-pressed-link)}a:visited{color:var(--color-visited-link);fill:var(--color-visited-link)}a.disabled,a.inverse.disabled{color:var(--color-disabled03);cursor:default;fill:var(--color-disabled03);pointer-events:none}a.underline,a.underline:active,a.underline:hover,a.underline:visited,a.underline.disabled,a.underline.black,a.underline.white{text-decoration:underline}a.disabled,a.disabled:active,a.disabled:visited,a.disabled:hover{text-decoration:none}a.inverse{color:var(--color-inverse-link);fill:var(--color-inverse-link)}a.inverse.active{color:var(--color-inverse-active-link);fill:var(--color-inverse-active-link)}a.inverse:hover,a.inverse:focus{color:var(--color-inverse-hover-link);fill:var(--color-inverse-hover-link)}a.inverse:active{color:var(--color-inverse-pressed-link);fill:var(--color-inverse-pressed-link)}a.inverse:visited{color:var(--color-inverse-visited-link);fill:var(--color-inverse-visited-link)}a.black{color:var(--gray800);fill:var(--gray800);text-decoration:none}a.black:hover,a.black.active{color:var(--color-black);fill:var(--color-black)}a.black:visited{color:var(--gray800);fill:var(--gray800)}a.black:hover,a.black:focus,a.black:active{text-decoration:underline}a.black:active{color:var(--gray700);fill:var(--gray700)}a.white,a.white:active,a.white:hover,a.white.active{color:var(--color-white);fill:var(--color-white);text-decoration:none}a.white:visited{color:var(--color-white);fill:var(--color-white)}a.white:hover,a.white:focus,a.white:active{text-decoration:underline}a.white.disabled,a.black.disabled{color:var(--gray500);fill:var(--gray500)}a>z-icon:first-child{margin-right:var(--space-unit)}a>z-icon:last-child{margin-left:var(--space-unit)}";
|
|
4
|
+
|
|
5
|
+
const ZLink = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.zLinkClick = createEvent(this, "zLinkClick", 7);
|
|
9
|
+
/** link target (optional) */
|
|
10
|
+
this.target = "_self";
|
|
11
|
+
/** tabindex link attribute (optional) */
|
|
12
|
+
this.htmltabindex = 0;
|
|
13
|
+
/** disable link flag (optional) */
|
|
14
|
+
this.isdisabled = false;
|
|
15
|
+
/** active link flag (optional) */
|
|
16
|
+
this.isactive = false;
|
|
17
|
+
/** white variant flag (optional) */
|
|
18
|
+
this.iswhite = false;
|
|
19
|
+
/** link text variant (optional) */
|
|
20
|
+
this.textcolor = "primary";
|
|
21
|
+
/** big link version */
|
|
22
|
+
this.big = false;
|
|
23
|
+
/** link icon position (optional) */
|
|
24
|
+
this.iconposition = "left";
|
|
25
|
+
/** draw underline on text (optional) */
|
|
26
|
+
this.underline = false;
|
|
27
|
+
this.iconSize = 18;
|
|
28
|
+
this.emitZLinkClick = this.emitZLinkClick.bind(this);
|
|
29
|
+
this.emitZLinkInteraction = this.emitZLinkInteraction.bind(this);
|
|
30
|
+
}
|
|
31
|
+
componentWillLoad() {
|
|
32
|
+
if (this.iswhite) {
|
|
33
|
+
console.warn("z-link iswhite prop is deprecated and will be dropped in a next release, please use textcolor prop instead");
|
|
34
|
+
}
|
|
35
|
+
if (this.big) {
|
|
36
|
+
console.warn("z-link big prop is deprecated and will be dropped in a next release, please override --font-size-link and --font-weight-link variables instead");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
emitZLinkClick(e, linkId) {
|
|
40
|
+
this.emitZLinkInteraction(e, linkId);
|
|
41
|
+
}
|
|
42
|
+
emitZLinkInteraction(e, linkId) {
|
|
43
|
+
this.zLinkClick.emit({ e, linkId });
|
|
44
|
+
}
|
|
45
|
+
componentDidLoad() {
|
|
46
|
+
if (this.icon) {
|
|
47
|
+
const height = parseFloat(window.getComputedStyle(this.hostElement).getPropertyValue("font-size"));
|
|
48
|
+
const currentSize = this.big ? 18 : Math.round(height * 1.125);
|
|
49
|
+
if (!Number.isNaN(currentSize) && this.iconSize !== currentSize) {
|
|
50
|
+
this.iconSize = currentSize;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
return (h("a", { id: this.htmlid, href: this.href ? this.href : null, class: {
|
|
56
|
+
disabled: this.isdisabled,
|
|
57
|
+
active: this.isactive,
|
|
58
|
+
white: this.iswhite,
|
|
59
|
+
[this.textcolor || ""]: true,
|
|
60
|
+
underline: this.underline,
|
|
61
|
+
}, target: this.target, role: this.href ? "link" : "button", tabindex: this.isdisabled ? -1 : this.htmltabindex, onClick: (e) => this.emitZLinkClick(e, this.htmlid) }, this.iconposition === "right" && h("slot", null), this.icon && (h("z-icon", { style: {
|
|
62
|
+
"--z-icon-width": `${this.iconSize}px`,
|
|
63
|
+
"--z-icon-height": `${this.iconSize}px`,
|
|
64
|
+
}, name: this.icon })), this.iconposition === "left" && h("slot", null)));
|
|
65
|
+
}
|
|
66
|
+
get hostElement() { return getElement(this); }
|
|
67
|
+
};
|
|
68
|
+
ZLink.style = stylesCss;
|
|
69
|
+
|
|
70
|
+
export { ZLink as z_link };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-4968ce56.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ":host{display:inline-block;width:255px;height:64px;vertical-align:top}img{display:block;width:100%;height:100%;margin:auto;content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='255px' height='64px' viewBox='0 0 255 64'%3E%3Cg id='Logo/Zanichelli/Centered-(reworked)' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Group'%3E%3Cpolygon id='Background' fill='%23E2001A' points='1.70530257e-13 64 254.39 64 254.39 0 1.70530257e-13 0'%3E%3C/polygon%3E%3Cpath d='M233.36,51.3553859 L242.390252,51.3553859 L242.390252,12.6427292 L233.36,12.6427292 L233.36,51.3553859 Z M211.120346,51.3553859 L230.477617,51.3553859 L230.477617,44.5040053 L220.685891,44.5040053 L220.685891,12.6427292 L211.120346,12.6427292 L211.120346,51.3553859 Z M188.880124,51.3553859 L208.23551,51.3553859 L208.23551,44.5040053 L198.445669,44.5040053 L198.445669,12.6427292 L188.880124,12.6427292 L188.880124,51.3553859 Z M165.354444,12.6427292 L165.354444,51.3553859 L185.999058,51.3553859 L185.999058,44.5021204 L175.027425,44.5021204 L175.027425,35.1778343 L185.377062,35.1778343 L185.377062,28.2699086 L175.027425,28.2699086 L175.027425,19.4978796 L185.999058,19.4978796 L185.999058,12.6427292 L165.354444,12.6427292 Z M136.666196,51.3553859 L146.239281,51.3553859 L146.239281,35.1778343 L152.902178,35.1778343 L152.902178,51.3553859 L162.473377,51.3553859 L162.473377,12.6427292 L152.902178,12.6427292 L152.902178,28.2717934 L146.239281,28.2717934 L146.239281,12.6427292 L136.666196,12.6427292 L136.666196,51.3553859 Z M96.064744,51.3553859 L105.098765,51.3553859 L105.098765,12.6427292 L96.064744,12.6427292 L96.064744,51.3553859 Z M53.2364527,36.5160682 L50.6824993,19.7429083 L48.0757704,36.5160682 L53.2364527,36.5160682 Z M65.4935444,51.3553859 L56.2710395,51.3553859 L54.9441146,42.5286966 L47.7101121,42.5286966 L46.3304118,51.3553859 L37.1060221,51.3553859 L45.0053718,12.6427292 L57.5960795,12.6427292 L65.4935444,51.3553859 Z M85.0468382,37.7581755 L76.7969089,12.6427292 L67.3764961,12.6427292 L67.3764961,51.3553859 L75.4040147,51.3553859 L75.4040147,26.132504 L83.5955141,51.3553859 L93.1855622,51.3553859 L93.1855622,12.6427292 L85.0468382,12.6427292 L85.0468382,37.7581755 Z M107.977948,32 C107.977948,34.5200264 107.977948,36.7893695 108.187165,39.1246819 C108.396382,41.4713034 108.818585,43.6878711 109.678071,45.6009801 C111.423429,49.487513 114.932995,52 121.708982,52 C129.508435,52 133.787014,48.4753558 133.787014,38.0220526 L133.787014,37.5640373 L124.937707,37.5640373 L124.922628,38.0050891 C124.894356,38.7571388 124.884931,39.6185091 124.826501,40.4855339 C124.769956,41.3431345 124.66629,42.1875412 124.460843,42.9301668 C124.048064,44.3965696 123.279051,45.3559514 121.708982,45.3559514 C117.743286,45.3559514 117.057205,42.0574875 117.057205,32 C117.057205,21.9425125 117.743286,18.6440486 121.708982,18.6440486 C123.605127,18.6440486 124.547546,20.0030157 124.547546,25.1806616 L124.547546,25.6424465 L133.344077,25.6424465 L133.361041,25.1995099 C133.689003,16.7855998 130.235982,12 121.708982,12 C114.934879,12 111.427199,14.4823297 109.678071,18.3594383 C108.818585,20.265008 108.396382,22.4778061 108.187165,24.830082 C107.977948,27.1710489 107.977948,29.4554707 107.977948,32 L107.977948,32 Z M34.9007634,12.6446141 L34.9007634,20.3196683 L21.6051268,44.5040053 L35.2268401,44.5040053 L35.2268401,51.3553859 L12,51.3553859 L12,43.7915371 L25.2975214,19.4997644 L13.683159,19.4997644 L13.683159,12.6446141 L34.9007634,12.6446141 Z' id='Logotipo-(reworked)' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")}a{display:block;width:100%;height:100%}:host(.mobile){width:31px;height:40px}:host(.mobile) img{content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31px' height='40px' viewBox='0 0 31 40'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Topbar/Mobile/Logged' transform='translate(-16.000000, -4.000000)'%3E%3Cg id='Group' transform='translate(16.000000, 4.000000)'%3E%3Cpolygon id='Fill-1' fill='%23E2001A' points='0 40 30.625 40 30.625 0 0 0'%3E%3C/polygon%3E%3Cpolygon id='Fill-2' fill='%23FEFEFE' points='8.17111587 6.20689655 23.4311708 6.20689655 23.4311708 11.671267 13.8691261 28.9163861 23.6647727 28.9163861 23.6647727 33.7931034 6.96022727 33.7931034 6.96022727 28.408218 16.522272 11.0831673 8.17111587 11.0831673'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")}";
|
|
4
|
+
|
|
5
|
+
const ZLogo = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
const style = {};
|
|
11
|
+
if (this.width) {
|
|
12
|
+
style["width"] = style["max-width"] = `${this.width}px`;
|
|
13
|
+
}
|
|
14
|
+
if (this.height) {
|
|
15
|
+
style["height"] = style["max-height"] = `${this.height}px`;
|
|
16
|
+
}
|
|
17
|
+
return (h(Host, { style: style, class: { mobile: !!this.mobileLogo } }, this.link ? (h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, h("img", { alt: this.imageAlt }))) : (h("img", { alt: this.imageAlt }))));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
ZLogo.style = stylesCss;
|
|
21
|
+
|
|
22
|
+
export { ZLogo as z_logo };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4968ce56.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ":host{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-text01);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host(:is([active],[open])) .label,.label:hover{border-color:var(--color-secondary01)}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}.label{display:flex;width:100%;align-items:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);border:0;border-bottom:var(--border-size-small) solid var(--color-surface05);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / \"\";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-icon02)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items>::slotted([slot=\"item\"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-2);line-height:1.4;outline:none}.items>::slotted([slot=\"item\"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-secondary01)}.items>::slotted([slot=\"item\"]:hover),.items>::slotted([slot=\"item\"]:focus:focus-visible),.items>::slotted([slot=\"item\"][active]){color:var(--color-secondary01);font-weight:var(--font-bd)}";
|
|
4
|
+
|
|
5
|
+
const ZMenuSection = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.opened = createEvent(this, "opened", 7);
|
|
9
|
+
this.closed = createEvent(this, "closed", 7);
|
|
10
|
+
}
|
|
11
|
+
toggle() {
|
|
12
|
+
if (!this.hasContent) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
this.open = !this.open;
|
|
16
|
+
this.open ? this.opened.emit() : this.closed.emit();
|
|
17
|
+
}
|
|
18
|
+
/** Close the list when a click is performed outside of this Element. */
|
|
19
|
+
handleClick(ev) {
|
|
20
|
+
if (!this.open || this.hostElement.contains(ev.target)) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
this.open = false;
|
|
24
|
+
this.closed.emit();
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if some content slot is set.
|
|
28
|
+
*/
|
|
29
|
+
checkContent() {
|
|
30
|
+
this.hasContent = this.hostElement.querySelectorAll('[slot="item"]').length > 0;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.
|
|
34
|
+
* @param ev Slotchange event
|
|
35
|
+
*/
|
|
36
|
+
onLabelSlotChange(ev) {
|
|
37
|
+
const labelElement = ev.target.assignedElements()[0];
|
|
38
|
+
labelElement.dataset.text = (labelElement === null || labelElement === void 0 ? void 0 : labelElement.innerText) || null;
|
|
39
|
+
}
|
|
40
|
+
componentWillLoad() {
|
|
41
|
+
this.checkContent();
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
return (h(Host, { role: "menu", open: this.open }, h("button", { class: "label", "aria-pressed": this.open ? "true" : "false", onClick: this.toggle.bind(this) }, h("slot", { onSlotchange: this.onLabelSlotChange.bind(this) }), this.hasContent && h("z-icon", { name: this.open ? "chevron-up" : "chevron-down" })), this.open && (h("div", { class: "items" }, h("slot", { name: "item", onSlotchange: this.checkContent.bind(this) })))));
|
|
45
|
+
}
|
|
46
|
+
get hostElement() { return getElement(this); }
|
|
47
|
+
};
|
|
48
|
+
ZMenuSection.style = stylesCss;
|
|
49
|
+
|
|
50
|
+
export { ZMenuSection as z_menu_section };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4968ce56.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ":host,::slotted(*),*{box-sizing:border-box}:host{position:relative;display:inline-flex;flex-direction:column;--z-menu-label-color:var(--color-text01)}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-text01);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{padding:0;border:0;margin:0;background:transparent;border-radius:0;color:inherit;outline:none;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-within{z-index:1;padding-right:calc(var(--space-unit) * 0.5);padding-left:calc(var(--space-unit) * 0.5);margin-right:calc(var(--space-unit) * -0.5);margin-left:calc(var(--space-unit) * -0.5);box-shadow:var(--shadow-focus-primary)}.menu-label .menu-label-content{position:relative;display:flex;align-items:center}:host(:is([active],[open])) .menu-label-content,.menu-label:focus-within .menu-label-content{font-weight:var(--font-bd)}:host(:is([active],[open])) .menu-label-content ::slotted(*),.menu-label:focus-within .menu-label-content ::slotted(*){letter-spacing:normal}:host .menu-label .menu-label-content ::slotted(*:not([slot]):focus:focus-visible){box-shadow:none !important}:host(:is([active],[open],[vertical-context])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{position:absolute;bottom:0;left:0;width:100%;content:\"\";pointer-events:none}:host([vertical-context]) .menu-label-content::after{height:var(--border-size-small);background-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{height:var(--border-size-large);background-color:var(--color-secondary01)}::slotted([data-text])::after{height:0;content:attr(data-text);content:attr(data-text) / \"\";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}::slotted([data-text]){display:inline-flex;flex-direction:column}.menu-label .menu-label-content ::slotted(*){display:inline-flex;width:100%;margin:0;appearance:none;color:var(--z-menu-label-color);font-family:var(--font-family-sans);font-size:var(--font-size-5);font-weight:inherit;letter-spacing:0.36px;line-height:1.2;outline:none}.menu-label .menu-label-content ::slotted(*),.menu-label .menu-label-content z-icon{padding:var(--space-unit) 0}.menu-label .menu-label-content z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:currentcolor}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:flex;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot=\"header\"]){width:calc(var(--space-unit) * 11.25);height:auto;object-fit:contain}.header ::slotted([slot=\"header\"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:flex;flex-direction:column;align-items:flex-start;background:inherit}.items>::slotted([slot=\"item\"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25;outline:none}.items>::slotted([slot=\"item\"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot=\"item\"]:not(z-menu-section)){padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--color-surface05)}.items>::slotted([slot=\"item\"]:hover),.items>::slotted([slot=\"item\"]:focus:focus-visible),.items>::slotted([slot=\"item\"]:active){border-color:var(--color-secondary01);font-weight:var(--font-bd)}";
|
|
4
|
+
|
|
5
|
+
const ZMenu = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.opened = createEvent(this, "opened", 7);
|
|
9
|
+
this.closed = createEvent(this, "closed", 7);
|
|
10
|
+
/**
|
|
11
|
+
* Flag to set the display mode of the list.
|
|
12
|
+
* If true, the list will be absolutely positioned under the menu label,
|
|
13
|
+
* stacked beneath it otherwise.
|
|
14
|
+
*/
|
|
15
|
+
this.floating = false;
|
|
16
|
+
/** The opening state of the menu. */
|
|
17
|
+
this.open = false;
|
|
18
|
+
/**
|
|
19
|
+
* Tells the component that it's placed in a vertical context with other `ZMenu`s (e.g. in the ZAppHeader's offcanvas).
|
|
20
|
+
* A small border is placed under it as a separator from other elements.
|
|
21
|
+
*/
|
|
22
|
+
this.verticalContext = false;
|
|
23
|
+
this.toggle = this.toggle.bind(this);
|
|
24
|
+
this.checkContent = this.checkContent.bind(this);
|
|
25
|
+
this.onLabelSlotChange = this.onLabelSlotChange.bind(this);
|
|
26
|
+
this.onItemsChange = this.onItemsChange.bind(this);
|
|
27
|
+
}
|
|
28
|
+
toggle() {
|
|
29
|
+
if (!this.hasContent) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
this.open = !this.open;
|
|
33
|
+
this.open ? this.opened.emit() : this.closed.emit();
|
|
34
|
+
}
|
|
35
|
+
/** Close the floating list when a click is performed outside of this Element. */
|
|
36
|
+
handleClick(ev) {
|
|
37
|
+
if (!this.floating || !this.open || this.hostElement.contains(ev.target)) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
this.reflow();
|
|
41
|
+
this.open = false;
|
|
42
|
+
this.closed.emit();
|
|
43
|
+
}
|
|
44
|
+
onOpenChanged() {
|
|
45
|
+
if (this.open) {
|
|
46
|
+
this.reflow(true);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
cancelAnimationFrame(this.raf);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
componentWillLoad() {
|
|
53
|
+
this.checkContent();
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.
|
|
57
|
+
* @param ev Slotchange event
|
|
58
|
+
*/
|
|
59
|
+
onLabelSlotChange(ev) {
|
|
60
|
+
const labelElement = ev.target.assignedElements()[0];
|
|
61
|
+
labelElement.dataset.text = labelElement === null || labelElement === void 0 ? void 0 : labelElement.textContent;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Correctly set position of the floating menu in order to prevent overflow.
|
|
65
|
+
* @param live Should run the method on every refresh frame.
|
|
66
|
+
*/
|
|
67
|
+
reflow(live = false) {
|
|
68
|
+
if (this.content) {
|
|
69
|
+
const { style } = this.content;
|
|
70
|
+
const { left } = this.hostElement.getBoundingClientRect();
|
|
71
|
+
const widthPx = getComputedStyle(this.content).width;
|
|
72
|
+
const width = widthPx ? parseFloat(widthPx.replace("px", "")) : 375;
|
|
73
|
+
const safeScrollbarSpace = 30;
|
|
74
|
+
style.left = `${Math.min(window.innerWidth - left - width - safeScrollbarSpace, 0)}px`;
|
|
75
|
+
}
|
|
76
|
+
if (live) {
|
|
77
|
+
this.raf = requestAnimationFrame(this.reflow.bind(this, live));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Check if some content slot is set.
|
|
82
|
+
*/
|
|
83
|
+
checkContent() {
|
|
84
|
+
this.hasHeader = !!this.hostElement.querySelectorAll("[slot=header]").length;
|
|
85
|
+
this.hasContent = !!this.hostElement.querySelectorAll("[slot=item]").length || this.hasHeader;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Set `menuitem` role to all menu items.
|
|
89
|
+
* Set the item's inner text to the `data-text` attribute (this is for using bold text avoiding layout shifts).
|
|
90
|
+
*/
|
|
91
|
+
onItemsChange() {
|
|
92
|
+
this.checkContent();
|
|
93
|
+
const items = this.hostElement.querySelectorAll("[slot=item]");
|
|
94
|
+
items.forEach((item) => {
|
|
95
|
+
item.setAttribute("role", "menuitem");
|
|
96
|
+
item.dataset.text = item.textContent;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
renderMenuLabel() {
|
|
100
|
+
if (this.hasContent) {
|
|
101
|
+
return (h("button", { class: "menu-label", "aria-expanded": this.open ? "true" : "false", "aria-label": this.open ? "Chiudi menù" : "Apri menù", onClick: this.toggle }, h("div", { class: "menu-label-content" }, h("slot", { onSlotchange: this.onLabelSlotChange }), h("z-icon", { name: this.open ? "chevron-up" : "chevron-down" }))));
|
|
102
|
+
}
|
|
103
|
+
return (h("div", { class: "menu-label" }, h("div", { class: "menu-label-content" }, h("slot", { onSlotchange: this.onLabelSlotChange }))));
|
|
104
|
+
}
|
|
105
|
+
render() {
|
|
106
|
+
return (h(Host, null, this.renderMenuLabel(), this.hasContent && (h("div", { class: "content", ref: (el) => (this.content = el) }, this.hasHeader && (h("header", { class: "header" }, h("slot", { name: "header", onSlotchange: this.checkContent }))), h("div", { class: "items", role: "menu" }, h("slot", { name: "item", onSlotchange: this.onItemsChange }))))));
|
|
107
|
+
}
|
|
108
|
+
get hostElement() { return getElement(this); }
|
|
109
|
+
static get watchers() { return {
|
|
110
|
+
"open": ["onOpenChanged"]
|
|
111
|
+
}; }
|
|
112
|
+
};
|
|
113
|
+
ZMenu.style = stylesCss;
|
|
114
|
+
|
|
115
|
+
export { ZMenu as z_menu };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-4968ce56.js';
|
|
2
|
+
import { q as PocketStatus } from './index-47f23745.js';
|
|
3
|
+
|
|
4
|
+
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>z-pocket{width:100%}:host>z-pocket.closed{width:158px}:host>z-pocket>z-pocket-header{color:var(--color-primary01);fill:var(--color-primary01);font-size:12px;font-weight:var(--font-sb)}:host>z-pocket>z-pocket-header span.badge{display:inline-block;padding:0 calc(var(--space-unit) * 0.5);margin-left:var(--space-unit);background:var(--color-secondary02);border-radius:50%;color:var(--color-surface01)}:host>z-pocket>z-pocket-header>z-icon{margin-left:var(--space-unit)}:host>z-pocket>z-pocket-body>div.body{overflow:hidden;padding:var(--space-unit);margin:0 var(--space-unit)}:host>z-pocket.preview>z-pocket-body{position:relative}:host>z-pocket.preview>z-pocket-body>div.gradient{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(rgb(255 0 0 / 0%), white)}:host>z-pocket.open>z-pocket-body>div.body{overflow:auto;max-height:calc(100vh - 166px);scrollbar-width:none}:host ::-webkit-scrollbar{width:0}@media only screen and (min-width: 768px){:host>z-pocket{width:768px;margin:0 calc((100% - 768px) / 2)}:host>z-pocket.closed{margin:0 calc((100% - 158px) / 2)}:host>z-pocket.open>z-pocket-body>div.body{max-height:326px}}@media only screen and (min-width: 1152px){:host>z-pocket.open>z-pocket-body>div.body{scrollbar-color:var(--color-primary01) var(--color-surface03);scrollbar-width:thin}:host ::-webkit-scrollbar{width:10px;background:linear-gradient(\n 90deg,\n var(--color-surface01) 2px,\n var(--color-surface03) 4px,\n var(--color-surface01) 8px\n );border-radius:var(--border-radius)}:host ::-webkit-scrollbar-thumb{width:var(--space-unit);background-color:var(--color-primary01);border-radius:var(--border-radius)}}";
|
|
5
|
+
|
|
6
|
+
const ZMessagesPocket = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
/** pocket status */
|
|
10
|
+
this.status = PocketStatus.PREVIEW;
|
|
11
|
+
}
|
|
12
|
+
handlePocketToggle(e) {
|
|
13
|
+
if (e.detail.id === this.pocketid) {
|
|
14
|
+
this.status = e.detail.status;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
renderHeader() {
|
|
18
|
+
let message;
|
|
19
|
+
let icon;
|
|
20
|
+
switch (this.status) {
|
|
21
|
+
case PocketStatus.PREVIEW:
|
|
22
|
+
case PocketStatus.CLOSED:
|
|
23
|
+
message = (h("span", null, "Messaggi ", h("span", { class: "badge" }, this.messages)));
|
|
24
|
+
icon = "chevron-up";
|
|
25
|
+
break;
|
|
26
|
+
case PocketStatus.OPEN:
|
|
27
|
+
message = h("span", null, "Riduci");
|
|
28
|
+
icon = "chevron-down";
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
return (h("z-pocket-header", { pocketid: this.pocketid }, message, h("z-icon", { name: icon, width: 14, height: 14 })));
|
|
32
|
+
}
|
|
33
|
+
renderBody() {
|
|
34
|
+
return (h("z-pocket-body", { pocketid: this.pocketid }, h("div", { class: "body" }, h("slot", null)), h("div", { class: "gradient" })));
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return (h("z-pocket", { pocketid: this.pocketid, status: this.status, class: this.status }, this.renderHeader(), this.renderBody()));
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
ZMessagesPocket.style = stylesCss;
|
|
41
|
+
|
|
42
|
+
export { ZMessagesPocket as z_messages_pocket };
|