@zanichelli/albe-web-components 5.5.1 → 5.5.2
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/CHANGELOG.md +15 -0
- package/dist/cjs/{index-438f76bc.js → index-3dd0f9bd.js} +10 -0
- package/dist/cjs/index.cjs.js +14 -2
- package/dist/cjs/loader.cjs.js +2 -18
- package/dist/cjs/{utils-69e42a14.js → utils-29f9ccf5.js} +4 -26
- package/dist/cjs/{utils-8cc414c9.js → utils-4a419726.js} +1 -1
- package/dist/cjs/web-components-library.cjs.js +4 -116
- package/dist/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header.cjs.entry.js +1 -1
- package/dist/cjs/{z-range-picker.cjs.entry.js → z-app-switcher_9.cjs.entry.js} +443 -14
- package/dist/cjs/z-aria-alert.cjs.entry.js +2 -2
- package/dist/cjs/z-avatar.cjs.entry.js +2 -2
- package/dist/cjs/z-button-deprecated.cjs.entry.js +4 -4
- package/dist/cjs/z-button-filter.cjs.entry.js +1 -1
- package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-button.cjs.entry.js +2 -2
- package/dist/cjs/z-candybar.cjs.entry.js +1 -1
- package/dist/cjs/z-card.cjs.entry.js +2 -2
- package/dist/cjs/z-carousel.cjs.entry.js +1 -1
- package/dist/cjs/z-chip-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +5 -5
- package/dist/cjs/z-combobox.cjs.entry.js +4 -4
- package/dist/cjs/z-contextual-menu.cjs.entry.js +2 -2
- package/dist/cjs/z-cookiebar.cjs.entry.js +2 -2
- package/dist/cjs/z-cover-hero.cjs.entry.js +39 -0
- package/dist/cjs/z-date-picker.cjs.entry.js +8 -14
- package/dist/cjs/z-file-upload.cjs.entry.js +26 -12
- package/dist/cjs/z-file.cjs.entry.js +4 -4
- package/dist/cjs/z-footer.cjs.entry.js +2 -2
- package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
- package/dist/cjs/z-icon-package.cjs.entry.js +1 -1
- package/dist/cjs/z-info-box.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +3 -3
- package/dist/cjs/z-input-deprecated.cjs.entry.js +3 -3
- package/dist/cjs/z-input-label_2.cjs.entry.js +2 -2
- package/dist/cjs/z-list-group.cjs.entry.js +2 -2
- package/dist/cjs/z-list_2.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +2 -2
- package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
- package/dist/cjs/z-menu.cjs.entry.js +1 -1
- package/dist/cjs/z-messages-pocket.cjs.entry.js +2 -2
- package/dist/cjs/z-modal-login.cjs.entry.js +2 -2
- package/dist/cjs/z-modal.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +3 -3
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
- package/dist/cjs/z-myz-topbar.cjs.entry.js +2 -2
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +2 -2
- package/dist/cjs/z-navigation-tab.cjs.entry.js +2 -2
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
- package/dist/cjs/z-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-offcanvas.cjs.entry.js +2 -2
- package/dist/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/cjs/z-pagination-bar.cjs.entry.js +5 -7
- package/dist/cjs/z-pagination-page.cjs.entry.js +1 -1
- package/dist/cjs/z-pagination.cjs.entry.js +1 -1
- package/dist/cjs/z-panel-elem.cjs.entry.js +1 -1
- package/dist/cjs/z-pocket-message.cjs.entry.js +1 -1
- package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
- package/dist/cjs/z-popover-deprecated.cjs.entry.js +5 -5
- package/dist/cjs/z-popover.cjs.entry.js +2 -2
- package/dist/cjs/z-section-title.cjs.entry.js +2 -2
- package/dist/cjs/z-skip-to-content.cjs.entry.js +3 -3
- package/dist/cjs/z-slideshow.cjs.entry.js +3 -3
- package/dist/cjs/z-status-tag.cjs.entry.js +4 -4
- package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper.cjs.entry.js +1 -1
- package/dist/cjs/z-table-body.cjs.entry.js +1 -1
- package/dist/cjs/z-table-cell.cjs.entry.js +4 -4
- package/dist/cjs/z-table-empty-box.cjs.entry.js +3 -3
- package/dist/cjs/z-table-expanded-row.cjs.entry.js +1 -1
- package/dist/cjs/z-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-table-head.cjs.entry.js +1 -1
- package/dist/cjs/z-table-header-row.cjs.entry.js +1 -1
- package/dist/cjs/z-table-header.cjs.entry.js +5 -5
- package/dist/cjs/z-table-row.cjs.entry.js +2 -2
- package/dist/cjs/z-table-sticky-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +2 -2
- package/dist/cjs/z-tag.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
- package/dist/cjs/z-toast-notification.cjs.entry.js +4 -4
- package/dist/cjs/z-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/z-tooltip-deprecated.cjs.entry.js +2 -2
- package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/z-user-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/collection/beans/index.js +10 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/buttons/z-chip/index.js +1 -1
- package/dist/collection/components/buttons/z-chip/styles.css +2 -9
- package/dist/collection/components/file-upload/z-file/index.js +19 -3
- package/dist/collection/components/file-upload/z-file-upload/index.js +46 -11
- package/dist/collection/components/inputs/z-combobox/styles.css +1 -2
- package/dist/collection/components/z-cover-hero/index.js +103 -0
- package/dist/collection/components/z-cover-hero/styles.css +77 -0
- package/dist/collection/components/z-info-reveal/styles.css +5 -0
- package/dist/{web-components-library/index-3ee81524.js → esm/index-3c2d757b.js} +11 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -18
- package/dist/esm/{utils-5d5963ef.js → utils-57be09c8.js} +2 -2
- package/dist/esm/{utils-1e801ac0.js → utils-729724da.js} +4 -26
- package/dist/esm/web-components-library.js +4 -116
- package/dist/esm/z-alert.entry.js +1 -1
- package/dist/esm/z-app-header.entry.js +1 -1
- package/dist/{web-components-library/z-range-picker.entry.js → esm/z-app-switcher_9.entry.js} +426 -5
- package/dist/esm/z-aria-alert.entry.js +2 -2
- package/dist/esm/z-avatar.entry.js +2 -2
- package/dist/esm/z-button-deprecated.entry.js +4 -4
- package/dist/esm/z-button-filter.entry.js +1 -1
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-button.entry.js +2 -2
- package/dist/esm/z-candybar.entry.js +1 -1
- package/dist/esm/z-card.entry.js +2 -2
- package/dist/esm/z-carousel.entry.js +1 -1
- package/dist/esm/z-chip-deprecated.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +5 -5
- package/dist/esm/z-combobox.entry.js +4 -4
- package/dist/esm/z-contextual-menu.entry.js +2 -2
- package/dist/esm/z-cookiebar.entry.js +2 -2
- package/dist/esm/z-cover-hero.entry.js +35 -0
- package/dist/esm/z-date-picker.entry.js +8 -14
- package/dist/esm/z-file-upload.entry.js +26 -12
- package/dist/esm/z-file.entry.js +4 -4
- package/dist/esm/z-footer.entry.js +2 -2
- package/dist/esm/z-ghost-loading.entry.js +1 -1
- package/dist/esm/z-icon-package.entry.js +1 -1
- package/dist/esm/z-info-box.entry.js +1 -1
- package/dist/esm/z-info-reveal.entry.js +3 -3
- package/dist/esm/z-input-deprecated.entry.js +3 -3
- package/dist/esm/z-input-label_2.entry.js +2 -2
- package/dist/esm/z-list-group.entry.js +2 -2
- package/dist/esm/z-list_2.entry.js +1 -1
- package/dist/esm/z-menu-dropdown_2.entry.js +2 -2
- package/dist/esm/z-menu-section.entry.js +1 -1
- package/dist/esm/z-menu.entry.js +1 -1
- package/dist/esm/z-messages-pocket.entry.js +2 -2
- package/dist/esm/z-modal-login.entry.js +2 -2
- package/dist/esm/z-modal.entry.js +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +2 -2
- package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
- package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +2 -2
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +3 -3
- package/dist/esm/z-myz-card-list.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +1 -1
- package/dist/esm/z-myz-list-item.entry.js +3 -3
- package/dist/esm/z-myz-topbar.entry.js +2 -2
- package/dist/esm/z-navigation-tab-link.entry.js +2 -2
- package/dist/esm/z-navigation-tab.entry.js +2 -2
- package/dist/esm/z-navigation-tabs.entry.js +2 -2
- package/dist/esm/z-notification.entry.js +1 -1
- package/dist/esm/z-offcanvas.entry.js +2 -2
- package/dist/esm/z-otp.entry.js +2 -2
- package/dist/esm/z-pagination-bar.entry.js +5 -7
- package/dist/esm/z-pagination-page.entry.js +1 -1
- package/dist/esm/z-pagination.entry.js +1 -1
- package/dist/esm/z-panel-elem.entry.js +1 -1
- package/dist/esm/z-pocket-message.entry.js +1 -1
- package/dist/esm/z-pocket_3.entry.js +2 -2
- package/dist/esm/z-popover-deprecated.entry.js +5 -5
- package/dist/esm/z-popover.entry.js +2 -2
- package/dist/esm/z-section-title.entry.js +2 -2
- package/dist/esm/z-skip-to-content.entry.js +3 -3
- package/dist/esm/z-slideshow.entry.js +3 -3
- package/dist/esm/z-status-tag.entry.js +4 -4
- package/dist/esm/z-stepper-item.entry.js +1 -1
- package/dist/esm/z-stepper.entry.js +1 -1
- package/dist/esm/z-table-body.entry.js +1 -1
- package/dist/esm/z-table-cell.entry.js +4 -4
- package/dist/esm/z-table-empty-box.entry.js +3 -3
- package/dist/esm/z-table-expanded-row.entry.js +1 -1
- package/dist/esm/z-table-footer.entry.js +1 -1
- package/dist/esm/z-table-head.entry.js +1 -1
- package/dist/esm/z-table-header-row.entry.js +1 -1
- package/dist/esm/z-table-header.entry.js +5 -5
- package/dist/esm/z-table-row.entry.js +2 -2
- package/dist/esm/z-table-sticky-footer.entry.js +1 -1
- package/dist/esm/z-table.entry.js +2 -2
- package/dist/esm/z-tag.entry.js +1 -1
- package/dist/esm/z-toast-notification-list.entry.js +2 -2
- package/dist/esm/z-toast-notification.entry.js +4 -4
- package/dist/esm/z-toggle-button.entry.js +1 -1
- package/dist/esm/z-toggle-switch.entry.js +3 -3
- package/dist/esm/z-tooltip-deprecated.entry.js +2 -2
- package/dist/esm/z-tooltip.entry.js +2 -2
- package/dist/esm/z-user-dropdown.entry.js +1 -1
- package/dist/esm/z-visually-hidden.entry.js +1 -1
- package/dist/types/beans/index.d.ts +8 -0
- package/dist/types/components/file-upload/z-file/index.d.ts +2 -0
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +5 -3
- package/dist/types/components/z-cover-hero/index.d.ts +29 -0
- package/dist/types/components.d.ts +42 -1
- package/dist/web-components-library/index.esm.js +1 -9
- package/dist/web-components-library/{p-b15efba3.entry.js → p-02681c05.entry.js} +1 -1
- package/dist/web-components-library/{p-d33fea26.entry.js → p-03ef960c.entry.js} +1 -1
- package/dist/web-components-library/{p-69ef6ddc.entry.js → p-0aa9746a.entry.js} +1 -1
- package/dist/web-components-library/p-0ab1b40f.entry.js +1 -0
- package/dist/web-components-library/{p-63ccb013.entry.js → p-1196b959.entry.js} +1 -1
- package/dist/web-components-library/p-1906915c.entry.js +1 -0
- package/dist/web-components-library/{p-d97a2db9.entry.js → p-1c413074.entry.js} +1 -1
- package/dist/web-components-library/{p-1727c1c8.entry.js → p-1e6aff0f.entry.js} +1 -1
- package/dist/web-components-library/p-1ff7bde5.entry.js +1 -0
- package/dist/web-components-library/p-223566d6.entry.js +1 -0
- package/dist/web-components-library/{p-de25c7f0.entry.js → p-29e8a12c.entry.js} +1 -1
- package/{www/build/p-9074e1a5.entry.js → dist/web-components-library/p-46a6341a.entry.js} +1 -1
- package/dist/web-components-library/p-51130281.entry.js +1 -0
- package/dist/web-components-library/p-5789bbe7.entry.js +1 -0
- package/{www/build/p-7c6d4440.entry.js → dist/web-components-library/p-596da333.entry.js} +1 -1
- package/{www/build/p-0a0aee35.entry.js → dist/web-components-library/p-71034a6f.entry.js} +1 -1
- package/dist/web-components-library/p-710cec6d.entry.js +1 -0
- package/dist/web-components-library/p-7171717f.entry.js +1 -0
- package/dist/web-components-library/p-79408b00.entry.js +1 -0
- package/dist/web-components-library/p-7b054eb2.entry.js +1 -0
- package/dist/web-components-library/p-7d37e4a8.entry.js +16 -0
- package/{www/build/p-dffdf60a.entry.js → dist/web-components-library/p-8468d87e.entry.js} +1 -1
- package/dist/web-components-library/p-8cf3798f.entry.js +1 -0
- package/{www/build/p-43329b81.entry.js → dist/web-components-library/p-8e4d7f5d.entry.js} +1 -1
- package/dist/web-components-library/p-8f030e78.entry.js +1 -0
- package/dist/web-components-library/{p-ccdebe3f.entry.js → p-92cc171f.entry.js} +1 -1
- package/{www/build/p-5be162d5.entry.js → dist/web-components-library/p-953a07d5.entry.js} +1 -1
- package/dist/web-components-library/{p-0f17db30.entry.js → p-9fb79d74.entry.js} +1 -1
- package/{www/build/p-57d1acdc.entry.js → dist/web-components-library/p-a5232d04.entry.js} +1 -1
- package/dist/web-components-library/p-a54ef821.entry.js +1 -0
- package/{www/build/p-8fbc2ce9.entry.js → dist/web-components-library/p-a93d5b8c.entry.js} +1 -1
- package/dist/web-components-library/{p-51cdabeb.entry.js → p-a94f78b4.entry.js} +1 -1
- package/dist/web-components-library/p-ae784c71.entry.js +1 -0
- package/dist/web-components-library/{p-9f9e4266.entry.js → p-ae79ab08.entry.js} +1 -1
- package/{www/build/p-e2102da3.entry.js → dist/web-components-library/p-aed2a8cf.entry.js} +1 -1
- package/{www/build/p-3edbd35c.entry.js → dist/web-components-library/p-b543005a.entry.js} +1 -1
- package/dist/web-components-library/p-bb20020b.entry.js +1 -0
- package/dist/web-components-library/p-bbeb6b3c.entry.js +1 -0
- package/dist/web-components-library/p-bd772b8a.entry.js +1 -0
- package/dist/web-components-library/{p-b9da171f.js → p-bfa3593e.js} +1 -1
- package/{www/build/p-9a5ee6c2.entry.js → dist/web-components-library/p-c066ddf1.entry.js} +1 -1
- package/dist/web-components-library/{p-ba29bc12.entry.js → p-c6124ee4.entry.js} +1 -1
- package/dist/web-components-library/p-c730a93d.entry.js +1 -0
- package/dist/web-components-library/{p-fe927bf4.entry.js → p-c9348925.entry.js} +1 -1
- package/dist/web-components-library/{p-02ea7e49.entry.js → p-cc6a5872.entry.js} +1 -1
- package/dist/web-components-library/p-cf35d3cd.entry.js +1 -0
- package/dist/web-components-library/p-cf73af9a.entry.js +1 -0
- package/dist/web-components-library/{p-292bc0c4.entry.js → p-d0d75b41.entry.js} +1 -1
- package/dist/web-components-library/{p-0e256fdc.entry.js → p-d34eccf8.entry.js} +1 -1
- package/dist/web-components-library/p-d79f69f2.js +1 -0
- package/dist/web-components-library/p-e293f91e.entry.js +1 -0
- package/{www/build/p-55ddbfe9.entry.js → dist/web-components-library/p-e6ac4dc4.entry.js} +1 -1
- package/dist/web-components-library/{p-6c6b4e80.entry.js → p-e6ddee24.entry.js} +1 -1
- package/dist/web-components-library/p-ed05dc6b.entry.js +1 -0
- package/dist/web-components-library/p-f0d90cc2.entry.js +1 -0
- package/dist/web-components-library/p-f31b8e83.js +1 -0
- package/{www/build/p-df4e963b.entry.js → dist/web-components-library/p-f6da32c4.entry.js} +1 -1
- package/{www/build/p-bfe5693d.entry.js → dist/web-components-library/p-fd2338b2.entry.js} +1 -1
- package/{www/build/p-4af112a7.entry.js → dist/web-components-library/p-fea2c39a.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.css +1 -812
- package/dist/web-components-library/web-components-library.esm.js +1 -129
- package/package.json +1 -1
- package/react/components.d.ts +5 -0
- package/react/components.js +8 -3
- package/react/components.js.map +1 -1
- package/readme.md +8 -0
- package/www/build/index.esm.js +1 -9
- package/www/build/{p-b15efba3.entry.js → p-02681c05.entry.js} +1 -1
- package/www/build/{p-d33fea26.entry.js → p-03ef960c.entry.js} +1 -1
- package/www/build/{p-69ef6ddc.entry.js → p-0aa9746a.entry.js} +1 -1
- package/www/build/p-0ab1b40f.entry.js +1 -0
- package/www/build/{p-63ccb013.entry.js → p-1196b959.entry.js} +1 -1
- package/www/build/p-1906915c.entry.js +1 -0
- package/www/build/{p-d97a2db9.entry.js → p-1c413074.entry.js} +1 -1
- package/www/build/{p-1727c1c8.entry.js → p-1e6aff0f.entry.js} +1 -1
- package/www/build/p-1ff7bde5.entry.js +1 -0
- package/www/build/p-223566d6.entry.js +1 -0
- package/www/build/{p-de25c7f0.entry.js → p-29e8a12c.entry.js} +1 -1
- package/www/build/p-36091078.js +1 -0
- package/{dist/web-components-library/p-9074e1a5.entry.js → www/build/p-46a6341a.entry.js} +1 -1
- package/www/build/{p-88b56b6e.css → p-4c9c83c0.css} +1 -1
- package/www/build/p-51130281.entry.js +1 -0
- package/www/build/p-5789bbe7.entry.js +1 -0
- package/{dist/web-components-library/p-7c6d4440.entry.js → www/build/p-596da333.entry.js} +1 -1
- package/{dist/web-components-library/p-0a0aee35.entry.js → www/build/p-71034a6f.entry.js} +1 -1
- package/www/build/p-710cec6d.entry.js +1 -0
- package/www/build/p-7171717f.entry.js +1 -0
- package/www/build/p-79408b00.entry.js +1 -0
- package/www/build/p-7b054eb2.entry.js +1 -0
- package/www/build/p-7d37e4a8.entry.js +16 -0
- package/{dist/web-components-library/p-dffdf60a.entry.js → www/build/p-8468d87e.entry.js} +1 -1
- package/www/build/p-8cf3798f.entry.js +1 -0
- package/{dist/web-components-library/p-43329b81.entry.js → www/build/p-8e4d7f5d.entry.js} +1 -1
- package/www/build/p-8f030e78.entry.js +1 -0
- package/www/build/{p-ccdebe3f.entry.js → p-92cc171f.entry.js} +1 -1
- package/{dist/web-components-library/p-5be162d5.entry.js → www/build/p-953a07d5.entry.js} +1 -1
- package/www/build/{p-0f17db30.entry.js → p-9fb79d74.entry.js} +1 -1
- package/{dist/web-components-library/p-57d1acdc.entry.js → www/build/p-a5232d04.entry.js} +1 -1
- package/www/build/p-a54ef821.entry.js +1 -0
- package/{dist/web-components-library/p-8fbc2ce9.entry.js → www/build/p-a93d5b8c.entry.js} +1 -1
- package/www/build/{p-51cdabeb.entry.js → p-a94f78b4.entry.js} +1 -1
- package/www/build/p-ae784c71.entry.js +1 -0
- package/www/build/{p-9f9e4266.entry.js → p-ae79ab08.entry.js} +1 -1
- package/{dist/web-components-library/p-e2102da3.entry.js → www/build/p-aed2a8cf.entry.js} +1 -1
- package/{dist/web-components-library/p-3edbd35c.entry.js → www/build/p-b543005a.entry.js} +1 -1
- package/www/build/p-bb20020b.entry.js +1 -0
- package/www/build/p-bbeb6b3c.entry.js +1 -0
- package/www/build/p-bd772b8a.entry.js +1 -0
- package/www/build/{p-b9da171f.js → p-bfa3593e.js} +1 -1
- package/{dist/web-components-library/p-9a5ee6c2.entry.js → www/build/p-c066ddf1.entry.js} +1 -1
- package/www/build/{p-ba29bc12.entry.js → p-c6124ee4.entry.js} +1 -1
- package/www/build/p-c730a93d.entry.js +1 -0
- package/www/build/{p-fe927bf4.entry.js → p-c9348925.entry.js} +1 -1
- package/www/build/{p-02ea7e49.entry.js → p-cc6a5872.entry.js} +1 -1
- package/www/build/p-cf35d3cd.entry.js +1 -0
- package/www/build/p-cf73af9a.entry.js +1 -0
- package/www/build/{p-292bc0c4.entry.js → p-d0d75b41.entry.js} +1 -1
- package/www/build/{p-0e256fdc.entry.js → p-d34eccf8.entry.js} +1 -1
- package/www/build/p-d79f69f2.js +1 -0
- package/www/build/p-e293f91e.entry.js +1 -0
- package/{dist/web-components-library/p-55ddbfe9.entry.js → www/build/p-e6ac4dc4.entry.js} +1 -1
- package/www/build/{p-6c6b4e80.entry.js → p-e6ddee24.entry.js} +1 -1
- package/www/build/p-ed05dc6b.entry.js +1 -0
- package/www/build/p-f0d90cc2.entry.js +1 -0
- package/www/build/p-f31b8e83.js +1 -0
- package/{dist/web-components-library/p-df4e963b.entry.js → www/build/p-f6da32c4.entry.js} +1 -1
- package/{dist/web-components-library/p-bfe5693d.entry.js → www/build/p-fd2338b2.entry.js} +1 -1
- package/{dist/web-components-library/p-4af112a7.entry.js → www/build/p-fea2c39a.entry.js} +1 -1
- package/www/build/web-components-library.css +1 -812
- package/www/build/web-components-library.esm.js +1 -129
- package/www/index.html +2 -11
- package/www/pages/file-upload.html +97 -54
- package/dist/cjs/_commonjsHelpers-10109b76.js +0 -48
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/css-shim-f1391d35.js +0 -6
- package/dist/cjs/dom-5345ed9a.js +0 -75
- package/dist/cjs/hammer-0741ba49.js +0 -2651
- package/dist/cjs/index-545547ad.js +0 -66
- package/dist/cjs/index-6b6a3299.js +0 -315
- package/dist/cjs/index-a8bdcb9c.js +0 -334
- package/dist/cjs/index-fcbe2d6e.js +0 -3093
- package/dist/cjs/shadow-css-42acdd0e.js +0 -390
- package/dist/cjs/utils-0a978fe0.js +0 -118
- package/dist/cjs/utils-56c20ead.js +0 -118
- package/dist/cjs/utils-aca0a0b6.js +0 -2742
- package/dist/cjs/z-app-switcher.cjs.entry.js +0 -29
- package/dist/cjs/z-app-switcher_11.cjs.entry.js +0 -377
- package/dist/cjs/z-app-topbar.cjs.entry.js +0 -41
- package/dist/cjs/z-body.cjs.entry.js +0 -17
- package/dist/cjs/z-divider.cjs.entry.js +0 -26
- package/dist/cjs/z-dragdrop-area.cjs.entry.js +0 -37
- package/dist/cjs/z-footer-link.cjs.entry.js +0 -19
- package/dist/cjs/z-footer-section.cjs.entry.js +0 -23
- package/dist/cjs/z-footer-social.cjs.entry.js +0 -19
- package/dist/cjs/z-heading.cjs.entry.js +0 -17
- package/dist/cjs/z-icon.cjs.entry.js +0 -28
- package/dist/cjs/z-input-label.cjs.entry.js +0 -21
- package/dist/cjs/z-input-message.cjs.entry.js +0 -24
- package/dist/cjs/z-input.cjs.entry.js +0 -235
- package/dist/cjs/z-input_2.cjs.entry.js +0 -228
- package/dist/cjs/z-link.cjs.entry.js +0 -71
- package/dist/cjs/z-list-element.cjs.entry.js +0 -154
- package/dist/cjs/z-list.cjs.entry.js +0 -34
- package/dist/cjs/z-logo.cjs.entry.js +0 -28
- package/dist/cjs/z-menu-dropdown.cjs.entry.js +0 -60
- package/dist/cjs/z-myz-card-body.cjs.entry.js +0 -19
- package/dist/cjs/z-myz-card-cover.cjs.entry.js +0 -22
- package/dist/cjs/z-myz-card-header.cjs.entry.js +0 -39
- package/dist/cjs/z-myz-card.cjs.entry.js +0 -43
- package/dist/cjs/z-myz-list.cjs.entry.js +0 -35
- package/dist/cjs/z-pocket-body.cjs.entry.js +0 -27
- package/dist/cjs/z-pocket-header.cjs.entry.js +0 -40
- package/dist/cjs/z-pocket.cjs.entry.js +0 -72
- package/dist/cjs/z-select.cjs.entry.js +0 -257
- package/dist/cjs/z-typography.cjs.entry.js +0 -29
- package/dist/collection/components/z-date-picker/index.js +0 -284
- package/dist/collection/components/z-date-picker/styles.css +0 -525
- package/dist/esm/_commonjsHelpers-8fe71198.js +0 -44
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/css-shim-10e6e2ae.js +0 -4
- package/dist/esm/dom-7cd9cf71.js +0 -73
- package/dist/esm/hammer-782a2043.js +0 -2649
- package/dist/esm/index-3b53c63e.js +0 -334
- package/dist/esm/index-3ee81524.js +0 -334
- package/dist/esm/index-46ca649a.js +0 -315
- package/dist/esm/index-51f075dd.js +0 -64
- package/dist/esm/index-81176684.js +0 -3057
- package/dist/esm/shadow-css-38a1326b.js +0 -388
- package/dist/esm/utils-43f2cad8.js +0 -2736
- package/dist/esm/utils-a3134cfb.js +0 -109
- package/dist/esm/utils-e5940345.js +0 -109
- package/dist/esm/z-app-switcher.entry.js +0 -25
- package/dist/esm/z-app-switcher_11.entry.js +0 -363
- package/dist/esm/z-app-topbar.entry.js +0 -37
- package/dist/esm/z-body.entry.js +0 -13
- package/dist/esm/z-divider.entry.js +0 -22
- package/dist/esm/z-dragdrop-area.entry.js +0 -33
- package/dist/esm/z-footer-link.entry.js +0 -15
- package/dist/esm/z-footer-section.entry.js +0 -19
- package/dist/esm/z-footer-social.entry.js +0 -15
- package/dist/esm/z-heading.entry.js +0 -13
- package/dist/esm/z-icon.entry.js +0 -24
- package/dist/esm/z-input-label.entry.js +0 -17
- package/dist/esm/z-input-message.entry.js +0 -20
- package/dist/esm/z-input.entry.js +0 -231
- package/dist/esm/z-input_2.entry.js +0 -223
- package/dist/esm/z-link.entry.js +0 -67
- package/dist/esm/z-list-element.entry.js +0 -150
- package/dist/esm/z-list.entry.js +0 -30
- package/dist/esm/z-logo.entry.js +0 -24
- package/dist/esm/z-menu-dropdown.entry.js +0 -56
- package/dist/esm/z-myz-card-body.entry.js +0 -15
- package/dist/esm/z-myz-card-cover.entry.js +0 -18
- package/dist/esm/z-myz-card-header.entry.js +0 -35
- package/dist/esm/z-myz-card.entry.js +0 -39
- package/dist/esm/z-myz-list.entry.js +0 -31
- package/dist/esm/z-pocket-body.entry.js +0 -23
- package/dist/esm/z-pocket-header.entry.js +0 -36
- package/dist/esm/z-pocket.entry.js +0 -68
- package/dist/esm/z-range-picker.entry.js +0 -354
- package/dist/esm/z-select.entry.js +0 -253
- package/dist/esm/z-typography.entry.js +0 -25
- package/dist/types/components/z-date-picker/index.d.ts +0 -30
- package/dist/web-components-library/_commonjsHelpers-8fe71198.js +0 -44
- package/dist/web-components-library/app-globals-0f993ce5.js +0 -3
- package/dist/web-components-library/breakpoints-c386984e.js +0 -4
- package/dist/web-components-library/css-shim-10e6e2ae.js +0 -4
- package/dist/web-components-library/dom-7cd9cf71.js +0 -73
- package/dist/web-components-library/hammer-782a2043.js +0 -2649
- package/dist/web-components-library/icons-92a7dcde.js +0 -511
- package/dist/web-components-library/index-3b53c63e.js +0 -334
- package/dist/web-components-library/index-51f075dd.js +0 -64
- package/dist/web-components-library/index-81176684.js +0 -3057
- package/dist/web-components-library/p-0d29d851.entry.js +0 -1
- package/dist/web-components-library/p-0e408871.entry.js +0 -1
- package/dist/web-components-library/p-0ef6c549.entry.js +0 -1
- package/dist/web-components-library/p-1f73a6d8.entry.js +0 -1
- package/dist/web-components-library/p-20d62443.entry.js +0 -1
- package/dist/web-components-library/p-3c111c2a.entry.js +0 -1
- package/dist/web-components-library/p-562e2d52.entry.js +0 -1
- package/dist/web-components-library/p-5eacbfc7.entry.js +0 -1
- package/dist/web-components-library/p-6218514a.entry.js +0 -1
- package/dist/web-components-library/p-71accd8e.entry.js +0 -1
- package/dist/web-components-library/p-99d7ab2f.entry.js +0 -1
- package/dist/web-components-library/p-9f5d707a.js +0 -1
- package/dist/web-components-library/p-a8875b97.entry.js +0 -16
- package/dist/web-components-library/p-d39c0372.entry.js +0 -1
- package/dist/web-components-library/p-d995d9dc.entry.js +0 -1
- package/dist/web-components-library/p-e2431b92.entry.js +0 -1
- package/dist/web-components-library/p-edb8d2ab.entry.js +0 -1
- package/dist/web-components-library/shadow-css-38a1326b.js +0 -388
- package/dist/web-components-library/utils-1e801ac0.js +0 -2736
- package/dist/web-components-library/utils-43f2cad8.js +0 -2736
- package/dist/web-components-library/utils-a3134cfb.js +0 -109
- package/dist/web-components-library/utils-e5940345.js +0 -109
- package/dist/web-components-library/z-alert.entry.js +0 -15
- package/dist/web-components-library/z-app-header.entry.js +0 -127
- package/dist/web-components-library/z-app-switcher.entry.js +0 -25
- package/dist/web-components-library/z-app-topbar.entry.js +0 -37
- package/dist/web-components-library/z-aria-alert.entry.js +0 -14
- package/dist/web-components-library/z-avatar.entry.js +0 -39
- package/dist/web-components-library/z-body.entry.js +0 -13
- package/dist/web-components-library/z-button-deprecated.entry.js +0 -34
- package/dist/web-components-library/z-button-filter.entry.js +0 -45
- package/dist/web-components-library/z-button-sort.entry.js +0 -50
- package/dist/web-components-library/z-button.entry.js +0 -38
- package/dist/web-components-library/z-candybar.entry.js +0 -15
- package/dist/web-components-library/z-card.entry.js +0 -65
- package/dist/web-components-library/z-carousel.entry.js +0 -20
- package/dist/web-components-library/z-chip-deprecated.entry.js +0 -20
- package/dist/web-components-library/z-chip.entry.js +0 -33
- package/dist/web-components-library/z-combobox.entry.js +0 -166
- package/dist/web-components-library/z-contextual-menu.entry.js +0 -47
- package/dist/web-components-library/z-cookiebar.entry.js +0 -38
- package/dist/web-components-library/z-date-picker.entry.js +0 -484
- package/dist/web-components-library/z-divider.entry.js +0 -22
- package/dist/web-components-library/z-dragdrop-area.entry.js +0 -33
- package/dist/web-components-library/z-file-upload.entry.js +0 -168
- package/dist/web-components-library/z-file.entry.js +0 -44
- package/dist/web-components-library/z-footer-link.entry.js +0 -15
- package/dist/web-components-library/z-footer-section.entry.js +0 -19
- package/dist/web-components-library/z-footer-social.entry.js +0 -15
- package/dist/web-components-library/z-footer.entry.js +0 -103
- package/dist/web-components-library/z-ghost-loading.entry.js +0 -15
- package/dist/web-components-library/z-heading.entry.js +0 -13
- package/dist/web-components-library/z-icon-package.entry.js +0 -19
- package/dist/web-components-library/z-icon.entry.js +0 -24
- package/dist/web-components-library/z-info-box.entry.js +0 -21
- package/dist/web-components-library/z-info-reveal.entry.js +0 -60
- package/dist/web-components-library/z-input-deprecated.entry.js +0 -267
- package/dist/web-components-library/z-input-label.entry.js +0 -17
- package/dist/web-components-library/z-input-message.entry.js +0 -20
- package/dist/web-components-library/z-input.entry.js +0 -231
- package/dist/web-components-library/z-link.entry.js +0 -67
- package/dist/web-components-library/z-list-element.entry.js +0 -150
- package/dist/web-components-library/z-list-group.entry.js +0 -50
- package/dist/web-components-library/z-list.entry.js +0 -30
- package/dist/web-components-library/z-logo.entry.js +0 -24
- package/dist/web-components-library/z-menu-dropdown.entry.js +0 -56
- package/dist/web-components-library/z-menu-section.entry.js +0 -42
- package/dist/web-components-library/z-menu.entry.js +0 -106
- package/dist/web-components-library/z-messages-pocket.entry.js +0 -42
- package/dist/web-components-library/z-modal-login.entry.js +0 -78
- package/dist/web-components-library/z-modal.entry.js +0 -32
- package/dist/web-components-library/z-myz-card-alert.entry.js +0 -59
- package/dist/web-components-library/z-myz-card-body.entry.js +0 -15
- package/dist/web-components-library/z-myz-card-cover.entry.js +0 -18
- package/dist/web-components-library/z-myz-card-dictionary.entry.js +0 -32
- package/dist/web-components-library/z-myz-card-footer-sections.entry.js +0 -15
- package/dist/web-components-library/z-myz-card-footer.entry.js +0 -52
- package/dist/web-components-library/z-myz-card-header.entry.js +0 -35
- package/dist/web-components-library/z-myz-card-icon.entry.js +0 -17
- package/dist/web-components-library/z-myz-card-info.entry.js +0 -115
- package/dist/web-components-library/z-myz-card-list.entry.js +0 -33
- package/dist/web-components-library/z-myz-card.entry.js +0 -39
- package/dist/web-components-library/z-myz-list-item.entry.js +0 -33
- package/dist/web-components-library/z-myz-list.entry.js +0 -31
- package/dist/web-components-library/z-myz-topbar.entry.js +0 -190
- package/dist/web-components-library/z-navigation-tab-link.entry.js +0 -67
- package/dist/web-components-library/z-navigation-tab.entry.js +0 -69
- package/dist/web-components-library/z-navigation-tabs.entry.js +0 -122
- package/dist/web-components-library/z-notification.entry.js +0 -42
- package/dist/web-components-library/z-offcanvas.entry.js +0 -59
- package/dist/web-components-library/z-otp.entry.js +0 -37
- package/dist/web-components-library/z-pagination-bar.entry.js +0 -126
- package/dist/web-components-library/z-pagination-page.entry.js +0 -21
- package/dist/web-components-library/z-pagination.entry.js +0 -228
- package/dist/web-components-library/z-panel-elem.entry.js +0 -26
- package/dist/web-components-library/z-pocket-body.entry.js +0 -23
- package/dist/web-components-library/z-pocket-header.entry.js +0 -36
- package/dist/web-components-library/z-pocket-message.entry.js +0 -15
- package/dist/web-components-library/z-pocket.entry.js +0 -68
- package/dist/web-components-library/z-popover-deprecated.entry.js +0 -128
- package/dist/web-components-library/z-popover.entry.js +0 -332
- package/dist/web-components-library/z-section-title.entry.js +0 -38
- package/dist/web-components-library/z-select.entry.js +0 -253
- package/dist/web-components-library/z-skip-to-content.entry.js +0 -64
- package/dist/web-components-library/z-slideshow.entry.js +0 -108
- package/dist/web-components-library/z-status-tag.entry.js +0 -25
- package/dist/web-components-library/z-stepper-item.entry.js +0 -18
- package/dist/web-components-library/z-stepper.entry.js +0 -15
- package/dist/web-components-library/z-table-body.entry.js +0 -20
- package/dist/web-components-library/z-table-cell.entry.js +0 -32
- package/dist/web-components-library/z-table-empty-box.entry.js +0 -28
- package/dist/web-components-library/z-table-expanded-row.entry.js +0 -15
- package/dist/web-components-library/z-table-footer.entry.js +0 -19
- package/dist/web-components-library/z-table-head.entry.js +0 -19
- package/dist/web-components-library/z-table-header-row.entry.js +0 -18
- package/dist/web-components-library/z-table-header.entry.js +0 -81
- package/dist/web-components-library/z-table-row.entry.js +0 -39
- package/dist/web-components-library/z-table-sticky-footer.entry.js +0 -15
- package/dist/web-components-library/z-table.entry.js +0 -78
- package/dist/web-components-library/z-tag.entry.js +0 -18
- package/dist/web-components-library/z-toast-notification-list.entry.js +0 -52
- package/dist/web-components-library/z-toast-notification.entry.js +0 -199
- package/dist/web-components-library/z-toggle-button.entry.js +0 -32
- package/dist/web-components-library/z-toggle-switch.entry.js +0 -45
- package/dist/web-components-library/z-tooltip-deprecated.entry.js +0 -270
- package/dist/web-components-library/z-tooltip.entry.js +0 -27
- package/dist/web-components-library/z-typography.entry.js +0 -25
- package/dist/web-components-library/z-user-dropdown.entry.js +0 -91
- package/dist/web-components-library/z-visually-hidden.entry.js +0 -15
- package/www/build/_commonjsHelpers-8fe71198.js +0 -44
- package/www/build/app-globals-0f993ce5.js +0 -3
- package/www/build/breakpoints-c386984e.js +0 -4
- package/www/build/css-shim-10e6e2ae.js +0 -4
- package/www/build/dom-7cd9cf71.js +0 -73
- package/www/build/hammer-782a2043.js +0 -2649
- package/www/build/icons-92a7dcde.js +0 -511
- package/www/build/index-3b53c63e.js +0 -334
- package/www/build/index-3ee81524.js +0 -334
- package/www/build/index-51f075dd.js +0 -64
- package/www/build/index-81176684.js +0 -3057
- package/www/build/p-0d29d851.entry.js +0 -1
- package/www/build/p-0e408871.entry.js +0 -1
- package/www/build/p-0ef6c549.entry.js +0 -1
- package/www/build/p-1f73a6d8.entry.js +0 -1
- package/www/build/p-20d62443.entry.js +0 -1
- package/www/build/p-3c111c2a.entry.js +0 -1
- package/www/build/p-562e2d52.entry.js +0 -1
- package/www/build/p-5eacbfc7.entry.js +0 -1
- package/www/build/p-6218514a.entry.js +0 -1
- package/www/build/p-71accd8e.entry.js +0 -1
- package/www/build/p-7a92487a.js +0 -1
- package/www/build/p-99d7ab2f.entry.js +0 -1
- package/www/build/p-9f5d707a.js +0 -1
- package/www/build/p-a8875b97.entry.js +0 -16
- package/www/build/p-d39c0372.entry.js +0 -1
- package/www/build/p-d995d9dc.entry.js +0 -1
- package/www/build/p-e2431b92.entry.js +0 -1
- package/www/build/p-edb8d2ab.entry.js +0 -1
- package/www/build/shadow-css-38a1326b.js +0 -388
- package/www/build/utils-1e801ac0.js +0 -2736
- package/www/build/utils-43f2cad8.js +0 -2736
- package/www/build/utils-a3134cfb.js +0 -109
- package/www/build/utils-e5940345.js +0 -109
- package/www/build/z-alert.entry.js +0 -15
- package/www/build/z-app-header.entry.js +0 -127
- package/www/build/z-app-switcher.entry.js +0 -25
- package/www/build/z-app-topbar.entry.js +0 -37
- package/www/build/z-aria-alert.entry.js +0 -14
- package/www/build/z-avatar.entry.js +0 -39
- package/www/build/z-body.entry.js +0 -13
- package/www/build/z-button-deprecated.entry.js +0 -34
- package/www/build/z-button-filter.entry.js +0 -45
- package/www/build/z-button-sort.entry.js +0 -50
- package/www/build/z-button.entry.js +0 -38
- package/www/build/z-candybar.entry.js +0 -15
- package/www/build/z-card.entry.js +0 -65
- package/www/build/z-carousel.entry.js +0 -20
- package/www/build/z-chip-deprecated.entry.js +0 -20
- package/www/build/z-chip.entry.js +0 -33
- package/www/build/z-combobox.entry.js +0 -166
- package/www/build/z-contextual-menu.entry.js +0 -47
- package/www/build/z-cookiebar.entry.js +0 -38
- package/www/build/z-date-picker.entry.js +0 -484
- package/www/build/z-divider.entry.js +0 -22
- package/www/build/z-dragdrop-area.entry.js +0 -33
- package/www/build/z-file-upload.entry.js +0 -168
- package/www/build/z-file.entry.js +0 -44
- package/www/build/z-footer-link.entry.js +0 -15
- package/www/build/z-footer-section.entry.js +0 -19
- package/www/build/z-footer-social.entry.js +0 -15
- package/www/build/z-footer.entry.js +0 -103
- package/www/build/z-ghost-loading.entry.js +0 -15
- package/www/build/z-heading.entry.js +0 -13
- package/www/build/z-icon-package.entry.js +0 -19
- package/www/build/z-icon.entry.js +0 -24
- package/www/build/z-info-box.entry.js +0 -21
- package/www/build/z-info-reveal.entry.js +0 -60
- package/www/build/z-input-deprecated.entry.js +0 -267
- package/www/build/z-input-label.entry.js +0 -17
- package/www/build/z-input-message.entry.js +0 -20
- package/www/build/z-input.entry.js +0 -231
- package/www/build/z-link.entry.js +0 -67
- package/www/build/z-list-element.entry.js +0 -150
- package/www/build/z-list-group.entry.js +0 -50
- package/www/build/z-list.entry.js +0 -30
- package/www/build/z-logo.entry.js +0 -24
- package/www/build/z-menu-dropdown.entry.js +0 -56
- package/www/build/z-menu-section.entry.js +0 -42
- package/www/build/z-menu.entry.js +0 -106
- package/www/build/z-messages-pocket.entry.js +0 -42
- package/www/build/z-modal-login.entry.js +0 -78
- package/www/build/z-modal.entry.js +0 -32
- package/www/build/z-myz-card-alert.entry.js +0 -59
- package/www/build/z-myz-card-body.entry.js +0 -15
- package/www/build/z-myz-card-cover.entry.js +0 -18
- package/www/build/z-myz-card-dictionary.entry.js +0 -32
- package/www/build/z-myz-card-footer-sections.entry.js +0 -15
- package/www/build/z-myz-card-footer.entry.js +0 -52
- package/www/build/z-myz-card-header.entry.js +0 -35
- package/www/build/z-myz-card-icon.entry.js +0 -17
- package/www/build/z-myz-card-info.entry.js +0 -115
- package/www/build/z-myz-card-list.entry.js +0 -33
- package/www/build/z-myz-card.entry.js +0 -39
- package/www/build/z-myz-list-item.entry.js +0 -33
- package/www/build/z-myz-list.entry.js +0 -31
- package/www/build/z-myz-topbar.entry.js +0 -190
- package/www/build/z-navigation-tab-link.entry.js +0 -67
- package/www/build/z-navigation-tab.entry.js +0 -69
- package/www/build/z-navigation-tabs.entry.js +0 -122
- package/www/build/z-notification.entry.js +0 -42
- package/www/build/z-offcanvas.entry.js +0 -59
- package/www/build/z-otp.entry.js +0 -37
- package/www/build/z-pagination-bar.entry.js +0 -126
- package/www/build/z-pagination-page.entry.js +0 -21
- package/www/build/z-pagination.entry.js +0 -228
- package/www/build/z-panel-elem.entry.js +0 -26
- package/www/build/z-pocket-body.entry.js +0 -23
- package/www/build/z-pocket-header.entry.js +0 -36
- package/www/build/z-pocket-message.entry.js +0 -15
- package/www/build/z-pocket.entry.js +0 -68
- package/www/build/z-popover-deprecated.entry.js +0 -128
- package/www/build/z-popover.entry.js +0 -332
- package/www/build/z-range-picker.entry.js +0 -354
- package/www/build/z-section-title.entry.js +0 -38
- package/www/build/z-select.entry.js +0 -253
- package/www/build/z-skip-to-content.entry.js +0 -64
- package/www/build/z-slideshow.entry.js +0 -108
- package/www/build/z-status-tag.entry.js +0 -25
- package/www/build/z-stepper-item.entry.js +0 -18
- package/www/build/z-stepper.entry.js +0 -15
- package/www/build/z-table-body.entry.js +0 -20
- package/www/build/z-table-cell.entry.js +0 -32
- package/www/build/z-table-empty-box.entry.js +0 -28
- package/www/build/z-table-expanded-row.entry.js +0 -15
- package/www/build/z-table-footer.entry.js +0 -19
- package/www/build/z-table-head.entry.js +0 -19
- package/www/build/z-table-header-row.entry.js +0 -18
- package/www/build/z-table-header.entry.js +0 -81
- package/www/build/z-table-row.entry.js +0 -39
- package/www/build/z-table-sticky-footer.entry.js +0 -15
- package/www/build/z-table.entry.js +0 -78
- package/www/build/z-tag.entry.js +0 -18
- package/www/build/z-toast-notification-list.entry.js +0 -52
- package/www/build/z-toast-notification.entry.js +0 -199
- package/www/build/z-toggle-button.entry.js +0 -32
- package/www/build/z-toggle-switch.entry.js +0 -45
- package/www/build/z-tooltip-deprecated.entry.js +0 -270
- package/www/build/z-tooltip.entry.js +0 -27
- package/www/build/z-typography.entry.js +0 -25
- package/www/build/z-user-dropdown.entry.js +0 -91
- package/www/build/z-visually-hidden.entry.js +0 -15
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, e as createEvent, h, f as Host, g as getElement } from './index-81176684.js';
|
|
2
|
-
import { c as classnames } from './index-51f075dd.js';
|
|
3
|
-
import { l as Size, S as SortDirectionEnum, B as ButtonVariantEnum, c as ButtonSizeEnum, P as PopoverPositions } from './index-3ee81524.js';
|
|
4
|
-
import { a as getElementTree } from './utils-a3134cfb.js';
|
|
5
|
-
import './_commonjsHelpers-8fe71198.js';
|
|
6
|
-
import './breakpoints-c386984e.js';
|
|
7
|
-
|
|
8
|
-
const stylesCss = ":host{position:relative;display:table-cell;background-color:var(--gray50);border-bottom:var(--border-size-medium) solid var(--gray200);font-family:var(--dashboard-font);font-weight:var(--font-sb);text-align:start}.container{display:flex;align-items:flex-end}:host(.sortable){cursor:pointer}:host([padding=\"x-small\"]){padding:calc(var(--space-unit) * 0.5)}:host([padding=\"small\"]){padding:calc(var(--space-unit))}:host([padding=\"medium\"]){padding:calc(var(--space-unit) * 2)}:host([padding=\"large\"]){padding:calc(var(--space-unit) * 2.5)}:host([padding=\"special\"]){padding:0}.arrow{opacity:1;padding-left:var(--space-unit)}.popover-container{position:absolute;top:var(--space-unit);right:var(--space-unit);display:none}.popover-container z-popover{--z-popover-theme--surface:var(--gray200);position:relative;z-index:1}.popover-container.visible{display:block}:host(:hover) .popover-container{display:block}";
|
|
9
|
-
|
|
10
|
-
const ZTableHeader = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
registerInstance(this, hostRef);
|
|
13
|
-
this.sort = createEvent(this, "sort", 7);
|
|
14
|
-
/** Set padding size of cell, if special 0px padding will be set */
|
|
15
|
-
this.padding = Size.medium;
|
|
16
|
-
/** [Optional] Default sort order */
|
|
17
|
-
this.defaultSortDirection = SortDirectionEnum.asc;
|
|
18
|
-
this.sortDirection = SortDirectionEnum.none;
|
|
19
|
-
this.emitOnSort = this.emitOnSort.bind(this);
|
|
20
|
-
}
|
|
21
|
-
emitOnSort() {
|
|
22
|
-
this.sort.emit({
|
|
23
|
-
columnId: this.columnId,
|
|
24
|
-
sortDirection: this.sortDirection,
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
handleSort() {
|
|
28
|
-
if (!this.sortable) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
this.sortDirection = (() => {
|
|
32
|
-
switch (this.sortDirection) {
|
|
33
|
-
case SortDirectionEnum.asc:
|
|
34
|
-
return SortDirectionEnum.desc;
|
|
35
|
-
case SortDirectionEnum.desc:
|
|
36
|
-
return SortDirectionEnum.asc;
|
|
37
|
-
case SortDirectionEnum.none:
|
|
38
|
-
return this.defaultSortDirection;
|
|
39
|
-
default:
|
|
40
|
-
return SortDirectionEnum.none;
|
|
41
|
-
}
|
|
42
|
-
})();
|
|
43
|
-
this.emitOnSort();
|
|
44
|
-
}
|
|
45
|
-
handleMenuClick() {
|
|
46
|
-
this.popover.open = !this.popover.open;
|
|
47
|
-
}
|
|
48
|
-
handleOutsideClick(e) {
|
|
49
|
-
const tree = getElementTree(e.target);
|
|
50
|
-
const parent = tree.find((elem) => elem.nodeName.toLowerCase() === "z-popover");
|
|
51
|
-
if (!parent && this.popover) {
|
|
52
|
-
this.popover.open = false;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
handleClickHeaders(e) {
|
|
56
|
-
const { target } = e;
|
|
57
|
-
const parent = getElementTree(target).find((elem) => elem.nodeName.toLowerCase() === "z-table-header");
|
|
58
|
-
if (!this.sortable || !parent) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
const parentColumnId = parent.attributes.getNamedItem("column-id").value;
|
|
62
|
-
const isSortable = target.parentNode.sortable || target.sortable;
|
|
63
|
-
if (parentColumnId !== this.columnId && isSortable) {
|
|
64
|
-
this.sortDirection = SortDirectionEnum.none;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
componentWillRender() {
|
|
68
|
-
this.host.setAttribute("role", "columnheader");
|
|
69
|
-
}
|
|
70
|
-
render() {
|
|
71
|
-
return (h(Host, { class: classnames({
|
|
72
|
-
sortable: this.sortable,
|
|
73
|
-
}), onClick: () => this.handleSort() }, h("div", { class: 'container' }, h("slot", null), this.sortable && this.sortDirection !== SortDirectionEnum.none && (h("z-icon", { name: this.sortDirection === SortDirectionEnum.asc
|
|
74
|
-
? "arrow-up"
|
|
75
|
-
: "arrow-down", class: "arrow" }))), this.showButton && (h("div", { class: 'popover-container' }, h("z-button", { ref: (el) => (this.triggerButton = el), class: "contextual-popover-button", icon: "contextual-menu", variant: ButtonVariantEnum["tertiary"], size: ButtonSizeEnum["x-small"], onClick: () => this.handleMenuClick() }), h("z-popover", { ref: (el) => (this.popover = el), position: PopoverPositions.bottom, center: true, bindTo: this.triggerButton }, h("div", null, h("slot", { name: "contextual-menu" })))))));
|
|
76
|
-
}
|
|
77
|
-
get host() { return getElement(this); }
|
|
78
|
-
};
|
|
79
|
-
ZTableHeader.style = stylesCss;
|
|
80
|
-
|
|
81
|
-
export { ZTableHeader as z_table_header };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, e as createEvent, h, f as Host } from './index-81176684.js';
|
|
2
|
-
import { Z as ZTableRowExpandedType } from './index-3ee81524.js';
|
|
3
|
-
|
|
4
|
-
const stylesCss = "z-table-row{display:table-row;font-family:var(--font-family-sans)}z-table-row[expanded-type=\"expandable\"]:hover{cursor:pointer}z-table-row[expanded-type=\"expandable\"]>z-table-cell:first-child,z-table-row[expanded-type=\"padding\"]>z-table-cell:first-child{--z-icon-width:16px;--z-icon-height:16px;width:24px;padding-left:16px;padding-right:0px;box-sizing:border-box;text-align:center;fill:var(--gray800);user-select:none}.z-icon-placeholder{width:24px;padding-right:0px}z-table-row[expanded-type=\"expandable\"]>z-table-cell:nth-child(2),z-table-row[expanded-type=\"padding\"]>z-table-cell:nth-child(2){padding-left:8px}z-table-row[expanded-type]:hover>z-table-cell:first-child{fill:var(--myz-blue-dark)}z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table-row[expanded]+z-table-expanded-row{display:table-row}z-table-row[expanded]>z-table-cell{border-bottom:none}";
|
|
5
|
-
|
|
6
|
-
const ZTableRow = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.expand = createEvent(this, "expand", 7);
|
|
10
|
-
this.expandedType = ZTableRowExpandedType.none;
|
|
11
|
-
this.expanded = false;
|
|
12
|
-
}
|
|
13
|
-
emitOnExpand() {
|
|
14
|
-
this.expand.emit({ expanded: this.expanded });
|
|
15
|
-
}
|
|
16
|
-
handleExpand() {
|
|
17
|
-
this.expanded = !this.expanded;
|
|
18
|
-
this.emitOnExpand();
|
|
19
|
-
}
|
|
20
|
-
renderExpandButton() {
|
|
21
|
-
if (this.expandedType == ZTableRowExpandedType.expandable) {
|
|
22
|
-
return (h("z-table-cell", { style: { borderRight: "none" } }, h("z-icon", { name: this.expanded ? "minus-circled" : "plus-circled" })));
|
|
23
|
-
}
|
|
24
|
-
return (h("z-table-cell", { style: { borderRight: "none" } }, h("div", { class: "z-icon-placeholder" })));
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
return (h(Host, { role: "row", expanded: this.expanded, onClick: (event) => {
|
|
28
|
-
const contextualMenuClick = event.target.nodeName === 'Z-CONTEXTUAL-MENU';
|
|
29
|
-
const isExpandable = this.expandedType === ZTableRowExpandedType.expandable;
|
|
30
|
-
if (isExpandable && !contextualMenuClick) {
|
|
31
|
-
this.handleExpand();
|
|
32
|
-
}
|
|
33
|
-
} }, this.expandedType !== ZTableRowExpandedType.none &&
|
|
34
|
-
this.renderExpandButton(), h("slot", null)));
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
ZTableRow.style = stylesCss;
|
|
38
|
-
|
|
39
|
-
export { ZTableRow as z_table_row };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-81176684.js';
|
|
2
|
-
|
|
3
|
-
const stylesCss = ".sc-z-table-sticky-footer-h{display:block;position:sticky;left:0;padding:var(--basex2);background-color:var(--bg-white);border-style:solid;border-color:var(--gray200);border-width:var(--border-size-small) 0 var(--border-base);font-weight:var(--font-rg)}";
|
|
4
|
-
|
|
5
|
-
const ZTableStickyFooter = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
return (h("slot", null));
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
ZTableStickyFooter.style = stylesCss;
|
|
14
|
-
|
|
15
|
-
export { ZTableStickyFooter as z_table_sticky_footer };
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, e as createEvent, h, f as Host, g as getElement } from './index-81176684.js';
|
|
2
|
-
import { c as ButtonSizeEnum, B as ButtonVariantEnum } from './index-3ee81524.js';
|
|
3
|
-
import { m as mobileBreakpoint } from './breakpoints-c386984e.js';
|
|
4
|
-
|
|
5
|
-
const stylesCss = "z-table{overflow-x:auto;display:block;width:100%;font-family:var(--dashboard-font);font-weight:var(--font-rg);background-color:var(--color-white)}z-table>div.table{display:table;width:100%;border-collapse:separate}z-table>div.table-bordered>z-table-body>z-table-row>z-table-cell:not(:last-child),z-table>div.table-bordered>z-table-head>z-table-header-row>z-table-header:not(:last-child){border-right:var(--border-size-small) solid var(--bg-grey-200)}z-table>div>z-table-body>z-table-row[expandable]>z-table-cell:first-child,z-table>div>z-table-head>z-table-header-row[expandable]>z-table-header:first-child{border-right:none}z-table>div>z-table-body>z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table>div>z-table-body>z-table-row[expanded]+z-table-expanded-row{border-bottom:1px solid var(--gray200)}z-table>div.table-column-sticky>z-table-body>z-table-row>z-table-cell:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{position:sticky;left:0;box-shadow:1px 0 4px -1px rgba(66, 69, 72, 0.4);z-index:1}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{position:sticky;top:0;box-shadow:0 2px 3px -3px rgba(66, 69, 72, 0.4)}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{z-index:2}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{z-index:5}z-table-body{width:auto;background-color:var(--color-white)}z-table-empty-box{display:flex;flex-direction:column;flex-grow:1;border-bottom:var(--border-size-small) solid var(--bg-grey-200)}z-table-empty-box.bordered{border-left:var(--border-size-small) solid var(--bg-grey-200)}.error-message{margin-top:calc(var(--space-unit) * 2)}.table-content{display:flex;flex-direction:row;width:100%}.error-content{font-family:var(--dashboard-font);padding:calc(var(--space-unit) * 3);display:flex}.error-content>img{width:244px;height:188px;margin-right:calc(var(--space-unit) * 3)}@media only screen and (max-width: 768px){z-table>div.table-empty{display:none}.error-content{display:flex;flex-direction:column}.error-content>img{width:auto;height:auto}.text{padding:calc(var(--space-unit) * 3) 0}}";
|
|
6
|
-
|
|
7
|
-
const ZTable = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
this.callToAction = createEvent(this, "callToAction", 7);
|
|
11
|
-
this.callToActionTwo = createEvent(this, "callToActionTwo", 7);
|
|
12
|
-
/** Error message */
|
|
13
|
-
this.errorMessage = "Siamo spiacenti, non siamo riusciti a caricare il contenuto richiesto";
|
|
14
|
-
/** Sets table with border */
|
|
15
|
-
this.bordered = false;
|
|
16
|
-
/** Sets first column sticky */
|
|
17
|
-
this.columnSticky = false;
|
|
18
|
-
/** Sets empty table */
|
|
19
|
-
this.empty = false;
|
|
20
|
-
/** Set error status */
|
|
21
|
-
this.error = false;
|
|
22
|
-
/** Sets header sticky */
|
|
23
|
-
this.headerSticky = false;
|
|
24
|
-
/** Set message */
|
|
25
|
-
this.message = "Siamo spiacenti, al momento non sono presenti dati da visualizzare";
|
|
26
|
-
/** Set subtitle */
|
|
27
|
-
this.subtitle = "";
|
|
28
|
-
}
|
|
29
|
-
handleResize() {
|
|
30
|
-
this.isMobile = window.innerWidth <= mobileBreakpoint;
|
|
31
|
-
}
|
|
32
|
-
handleOrientationChange() {
|
|
33
|
-
this.isMobile = screen.width <= mobileBreakpoint;
|
|
34
|
-
}
|
|
35
|
-
componentWillLoad() {
|
|
36
|
-
var _a;
|
|
37
|
-
this.isMobile = window.innerWidth <= mobileBreakpoint;
|
|
38
|
-
const tableBody = this.host.querySelector('[slot="table-body"]');
|
|
39
|
-
this.hasTableBody = !!((_a = tableBody === null || tableBody === void 0 ? void 0 : tableBody.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
40
|
-
if (!!tableBody && !this.hasTableBody) {
|
|
41
|
-
tableBody.remove();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
componentWillRender() {
|
|
45
|
-
this.host.setAttribute("role", "table");
|
|
46
|
-
}
|
|
47
|
-
renderError(tableClass) {
|
|
48
|
-
const minHeight = this.lines ? `calc(40px * ${this.lines})` : "auto";
|
|
49
|
-
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-error", null, h("div", { class: "error-content", style: { minHeight } }, h("slot", { name: "error-image" }), h("div", { class: "text" }, h("z-body", { class: "error-message", level: 3, variant: "semibold" }, this.errorMessage), h("slot", { name: "error-action" }))))));
|
|
50
|
-
}
|
|
51
|
-
renderEmpty(tableClass) {
|
|
52
|
-
const buttonSize = this.isMobile
|
|
53
|
-
? ButtonSizeEnum.small
|
|
54
|
-
: ButtonSizeEnum.big;
|
|
55
|
-
const tableContentClass = `${!!this.hasTableBody ? "table-content" : ""}`;
|
|
56
|
-
if (this.hasTableBody) {
|
|
57
|
-
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" }), h("div", { class: tableContentClass }, h("slot", { name: "table-body" }), h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (h("z-button", { slot: "cta1", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (h("z-button", { slot: "cta2", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))))));
|
|
58
|
-
}
|
|
59
|
-
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (h("z-button", { slot: "cta1", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (h("z-button", { slot: "cta2", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))));
|
|
60
|
-
}
|
|
61
|
-
render() {
|
|
62
|
-
const tableClass = `table ${this.empty ? "table-empty" : ""} ${this.bordered ? "table-bordered" : ""}
|
|
63
|
-
${this.columnSticky ? "table-column-sticky" : ""}
|
|
64
|
-
${this.headerSticky ? "table-header-sticky" : ""}`;
|
|
65
|
-
if (this.error) {
|
|
66
|
-
return this.renderError(tableClass);
|
|
67
|
-
}
|
|
68
|
-
if (this.empty) {
|
|
69
|
-
return this.renderEmpty(tableClass);
|
|
70
|
-
}
|
|
71
|
-
return (h(Host, null, h("div", { class: tableClass }, h("slot", null)), h("slot", { name: "sticky-footer" })));
|
|
72
|
-
}
|
|
73
|
-
static get assetsDirs() { return ["assets"]; }
|
|
74
|
-
get host() { return getElement(this); }
|
|
75
|
-
};
|
|
76
|
-
ZTable.style = stylesCss;
|
|
77
|
-
|
|
78
|
-
export { ZTable as z_table };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, f as Host } from './index-81176684.js';
|
|
2
|
-
|
|
3
|
-
const stylesCss = ".sc-z-tag-h{--z-icon-width:14px;--z-icon-height:14px;--z-tag-text-color:var(--color-primary03);--z-tag-bg:var(--color-hover-primary);font-family:var(--font-family-sans);border-radius:var(--border-radius);padding:calc(var(--space-unit) / 2);text-transform:uppercase;display:flex;width:fit-content;height:fit-content;max-width:inherit;max-height:inherit;color:var(--z-tag-text-color);fill:var(--z-tag-text-color);background-color:var(--z-tag-bg);line-height:14px}.sc-z-tag-h>z-icon.sc-z-tag{margin-right:var(--space-unit)}.expandable.sc-z-tag-h>z-icon.sc-z-tag{margin-right:0;transition:margin-right 0.3s ease-out}.sc-z-tag-h:not(.expandable)>z-icon.sc-z-tag:not(:last-child),.expandable.sc-z-tag-h:hover>z-icon.sc-z-tag:not(:last-child){margin-right:var(--space-unit);transition:margin-right 0.3s ease-out 0s}.expandable.sc-z-tag-h>div.sc-z-tag{max-width:0;max-height:0;overflow:hidden}.expandable.sc-z-tag-h:hover>div.sc-z-tag{max-width:100%;max-height:100%}";
|
|
4
|
-
|
|
5
|
-
const ZTag = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
return (h(Host, { class: {
|
|
11
|
-
"body-5-sb": true,
|
|
12
|
-
expandable: this.expandable && !!this.icon,
|
|
13
|
-
} }, this.icon && h("z-icon", { name: this.icon }), h("div", null, h("slot", null))));
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
ZTag.style = stylesCss;
|
|
17
|
-
|
|
18
|
-
export { ZTag as z_tag };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, f as Host, g as getElement } from './index-81176684.js';
|
|
2
|
-
import { v as ToastNotificationPositionsEnum } from './index-3ee81524.js';
|
|
3
|
-
|
|
4
|
-
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);position:fixed;display:flex;flex-direction:column;flex-wrap:nowrap;z-index:10000;margin-bottom:calc(var(--space-unit) * 2);margin-top:calc(var(--space-unit) * 2)}::slotted(z-toast-notification){width:100vw}::slotted(:not(:last-child)){margin-bottom:calc(var(--space-unit) * 1)}:host(.bottom-centre),:host(.bottom-right),:host(.bottom-left){justify-content:flex-end;align-items:flex-end;bottom:0}:host(.top-left),:host(.top-right),:host(.top-centre){justify-content:flex-start;align-items:flex-start;top:0}@media only screen and (min-width: 768px){:host{margin:calc(var(--space-unit) * 3)}:host(.top-centre){justify-content:flex-start;align-items:center;top:0;left:50%;transform:translateX(-50%)}:host(.top-left){justify-content:flex-start;align-items:flex-start;top:0;left:0}:host(.top-right){justify-content:flex-start;align-items:flex-end;top:0;right:0}:host(.bottom-centre){justify-content:flex-end;align-items:center;bottom:0;left:50%;transform:translateX(-50%)}:host(.bottom-right){justify-content:flex-end;align-items:flex-end;bottom:0;right:0}:host(.bottom-left){justify-content:flex-end;align-items:flex-start;bottom:0;left:0}::slotted(z-toast-notification){width:50vw}}@media only screen and (min-width: 1366px){:host{margin:calc(var(--space-unit) * 4)}::slotted(z-toast-notification){width:33vw}}";
|
|
5
|
-
|
|
6
|
-
const ZToastNotificationList = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
/**Set the entry position of new notification in the list */
|
|
10
|
-
this.newestontop = true;
|
|
11
|
-
this.slotChangeHandler = () => {
|
|
12
|
-
const difference = Array.from(this.hostElement.children).filter((elem) => !this.notificationArray.includes(elem));
|
|
13
|
-
if (difference) {
|
|
14
|
-
difference.forEach((elem) => {
|
|
15
|
-
this.notificationArray.push(elem);
|
|
16
|
-
const newElem = elem;
|
|
17
|
-
elem.remove();
|
|
18
|
-
this.hostElement.prepend(newElem);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
watchPropNewestontop(newValue) {
|
|
24
|
-
this.hostElement.append(...this.notificationArray.reverse());
|
|
25
|
-
if (newValue) {
|
|
26
|
-
this.hostElement.shadowRoot.addEventListener("slotchange", this.slotChangeHandler);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
this.hostElement.shadowRoot.removeEventListener("slotchange", this.slotChangeHandler);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
componentWillLoad() {
|
|
33
|
-
this.newestontop && this.handleNewestOnTop();
|
|
34
|
-
}
|
|
35
|
-
handleNewestOnTop() {
|
|
36
|
-
this.notificationArray = Array.from(this.hostElement.children);
|
|
37
|
-
this.hostElement.append(...this.notificationArray.reverse());
|
|
38
|
-
this.hostElement.shadowRoot.addEventListener("slotchange", this.slotChangeHandler);
|
|
39
|
-
}
|
|
40
|
-
render() {
|
|
41
|
-
return (h(Host, { class: this.position
|
|
42
|
-
? this.position
|
|
43
|
-
: ToastNotificationPositionsEnum.topRight }, h("slot", { name: "toasts" })));
|
|
44
|
-
}
|
|
45
|
-
get hostElement() { return getElement(this); }
|
|
46
|
-
static get watchers() { return {
|
|
47
|
-
"newestontop": ["watchPropNewestontop"]
|
|
48
|
-
}; }
|
|
49
|
-
};
|
|
50
|
-
ZToastNotificationList.style = stylesCss;
|
|
51
|
-
|
|
52
|
-
export { ZToastNotificationList as z_toast_notification_list };
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, e as createEvent, h, f as Host, g as getElement } from './index-81176684.js';
|
|
2
|
-
import { u as ToastNotificationTransitionsEnum } from './index-3ee81524.js';
|
|
3
|
-
import { m as mobileBreakpoint } from './breakpoints-c386984e.js';
|
|
4
|
-
import { h as hammer } from './hammer-782a2043.js';
|
|
5
|
-
import './_commonjsHelpers-8fe71198.js';
|
|
6
|
-
|
|
7
|
-
const stylesCss = ":host{display:inline-block;min-width:200px;width:100vw}:host(.slide-in-left){animation:slideinleft 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-right){animation:slideinright 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-down){animation:slideindown 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-up){animation:slideinup 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-left){animation:slideoutleft 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-right){animation:slideoutright 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-down){animation:slideoutdown 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-up){animation:slideoutup 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}@keyframes slideinleft{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes slideinright{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes slideinup{0%{transform:translateY(100%);opacity:0}100%{transform:translateY(0);opacity:100%}}@keyframes slideindown{0%{transform:translateY(-100%);opacity:0}100%{transform:translateY(0);opacity:100%}}@keyframes slideoutleft{0%{transform:translateX(var(--percentuale));opacity:calc(100-var(--percentuale))}100%{transform:translateX(-100%);opacity:0%}}@keyframes slideoutright{0%{transform:translateX(var(--percentuale));opacity:calc(100-var(--percentuale))}100%{transform:translateX(100%);opacity:0%}}@keyframes slideoutup{0%{transform:translateY(var(--percentuale));opacity:100%}100%{transform:translateY(-100%);opacity:0}}@keyframes slideoutdown{0%{transform:translateY(var(--percentuale));opacity:100%}100%{transform:translateY(100%);opacity:0}}:host>#external-container{font-family:var(--font-family-sans);font-weight:var(--font-rg);border-radius:4px;font-size:14px;letter-spacing:0.16px;box-sizing:border-box;min-height:52px;padding:calc(var(--space-unit) * 1) calc(var(--space-unit) * 2);display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow-3)}:host>#external-container.mobile-wrapped>#icon{align-self:flex-start}:host>#external-container.several-lines-padding{padding:calc(var(--space-unit) * 2)}:host>#external-container>#flex-container{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;width:100%}:host>#external-container #text{color:var(--color-white);line-height:20px;margin-right:calc(var(--space-unit) * 2);letter-spacing:0.16px;text-align:left}:host>#external-container #text>.title{margin-right:4px;font-weight:600}:host>#external-container.mobile-wrapped #button ::slotted(z-button){margin-top:calc(var(--space-unit) * 2)}:host>#external-container #icon{cursor:pointer;fill:var(--color-white);margin-left:calc(var(--space-unit) * 2)}:host>#external-container.dark{background:var(--gray800)}:host>#external-container.light{background:var(--color-background)}:host>#external-container.light #icon,:host>#external-container.warning #text,:host>#external-container.warning #icon{fill:var(--color-icon01)}:host>#external-container.light #text,:host>#external-container.warning #text{color:var(--grey800)}:host>#external-container.accent{background:var(--color-primary01)}:host>#external-container.error{background:var(--color-error-default)}:host>#external-container.success{background:var(--color-success-default)}:host>#external-container.warning{background:var(--color-warning-default)}@media only screen and (min-width: 768px){:host{width:unset;max-width:50vw}:host>#external-container>#flex-container{flex-wrap:nowrap}:host>#external-container #text{width:100%}}@media only screen and (min-width: 1366px){:host{width:unset;max-width:33vw}}";
|
|
8
|
-
|
|
9
|
-
const ZToastNotification = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
registerInstance(this, hostRef);
|
|
12
|
-
this.toastClose = createEvent(this, "toastClose", 7);
|
|
13
|
-
/** toast notification autoclose can be paused */
|
|
14
|
-
this.pauseonfocusloss = true;
|
|
15
|
-
/** toast notification can be draggable*/
|
|
16
|
-
this.isdraggable = true;
|
|
17
|
-
/** toast notification draggable percentage*/
|
|
18
|
-
this.draggablepercentage = 80;
|
|
19
|
-
this.isCloseEventCalled = false;
|
|
20
|
-
this.visibilityChangeEventHandler = () => {
|
|
21
|
-
if (document.visibilityState === "hidden") {
|
|
22
|
-
this.timeoutHandle && this.onBlur();
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
this.elapsedTime && this.onFocus();
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
watchPropIsdraggable(newValue) {
|
|
30
|
-
if (newValue) {
|
|
31
|
-
this.sliderManager.get('pan').set({ enable: true });
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
this.sliderManager.get('pan').set({ enable: false });
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
watchPropAutoclose(newValue) {
|
|
38
|
-
clearTimeout(this.timeoutHandle);
|
|
39
|
-
this.startClosingTimeout(newValue);
|
|
40
|
-
}
|
|
41
|
-
watchPropPauseonfocusloss(newValue) {
|
|
42
|
-
if (this.autoclose) {
|
|
43
|
-
if (newValue) {
|
|
44
|
-
document.addEventListener("visibilitychange", this.visibilityChangeEventHandler);
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
document.removeEventListener("visibilitychange", this.visibilityChangeEventHandler);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
emitToastClose(cssClass) {
|
|
52
|
-
this.timeoutHandle = null;
|
|
53
|
-
this.elapsedTime = null;
|
|
54
|
-
this.hostElement.classList.add(cssClass);
|
|
55
|
-
this.toastClose.emit();
|
|
56
|
-
}
|
|
57
|
-
componentWillLoad() {
|
|
58
|
-
this.isMobile = window.innerWidth <= mobileBreakpoint;
|
|
59
|
-
this.validateAutoclose();
|
|
60
|
-
}
|
|
61
|
-
componentDidLoad() {
|
|
62
|
-
this.isTextLong = this.detectWrap() || this.toastText.offsetHeight > 20;
|
|
63
|
-
this.startTime = Date.now();
|
|
64
|
-
if (this.autoclose && this.pauseonfocusloss) {
|
|
65
|
-
document.addEventListener("visibilitychange", this.visibilityChangeEventHandler);
|
|
66
|
-
}
|
|
67
|
-
this.isdraggable && this.handleSlideOutDragAnimation();
|
|
68
|
-
this.percentage = 0;
|
|
69
|
-
}
|
|
70
|
-
validateAutoclose() {
|
|
71
|
-
if (!this.autoclose && !this.closebutton)
|
|
72
|
-
console.error("At least one between autoclose and closebutton must be present");
|
|
73
|
-
}
|
|
74
|
-
mapSlideOutClass() {
|
|
75
|
-
switch (this.transition) {
|
|
76
|
-
case ToastNotificationTransitionsEnum.slideInDown:
|
|
77
|
-
return ToastNotificationTransitionsEnum.slideOutUp;
|
|
78
|
-
case ToastNotificationTransitionsEnum.slideInUp:
|
|
79
|
-
return ToastNotificationTransitionsEnum.slideOutDown;
|
|
80
|
-
case ToastNotificationTransitionsEnum.slideInLeft:
|
|
81
|
-
return ToastNotificationTransitionsEnum.slideOutRight;
|
|
82
|
-
case ToastNotificationTransitionsEnum.slideInRight:
|
|
83
|
-
return ToastNotificationTransitionsEnum.slideOutLeft;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
calculateDraggedPercentage(e) {
|
|
87
|
-
const bounding = this.hostElement.getBoundingClientRect();
|
|
88
|
-
return Math.round((100 * e.deltaX) / bounding.width);
|
|
89
|
-
}
|
|
90
|
-
handleSlideOutDragAnimation() {
|
|
91
|
-
this.sliderManager = new hammer(this.hostElement);
|
|
92
|
-
this.sliderManager.get("pan").set({
|
|
93
|
-
direction: hammer.DIRECTION_HORIZONTAL,
|
|
94
|
-
});
|
|
95
|
-
this.sliderManager.on("pan", (e) => {
|
|
96
|
-
this.percentage = this.calculateDraggedPercentage(e);
|
|
97
|
-
this.hostElement.style.transition = "none";
|
|
98
|
-
this.hostElement.classList.remove(this.transition);
|
|
99
|
-
const translateObj = {
|
|
100
|
-
translate: "translateX( " + this.percentage + "% )",
|
|
101
|
-
translateBack: "translateX(0)",
|
|
102
|
-
};
|
|
103
|
-
this.hostElement.style.opacity = `${100 - Math.abs(this.percentage)}%`;
|
|
104
|
-
if (e.eventType === hammer.DIRECTION_LEFT ||
|
|
105
|
-
e.eventType === hammer.DIRECTION_RIGHT) {
|
|
106
|
-
this.hostElement.style.transform = translateObj.translate;
|
|
107
|
-
if (Math.abs(this.percentage) > this.draggablepercentage &&
|
|
108
|
-
!this.isCloseEventCalled) {
|
|
109
|
-
this.isCloseEventCalled = true;
|
|
110
|
-
this.emitToastClose(e.direction === hammer.DIRECTION_LEFT
|
|
111
|
-
? "slide-out-left"
|
|
112
|
-
: "slide-out-right");
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
if (e.isFinal && Math.abs(this.percentage) < this.draggablepercentage) {
|
|
116
|
-
this.hostElement.style.transform = translateObj.translateBack;
|
|
117
|
-
this.hostElement.style.transition = "all 1s";
|
|
118
|
-
this.hostElement.style.opacity = `100%`;
|
|
119
|
-
this.percentage = 0;
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
onFocus() {
|
|
124
|
-
let time;
|
|
125
|
-
time = this.autoclose;
|
|
126
|
-
if (this.elapsedTime) {
|
|
127
|
-
time = this.autoclose - this.elapsedTime;
|
|
128
|
-
}
|
|
129
|
-
if (time > 0) {
|
|
130
|
-
this.startClosingTimeout(time);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
onBlur() {
|
|
134
|
-
this.elapsedTime = Date.now() - this.startTime;
|
|
135
|
-
clearTimeout(this.timeoutHandle);
|
|
136
|
-
}
|
|
137
|
-
startClosingTimeout(time) {
|
|
138
|
-
this.timeoutHandle = setTimeout(() => this.emitToastClose(this.mapSlideOutClass()), time);
|
|
139
|
-
}
|
|
140
|
-
detectWrap() {
|
|
141
|
-
const parentWidth = this.container.offsetWidth;
|
|
142
|
-
const children = this.container.children;
|
|
143
|
-
let totalWidth = 0;
|
|
144
|
-
for (let i = 0; i < children.length; i++) {
|
|
145
|
-
totalWidth += children[i].offsetWidth;
|
|
146
|
-
}
|
|
147
|
-
return totalWidth > parentWidth;
|
|
148
|
-
}
|
|
149
|
-
renderText() {
|
|
150
|
-
return (h("div", { id: "text", ref: (el) => (this.toastText = el) }, h("span", { class: "title" }, this.heading), h("span", { class: "message" }, this.message)));
|
|
151
|
-
}
|
|
152
|
-
renderButton() {
|
|
153
|
-
return (h("div", { id: "button" }, h("slot", { name: "button" })));
|
|
154
|
-
}
|
|
155
|
-
renderCloseIcon() {
|
|
156
|
-
return (this.closebutton && (h("div", { id: "icon" }, h("z-icon", { tabIndex: 0, name: "multiply-circled", width: 15, height: 15, onClick: () => this.emitToastClose(this.mapSlideOutClass()), onKeyPress: (e) => {
|
|
157
|
-
if (e.keyCode == 32 || e.keyCode == 13) {
|
|
158
|
-
e.preventDefault();
|
|
159
|
-
this.emitToastClose(this.mapSlideOutClass());
|
|
160
|
-
}
|
|
161
|
-
} }))));
|
|
162
|
-
}
|
|
163
|
-
renderContainer() {
|
|
164
|
-
return (h("div", { tabIndex: 0, id: "external-container", class: {
|
|
165
|
-
[this.type]: !!this.type,
|
|
166
|
-
"several-lines-padding": this.isTextLong,
|
|
167
|
-
}, ref: (el) => (this.container = el) }, this.renderText(), this.renderButton(), this.renderCloseIcon()));
|
|
168
|
-
}
|
|
169
|
-
renderMobileContainer() {
|
|
170
|
-
return (h("div", { id: "external-container", class: {
|
|
171
|
-
[this.type]: !!this.type,
|
|
172
|
-
"several-lines-padding": this.isTextLong,
|
|
173
|
-
"mobile-wrapped": this.isTextLong,
|
|
174
|
-
} }, h("div", { id: "flex-container", ref: (el) => (this.container = el) }, this.renderText(), this.renderButton()), this.renderCloseIcon()));
|
|
175
|
-
}
|
|
176
|
-
render() {
|
|
177
|
-
return (h(Host, { style: {
|
|
178
|
-
["--percentuale"]: `${this.percentage}%`,
|
|
179
|
-
}, class: this.transition
|
|
180
|
-
? this.transition
|
|
181
|
-
: ToastNotificationTransitionsEnum.slideInDown, onAnimationEnd: (e) => {
|
|
182
|
-
if (this.autoclose && e.animationName.includes("slidein")) {
|
|
183
|
-
this.startClosingTimeout(this.autoclose);
|
|
184
|
-
}
|
|
185
|
-
if (e.animationName.includes("slideout")) {
|
|
186
|
-
this.hostElement.parentNode.removeChild(this.hostElement);
|
|
187
|
-
}
|
|
188
|
-
} }, this.isMobile ? this.renderMobileContainer() : this.renderContainer()));
|
|
189
|
-
}
|
|
190
|
-
get hostElement() { return getElement(this); }
|
|
191
|
-
static get watchers() { return {
|
|
192
|
-
"isdraggable": ["watchPropIsdraggable"],
|
|
193
|
-
"autoclose": ["watchPropAutoclose"],
|
|
194
|
-
"pauseonfocusloss": ["watchPropPauseonfocusloss"]
|
|
195
|
-
}; }
|
|
196
|
-
};
|
|
197
|
-
ZToastNotification.style = stylesCss;
|
|
198
|
-
|
|
199
|
-
export { ZToastNotification as z_toast_notification };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, e as createEvent, h } from './index-81176684.js';
|
|
2
|
-
|
|
3
|
-
const stylesCss = "button{font-family:var(--dashboard-font);font-weight:var(--font-sb);height:36px;border:var(--border-size-medium) solid;border-color:transparent;border-radius:var(--border-radius);color:var(--myz-blue);fill:var(--myz-blue);background-color:var(--bg-white);box-shadow:0px 0px 4px 0px rgba(0, 0, 0, 0.2);text-transform:uppercase;font-size:14px;outline:none;padding-left:0px;padding-right:calc(var(--space-unit) * 2);transition:all 200ms linear;cursor:pointer}button::-moz-focus-inner{border:0}button:hover{color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}button:focus{border-color:var(--myz-blue);color:var(--myz-blue);fill:var(--myz-blue);box-shadow:0px 0px 2px 2px var(--accent-dark)}button:active{border-color:var(--myz-blue-light);color:var(--myz-blue-light);fill:var(--myz-blue-light);box-shadow:0px 2px 4px 0px rgba(0, 0, 0, 0.4)}button:disabled{color:var(--text-grey-700);fill:var(--text-grey-700)}z-icon{display:inline-block;margin:0 var(--space-unit) 0 calc(var(--space-unit) * 2);transform:rotate(360deg);transition:all 200ms linear}button.isopen{top:-20px}button.avoid-clicks{pointer-events:none}";
|
|
4
|
-
|
|
5
|
-
const ZToggleButton = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.toggleClick = createEvent(this, "toggleClick", 7);
|
|
9
|
-
/** disabled status flag (optional) */
|
|
10
|
-
this.isdisabled = false;
|
|
11
|
-
/** open by default (optional) */
|
|
12
|
-
this.opened = false;
|
|
13
|
-
}
|
|
14
|
-
emitToggleClick() {
|
|
15
|
-
if (this.isdisabled)
|
|
16
|
-
return;
|
|
17
|
-
this.opened = !this.opened;
|
|
18
|
-
this.toggleClick.emit(this.opened);
|
|
19
|
-
}
|
|
20
|
-
retrieveButtonClass() {
|
|
21
|
-
let className = this.opened && "isopen";
|
|
22
|
-
if (this.avoidclick)
|
|
23
|
-
className = className + " avoid-clicks";
|
|
24
|
-
return className;
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
return (h("button", { tabindex: this.avoidclick ? "-1" : "0", class: this.retrieveButtonClass(), disabled: this.isdisabled, onClick: () => this.emitToggleClick() }, h("z-icon", { name: this.opened ? "chevron-down" : "chevron-up", width: 16, height: 16 }), this.label));
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
ZToggleButton.style = stylesCss;
|
|
31
|
-
|
|
32
|
-
export { ZToggleButton as z_toggle_button };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, e as createEvent, h } from './index-81176684.js';
|
|
2
|
-
import { r as randomId } from './utils-a3134cfb.js';
|
|
3
|
-
import { n as LabelPositions } from './index-3ee81524.js';
|
|
4
|
-
import './breakpoints-c386984e.js';
|
|
5
|
-
|
|
6
|
-
const stylesCss = ".sc-z-toggle-switch-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:inline-flex;position:relative}label.sc-z-toggle-switch{display:flex;align-items:center;flex-direction:row;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{letter-spacing:0;color:var(--color-text01)}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{display:flex;align-items:center}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{top:1px;left:1px;height:18px;width:calc(var(--space-unit) * 4);border-radius:var(--space-unit);color:var(--gray500);background-color:var(--gray500);position:relative;cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){outline:none;box-shadow:var(--shadow-focus-primary)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{top:1px;left:1px;position:absolute;display:flex;align-items:center;justify-content:center;margin:0;height:calc(var(--space-unit) * 2);width:calc(var(--space-unit) * 2);border-radius:7px;background-color:var(--color-white);box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type=\"checkbox\"].sc-z-toggle-switch{position:absolute;opacity:0;z-index:-1;pointer-events:none}";
|
|
7
|
-
|
|
8
|
-
const ZToggleSwitch = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.toggleClick = createEvent(this, "toggleClick", 7);
|
|
12
|
-
this.disabled = false;
|
|
13
|
-
this.labelPosition = LabelPositions.left;
|
|
14
|
-
this.checked = false;
|
|
15
|
-
this.htmlid = `toggle-switch-id-${randomId()}`;
|
|
16
|
-
}
|
|
17
|
-
emitToggleClick() {
|
|
18
|
-
this.toggleClick.emit({
|
|
19
|
-
id: this.htmlid,
|
|
20
|
-
checked: this.checked,
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
handleClick(ev) {
|
|
24
|
-
if (this.disabled)
|
|
25
|
-
return;
|
|
26
|
-
this.checked = ev.target.checked;
|
|
27
|
-
this.emitToggleClick();
|
|
28
|
-
}
|
|
29
|
-
render() {
|
|
30
|
-
return [
|
|
31
|
-
h("input", { id: this.htmlid, type: "checkbox", checked: this.checked, disabled: this.disabled, onChange: this.handleClick.bind(this) }),
|
|
32
|
-
h("label", { htmlFor: this.htmlid, class: {
|
|
33
|
-
[this.labelPosition]: true,
|
|
34
|
-
disabled: this.disabled,
|
|
35
|
-
} }, h("span", null, h("slot", null)), h("span", { class: {
|
|
36
|
-
container: true,
|
|
37
|
-
disabled: this.disabled,
|
|
38
|
-
checked: this.checked,
|
|
39
|
-
} }, h("span", { class: "circle" }, this.checked && (h("z-icon", { width: 12, height: 12, name: "checkmark" }))))),
|
|
40
|
-
];
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
ZToggleSwitch.style = stylesCss;
|
|
44
|
-
|
|
45
|
-
export { ZToggleSwitch as z_toggle_switch };
|