@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,593 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import flatpickr from "flatpickr";
|
|
3
|
+
import { Italian } from "flatpickr/dist/l10n/it.js";
|
|
4
|
+
import { ZRangePickerMode, ZDatePickerPosition, InputType, InputStatus } from "../../../beans";
|
|
5
|
+
import { setAriaOptions, setFlatpickrPosition, validateDate } from "../utils";
|
|
6
|
+
export class ZRangePicker {
|
|
7
|
+
constructor() {
|
|
8
|
+
/** [Optional] datepicker mode: date or datetime */
|
|
9
|
+
this.mode = ZRangePickerMode.DATE;
|
|
10
|
+
/** readonly mode */
|
|
11
|
+
this.firstPickerReadOnly = false;
|
|
12
|
+
/** readonly mode */
|
|
13
|
+
this.lastPickerReadOnly = false;
|
|
14
|
+
/** readonly mode */
|
|
15
|
+
this.firstPickerPlaceholder = "";
|
|
16
|
+
/** readonly mode */
|
|
17
|
+
this.lastPickerPlaceholder = "";
|
|
18
|
+
this.flatpickrPosition = ZDatePickerPosition.BOTTOM;
|
|
19
|
+
this.activeInput = "start-input";
|
|
20
|
+
this.firstInputError = false;
|
|
21
|
+
this.lastInputError = false;
|
|
22
|
+
}
|
|
23
|
+
handleClick() {
|
|
24
|
+
this.getFocusedInput();
|
|
25
|
+
}
|
|
26
|
+
handleKeyDown(ev) {
|
|
27
|
+
var _a, _b, _c, _d, _e, _f;
|
|
28
|
+
const currentPicker = this.activeInput === "start-input" ? this.firstPicker : this.lastPicker;
|
|
29
|
+
this.getFocusedInput();
|
|
30
|
+
if (ev.key === "Escape") {
|
|
31
|
+
document.activeElement.classList.contains(`${this.rangePickerId}-1`) && ((_a = this.firstPicker) === null || _a === void 0 ? void 0 : _a.close());
|
|
32
|
+
document.activeElement.classList.contains(`${this.rangePickerId}-2`) && ((_b = this.lastPicker) === null || _b === void 0 ? void 0 : _b.close());
|
|
33
|
+
}
|
|
34
|
+
if (ev.key === "Enter" || ev.key === " ") {
|
|
35
|
+
if (document.activeElement.classList.contains(`${this.rangePickerId}-1`) ||
|
|
36
|
+
document.activeElement.classList.contains(`${this.rangePickerId}-2`)) {
|
|
37
|
+
currentPicker === null || currentPicker === void 0 ? void 0 : currentPicker.open();
|
|
38
|
+
}
|
|
39
|
+
const isCrossIconEntered = document.activeElement.classList.contains("reset-icon");
|
|
40
|
+
if (isCrossIconEntered) {
|
|
41
|
+
if (this.activeInput === "start-input") {
|
|
42
|
+
this.firstInputError = false;
|
|
43
|
+
(_c = this.firstPicker) === null || _c === void 0 ? void 0 : _c.clear();
|
|
44
|
+
this.printDate(null, ((_d = this.lastPicker) === null || _d === void 0 ? void 0 : _d.selectedDates[0]) || null);
|
|
45
|
+
}
|
|
46
|
+
if (this.activeInput === "end-input") {
|
|
47
|
+
this.lastInputError = false;
|
|
48
|
+
(_e = this.firstPicker) === null || _e === void 0 ? void 0 : _e.clear();
|
|
49
|
+
this.printDate(((_f = this.firstPicker) === null || _f === void 0 ? void 0 : _f.selectedDates[0]) || null, null);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const isPrevArrowEntered = document.activeElement.classList.contains("flatpickr-prev-month");
|
|
53
|
+
const isNextArrowEntered = document.activeElement.classList.contains("flatpickr-next-month");
|
|
54
|
+
const arrowPressed = isPrevArrowEntered || isNextArrowEntered;
|
|
55
|
+
arrowPressed && ev.key === " " && ev.preventDefault();
|
|
56
|
+
isPrevArrowEntered && (currentPicker === null || currentPicker === void 0 ? void 0 : currentPicker.changeMonth(-1));
|
|
57
|
+
isNextArrowEntered && (currentPicker === null || currentPicker === void 0 ? void 0 : currentPicker.changeMonth(1));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
componentDidLoad() {
|
|
61
|
+
this.setupPickers();
|
|
62
|
+
}
|
|
63
|
+
setupFirstPickersReadOnly() {
|
|
64
|
+
var _a;
|
|
65
|
+
(_a = this.firstPicker) === null || _a === void 0 ? void 0 : _a.set("clickOpens", !this.firstPickerReadOnly);
|
|
66
|
+
}
|
|
67
|
+
setupLastPickersReadOnly() {
|
|
68
|
+
var _a;
|
|
69
|
+
(_a = this.lastPicker) === null || _a === void 0 ? void 0 : _a.set("clickOpens", !this.lastPickerReadOnly);
|
|
70
|
+
}
|
|
71
|
+
setupPickers() {
|
|
72
|
+
const config = {
|
|
73
|
+
enableTime: this.mode === ZRangePickerMode.DATE_TIME,
|
|
74
|
+
locale: Italian,
|
|
75
|
+
allowInput: true,
|
|
76
|
+
wrap: true,
|
|
77
|
+
dateFormat: this.mode === ZRangePickerMode.DATE_TIME ? "d-m-Y - H:i" : "d-m-Y",
|
|
78
|
+
ariaDateFormat: "d F Y",
|
|
79
|
+
minuteIncrement: 1,
|
|
80
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
81
|
+
time_24hr: true,
|
|
82
|
+
onValueUpdate: () => {
|
|
83
|
+
const firstInputActive = this.activeInput === "start-input";
|
|
84
|
+
const firstDate = this.firstPicker.selectedDates[0];
|
|
85
|
+
const lastDate = this.lastPicker.selectedDates[0];
|
|
86
|
+
if (+firstDate > +lastDate) {
|
|
87
|
+
if (firstInputActive) {
|
|
88
|
+
this.firstInputError = true;
|
|
89
|
+
this.printDate(null, lastDate || null);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
this.lastInputError = true;
|
|
93
|
+
this.printDate(firstDate || null, null);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
this.lastInputError = false;
|
|
98
|
+
this.firstInputError = false;
|
|
99
|
+
this.printDate(firstDate || null, lastDate || null);
|
|
100
|
+
}
|
|
101
|
+
this.setRangeStyle(0);
|
|
102
|
+
this.setRangeStyle(1);
|
|
103
|
+
},
|
|
104
|
+
onChange: (_selectedDates, _dateStr, instance) => {
|
|
105
|
+
this.onDateSelect();
|
|
106
|
+
this.setRangeStyle(instance.input.classList.contains("start-input") ? 0 : 1);
|
|
107
|
+
},
|
|
108
|
+
onOpen: (_selectedDates, _dateStr, instance) => {
|
|
109
|
+
setAriaOptions(this.element, this.mode);
|
|
110
|
+
this.flatpickrPosition = setFlatpickrPosition(this.element, this.mode);
|
|
111
|
+
this.setRangeStyle(instance.input.classList.contains("start-input") ? 0 : 1);
|
|
112
|
+
this.getFocusedInput();
|
|
113
|
+
},
|
|
114
|
+
onYearChange: (_selectedDates, _dateStr, instance) => {
|
|
115
|
+
this.setRangeStyle(instance.input.classList.contains("start-input") ? 0 : 1);
|
|
116
|
+
},
|
|
117
|
+
onMonthChange: (_selectedDates, _dateStr, instance) => {
|
|
118
|
+
this.setRangeStyle(instance.input.classList.contains("start-input") ? 0 : 1);
|
|
119
|
+
},
|
|
120
|
+
onKeyDown: () => {
|
|
121
|
+
setAriaOptions(this.element, this.mode);
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
this.firstPicker = flatpickr(`.${this.rangePickerId}-1-container`, Object.assign(Object.assign({}, Object.assign(Object.assign({}, config), { clickOpens: !this.firstPickerReadOnly })), { mode: "single", appendTo: this.element.querySelector(`.${this.rangePickerId}-1-wrapper`) }));
|
|
125
|
+
this.lastPicker = flatpickr(`.${this.rangePickerId}-2-container`, Object.assign(Object.assign({}, Object.assign(Object.assign({}, config), { clickOpens: !this.lastPickerReadOnly })), { mode: "single", appendTo: this.element.querySelector(`.${this.rangePickerId}-2-wrapper`) }));
|
|
126
|
+
this.element.querySelectorAll(".flatpickr-weekday").forEach((element) => {
|
|
127
|
+
element.innerHTML = element.innerHTML.trim().charAt(0);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
onDateSelect() {
|
|
131
|
+
const firstInputActive = this.activeInput === "start-input";
|
|
132
|
+
const firstDate = this.firstPicker.selectedDates[0];
|
|
133
|
+
const lastDate = this.lastPicker.selectedDates[0];
|
|
134
|
+
if (+firstDate > +lastDate) {
|
|
135
|
+
if (firstInputActive) {
|
|
136
|
+
this.firstInputError = true;
|
|
137
|
+
this.printDate(null, lastDate || null);
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
this.lastInputError = true;
|
|
141
|
+
this.printDate(firstDate || null, null);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
this.lastInputError = false;
|
|
146
|
+
this.firstInputError = false;
|
|
147
|
+
this.printDate(firstDate || null, lastDate || null);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
disableDates(date, index) {
|
|
151
|
+
const calendar = this.element.getElementsByClassName("flatpickr-calendar")[index];
|
|
152
|
+
Array.from(calendar.getElementsByClassName("flatpickr-day")).forEach((element) => {
|
|
153
|
+
const calendarDate = this.getDateWithoutTime(this.replaceMonths(element.ariaLabel, null));
|
|
154
|
+
const breakpoint = this.getDateWithoutTime(date);
|
|
155
|
+
const inRange = index === 0 ? calendarDate > breakpoint : calendarDate < breakpoint;
|
|
156
|
+
if (inRange) {
|
|
157
|
+
element.classList.toggle("flatpickr-disabled", true);
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
element.classList.toggle("flatpickr-disabled", false);
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
setAriaOptions(this.element, this.mode);
|
|
164
|
+
}
|
|
165
|
+
formatDate(date) {
|
|
166
|
+
if (this.mode === ZRangePickerMode.DATE) {
|
|
167
|
+
return `${flatpickr.formatDate(date, "d-m-Y")}`;
|
|
168
|
+
}
|
|
169
|
+
return `${flatpickr.formatDate(date, "d-m-Y - H:i")}`;
|
|
170
|
+
}
|
|
171
|
+
printDate(firstDate, lastDate) {
|
|
172
|
+
const firstDateString = firstDate ? this.formatDate(firstDate) : null;
|
|
173
|
+
const lastDateString = lastDate ? this.formatDate(lastDate) : null;
|
|
174
|
+
this.dateSelect.emit([firstDateString, lastDateString]);
|
|
175
|
+
}
|
|
176
|
+
getDateWithoutTime(date) {
|
|
177
|
+
const newDate = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0);
|
|
178
|
+
return newDate;
|
|
179
|
+
}
|
|
180
|
+
/** Replace month word to month number */
|
|
181
|
+
replaceMonths(date, time) {
|
|
182
|
+
const month = date.split(" ")[1];
|
|
183
|
+
const months = {
|
|
184
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
185
|
+
Gennaio: "01",
|
|
186
|
+
Febbraio: "02",
|
|
187
|
+
Marzo: "03",
|
|
188
|
+
Aprile: "04",
|
|
189
|
+
Maggio: "05",
|
|
190
|
+
Giugno: "06",
|
|
191
|
+
Luglio: "07",
|
|
192
|
+
Agosto: "08",
|
|
193
|
+
Settembre: "09",
|
|
194
|
+
Ottobre: "10",
|
|
195
|
+
Novembre: "11",
|
|
196
|
+
Dicembre: "12",
|
|
197
|
+
/* eslint-enable @typescript-eslint/naming-convention */
|
|
198
|
+
};
|
|
199
|
+
const pieces = date.replace(month, months[month]).split(" ");
|
|
200
|
+
return new Date(parseInt(pieces[2]), parseInt(pieces[1]) - 1, parseInt(pieces[0]), time ? parseInt(time.split(":")[0]) : 0, time ? parseInt(time.split(":")[1]) : 0);
|
|
201
|
+
}
|
|
202
|
+
/** Get the current focused input, first or last */
|
|
203
|
+
getFocusedInput() {
|
|
204
|
+
const focusedZInput = document.activeElement.closest("z-input");
|
|
205
|
+
if (!focusedZInput) {
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
if (focusedZInput === null || focusedZInput === void 0 ? void 0 : focusedZInput.classList.contains("start-input")) {
|
|
209
|
+
this.activeInput = "start-input";
|
|
210
|
+
}
|
|
211
|
+
else if (focusedZInput.classList.contains("end-input")) {
|
|
212
|
+
this.activeInput = "end-input";
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
/** Set style of the days between the two selected dates */
|
|
216
|
+
setRangeStyle(index) {
|
|
217
|
+
Array.from(this.element.getElementsByClassName("flatpickr-calendar")).forEach((element) => {
|
|
218
|
+
Array.from(element.getElementsByClassName("flatpickr-day")).forEach((element) => {
|
|
219
|
+
const hasFirstDate = this.firstPicker.selectedDates.length === 1;
|
|
220
|
+
const hasLastDate = this.lastPicker.selectedDates.length === 1;
|
|
221
|
+
let firstDate;
|
|
222
|
+
let lastDate;
|
|
223
|
+
const date = this.getDateWithoutTime(this.replaceMonths(element.ariaLabel, null));
|
|
224
|
+
if (hasFirstDate) {
|
|
225
|
+
firstDate = this.getDateWithoutTime(this.firstPicker.selectedDates[0]);
|
|
226
|
+
if (+date === +firstDate) {
|
|
227
|
+
element.classList.toggle("startRange", true);
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
element.classList.toggle("startRange", false);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
if (hasLastDate) {
|
|
234
|
+
lastDate = this.getDateWithoutTime(this.lastPicker.selectedDates[0]);
|
|
235
|
+
if (+date === +lastDate) {
|
|
236
|
+
element.classList.toggle("endRange", true);
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
element.classList.toggle("endRange", false);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
if (hasFirstDate && hasLastDate) {
|
|
243
|
+
if (date > firstDate && date < lastDate) {
|
|
244
|
+
element.classList.toggle("inRange", true);
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
element.classList.toggle("inRange", false);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
if (index === 0 && hasLastDate) {
|
|
251
|
+
this.disableDates(this.lastPicker.selectedDates[0], index);
|
|
252
|
+
}
|
|
253
|
+
if (index === 1 && hasFirstDate) {
|
|
254
|
+
this.disableDates(this.firstPicker.selectedDates[0], index);
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
onStopTyping(value) {
|
|
260
|
+
const text = value.detail.value.replace("/", "-");
|
|
261
|
+
const englishData = text.split("-");
|
|
262
|
+
const time = this.mode === ZRangePickerMode.DATE_TIME ? `T${englishData[3]}:00` : "";
|
|
263
|
+
const englishParsedData = `${englishData[2]}-${englishData[1]}-${englishData[0]}${time}`.split(" ").join("");
|
|
264
|
+
const isValidDate = validateDate(text, this.mode === ZRangePickerMode.DATE_TIME);
|
|
265
|
+
const date = Date.parse(englishParsedData).toString();
|
|
266
|
+
if (this.activeInput === "start-input") {
|
|
267
|
+
if (text === "") {
|
|
268
|
+
this.firstInputError = false;
|
|
269
|
+
this.firstPicker.setDate([]);
|
|
270
|
+
this.printDate(null, this.lastPicker.selectedDates[0] || null);
|
|
271
|
+
}
|
|
272
|
+
else if (!isValidDate) {
|
|
273
|
+
this.firstInputError = true;
|
|
274
|
+
this.printDate(null, this.lastPicker.selectedDates[0] || null);
|
|
275
|
+
}
|
|
276
|
+
else if (isValidDate) {
|
|
277
|
+
if (this.lastPicker.selectedDates.length === 1) {
|
|
278
|
+
if (+date <= +this.lastPicker.selectedDates[0]) {
|
|
279
|
+
this.firstInputError = false;
|
|
280
|
+
this.firstPicker.setDate([text]);
|
|
281
|
+
this.printDate(new Date(englishParsedData), this.lastPicker.selectedDates[0]);
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
this.firstInputError = true;
|
|
285
|
+
this.printDate(null, this.lastPicker.selectedDates[0]);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
this.firstInputError = false;
|
|
290
|
+
this.firstPicker.setDate([text]);
|
|
291
|
+
this.printDate(new Date(englishParsedData), null);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
else if (text === "") {
|
|
296
|
+
this.lastInputError = false;
|
|
297
|
+
this.lastPicker.setDate([]);
|
|
298
|
+
this.printDate(this.firstPicker.selectedDates[0] || null, null);
|
|
299
|
+
}
|
|
300
|
+
else if (!isValidDate) {
|
|
301
|
+
this.lastInputError = true;
|
|
302
|
+
this.printDate(this.firstPicker.selectedDates[0] || null, null);
|
|
303
|
+
}
|
|
304
|
+
else if (isValidDate) {
|
|
305
|
+
if (this.firstPicker.selectedDates.length === 1) {
|
|
306
|
+
if (+date >= +this.firstPicker.selectedDates[0]) {
|
|
307
|
+
this.lastInputError = false;
|
|
308
|
+
this.lastPicker.setDate([text]);
|
|
309
|
+
this.printDate(this.firstPicker.selectedDates[0], new Date(englishParsedData));
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
this.lastInputError = true;
|
|
313
|
+
this.printDate(this.firstPicker.selectedDates[0], null);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
this.lastInputError = false;
|
|
318
|
+
this.lastPicker.setDate([text]);
|
|
319
|
+
this.printDate(null, new Date(englishParsedData));
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
this.setRangeStyle(this.activeInput === "start-input" ? 0 : 1);
|
|
323
|
+
}
|
|
324
|
+
render() {
|
|
325
|
+
const zInputProps = {
|
|
326
|
+
type: InputType.TEXT,
|
|
327
|
+
icon: "event",
|
|
328
|
+
tabindex: "0",
|
|
329
|
+
message: false,
|
|
330
|
+
onStopTyping: this.onStopTyping.bind(this),
|
|
331
|
+
value: "",
|
|
332
|
+
};
|
|
333
|
+
return (h("div", { class: {
|
|
334
|
+
["range-pickers-container"]: true,
|
|
335
|
+
[this.mode]: true,
|
|
336
|
+
[this.activeInput]: true,
|
|
337
|
+
[this.flatpickrPosition]: true,
|
|
338
|
+
} }, h("div", { class: `${this.rangePickerId}-1-wrapper` }, h("div", { class: `${this.rangePickerId}-1-container` }, h("z-input", Object.assign({}, zInputProps, { placeholder: this.firstPickerPlaceholder, readonly: this.firstPickerReadOnly, "data-input": "data-input", class: `start-input ${this.rangePickerId}-1`, ariaLabel: this.firstAriaLabel, label: this.firstLabel, status: this.firstInputError && InputStatus.ERROR, onStartTyping: () => {
|
|
339
|
+
this.firstInputError = false;
|
|
340
|
+
} })))), h("div", { class: `${this.rangePickerId}-2-wrapper` }, h("div", { class: `${this.rangePickerId}-2-container` }, h("z-input", Object.assign({}, zInputProps, { placeholder: this.lastPickerPlaceholder, readonly: this.lastPickerReadOnly, "data-input": "data-input", class: `end-input ${this.rangePickerId}-2`, ariaLabel: this.secondAriaLabel, label: this.secondLabel, status: this.lastInputError && InputStatus.ERROR, onStartTyping: () => {
|
|
341
|
+
this.lastInputError = false;
|
|
342
|
+
} }))))));
|
|
343
|
+
}
|
|
344
|
+
static get is() { return "z-range-picker"; }
|
|
345
|
+
static get originalStyleUrls() {
|
|
346
|
+
return {
|
|
347
|
+
"$": ["../styles.css"]
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
static get styleUrls() {
|
|
351
|
+
return {
|
|
352
|
+
"$": ["../styles.css"]
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
static get properties() {
|
|
356
|
+
return {
|
|
357
|
+
"rangePickerId": {
|
|
358
|
+
"type": "string",
|
|
359
|
+
"mutable": false,
|
|
360
|
+
"complexType": {
|
|
361
|
+
"original": "string",
|
|
362
|
+
"resolved": "string",
|
|
363
|
+
"references": {}
|
|
364
|
+
},
|
|
365
|
+
"required": false,
|
|
366
|
+
"optional": false,
|
|
367
|
+
"docs": {
|
|
368
|
+
"tags": [],
|
|
369
|
+
"text": "unique id"
|
|
370
|
+
},
|
|
371
|
+
"attribute": "range-picker-id",
|
|
372
|
+
"reflect": false
|
|
373
|
+
},
|
|
374
|
+
"firstAriaLabel": {
|
|
375
|
+
"type": "string",
|
|
376
|
+
"mutable": false,
|
|
377
|
+
"complexType": {
|
|
378
|
+
"original": "string",
|
|
379
|
+
"resolved": "string",
|
|
380
|
+
"references": {}
|
|
381
|
+
},
|
|
382
|
+
"required": false,
|
|
383
|
+
"optional": true,
|
|
384
|
+
"docs": {
|
|
385
|
+
"tags": [],
|
|
386
|
+
"text": "first z-input aria label"
|
|
387
|
+
},
|
|
388
|
+
"attribute": "first-aria-label",
|
|
389
|
+
"reflect": false
|
|
390
|
+
},
|
|
391
|
+
"firstLabel": {
|
|
392
|
+
"type": "string",
|
|
393
|
+
"mutable": false,
|
|
394
|
+
"complexType": {
|
|
395
|
+
"original": "string",
|
|
396
|
+
"resolved": "string",
|
|
397
|
+
"references": {}
|
|
398
|
+
},
|
|
399
|
+
"required": false,
|
|
400
|
+
"optional": true,
|
|
401
|
+
"docs": {
|
|
402
|
+
"tags": [],
|
|
403
|
+
"text": "first z-input label"
|
|
404
|
+
},
|
|
405
|
+
"attribute": "first-label",
|
|
406
|
+
"reflect": false
|
|
407
|
+
},
|
|
408
|
+
"secondAriaLabel": {
|
|
409
|
+
"type": "string",
|
|
410
|
+
"mutable": false,
|
|
411
|
+
"complexType": {
|
|
412
|
+
"original": "string",
|
|
413
|
+
"resolved": "string",
|
|
414
|
+
"references": {}
|
|
415
|
+
},
|
|
416
|
+
"required": false,
|
|
417
|
+
"optional": true,
|
|
418
|
+
"docs": {
|
|
419
|
+
"tags": [],
|
|
420
|
+
"text": "second z-input aria label"
|
|
421
|
+
},
|
|
422
|
+
"attribute": "second-aria-label",
|
|
423
|
+
"reflect": false
|
|
424
|
+
},
|
|
425
|
+
"secondLabel": {
|
|
426
|
+
"type": "string",
|
|
427
|
+
"mutable": false,
|
|
428
|
+
"complexType": {
|
|
429
|
+
"original": "string",
|
|
430
|
+
"resolved": "string",
|
|
431
|
+
"references": {}
|
|
432
|
+
},
|
|
433
|
+
"required": false,
|
|
434
|
+
"optional": true,
|
|
435
|
+
"docs": {
|
|
436
|
+
"tags": [],
|
|
437
|
+
"text": "second z-input label"
|
|
438
|
+
},
|
|
439
|
+
"attribute": "second-label",
|
|
440
|
+
"reflect": false
|
|
441
|
+
},
|
|
442
|
+
"mode": {
|
|
443
|
+
"type": "string",
|
|
444
|
+
"mutable": false,
|
|
445
|
+
"complexType": {
|
|
446
|
+
"original": "ZRangePickerMode",
|
|
447
|
+
"resolved": "ZRangePickerMode.DATE | ZRangePickerMode.DATE_TIME",
|
|
448
|
+
"references": {
|
|
449
|
+
"ZRangePickerMode": {
|
|
450
|
+
"location": "import",
|
|
451
|
+
"path": "../../../beans"
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"required": false,
|
|
456
|
+
"optional": false,
|
|
457
|
+
"docs": {
|
|
458
|
+
"tags": [],
|
|
459
|
+
"text": "[Optional] datepicker mode: date or datetime"
|
|
460
|
+
},
|
|
461
|
+
"attribute": "mode",
|
|
462
|
+
"reflect": false,
|
|
463
|
+
"defaultValue": "ZRangePickerMode.DATE"
|
|
464
|
+
},
|
|
465
|
+
"firstPickerReadOnly": {
|
|
466
|
+
"type": "boolean",
|
|
467
|
+
"mutable": false,
|
|
468
|
+
"complexType": {
|
|
469
|
+
"original": "boolean",
|
|
470
|
+
"resolved": "boolean",
|
|
471
|
+
"references": {}
|
|
472
|
+
},
|
|
473
|
+
"required": false,
|
|
474
|
+
"optional": false,
|
|
475
|
+
"docs": {
|
|
476
|
+
"tags": [],
|
|
477
|
+
"text": "readonly mode"
|
|
478
|
+
},
|
|
479
|
+
"attribute": "first-picker-read-only",
|
|
480
|
+
"reflect": false,
|
|
481
|
+
"defaultValue": "false"
|
|
482
|
+
},
|
|
483
|
+
"lastPickerReadOnly": {
|
|
484
|
+
"type": "boolean",
|
|
485
|
+
"mutable": false,
|
|
486
|
+
"complexType": {
|
|
487
|
+
"original": "boolean",
|
|
488
|
+
"resolved": "boolean",
|
|
489
|
+
"references": {}
|
|
490
|
+
},
|
|
491
|
+
"required": false,
|
|
492
|
+
"optional": false,
|
|
493
|
+
"docs": {
|
|
494
|
+
"tags": [],
|
|
495
|
+
"text": "readonly mode"
|
|
496
|
+
},
|
|
497
|
+
"attribute": "last-picker-read-only",
|
|
498
|
+
"reflect": false,
|
|
499
|
+
"defaultValue": "false"
|
|
500
|
+
},
|
|
501
|
+
"firstPickerPlaceholder": {
|
|
502
|
+
"type": "string",
|
|
503
|
+
"mutable": false,
|
|
504
|
+
"complexType": {
|
|
505
|
+
"original": "string",
|
|
506
|
+
"resolved": "string",
|
|
507
|
+
"references": {}
|
|
508
|
+
},
|
|
509
|
+
"required": false,
|
|
510
|
+
"optional": false,
|
|
511
|
+
"docs": {
|
|
512
|
+
"tags": [],
|
|
513
|
+
"text": "readonly mode"
|
|
514
|
+
},
|
|
515
|
+
"attribute": "first-picker-placeholder",
|
|
516
|
+
"reflect": false,
|
|
517
|
+
"defaultValue": "\"\""
|
|
518
|
+
},
|
|
519
|
+
"lastPickerPlaceholder": {
|
|
520
|
+
"type": "string",
|
|
521
|
+
"mutable": false,
|
|
522
|
+
"complexType": {
|
|
523
|
+
"original": "string",
|
|
524
|
+
"resolved": "string",
|
|
525
|
+
"references": {}
|
|
526
|
+
},
|
|
527
|
+
"required": false,
|
|
528
|
+
"optional": false,
|
|
529
|
+
"docs": {
|
|
530
|
+
"tags": [],
|
|
531
|
+
"text": "readonly mode"
|
|
532
|
+
},
|
|
533
|
+
"attribute": "last-picker-placeholder",
|
|
534
|
+
"reflect": false,
|
|
535
|
+
"defaultValue": "\"\""
|
|
536
|
+
}
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
static get states() {
|
|
540
|
+
return {
|
|
541
|
+
"flatpickrPosition": {},
|
|
542
|
+
"activeInput": {},
|
|
543
|
+
"firstInputError": {},
|
|
544
|
+
"lastInputError": {}
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
static get events() {
|
|
548
|
+
return [{
|
|
549
|
+
"method": "dateSelect",
|
|
550
|
+
"name": "dateSelect",
|
|
551
|
+
"bubbles": true,
|
|
552
|
+
"cancelable": true,
|
|
553
|
+
"composed": true,
|
|
554
|
+
"docs": {
|
|
555
|
+
"tags": [],
|
|
556
|
+
"text": "emitted when date changes, returns an array with the two selected dates"
|
|
557
|
+
},
|
|
558
|
+
"complexType": {
|
|
559
|
+
"original": "any",
|
|
560
|
+
"resolved": "any",
|
|
561
|
+
"references": {}
|
|
562
|
+
}
|
|
563
|
+
}];
|
|
564
|
+
}
|
|
565
|
+
static get elementRef() { return "element"; }
|
|
566
|
+
static get watchers() {
|
|
567
|
+
return [{
|
|
568
|
+
"propName": "firstPickerReadOnly",
|
|
569
|
+
"methodName": "setupFirstPickersReadOnly"
|
|
570
|
+
}, {
|
|
571
|
+
"propName": "lastPickerReadOnly",
|
|
572
|
+
"methodName": "setupLastPickersReadOnly"
|
|
573
|
+
}, {
|
|
574
|
+
"propName": "mode",
|
|
575
|
+
"methodName": "setupPickers"
|
|
576
|
+
}];
|
|
577
|
+
}
|
|
578
|
+
static get listeners() {
|
|
579
|
+
return [{
|
|
580
|
+
"name": "click",
|
|
581
|
+
"method": "handleClick",
|
|
582
|
+
"target": "body",
|
|
583
|
+
"capture": true,
|
|
584
|
+
"passive": false
|
|
585
|
+
}, {
|
|
586
|
+
"name": "keyup",
|
|
587
|
+
"method": "handleKeyDown",
|
|
588
|
+
"target": "body",
|
|
589
|
+
"capture": true,
|
|
590
|
+
"passive": false
|
|
591
|
+
}];
|
|
592
|
+
}
|
|
593
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class ZDragdropArea {
|
|
3
|
+
fileDroppedHandler(files) {
|
|
4
|
+
this.fileDropped.emit(files);
|
|
5
|
+
}
|
|
6
|
+
renderOnDragOverMessage() {
|
|
7
|
+
return (h("div", { class: "dragover-container" }, h("div", { class: "dragover-message" }, h("span", { class: "body-2-sb" }, "Rilascia i file in questa area per allegarli."))));
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h("div", { tabIndex: 0, ref: (val) => (this.dragDropContainer = val), class: "dragdrop", onDragOver: (e) => {
|
|
11
|
+
e.preventDefault();
|
|
12
|
+
this.dragDropContainer.classList.add("dragover");
|
|
13
|
+
}, onDragLeave: () => {
|
|
14
|
+
this.dragDropContainer.classList.remove("dragover");
|
|
15
|
+
}, onDrop: (e) => {
|
|
16
|
+
e.preventDefault();
|
|
17
|
+
if (e.dataTransfer.files.length) {
|
|
18
|
+
this.dragDropContainer.classList.remove("dragover");
|
|
19
|
+
this.fileDroppedHandler(e.dataTransfer.files);
|
|
20
|
+
}
|
|
21
|
+
} }, this.renderOnDragOverMessage(), h("slot", null)));
|
|
22
|
+
}
|
|
23
|
+
static get is() { return "z-dragdrop-area"; }
|
|
24
|
+
static get encapsulation() { return "shadow"; }
|
|
25
|
+
static get originalStyleUrls() {
|
|
26
|
+
return {
|
|
27
|
+
"$": ["styles.css"]
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
static get styleUrls() {
|
|
31
|
+
return {
|
|
32
|
+
"$": ["styles.css"]
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
static get events() {
|
|
36
|
+
return [{
|
|
37
|
+
"method": "fileDropped",
|
|
38
|
+
"name": "fileDropped",
|
|
39
|
+
"bubbles": true,
|
|
40
|
+
"cancelable": true,
|
|
41
|
+
"composed": true,
|
|
42
|
+
"docs": {
|
|
43
|
+
"tags": [],
|
|
44
|
+
"text": "Emitted when user drop one or more files"
|
|
45
|
+
},
|
|
46
|
+
"complexType": {
|
|
47
|
+
"original": "any",
|
|
48
|
+
"resolved": "any",
|
|
49
|
+
"references": {}
|
|
50
|
+
}
|
|
51
|
+
}];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
margin-top: calc(var(--space-unit) * 3);
|
|
3
|
+
font-family: var(--font-family-sans);
|
|
4
|
+
font-weight: var(--font-rg);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:host > .dragdrop {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: flex;
|
|
10
|
+
height: 228px;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
border-color: var(--color-surface04);
|
|
13
|
+
background-color: var(--color-surface02);
|
|
14
|
+
|
|
15
|
+
/* Native CSS properties don't support the customization of border-style.
|
|
16
|
+
Therefore, we use a trick with an SVG image inside background-image property.
|
|
17
|
+
The SVG features give us the ability to change the distance between dashed lines, set custom pattern, add dash offset or even change a line cap.
|
|
18
|
+
Generated SVG image is vector and it fills width and height of elements by 100%, so it doesn't matter what size elements have. */
|
|
19
|
+
background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='2' ry='2' stroke='%23CACCCEFF' stroke-width='2' stroke-dasharray='15%2c 10%2c 14%2c 11' stroke-dashoffset='3' stroke-linecap='square'/%3e%3c/svg%3e");
|
|
20
|
+
border-radius: 2px;
|
|
21
|
+
color: var(--color-text01);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* https://stackoverflow.com/questions/7110353/html5-dragleave-fired-when-hovering-a-child-element */
|
|
25
|
+
:host > .dragdrop.dragover * {
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host > .dragdrop .dragover-container {
|
|
30
|
+
position: absolute;
|
|
31
|
+
z-index: 10;
|
|
32
|
+
top: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
display: none;
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 100%;
|
|
37
|
+
background-color: var(--color-primary03);
|
|
38
|
+
box-shadow: var(--shadow-focus-primary);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host > .dragdrop .dragover-container .dragover-message {
|
|
42
|
+
padding: 10px 28px;
|
|
43
|
+
background-color: var(--color-link-primary);
|
|
44
|
+
color: var(--color-text04);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host > .dragdrop.dragover .dragover-container {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
}
|