@zanichelli/albe-web-components 13.0.0 → 13.1.0-rc2
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 +3 -5
- package/dist/cjs/icons-be077181.js +864 -0
- package/dist/cjs/icons-be077181.js.map +1 -0
- package/dist/cjs/index-0a7baee3.js +24 -0
- package/dist/cjs/index-0a7baee3.js.map +1 -0
- package/dist/cjs/index-37180b8d.js +24 -0
- package/dist/cjs/index-37180b8d.js.map +1 -0
- package/dist/cjs/index-4468a6b7.js +24 -0
- package/dist/cjs/index-4468a6b7.js.map +1 -0
- package/dist/cjs/index-715aa3be.js +21 -0
- package/dist/cjs/index-715aa3be.js.map +1 -0
- package/dist/cjs/index-7a1c32d4.js +30 -0
- package/dist/cjs/index-7a1c32d4.js.map +1 -0
- package/dist/cjs/index-7f3e61f0.js +82 -0
- package/dist/cjs/index-7f3e61f0.js.map +1 -0
- package/dist/cjs/index-96c2bc8f.js +25 -0
- package/dist/cjs/index-96c2bc8f.js.map +1 -0
- package/dist/cjs/index-a30259f3.js +37 -0
- package/dist/cjs/index-a30259f3.js.map +1 -0
- package/dist/cjs/index-a7aedd7c.js +20 -0
- package/dist/cjs/index-a7aedd7c.js.map +1 -0
- package/dist/cjs/index-d669dfd0.js +43 -0
- package/dist/cjs/index-d669dfd0.js.map +1 -0
- package/dist/cjs/index-dc60bee7.js +56 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +20 -871
- package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
- package/dist/cjs/z-contextual-menu.cjs.entry.js +44 -0
- package/dist/cjs/z-contextual-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
- package/dist/cjs/z-file-upload.cjs.entry.js +25 -14
- package/dist/cjs/z-file-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
- package/dist/cjs/z-link.cjs.entry.js +1 -1
- package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +72 -0
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js.map +1 -0
- package/dist/cjs/z-navigation-tab.cjs.entry.js +69 -0
- package/dist/cjs/z-navigation-tab.cjs.entry.js.map +1 -0
- package/dist/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/cjs/z-pocket-message.cjs.entry.js +1 -1
- package/dist/cjs/z-pocket_3.cjs.entry.js +3 -3
- package/dist/cjs/z-popover.cjs.entry.js +1 -1
- package/dist/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
- package/dist/cjs/z-table-body.cjs.entry.js +12 -0
- package/dist/cjs/z-table-body.cjs.entry.js.map +1 -0
- package/dist/cjs/z-table-cell.cjs.entry.js +13 -0
- package/dist/cjs/z-table-cell.cjs.entry.js.map +1 -0
- package/dist/cjs/z-table-deprecated.cjs.entry.js +92 -0
- package/dist/cjs/z-table-deprecated.cjs.entry.js.map +1 -0
- package/dist/cjs/z-table-empty-box.cjs.entry.js +12 -0
- package/dist/cjs/z-table-empty-box.cjs.entry.js.map +1 -0
- package/dist/cjs/z-table-expanded-row.cjs.entry.js +12 -0
- package/dist/cjs/z-table-expanded-row.cjs.entry.js.map +1 -0
- package/dist/cjs/z-table-footer.cjs.entry.js +12 -0
- package/dist/cjs/z-table-footer.cjs.entry.js.map +1 -0
- package/dist/cjs/z-table-head.cjs.entry.js +12 -0
- package/dist/cjs/z-table-head.cjs.entry.js.map +1 -0
- package/dist/cjs/z-table-header-row.cjs.entry.js +12 -0
- package/dist/cjs/z-table-header-row.cjs.entry.js.map +1 -0
- package/dist/cjs/z-table-header.cjs.entry.js +15 -0
- package/dist/cjs/z-table-header.cjs.entry.js.map +1 -0
- package/dist/cjs/z-table-row.cjs.entry.js +13 -0
- package/dist/cjs/z-table-row.cjs.entry.js.map +1 -0
- package/dist/cjs/z-table-sticky-footer.cjs.entry.js +12 -0
- package/dist/cjs/z-table-sticky-footer.cjs.entry.js.map +1 -0
- package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +14 -0
- package/dist/collection/components/file-upload/z-file-upload/index.js +63 -13
- package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -1
- package/dist/collection/components/file-upload/z-file-upload/styles.css +12 -0
- package/dist/collection/components/inputs/z-searchbar/index.js +1 -3
- package/dist/collection/components/inputs/z-searchbar/index.js.map +1 -1
- package/dist/collection/components/inputs/z-searchbar/styles.css +2 -5
- package/dist/collection/components/list/z-list-element/index.js +26 -1
- package/dist/collection/components/list/z-list-element/index.js.map +1 -1
- package/dist/collection/components/list/z-list-element/styles.css +37 -12
- package/dist/collection/components/z-contextual-menu/index.js +123 -0
- package/dist/collection/components/z-contextual-menu/index.js.map +1 -0
- package/dist/collection/components/z-contextual-menu/index.spec.js +74 -0
- package/dist/collection/components/z-contextual-menu/index.spec.js.map +1 -0
- package/dist/collection/components/z-contextual-menu/styles.css +60 -0
- package/dist/collection/components/z-contextual-menu/test.e2e.js +11 -0
- package/dist/collection/components/z-contextual-menu/test.e2e.js.map +1 -0
- package/dist/collection/components/z-cover-hero/index.js +2 -2
- package/dist/collection/components/z-divider/index.js +1 -1
- package/dist/collection/components/z-ghost-loading/index.js +1 -1
- package/dist/collection/components/z-info-reveal/index.js +1 -1
- package/dist/collection/components/z-offcanvas/index.js +1 -1
- package/dist/collection/components/z-offcanvas/styles.css +1 -1
- package/dist/collection/components/z-popover/index.js +1 -1
- package/dist/collection/components/z-section-title/index.js +1 -1
- package/dist/collection/components/z-skip-to-content/index.js +1 -1
- package/dist/collection/components/z-tag/index.js +2 -2
- package/dist/collection/components/z-visually-hidden/index.js +1 -1
- package/dist/collection/deprecated/navigation-tab.css +138 -0
- package/dist/collection/deprecated/z-link/index.js +1 -1
- package/dist/collection/deprecated/z-navigation-tab/index.js +286 -0
- package/dist/collection/deprecated/z-navigation-tab/index.js.map +1 -0
- package/dist/collection/deprecated/z-navigation-tab-link/index.js +321 -0
- package/dist/collection/deprecated/z-navigation-tab-link/index.js.map +1 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-body/index.js +27 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-body/index.js.map +1 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-body/index.spec.js +21 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-body/index.spec.js.map +1 -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 +85 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-cell/index.js.map +1 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-cell/index.spec.js +50 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-cell/index.spec.js.map +1 -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 +362 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-deprecated/index.js.map +1 -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 +74 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-empty-box/index.js.map +1 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-empty-box/index.spec.js +46 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-empty-box/index.spec.js.map +1 -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 +46 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-expanded-row/index.js.map +1 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-expanded-row/index.spec.js +13 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-expanded-row/index.spec.js.map +1 -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 +26 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-footer/index.js.map +1 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-footer/index.spec.js +23 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-footer/index.spec.js.map +1 -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 +26 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-head/index.js.map +1 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-head/index.spec.js +23 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-head/index.spec.js.map +1 -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 +227 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-header/index.js.map +1 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-header/index.spec.js +227 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-header/index.spec.js.map +1 -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 +48 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-header-row/index.js.map +1 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-header-row/index.spec.js +28 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-header-row/index.spec.js.map +1 -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 +96 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-row/index.js.map +1 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-row/index.spec.js +23 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-row/index.spec.js.map +1 -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 +23 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/index.js.map +1 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/index.spec.js +16 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/index.spec.js.map +1 -0
- package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/styles.css +11 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +1 -1
- package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +1 -1
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +1 -1
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
- package/dist/components/index.d.ts +28 -0
- package/dist/components/index.js +14 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/index13.js +10 -2
- package/dist/components/index13.js.map +1 -1
- package/dist/components/index16.js +1 -1
- package/dist/components/index17.js +1 -1
- package/dist/components/index18.js +1 -1
- package/dist/components/index19.js +1 -1
- package/dist/components/index21.js +2 -2
- package/dist/components/index21.js.map +1 -1
- package/dist/components/index22.js +1 -1
- package/dist/components/index23.js +1 -1
- package/dist/components/index24.js +1 -1
- package/dist/components/index25.js +1 -1
- package/dist/components/index26.js +3 -3
- package/dist/components/index26.js.map +1 -1
- package/dist/components/index27.js +37 -17
- package/dist/components/index27.js.map +1 -1
- package/dist/components/index28.js +45 -0
- package/dist/components/index28.js.map +1 -0
- package/dist/components/index29.js +120 -0
- package/dist/components/index29.js.map +1 -0
- package/dist/components/index3.js +1 -1
- package/dist/components/index30.js +46 -0
- package/dist/components/index30.js.map +1 -0
- package/dist/components/index6.js +1 -1
- package/dist/components/index8.js +1 -1
- package/dist/components/z-app-header.js +1 -1
- package/dist/components/z-contextual-menu.d.ts +11 -0
- package/dist/components/z-contextual-menu.js +98 -0
- package/dist/components/z-contextual-menu.js.map +1 -0
- package/dist/components/z-cover-hero.js +2 -2
- package/dist/components/z-file-upload.js +28 -15
- package/dist/components/z-file-upload.js.map +1 -1
- package/dist/components/z-info-reveal.js +1 -1
- package/dist/components/z-link.js +1 -1
- package/dist/components/z-messages-pocket.js +1 -1
- package/dist/components/z-myz-card-alert.js +1 -1
- package/dist/components/z-myz-card-dictionary.js +1 -1
- package/dist/components/z-myz-card-footer-sections.js +1 -1
- package/dist/components/z-myz-card-footer.js +1 -1
- package/dist/components/z-myz-card-icon.js +1 -1
- package/dist/components/z-myz-card-info.js +1 -1
- package/dist/components/z-myz-card-list.js +1 -1
- package/dist/components/z-myz-list.js +1 -1
- package/dist/components/z-navigation-tab-link.d.ts +11 -0
- package/dist/components/z-navigation-tab-link.js +105 -0
- package/dist/components/z-navigation-tab-link.js.map +1 -0
- package/dist/components/z-navigation-tab.d.ts +11 -0
- package/dist/components/z-navigation-tab.js +100 -0
- package/dist/components/z-navigation-tab.js.map +1 -0
- package/dist/components/z-otp.js +2 -2
- package/dist/components/z-pocket-message.js +1 -1
- package/dist/components/z-section-title.js +1 -1
- package/dist/components/z-skip-to-content.js +1 -1
- package/dist/components/z-table-body.d.ts +11 -0
- package/dist/components/z-table-body.js +40 -0
- package/dist/components/z-table-body.js.map +1 -0
- package/dist/components/z-table-cell.d.ts +11 -0
- package/dist/components/z-table-cell.js +8 -0
- package/dist/components/z-table-cell.js.map +1 -0
- package/dist/components/z-table-deprecated.d.ts +11 -0
- package/dist/components/z-table-deprecated.js +127 -0
- package/dist/components/z-table-deprecated.js.map +1 -0
- package/dist/components/z-table-empty-box.d.ts +11 -0
- package/dist/components/z-table-empty-box.js +8 -0
- package/dist/components/z-table-empty-box.js.map +1 -0
- package/dist/components/z-table-expanded-row.d.ts +11 -0
- package/dist/components/z-table-expanded-row.js +39 -0
- package/dist/components/z-table-expanded-row.js.map +1 -0
- package/dist/components/z-table-footer.d.ts +11 -0
- package/dist/components/z-table-footer.js +39 -0
- package/dist/components/z-table-footer.js.map +1 -0
- package/dist/components/z-table-head.d.ts +11 -0
- package/dist/components/z-table-head.js +39 -0
- package/dist/components/z-table-head.js.map +1 -0
- package/dist/components/z-table-header-row.d.ts +11 -0
- package/dist/components/z-table-header-row.js +65 -0
- package/dist/components/z-table-header-row.js.map +1 -0
- package/dist/components/z-table-header.d.ts +11 -0
- package/dist/components/z-table-header.js +8 -0
- package/dist/components/z-table-header.js.map +1 -0
- package/dist/components/z-table-row.d.ts +11 -0
- package/dist/components/z-table-row.js +79 -0
- package/dist/components/z-table-row.js.map +1 -0
- package/dist/components/z-table-sticky-footer.d.ts +11 -0
- package/dist/components/z-table-sticky-footer.js +35 -0
- package/dist/components/z-table-sticky-footer.js.map +1 -0
- package/dist/components/z-tag.js +1 -1
- package/dist/components/z-visually-hidden.js +1 -1
- package/dist/esm/icons-f212e30c.js +862 -0
- package/dist/esm/icons-f212e30c.js.map +1 -0
- package/dist/esm/index-0c3f6c0f.js +80 -0
- package/dist/esm/index-0c3f6c0f.js.map +1 -0
- package/dist/esm/index-1ad3694a.js +19 -0
- package/dist/esm/index-1ad3694a.js.map +1 -0
- package/dist/esm/index-42dcef4f.js +41 -0
- package/dist/esm/index-42dcef4f.js.map +1 -0
- package/dist/esm/index-55b38815.js +18 -0
- package/dist/esm/index-55b38815.js.map +1 -0
- package/dist/esm/index-5b6bb2e2.js +28 -0
- package/dist/esm/index-5b6bb2e2.js.map +1 -0
- package/dist/esm/index-659b7228.js +35 -0
- package/dist/esm/index-659b7228.js.map +1 -0
- package/dist/esm/index-73ab3b9b.js +22 -0
- package/dist/esm/index-73ab3b9b.js.map +1 -0
- package/dist/esm/index-754a9620.js +22 -0
- package/dist/esm/index-754a9620.js.map +1 -0
- package/dist/esm/index-829d5a8b.js +23 -0
- package/dist/esm/index-829d5a8b.js.map +1 -0
- package/dist/esm/index-c3277075.js +22 -0
- package/dist/esm/index-c3277075.js.map +1 -0
- package/dist/esm/index-f16bc2ca.js +56 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-alert.entry.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +17 -868
- package/dist/esm/z-app-header_12.entry.js.map +1 -1
- package/dist/esm/z-contextual-menu.entry.js +40 -0
- package/dist/esm/z-contextual-menu.entry.js.map +1 -0
- package/dist/esm/z-cover-hero.entry.js +2 -2
- package/dist/esm/z-file-upload.entry.js +25 -14
- package/dist/esm/z-file-upload.entry.js.map +1 -1
- package/dist/esm/z-ghost-loading.entry.js +1 -1
- package/dist/esm/z-info-reveal.entry.js +1 -1
- package/dist/esm/z-link.entry.js +1 -1
- package/dist/esm/z-messages-pocket.entry.js +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +1 -1
- package/dist/esm/z-myz-card-list.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +4 -4
- package/dist/esm/z-myz-list.entry.js +1 -1
- package/dist/esm/z-navigation-tab-link.entry.js +68 -0
- package/dist/esm/z-navigation-tab-link.entry.js.map +1 -0
- package/dist/esm/z-navigation-tab.entry.js +65 -0
- package/dist/esm/z-navigation-tab.entry.js.map +1 -0
- package/dist/esm/z-otp.entry.js +2 -2
- package/dist/esm/z-pocket-message.entry.js +1 -1
- package/dist/esm/z-pocket_3.entry.js +3 -3
- package/dist/esm/z-popover.entry.js +1 -1
- package/dist/esm/z-section-title.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +1 -1
- package/dist/esm/z-table-body.entry.js +4 -0
- package/dist/esm/z-table-body.entry.js.map +1 -0
- package/dist/esm/z-table-cell.entry.js +5 -0
- package/dist/esm/z-table-cell.entry.js.map +1 -0
- package/dist/esm/z-table-deprecated.entry.js +88 -0
- package/dist/esm/z-table-deprecated.entry.js.map +1 -0
- package/dist/esm/z-table-empty-box.entry.js +4 -0
- package/dist/esm/z-table-empty-box.entry.js.map +1 -0
- package/dist/esm/z-table-expanded-row.entry.js +4 -0
- package/dist/esm/z-table-expanded-row.entry.js.map +1 -0
- package/dist/esm/z-table-footer.entry.js +4 -0
- package/dist/esm/z-table-footer.entry.js.map +1 -0
- package/dist/esm/z-table-head.entry.js +4 -0
- package/dist/esm/z-table-head.entry.js.map +1 -0
- package/dist/esm/z-table-header-row.entry.js +4 -0
- package/dist/esm/z-table-header-row.entry.js.map +1 -0
- package/dist/esm/z-table-header.entry.js +7 -0
- package/dist/esm/z-table-header.entry.js.map +1 -0
- package/dist/esm/z-table-row.entry.js +5 -0
- package/dist/esm/z-table-row.entry.js.map +1 -0
- package/dist/esm/z-table-sticky-footer.entry.js +4 -0
- package/dist/esm/z-table-sticky-footer.entry.js.map +1 -0
- package/dist/esm/z-visually-hidden.entry.js +1 -1
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +5 -0
- package/dist/types/components/inputs/z-searchbar/index.d.ts +0 -2
- package/dist/types/components/list/z-list-element/index.d.ts +5 -0
- package/dist/types/components/z-contextual-menu/index.d.ts +26 -0
- package/dist/types/components.d.ts +897 -10
- 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/web-components-library/p-011a7536.js +2 -0
- package/dist/web-components-library/p-011a7536.js.map +1 -0
- package/{www/build/p-04755b76.entry.js → dist/web-components-library/p-10c29fb4.entry.js} +2 -2
- package/dist/web-components-library/p-1ff016c2.entry.js +2 -0
- package/dist/web-components-library/p-1ff016c2.entry.js.map +1 -0
- package/dist/web-components-library/{p-942e5126.entry.js → p-210fbe0f.entry.js} +2 -2
- package/dist/web-components-library/p-2731d501.entry.js +2 -0
- package/dist/web-components-library/p-2731d501.entry.js.map +1 -0
- package/dist/web-components-library/p-28c6bb97.entry.js +2 -0
- package/dist/web-components-library/p-28c6bb97.entry.js.map +1 -0
- package/dist/web-components-library/{p-6edd5dbe.entry.js → p-2f72475d.entry.js} +2 -2
- package/dist/web-components-library/p-3441cb4e.entry.js +2 -0
- package/dist/web-components-library/p-3441cb4e.entry.js.map +1 -0
- package/dist/web-components-library/p-356aac96.js +2 -0
- package/dist/web-components-library/p-356aac96.js.map +1 -0
- package/dist/web-components-library/{p-24ab494d.entry.js → p-378b2bbf.entry.js} +2 -2
- package/{www/build/p-d1f8ca38.entry.js → dist/web-components-library/p-38c63f28.entry.js} +2 -2
- package/dist/web-components-library/{p-8d81a5c8.entry.js → p-402bd7f6.entry.js} +2 -2
- package/dist/web-components-library/p-40f68d35.entry.js +2 -0
- package/dist/web-components-library/p-40f68d35.entry.js.map +1 -0
- package/dist/web-components-library/p-4686b762.js +2 -0
- package/dist/web-components-library/p-4686b762.js.map +1 -0
- package/dist/web-components-library/p-472eb82d.entry.js +2 -0
- package/dist/web-components-library/p-472eb82d.entry.js.map +1 -0
- package/dist/web-components-library/p-4bc82510.js +2 -0
- package/dist/web-components-library/p-4bc82510.js.map +1 -0
- package/dist/web-components-library/p-55d22af2.js +2 -0
- package/dist/web-components-library/p-55d22af2.js.map +1 -0
- package/dist/web-components-library/{p-dbc437d8.entry.js → p-5d220bbc.entry.js} +2 -2
- package/dist/web-components-library/p-5e585fe9.js +2 -0
- package/dist/web-components-library/p-5e585fe9.js.map +1 -0
- package/dist/web-components-library/p-6087739d.js +2 -0
- package/dist/web-components-library/p-6087739d.js.map +1 -0
- package/dist/web-components-library/p-626a5bb1.entry.js +2 -0
- package/dist/web-components-library/p-626a5bb1.entry.js.map +1 -0
- package/dist/web-components-library/p-6790a3c1.js +2 -0
- package/dist/web-components-library/p-6790a3c1.js.map +1 -0
- package/dist/web-components-library/p-68a9a3dd.entry.js +2 -0
- package/dist/web-components-library/p-68a9a3dd.entry.js.map +1 -0
- package/dist/web-components-library/p-69697329.entry.js +2 -0
- package/dist/web-components-library/p-69697329.entry.js.map +1 -0
- package/dist/web-components-library/p-6aba107d.entry.js +2 -0
- package/dist/web-components-library/p-6aba107d.entry.js.map +1 -0
- package/dist/web-components-library/{p-00d7315a.entry.js → p-6d0bb567.entry.js} +2 -2
- package/dist/web-components-library/{p-05b39597.entry.js → p-7d4cd2e8.entry.js} +2 -2
- package/dist/web-components-library/p-820c2503.js +2 -0
- package/dist/web-components-library/p-820c2503.js.map +1 -0
- package/dist/web-components-library/{p-120a809e.entry.js → p-83657b33.entry.js} +2 -2
- package/dist/web-components-library/{p-b670ffa5.entry.js → p-97bba1f2.entry.js} +2 -2
- package/dist/web-components-library/{p-d251f105.entry.js → p-9882e8a5.entry.js} +2 -2
- package/dist/web-components-library/p-98e8d64f.entry.js +2 -0
- package/dist/web-components-library/p-98e8d64f.entry.js.map +1 -0
- package/dist/web-components-library/p-9bcb606c.entry.js +2 -0
- package/dist/web-components-library/p-9bcb606c.entry.js.map +1 -0
- package/dist/web-components-library/{p-996c1471.entry.js → p-9e71d6b3.entry.js} +2 -2
- package/dist/web-components-library/{p-b57362ef.entry.js → p-ac497c80.entry.js} +2 -2
- package/dist/web-components-library/{p-5eb0a064.entry.js → p-ae71256f.entry.js} +2 -2
- package/dist/web-components-library/{p-95104b91.entry.js → p-af27423a.entry.js} +2 -2
- package/dist/web-components-library/p-b1b69181.entry.js +2 -0
- package/dist/web-components-library/p-b1b69181.entry.js.map +1 -0
- package/dist/web-components-library/p-b99dd793.entry.js +2 -0
- package/dist/web-components-library/p-b99dd793.entry.js.map +1 -0
- package/{www/build/p-a53ab86e.entry.js → dist/web-components-library/p-bb8037c4.entry.js} +2 -2
- package/dist/web-components-library/p-c2555fef.entry.js +2 -0
- package/dist/web-components-library/p-c2555fef.entry.js.map +1 -0
- package/dist/web-components-library/p-ca5975a3.js +2 -0
- package/dist/web-components-library/p-ca5975a3.js.map +1 -0
- package/dist/web-components-library/p-cc46f0ce.js +2 -0
- package/dist/web-components-library/p-cc46f0ce.js.map +1 -0
- package/{www/build/p-d92765b6.entry.js → dist/web-components-library/p-e3e48e64.entry.js} +2 -2
- package/dist/web-components-library/p-ebcf6b4d.entry.js +2 -0
- package/dist/web-components-library/p-ed03b414.entry.js +2 -0
- package/dist/web-components-library/p-ed03b414.entry.js.map +1 -0
- package/{www/build/p-2637ab23.entry.js → dist/web-components-library/p-f97c093d.entry.js} +2 -2
- package/dist/web-components-library/{p-239fb968.entry.js → p-fa4a2862.entry.js} +2 -2
- package/dist/web-components-library/p-fe8d7642.entry.js +2 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/dist/web-components-library/web-components-library.esm.js.map +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +14 -0
- package/react/components.js +16 -2
- package/react/components.js.map +1 -1
- package/www/build/p-011a7536.js +2 -0
- package/www/build/p-011a7536.js.map +1 -0
- package/{dist/web-components-library/p-04755b76.entry.js → www/build/p-10c29fb4.entry.js} +2 -2
- package/www/build/p-1ff016c2.entry.js +2 -0
- package/www/build/p-1ff016c2.entry.js.map +1 -0
- package/www/build/{p-942e5126.entry.js → p-210fbe0f.entry.js} +2 -2
- package/www/build/p-2731d501.entry.js +2 -0
- package/www/build/p-2731d501.entry.js.map +1 -0
- package/www/build/p-28c6bb97.entry.js +2 -0
- package/www/build/p-28c6bb97.entry.js.map +1 -0
- package/www/build/{p-6edd5dbe.entry.js → p-2f72475d.entry.js} +2 -2
- package/www/build/p-3441cb4e.entry.js +2 -0
- package/www/build/p-3441cb4e.entry.js.map +1 -0
- package/www/build/p-356aac96.js +2 -0
- package/www/build/p-356aac96.js.map +1 -0
- package/www/build/{p-24ab494d.entry.js → p-378b2bbf.entry.js} +2 -2
- package/{dist/web-components-library/p-d1f8ca38.entry.js → www/build/p-38c63f28.entry.js} +2 -2
- package/www/build/{p-8d81a5c8.entry.js → p-402bd7f6.entry.js} +2 -2
- package/www/build/p-40f68d35.entry.js +2 -0
- package/www/build/p-40f68d35.entry.js.map +1 -0
- package/www/build/p-4686b762.js +2 -0
- package/www/build/p-4686b762.js.map +1 -0
- package/www/build/p-472eb82d.entry.js +2 -0
- package/www/build/p-472eb82d.entry.js.map +1 -0
- package/www/build/p-4bc82510.js +2 -0
- package/www/build/p-4bc82510.js.map +1 -0
- package/www/build/p-55d22af2.js +2 -0
- package/www/build/p-55d22af2.js.map +1 -0
- package/www/build/{p-dbc437d8.entry.js → p-5d220bbc.entry.js} +2 -2
- package/www/build/p-5e585fe9.js +2 -0
- package/www/build/p-5e585fe9.js.map +1 -0
- package/www/build/p-6087739d.js +2 -0
- package/www/build/p-6087739d.js.map +1 -0
- package/www/build/p-626a5bb1.entry.js +2 -0
- package/www/build/p-626a5bb1.entry.js.map +1 -0
- package/www/build/p-6790a3c1.js +2 -0
- package/www/build/p-6790a3c1.js.map +1 -0
- package/www/build/p-68a9a3dd.entry.js +2 -0
- package/www/build/p-68a9a3dd.entry.js.map +1 -0
- package/www/build/p-69697329.entry.js +2 -0
- package/www/build/p-69697329.entry.js.map +1 -0
- package/www/build/p-6aba107d.entry.js +2 -0
- package/www/build/p-6aba107d.entry.js.map +1 -0
- package/www/build/{p-00d7315a.entry.js → p-6d0bb567.entry.js} +2 -2
- package/www/build/{p-05b39597.entry.js → p-7d4cd2e8.entry.js} +2 -2
- package/www/build/p-820c2503.js +2 -0
- package/www/build/p-820c2503.js.map +1 -0
- package/www/build/{p-120a809e.entry.js → p-83657b33.entry.js} +2 -2
- package/www/build/p-87a03b6d.js +2 -0
- package/www/build/{p-b670ffa5.entry.js → p-97bba1f2.entry.js} +2 -2
- package/www/build/{p-d251f105.entry.js → p-9882e8a5.entry.js} +2 -2
- package/www/build/p-98e8d64f.entry.js +2 -0
- package/www/build/p-98e8d64f.entry.js.map +1 -0
- package/www/build/p-9bcb606c.entry.js +2 -0
- package/www/build/p-9bcb606c.entry.js.map +1 -0
- package/www/build/{p-996c1471.entry.js → p-9e71d6b3.entry.js} +2 -2
- package/www/build/{p-b57362ef.entry.js → p-ac497c80.entry.js} +2 -2
- package/www/build/{p-5eb0a064.entry.js → p-ae71256f.entry.js} +2 -2
- package/www/build/{p-95104b91.entry.js → p-af27423a.entry.js} +2 -2
- package/www/build/p-b1b69181.entry.js +2 -0
- package/www/build/p-b1b69181.entry.js.map +1 -0
- package/www/build/p-b99dd793.entry.js +2 -0
- package/www/build/p-b99dd793.entry.js.map +1 -0
- package/{dist/web-components-library/p-a53ab86e.entry.js → www/build/p-bb8037c4.entry.js} +2 -2
- package/www/build/p-c2555fef.entry.js +2 -0
- package/www/build/p-c2555fef.entry.js.map +1 -0
- package/www/build/p-ca5975a3.js +2 -0
- package/www/build/p-ca5975a3.js.map +1 -0
- package/www/build/p-cc46f0ce.js +2 -0
- package/www/build/p-cc46f0ce.js.map +1 -0
- package/{dist/web-components-library/p-d92765b6.entry.js → www/build/p-e3e48e64.entry.js} +2 -2
- package/www/build/p-ebcf6b4d.entry.js +2 -0
- package/www/build/p-ed03b414.entry.js +2 -0
- package/www/build/p-ed03b414.entry.js.map +1 -0
- package/{dist/web-components-library/p-2637ab23.entry.js → www/build/p-f97c093d.entry.js} +2 -2
- package/www/build/{p-239fb968.entry.js → p-fa4a2862.entry.js} +2 -2
- package/www/build/p-fe8d7642.entry.js +2 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.esm.js.map +1 -1
- package/www/index.html +1 -1
- package/dist/web-components-library/p-4c40561d.entry.js +0 -2
- package/dist/web-components-library/p-5023f7d5.entry.js +0 -2
- package/dist/web-components-library/p-5023f7d5.entry.js.map +0 -1
- package/dist/web-components-library/p-5d67d311.entry.js +0 -2
- package/dist/web-components-library/p-91a7c5a9.entry.js +0 -2
- package/dist/web-components-library/p-91a7c5a9.entry.js.map +0 -1
- package/www/build/p-4c40561d.entry.js +0 -2
- package/www/build/p-5023f7d5.entry.js +0 -2
- package/www/build/p-5023f7d5.entry.js.map +0 -1
- package/www/build/p-56810079.js +0 -2
- package/www/build/p-5d67d311.entry.js +0 -2
- package/www/build/p-91a7c5a9.entry.js +0 -2
- package/www/build/p-91a7c5a9.entry.js.map +0 -1
- /package/dist/web-components-library/{p-04755b76.entry.js.map → p-10c29fb4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-942e5126.entry.js.map → p-210fbe0f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6edd5dbe.entry.js.map → p-2f72475d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-24ab494d.entry.js.map → p-378b2bbf.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d1f8ca38.entry.js.map → p-38c63f28.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8d81a5c8.entry.js.map → p-402bd7f6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-dbc437d8.entry.js.map → p-5d220bbc.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-00d7315a.entry.js.map → p-6d0bb567.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-05b39597.entry.js.map → p-7d4cd2e8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-120a809e.entry.js.map → p-83657b33.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b670ffa5.entry.js.map → p-97bba1f2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d251f105.entry.js.map → p-9882e8a5.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-996c1471.entry.js.map → p-9e71d6b3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b57362ef.entry.js.map → p-ac497c80.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-5eb0a064.entry.js.map → p-ae71256f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-95104b91.entry.js.map → p-af27423a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a53ab86e.entry.js.map → p-bb8037c4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d92765b6.entry.js.map → p-e3e48e64.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-4c40561d.entry.js.map → p-ebcf6b4d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2637ab23.entry.js.map → p-f97c093d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-239fb968.entry.js.map → p-fa4a2862.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-5d67d311.entry.js.map → p-fe8d7642.entry.js.map} +0 -0
- /package/www/build/{p-04755b76.entry.js.map → p-10c29fb4.entry.js.map} +0 -0
- /package/www/build/{p-942e5126.entry.js.map → p-210fbe0f.entry.js.map} +0 -0
- /package/www/build/{p-6edd5dbe.entry.js.map → p-2f72475d.entry.js.map} +0 -0
- /package/www/build/{p-24ab494d.entry.js.map → p-378b2bbf.entry.js.map} +0 -0
- /package/www/build/{p-d1f8ca38.entry.js.map → p-38c63f28.entry.js.map} +0 -0
- /package/www/build/{p-8d81a5c8.entry.js.map → p-402bd7f6.entry.js.map} +0 -0
- /package/www/build/{p-dbc437d8.entry.js.map → p-5d220bbc.entry.js.map} +0 -0
- /package/www/build/{p-00d7315a.entry.js.map → p-6d0bb567.entry.js.map} +0 -0
- /package/www/build/{p-05b39597.entry.js.map → p-7d4cd2e8.entry.js.map} +0 -0
- /package/www/build/{p-120a809e.entry.js.map → p-83657b33.entry.js.map} +0 -0
- /package/www/build/{p-b670ffa5.entry.js.map → p-97bba1f2.entry.js.map} +0 -0
- /package/www/build/{p-d251f105.entry.js.map → p-9882e8a5.entry.js.map} +0 -0
- /package/www/build/{p-996c1471.entry.js.map → p-9e71d6b3.entry.js.map} +0 -0
- /package/www/build/{p-b57362ef.entry.js.map → p-ac497c80.entry.js.map} +0 -0
- /package/www/build/{p-5eb0a064.entry.js.map → p-ae71256f.entry.js.map} +0 -0
- /package/www/build/{p-95104b91.entry.js.map → p-af27423a.entry.js.map} +0 -0
- /package/www/build/{p-a53ab86e.entry.js.map → p-bb8037c4.entry.js.map} +0 -0
- /package/www/build/{p-d92765b6.entry.js.map → p-e3e48e64.entry.js.map} +0 -0
- /package/www/build/{p-4c40561d.entry.js.map → p-ebcf6b4d.entry.js.map} +0 -0
- /package/www/build/{p-2637ab23.entry.js.map → p-f97c093d.entry.js.map} +0 -0
- /package/www/build/{p-239fb968.entry.js.map → p-fa4a2862.entry.js.map} +0 -0
- /package/www/build/{p-5d67d311.entry.js.map → p-fe8d7642.entry.js.map} +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { NavigationTabsOrientation, NavigationTabsSize } from "../../beans";
|
|
2
|
+
/**
|
|
3
|
+
* Single tab component to use inside `z-navigation-tabs`. It renders a button.
|
|
4
|
+
* This component uses the `tab` role:
|
|
5
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/tab_role
|
|
6
|
+
*/
|
|
7
|
+
export declare class ZNavigationTab {
|
|
8
|
+
/**
|
|
9
|
+
* `aria-controls` attribute of the tab.
|
|
10
|
+
* Identifies the element (with `role=tabpanel`) whose contents or presence are controlled by this tab.
|
|
11
|
+
* The value must be the `id` of the element it controls.
|
|
12
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls
|
|
13
|
+
*/
|
|
14
|
+
ariaControls?: string;
|
|
15
|
+
/**
|
|
16
|
+
* `id` attribute of the tab.
|
|
17
|
+
* Set this id to the `aria-labelledby` attribute of the controlled `tabpanel` element.
|
|
18
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby
|
|
19
|
+
* @deprecated Use native `id` attribute instead
|
|
20
|
+
*/
|
|
21
|
+
tabId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the tab is selected.
|
|
24
|
+
*/
|
|
25
|
+
selected?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the tab is disabled.
|
|
28
|
+
*/
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Tab orientation. Do not set this manually: `z-navigation-tabs` will handle this.
|
|
32
|
+
*/
|
|
33
|
+
orientation: NavigationTabsOrientation;
|
|
34
|
+
/**
|
|
35
|
+
* Tab size. Do not set this manually: `z-navigation-tabs` will handle this.
|
|
36
|
+
*/
|
|
37
|
+
size: NavigationTabsSize;
|
|
38
|
+
/**
|
|
39
|
+
* Name of the icon to use.
|
|
40
|
+
* The `filled` version will be automatically used (if found) when the tab is `selected`.
|
|
41
|
+
* @deprecated Use a native `<button>` instead.
|
|
42
|
+
*/
|
|
43
|
+
icon: string;
|
|
44
|
+
/**
|
|
45
|
+
* Label to show in the tab.
|
|
46
|
+
*/
|
|
47
|
+
label: string;
|
|
48
|
+
/**
|
|
49
|
+
* Html `title` attribute for the button.
|
|
50
|
+
*/
|
|
51
|
+
htmlTitle: string;
|
|
52
|
+
/**
|
|
53
|
+
* The tab has been selected.
|
|
54
|
+
*/
|
|
55
|
+
private selectedEvent;
|
|
56
|
+
/**
|
|
57
|
+
* Scroll into view to center the tab.
|
|
58
|
+
*/
|
|
59
|
+
private scrollToTab;
|
|
60
|
+
onClick(): void;
|
|
61
|
+
onSelected(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Render the icon component using the icon's name passed from prop.
|
|
64
|
+
* Use the `filled` version when the tab is `selected`.
|
|
65
|
+
* @returns {HTMLElement}
|
|
66
|
+
*/
|
|
67
|
+
private renderIcon;
|
|
68
|
+
render(): HTMLZNavigationTabElement;
|
|
69
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { NavigationTabsOrientation, NavigationTabsSize } from "../../beans";
|
|
2
|
+
/**
|
|
3
|
+
* Single tab component to use inside `z-navigation-tabs`. It renders an anchor element.
|
|
4
|
+
* This component uses the `tab` role:
|
|
5
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/tab_role
|
|
6
|
+
* @deprecated Use a native `<a>` instead.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ZNavigationTabLink {
|
|
9
|
+
/**
|
|
10
|
+
* `aria-controls` attribute of the tab.
|
|
11
|
+
* Identifies the element (with `role=tabpanel`) whose contents or presence are controlled by this tab.
|
|
12
|
+
* The value must be the `id` of the element it controls.
|
|
13
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls
|
|
14
|
+
*/
|
|
15
|
+
ariaControls?: string;
|
|
16
|
+
/**
|
|
17
|
+
* `id` attribute of the tab.
|
|
18
|
+
* Set this id to the `aria-labelledby` attribute of the controlled `tabpanel` element.
|
|
19
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby
|
|
20
|
+
* @deprecated Use native `id` attribute instead
|
|
21
|
+
*/
|
|
22
|
+
tabId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the tab is selected.
|
|
25
|
+
*/
|
|
26
|
+
selected?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the tab is disabled.
|
|
29
|
+
*/
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Tab orientation. Do not set this manually: `z-navigation-tabs` will handle this.
|
|
33
|
+
*/
|
|
34
|
+
orientation: NavigationTabsOrientation;
|
|
35
|
+
/**
|
|
36
|
+
* Tab size. Do not set this manually: `z-navigation-tabs` will handle this.
|
|
37
|
+
*/
|
|
38
|
+
size: NavigationTabsSize;
|
|
39
|
+
/**
|
|
40
|
+
* Html title attribute for the anchor element.
|
|
41
|
+
*/
|
|
42
|
+
htmlTitle: string;
|
|
43
|
+
/**
|
|
44
|
+
* Html `target` attribute for the anchor element.
|
|
45
|
+
*/
|
|
46
|
+
target: string;
|
|
47
|
+
/**
|
|
48
|
+
* Url to set to the anchor element.
|
|
49
|
+
*/
|
|
50
|
+
href: string;
|
|
51
|
+
/**
|
|
52
|
+
* Name of the icon to use.
|
|
53
|
+
* The `filled` version will be automatically used (if found) when the tab is `selected`.
|
|
54
|
+
*/
|
|
55
|
+
icon: string;
|
|
56
|
+
/**
|
|
57
|
+
* Label to show in the tab.
|
|
58
|
+
*/
|
|
59
|
+
label: string;
|
|
60
|
+
/**
|
|
61
|
+
* The tab has been selected.
|
|
62
|
+
*/
|
|
63
|
+
private selectedEvent;
|
|
64
|
+
/**
|
|
65
|
+
* Scroll into view to center the tab.
|
|
66
|
+
*/
|
|
67
|
+
private scrollToTab;
|
|
68
|
+
onClick(): void;
|
|
69
|
+
onSelected(): void;
|
|
70
|
+
/**
|
|
71
|
+
* Render the icon component using the icon's name passed from prop.
|
|
72
|
+
* Use the `filled` version when the tab is `selected`.
|
|
73
|
+
* @returns {HTMLElement}
|
|
74
|
+
*/
|
|
75
|
+
private renderIcon;
|
|
76
|
+
render(): HTMLZNavigationTabLinkElement;
|
|
77
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated
|
|
3
|
+
*/
|
|
4
|
+
export declare class ZTableCell {
|
|
5
|
+
host: HTMLZTableCellElement;
|
|
6
|
+
/** [Optional] Show contextual menu button */
|
|
7
|
+
showButton?: boolean;
|
|
8
|
+
/** Set padding size of cell, if special 0px padding will be set */
|
|
9
|
+
padding: "x-small" | "small" | "medium" | "large" | "special";
|
|
10
|
+
isMenuOpened: boolean;
|
|
11
|
+
private handleMenu;
|
|
12
|
+
componentWillRender(): void;
|
|
13
|
+
render(): HTMLZTableCellElement;
|
|
14
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import "../z-table-body/index";
|
|
3
|
+
import "../z-table-cell/index";
|
|
4
|
+
import "../z-table-empty-box/index";
|
|
5
|
+
import "../z-table-expanded-row/index";
|
|
6
|
+
import "../z-table-footer/index";
|
|
7
|
+
import "../z-table-head/index";
|
|
8
|
+
import "../z-table-header/index";
|
|
9
|
+
import "../z-table-header-row/index";
|
|
10
|
+
import "../z-table-row/index";
|
|
11
|
+
import "../z-table-sticky-footer/index";
|
|
12
|
+
/**
|
|
13
|
+
* @slot - table elements
|
|
14
|
+
* @slot sticky-footer - set the content of the sticky footer
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
17
|
+
export declare class ZTableDeprecated {
|
|
18
|
+
host: HTMLZTableDeprecatedElement;
|
|
19
|
+
/** Number of lines of element */
|
|
20
|
+
lines?: number;
|
|
21
|
+
/** Error message */
|
|
22
|
+
errorMessage?: string;
|
|
23
|
+
/** Sets table with border */
|
|
24
|
+
bordered?: boolean;
|
|
25
|
+
/** Sets call to action label */
|
|
26
|
+
callToActionLabel?: string;
|
|
27
|
+
/** Sets call to action label */
|
|
28
|
+
callToActionTwoLabel?: string;
|
|
29
|
+
/** Sets first column sticky */
|
|
30
|
+
columnSticky?: boolean;
|
|
31
|
+
/** Sets empty table */
|
|
32
|
+
empty?: boolean;
|
|
33
|
+
/** Set error status */
|
|
34
|
+
error?: boolean;
|
|
35
|
+
/** Set error status */
|
|
36
|
+
errorLink?: string;
|
|
37
|
+
/** Sets header sticky */
|
|
38
|
+
headerSticky?: boolean;
|
|
39
|
+
/** Set message */
|
|
40
|
+
message?: string;
|
|
41
|
+
/** Set subtitle */
|
|
42
|
+
subtitle?: string;
|
|
43
|
+
/** Set if has table content, useful when empty conte to who first column */
|
|
44
|
+
hasTableBody: boolean;
|
|
45
|
+
/** Handle mobile */
|
|
46
|
+
isMobile: boolean;
|
|
47
|
+
/** remove call to action event */
|
|
48
|
+
/** remove call to action event */
|
|
49
|
+
callToAction: EventEmitter;
|
|
50
|
+
/** remove call to action event */
|
|
51
|
+
callToActionTwo: EventEmitter;
|
|
52
|
+
handleResize(): void;
|
|
53
|
+
handleOrientationChange(): void;
|
|
54
|
+
componentWillLoad(): void;
|
|
55
|
+
componentWillRender(): void;
|
|
56
|
+
private renderError;
|
|
57
|
+
private renderEmpty;
|
|
58
|
+
render(): HTMLZTableDeprecatedElement;
|
|
59
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated
|
|
3
|
+
*/
|
|
4
|
+
export declare class ZTableEmptyBox {
|
|
5
|
+
hostElement: HTMLZTableEmptyBoxElement;
|
|
6
|
+
/** Sets main title message*/
|
|
7
|
+
message?: string;
|
|
8
|
+
/** Sets message */
|
|
9
|
+
subtitle?: string;
|
|
10
|
+
/** Checks if cta1 or cta2 slots exist */
|
|
11
|
+
private hasCta1Slot;
|
|
12
|
+
private hasCta2Slot;
|
|
13
|
+
componentWillLoad(): void;
|
|
14
|
+
render(): HTMLZTableEmptyBoxElement;
|
|
15
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated
|
|
4
|
+
*/
|
|
5
|
+
export declare class ZTableHeader {
|
|
6
|
+
host: HTMLZTableHeaderElement;
|
|
7
|
+
/** Column ID */
|
|
8
|
+
columnId: string;
|
|
9
|
+
/** Set padding size of cell, if special 0px padding will be set */
|
|
10
|
+
padding: "x-small" | "small" | "medium" | "large" | "special";
|
|
11
|
+
/** [Optional] Make the header sortable */
|
|
12
|
+
sortable?: boolean;
|
|
13
|
+
/** [Optional] Show contextual menu button */
|
|
14
|
+
showButton?: boolean;
|
|
15
|
+
/** [Optional] Default sort order */
|
|
16
|
+
defaultSortDirection?: "asc" | "desc" | "none";
|
|
17
|
+
/** Sort direction */
|
|
18
|
+
sortDirection: "asc" | "desc" | "none";
|
|
19
|
+
private popover?;
|
|
20
|
+
private triggerButton?;
|
|
21
|
+
constructor();
|
|
22
|
+
/** [Optional] callback for sorting */
|
|
23
|
+
sort: EventEmitter;
|
|
24
|
+
private emitOnSort;
|
|
25
|
+
private handleSort;
|
|
26
|
+
private handleMenuClick;
|
|
27
|
+
handleOutsideClick(e: MouseEvent): void;
|
|
28
|
+
handleClickHeaders(e: MouseEvent): void;
|
|
29
|
+
componentWillRender(): void;
|
|
30
|
+
render(): HTMLZTableHeaderElement;
|
|
31
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import { ZTableRowExpandedType } from "../../../beans";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
6
|
+
export declare class ZTableRow {
|
|
7
|
+
/** Table row expanded type */
|
|
8
|
+
expandedType: ZTableRowExpandedType;
|
|
9
|
+
expanded: boolean;
|
|
10
|
+
/** Row has been expanded */
|
|
11
|
+
expand: EventEmitter;
|
|
12
|
+
private emitOnExpand;
|
|
13
|
+
private handleExpand;
|
|
14
|
+
private renderExpandButton;
|
|
15
|
+
render(): HTMLZTableRowElement;
|
|
16
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as r,g as o}from"./p-10bb4f4b.js";const e=".sc-z-table-head-h{display:table-header-group;font-family:var(--font-family-sans);font-weight:var(--font-rg)}";const s=e;const a=class{constructor(r){t(this,r)}componentWillRender(){this.host.setAttribute("role","rowgroup")}render(){return r("slot",{key:"98012cd26ee60c370c6ccf6bff47ca5c827f30b6"})}get host(){return o(this)}};a.style=s;export{a as Z};
|
|
2
|
+
//# sourceMappingURL=p-011a7536.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["stylesCss","ZTableHeadStyle0","ZTableHead","componentWillRender","this","host","setAttribute","render","h","key"],"sources":["src/deprecated/z-table-deprecated/z-table-head/styles.css?tag=z-table-head&encapsulation=scoped","src/deprecated/z-table-deprecated/z-table-head/index.tsx"],"sourcesContent":[":host {\n display: table-header-group;\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n","import {Component, Element, h} from \"@stencil/core\";\n\n/**\n * @deprecated\n */\n@Component({\n tag: \"z-table-head\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZTableHead {\n @Element() host: HTMLZTableHeadElement;\n\n componentWillRender(): void {\n this.host.setAttribute(\"role\", \"rowgroup\");\n }\n\n render(): HTMLSlotElement {\n return <slot />;\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAY,gHAClB,MAAAC,EAAeD,E,MCUFE,EAAU,M,yBAGrB,mBAAAC,GACEC,KAAKC,KAAKC,aAAa,OAAQ,W,CAGjC,MAAAC,GACE,OAAOC,EAAA,QAAAC,IAAA,4C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,h as t,g as o}from"./p-10bb4f4b.js";import{L as i}from"./p-025f494e.js";const s='footer{position:relative;z-index:5;top:0;width:auto;height:calc(var(--space-unit) * 6);padding:0;border-top:var(--border-size-medium) solid var(--color-surface03);margin:0;background-color:var(--color-surface01);border-radius:0 0 var(--border-radius) var(--border-radius);color:var(--color-surface05);font-family:var(--font-family-sans);font-weight:var(--font-rg);transition:height 500ms ease-in-out, top 500ms ease-in-out}footer.real,footer.trial,footer.temp{border-top:var(--border-size-medium) solid var(--blue100)}footer .bold{font-family:var(--font-family-sans);font-weight:var(--font-sb)}footer>p{overflow:hidden;height:40px;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 2) var(--space-unit) calc(var(--space-unit) * 2);margin:0;background-color:var(--color-surface01);font-family:var(--font-family-sans);font-size:16px;font-weight:var(--font-rg);line-height:22px;transition:all 200ms linear}footer.isopen>p{background-color:var(--gray200);font-size:14px;font-weight:var(--font-sb);transition:all 200ms linear}footer.isopen.real>p,footer.isopen.trial>p,footer.isopen.temp>p{background-color:var(--blue100)}footer .visible{display:block}footer .hidden{display:none}footer>div.content{overflow:hidden;height:60px}footer>div.content>div:not(.slot-handler){padding:var(--space-unit) calc(var(--space-unit) * 2)}footer>div.content>div>p{overflow:hidden;height:20px;padding:0;margin:0;font-size:14px;line-height:20px;text-overflow:ellipsis;white-space:nowrap}footer>div.content>div>p.year-isbn{display:flex;flex-direction:row;justify-content:space-between;padding-top:var(--space-unit)}footer>div.content>div>p.year-isbn>span.isbn{overflow:hidden;text-overflow:ellipsis}footer.isopen>div.content>div:not(.slot-handler){height:68px}footer.isopen>div.content>div>p.authors{height:40px;text-overflow:initial;white-space:initial}footer.isopen>div.content>div>p.year-isbn{height:50px;flex-direction:column;padding-left:0}footer.isopen>div.content>div>p.year-isbn>span.isbn{display:inline-grid;padding-left:0}footer.isopen{top:-212px;height:295px;transition:height 500ms ease-in-out, top 500ms ease-in-out}footer.isopen.custom-content{top:-292px}footer.isopen>div.content{height:280px;transition:height 500ms ease-in-out, top 500ms ease-in-out}footer.isopen.custom-content>div.content{height:230px}.toggle{position:absolute;z-index:10;top:-24px;left:16px}.faded{opacity:0.3;pointer-events:none}footer>p.custom-content,footer .content.custom-content{display:none}footer.isopen>p.custom-content,footer.isopen .content.custom-content{display:block}div.wrapper{position:relative;height:100%}div.wrapper ::slotted([slot="content"]){position:absolute;z-index:10;top:calc(var(--space-unit) * 2);display:block;width:100%;height:112px;box-sizing:border-box;padding:0 calc(var(--space-unit) * 2);border-top:var(--border-size-medium) solid transparent;background:var(--color-white)}div.wrapper.isopen ::slotted([slot="content"]){top:0;bottom:0;height:128px;padding:calc(var(--space-unit) * 2);border-color:var(--blue100)}';const
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,h as t,g as o}from"./p-10bb4f4b.js";import{L as i}from"./p-025f494e.js";const s='footer{position:relative;z-index:5;top:0;width:auto;height:calc(var(--space-unit) * 6);padding:0;border-top:var(--border-size-medium) solid var(--color-surface03);margin:0;background-color:var(--color-surface01);border-radius:0 0 var(--border-radius) var(--border-radius);color:var(--color-surface05);font-family:var(--font-family-sans);font-weight:var(--font-rg);transition:height 500ms ease-in-out, top 500ms ease-in-out}footer.real,footer.trial,footer.temp{border-top:var(--border-size-medium) solid var(--blue100)}footer .bold{font-family:var(--font-family-sans);font-weight:var(--font-sb)}footer>p{overflow:hidden;height:40px;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 2) var(--space-unit) calc(var(--space-unit) * 2);margin:0;background-color:var(--color-surface01);font-family:var(--font-family-sans);font-size:16px;font-weight:var(--font-rg);line-height:22px;transition:all 200ms linear}footer.isopen>p{background-color:var(--gray200);font-size:14px;font-weight:var(--font-sb);transition:all 200ms linear}footer.isopen.real>p,footer.isopen.trial>p,footer.isopen.temp>p{background-color:var(--blue100)}footer .visible{display:block}footer .hidden{display:none}footer>div.content{overflow:hidden;height:60px}footer>div.content>div:not(.slot-handler){padding:var(--space-unit) calc(var(--space-unit) * 2)}footer>div.content>div>p{overflow:hidden;height:20px;padding:0;margin:0;font-size:14px;line-height:20px;text-overflow:ellipsis;white-space:nowrap}footer>div.content>div>p.year-isbn{display:flex;flex-direction:row;justify-content:space-between;padding-top:var(--space-unit)}footer>div.content>div>p.year-isbn>span.isbn{overflow:hidden;text-overflow:ellipsis}footer.isopen>div.content>div:not(.slot-handler){height:68px}footer.isopen>div.content>div>p.authors{height:40px;text-overflow:initial;white-space:initial}footer.isopen>div.content>div>p.year-isbn{height:50px;flex-direction:column;padding-left:0}footer.isopen>div.content>div>p.year-isbn>span.isbn{display:inline-grid;padding-left:0}footer.isopen{top:-212px;height:295px;transition:height 500ms ease-in-out, top 500ms ease-in-out}footer.isopen.custom-content{top:-292px}footer.isopen>div.content{height:280px;transition:height 500ms ease-in-out, top 500ms ease-in-out}footer.isopen.custom-content>div.content{height:230px}.toggle{position:absolute;z-index:10;top:-24px;left:16px}.faded{opacity:0.3;pointer-events:none}footer>p.custom-content,footer .content.custom-content{display:none}footer.isopen>p.custom-content,footer.isopen .content.custom-content{display:block}div.wrapper{position:relative;height:100%}div.wrapper ::slotted([slot="content"]){position:absolute;z-index:10;top:calc(var(--space-unit) * 2);display:block;width:100%;height:112px;box-sizing:border-box;padding:0 calc(var(--space-unit) * 2);border-top:var(--border-size-medium) solid transparent;background:var(--color-white)}div.wrapper.isopen ::slotted([slot="content"]){top:0;bottom:0;height:128px;padding:calc(var(--space-unit) * 2);border-color:var(--blue100)}';const a=s;const n=class{constructor(t){e(this,t);this.titolo=undefined;this.autori=undefined;this.isbn=undefined;this.faded=undefined;this.cardtype=undefined;this.opened=false;this.customContent=false;this.isOpen=false;this.allowTooltipAuthors=false}handleToggle(){this.isOpen=!this.isOpen;if(this.isOpen){const e=this.getFirstListItem();if(e){requestAnimationFrame((()=>{e.focus()}))}}}getTitleAuthors(){return this.allowTooltipAuthors?this.autori:""}componentWillLoad(){if(this.opened){this.isOpen=true}}elementsEllipsis(){this.allowTooltipAuthors=this.elementAuthorsHasEllipsis()?true:false}elementAuthorsHasEllipsis(){return this.ellipsisAuthors.offsetWidth<this.ellipsisAuthors.scrollWidth}retrieveClass(){return{isopen:this.isOpen,real:this.cardtype===i.REAL,trial:this.cardtype===i.TRIAL,temp:this.cardtype===i.TEMP,"custom-content":this.customContent}}footerTransitionHandler(e){if(["visibility","height"].includes(e.propertyName)){this.elementsEllipsis()}}getFirstListItem(){return this.host.querySelector("[slot=list] > li a")}render(){return t("div",{key:"3f351c6ae37e9756acb54ba18a33141902b36f66",class:Object.assign(Object.assign({},this.retrieveClass()),{wrapper:true})},t("footer",{key:"a7813aa007cc2a85dbb2b14cfc26fc174e49929d",class:this.retrieveClass(),onTransitionEnd:e=>this.footerTransitionHandler(e)},t("span",{key:"ab1b726546099b8f5ac53294e9ecfefb8501cf8a",class:"toggle"},t("slot",{key:"acda20d4eb36305f614d74aa930131f8f4ecd270",name:"toggle"})),this.titolo&&t("p",{class:{"custom-content":this.customContent}},this.titolo),t("div",{key:"0f090b00007fa5b7f5fe6b7d9553e83449d0a11a",class:{content:true,"custom-content":this.customContent}},t("div",{key:"4f9c2e93e4e73f38dd9012b8a7e12be58ed506f7"},t("p",{key:"342ce9c1c2a3b0d8eb0a585b84933441bccc044b",class:"authors",ref:e=>this.ellipsisAuthors=e},t("span",{key:"0c7fbe530be3eae718701f62bcfc190cfe1c3cbe",title:this.getTitleAuthors()},t("span",{key:"c6f1cd41b9353bbb39eb2a0f3a92664c05cb45d9","aria-description":"Autori",class:"bold"},this.autori))),t("p",{key:"8f5930ae90e38554151c10e5996014103f6fae6a",class:"year-isbn"},t("span",{key:"18ebc65de360d4fdbc09a31f1e35fb07af7930d0",class:"isbn"},t("span",{key:"25b8d2bf3bd332132b28f16b72ad81ee870a0202"},t("span",{key:"7ba427f38f89b31f0228c09419281188d9f0e6a9","aria-description":"ISBN edizione cartacea",class:"bold"},this.isbn)," ","(ed. cartacea)")))),t("div",{key:"1b553a8af97ebf9035a3411dbefc34db332ae3bb",class:`slot-handler ${this.isOpen?"visible":"hidden"}`},t("slot",{key:"e38a67048f019687d6b0a40b84ccdf0075adf98a",name:"list"})))),this.customContent&&t("slot",{name:"content"}))}get host(){return o(this)}};n.style=a;export{n as z_myz_card_footer};
|
|
2
|
+
//# sourceMappingURL=p-10c29fb4.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as i,h as e,a as s,g as n}from"./p-10bb4f4b.js";import{w as a,p as r,D as o}from"./p-025f494e.js";import{g as l}from"./p-955da62e.js";import"./p-2c886e8b.js";const c=':host{color:var(--color-text01);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.container{display:flex;flex-direction:column}:host .modal-wrapper{display:flex;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2)}:host .modal-wrapper>.files-wrapper{display:flex;flex-direction:column;margin:calc(var(--space-unit) * 4);gap:var(--space-unit)}:host .text-container{display:flex;flex-direction:column;margin:auto}:host .text-container .body-1{text-align:center}:host .text-container .upload-link{color:var(--color-link-primary);cursor:pointer}:host .text-container .upload-link-text{margin-bottom:var(--space-unit)}input#file-elem{display:none}#title{display:inline-block;margin:calc(var(--space-unit) * 2.5) 0 calc(var(--space-unit) * 4);font-size:calc(var(--space-unit) * 3);font-weight:var(--font-sb)}:host>.container>z-button{display:inline-block;margin-top:calc(var(--space-unit) * 3)}:host>.container>.files-container.hidden{display:none}:host>.container>.files-container>.heading-4-sb{display:inline-block;margin:calc(var(--space-unit) * 3) 0;font-size:calc(var(--space-unit) * 2);font-weight:var(--font-sb)}:host([type="dragdrop"])>.container>.files-container>.heading-4-sb{margin-top:0;margin-bottom:calc(var(--space-unit) * 3)}:host>.container>.files-container>.files-wrapper{display:flex;flex-wrap:wrap;column-gap:calc(var(--space-unit) * 2);row-gap:calc(var(--space-unit) * 2)}:host>.container>.files-container>z-divider{margin-top:calc(var(--space-unit) * 3);margin-bottom:0}:host([type="dragdrop"])>.container>.files-container>z-divider{margin:calc(var(--space-unit) * 3) 0}:host .error-message{font-size:14px;font-weight:400;letter-spacing:0.16%;line-height:20px;text-align:left}:host .error-message>.file-name{font-weight:600}@media only screen and (min-width: 768px){:host>.container>z-button{align-self:flex-start}:host .modal-wrapper{padding:calc(var(--space-unit) * 3)}}@media only screen and (min-width: 1152px){:host .modal-wrapper{padding:calc(var(--space-unit) * 4)}}';const d=c;const h=class{constructor(e){t(this,e);this.fileInput=i(this,"fileInput",7);this.inputAttributes={type:"file",id:"file-elem",multiple:true};this.type=a.DEFAULT;this.buttonVariant=undefined;this.acceptedFormat=undefined;this.fileMaxSize=undefined;this.mainTitle=undefined;this.description=undefined;this.files=[];this.uploadBtnLabel="allega";this.dragAndDropLabel="Rilascia i file in questa area per allegarli.";this.hasFileSection=true;this.invalidFiles=undefined}removeFileListener(t){this.removeFiles(t.detail)}fileDroppedListener(t){this.input.files=t.detail;this.fileInputHandler()}componentDidUpdate(){this.handleAccessibility();this.invalidFiles.size&&this.errorModal.focus()}componentWillLoad(){this.invalidFiles=new Map}fileInputHandler(){if(this.input.files.length){this.invalidFiles=this.checkFiles(Array.from(this.input.files))}}async getFiles(){return this.files}async removeFile(t){await this.removeFiles(t)}async removeFiles(t){const i=this.files;const e=i.find((i=>i.name===t));if(e){const t=i.indexOf(e);if(t>=0){i.splice(t,1);this.files=[...i]}}}getType(){if(l()!==r.DESKTOP&&l()!==r.DESKTOP_WIDE){return a.DEFAULT}return this.type}handleAccessibility(){const t=this.el.querySelector("z-file:last-child z-chip button");if(this.files.length>0&&t){t.focus()}else{this.getType()===a.DEFAULT?this.button.querySelector("button").focus():this.uploadLink.focus()}}checkFiles(t){const i=new Map;const e=`supera il limite di ${this.fileMaxSize}MB`;const s=" ha un formato non supportato";t.forEach((t=>{const n=t.size/1024/1024;const a=this.acceptedFormat.split(",").some((i=>t.name.toLowerCase().endsWith(i.trim())));const r=n<=this.fileMaxSize;if(r&&a){if(!this.files.find((i=>i.name===t.name))){this.files.push(t);this.fileInput.emit(t);this.input.value=""}return}i.set(t.name,[]);if(!r){i.get(t.name).push(e)}if(!a){i.get(t.name).push(s)}}));return i}renderTitle(){return e("span",{id:"title"},this.mainTitle)}renderDescription(t){return e("span",{class:t},this.description)}renderAllowedFileExtensions(){let t="";let i="";if(this.acceptedFormat){const i=this.acceptedFormat.split(", ").map((t=>t.substring(1).toUpperCase())).join(", ");t=` nei formati ${i}`}if(this.fileMaxSize){i=` per un massimo di ${this.fileMaxSize}MB di peso`}const s=`Puoi allegare file${t}${i}.`;return e("span",{class:"body-3"},t||i?s:null)}renderFileSection(){if(!this.hasFileSection){return}return e("section",{class:`files-container ${!this.files.length?"hidden":""}`},e("span",{class:"heading-4-sb"},"File appena caricati"),e("div",{class:"files-wrapper"},e("slot",{name:"files"})),e("z-divider",{size:o.MEDIUM}))}renderInput(){return e("input",Object.assign({},this.inputAttributes,{onChange:()=>this.fileInputHandler(),accept:this.acceptedFormat,ref:t=>this.input=t}))}renderUploadButton(){return[this.renderInput(),e("z-button",{onClick:()=>this.input.click(),onKeyPress:t=>{if(t.code=="Space"||t.code=="Enter"){t.preventDefault();this.input.click()}},id:"fileSelect",variant:this.buttonVariant,icon:"upload",ref:t=>this.button=t},this.uploadBtnLabel)]}renderUploadLink(){return[this.renderInput(),e("span",{class:"body-1 upload-link-text"},"Trascina o"," ",e("span",{tabIndex:0,class:"body-1-sb upload-link",onClick:()=>this.input.click(),onKeyPress:t=>{if(t.code=="Space"||t.code=="Enter"){t.preventDefault();this.input.click()}},ref:t=>this.uploadLink=t},"carica")," ","dal tuo computer")]}renderDefaultMode(){return[this.renderDescription("body-3-sb"),this.renderAllowedFileExtensions(),this.renderFileSection(),this.renderUploadButton()]}renderDragDropMode(){return[this.renderFileSection(),e("z-dragdrop-area",{"drag-and-drop-label":this.dragAndDropLabel},e("div",{class:"text-container"},this.renderDescription("body-1"),this.renderUploadLink(),this.renderAllowedFileExtensions()))]}formatErrorString(t,i){var s,n;const a=i[0]&&i[1]?" e ":"";return e("span",{class:"error-message"},"Il file ",e("span",{class:"file-name"},t)," ",(s=i[1])!==null&&s!==void 0?s:"",a,(n=i[0])!==null&&n!==void 0?n:"",".")}handleErrorModalContent(){return e("div",{slot:"modalContent"},e("div",{class:"modal-wrapper"},e("div",{class:"files"},Array.from(this.invalidFiles).map((([t,i])=>e("span",{class:"body-3"},this.formatErrorString(t,i)))))))}render(){return e(s,{key:"993674bad95a4e06fab44fab89194ca219e4faac"},e("div",{key:"77ea47b582116ffbbccc66fe24d8a152150c20ff",tabIndex:0,class:`container ${this.getType()}`},this.mainTitle&&this.renderTitle(),this.getType()==a.DEFAULT?this.renderDefaultMode():this.renderDragDropMode()),!!this.invalidFiles.size&&e("z-modal",{modalid:`file-upload-${this.type}-error-modal`,tabIndex:0,ref:t=>this.errorModal=t,modaltitle:"Errore di caricamento",onModalClose:()=>this.invalidFiles=new Map,onModalBackgroundClick:()=>this.invalidFiles=new Map},this.handleErrorModalContent()))}get el(){return n(this)}};h.style=d;export{h as z_file_upload};
|
|
2
|
+
//# sourceMappingURL=p-1ff016c2.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["stylesCss","ZFileUploadStyle0","ZFileUpload","this","inputAttributes","type","id","multiple","ZFileUploadType","DEFAULT","removeFileListener","e","removeFiles","detail","fileDroppedListener","input","files","fileInputHandler","componentDidUpdate","handleAccessibility","invalidFiles","size","errorModal","focus","componentWillLoad","Map","length","checkFiles","Array","from","getFiles","removeFile","fileName","file","find","name","index","indexOf","splice","getType","getDevice","Device","DESKTOP","DESKTOP_WIDE","lastFile","el","querySelector","button","uploadLink","errors","sizeErrorString","fileMaxSize","formatErrorString","forEach","fileSize","fileFormatOk","acceptedFormat","split","some","ext","toLowerCase","endsWith","trim","fileSizeOk","f","push","fileInput","emit","value","set","get","renderTitle","h","mainTitle","renderDescription","cssClass","class","description","renderAllowedFileExtensions","fileFormatString","fileWeightString","fileFormat","map","string","substring","toUpperCase","join","finalString","renderFileSection","hasFileSection","DividerSize","MEDIUM","renderInput","Object","assign","onChange","accept","ref","val","renderUploadButton","onClick","click","onKeyPress","code","preventDefault","variant","buttonVariant","icon","uploadBtnLabel","renderUploadLink","tabIndex","renderDefaultMode","renderDragDropMode","dragAndDropLabel","key","bothErrors","_a","_b","handleErrorModalContent","slot","render","Host","modalid","modaltitle","onModalClose","onModalBackgroundClick"],"sources":["src/components/file-upload/z-file-upload/styles.css?tag=z-file-upload&encapsulation=shadow","src/components/file-upload/z-file-upload/index.tsx"],"sourcesContent":[":host {\n color: var(--color-text01);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > .container {\n display: flex;\n flex-direction: column;\n}\n\n:host .modal-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: calc(var(--space-unit) * 2);\n}\n\n:host .modal-wrapper > .files-wrapper {\n display: flex;\n flex-direction: column;\n margin: calc(var(--space-unit) * 4);\n gap: var(--space-unit);\n}\n\n:host .text-container {\n display: flex;\n flex-direction: column;\n margin: auto;\n}\n\n:host .text-container .body-1 {\n text-align: center;\n}\n\n:host .text-container .upload-link {\n color: var(--color-link-primary);\n cursor: pointer;\n}\n\n:host .text-container .upload-link-text {\n margin-bottom: var(--space-unit);\n}\n\ninput#file-elem {\n display: none;\n}\n\n#title {\n display: inline-block;\n margin: calc(var(--space-unit) * 2.5) 0 calc(var(--space-unit) * 4);\n font-size: calc(var(--space-unit) * 3);\n font-weight: var(--font-sb);\n}\n\n:host > .container > z-button {\n display: inline-block;\n margin-top: calc(var(--space-unit) * 3);\n}\n\n:host > .container > .files-container.hidden {\n display: none;\n}\n\n:host > .container > .files-container > .heading-4-sb {\n display: inline-block;\n margin: calc(var(--space-unit) * 3) 0;\n font-size: calc(var(--space-unit) * 2);\n font-weight: var(--font-sb);\n}\n\n:host([type=\"dragdrop\"]) > .container > .files-container > .heading-4-sb {\n margin-top: 0;\n margin-bottom: calc(var(--space-unit) * 3);\n}\n\n:host > .container > .files-container > .files-wrapper {\n display: flex;\n flex-wrap: wrap;\n column-gap: calc(var(--space-unit) * 2);\n row-gap: calc(var(--space-unit) * 2);\n}\n\n:host > .container > .files-container > z-divider {\n margin-top: calc(var(--space-unit) * 3);\n margin-bottom: 0;\n}\n\n:host([type=\"dragdrop\"]) > .container > .files-container > z-divider {\n margin: calc(var(--space-unit) * 3) 0;\n}\n\n:host .error-message {\n font-size: 14px;\n font-weight: 400;\n letter-spacing: 0.16%;\n line-height: 20px;\n text-align: left;\n}\n\n:host .error-message > .file-name {\n font-weight: 600;\n}\n\n/* Tablet breakpoint */\n@media only screen and (min-width: 768px) {\n :host > .container > z-button {\n align-self: flex-start;\n }\n\n :host .modal-wrapper {\n padding: calc(var(--space-unit) * 3);\n }\n}\n\n@media only screen and (min-width: 1152px) {\n :host .modal-wrapper {\n padding: calc(var(--space-unit) * 4);\n }\n}\n","import {Component, Prop, h, EventEmitter, Event, State, Listen, Element, Host, Method} from \"@stencil/core\";\nimport {ButtonVariant, Device, DividerSize, ZFileUploadType} from \"../../../beans\";\nimport {getDevice} from \"../../../utils/utils\";\n\n@Component({\n tag: \"z-file-upload\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZFileUpload {\n /** Prop indicating the file upload type - can be default or dragdrop */\n @Prop({reflect: true})\n type: ZFileUploadType = ZFileUploadType.DEFAULT;\n\n /** Prop indicating the button variant*/\n @Prop()\n buttonVariant?: ButtonVariant;\n\n /** Prop indicating the accepted file type: ex \".pdf, .doc, .jpg\" */\n @Prop()\n acceptedFormat?: string;\n\n /** Max file dimension in Megabyte */\n @Prop()\n fileMaxSize?: number;\n\n /** Title */\n @Prop()\n mainTitle?: string;\n\n /** Description */\n @Prop()\n description?: string;\n\n /** Files added by the user */\n @State()\n files: File[] = [];\n\n /** upoload button label */\n @Prop()\n uploadBtnLabel?: string = \"allega\";\n\n /** drag & drop button label */\n @Prop()\n dragAndDropLabel?: string = \"Rilascia i file in questa area per allegarli.\";\n\n /** uploaded files history rendering */\n @Prop()\n hasFileSection?: boolean = true;\n\n /** List of files not allowed to be uploaded */\n @State()\n invalidFiles: Map<string, string[]>;\n\n @Element() el: HTMLZFileUploadElement;\n\n private input: HTMLInputElement;\n\n private button: HTMLZButtonElement;\n\n private errorModal: HTMLZModalElement;\n\n private uploadLink: HTMLSpanElement;\n\n private inputAttributes = {\n type: \"file\",\n id: \"file-elem\",\n multiple: true,\n };\n\n /** Listen removeFile event sent from z-file component */\n @Listen(\"removeFile\")\n removeFileListener(e: CustomEvent): void {\n this.removeFiles(e.detail);\n }\n\n /** Listen fileDropped event sent from z-dragdrop-area component */\n @Listen(\"fileDropped\")\n fileDroppedListener(e: CustomEvent): void {\n this.input.files = e.detail;\n this.fileInputHandler();\n }\n\n componentDidUpdate(): void {\n this.handleAccessibility();\n this.invalidFiles.size && this.errorModal.focus();\n }\n\n componentWillLoad(): void {\n this.invalidFiles = new Map<string, string[]>();\n }\n\n /** Emitted when user select one or more files */\n @Event()\n fileInput: EventEmitter;\n\n private fileInputHandler(): void {\n if (this.input.files.length) {\n this.invalidFiles = this.checkFiles(Array.from(this.input.files));\n }\n }\n\n /** get array of uploaded files */\n @Method()\n async getFiles(): Promise<File[]> {\n return this.files;\n }\n\n /** remove file from the array */\n @Method()\n async removeFile(fileName: string): Promise<void> {\n await this.removeFiles(fileName);\n }\n\n private async removeFiles(fileName: string): Promise<void> {\n const files = this.files;\n const file = files.find((file) => file.name === fileName);\n if (file) {\n const index = files.indexOf(file);\n if (index >= 0) {\n files.splice(index, 1);\n this.files = [...files];\n }\n }\n }\n\n private getType(): ZFileUploadType {\n if (getDevice() !== Device.DESKTOP && getDevice() !== Device.DESKTOP_WIDE) {\n return ZFileUploadType.DEFAULT;\n }\n\n return this.type;\n }\n\n private handleAccessibility(): void {\n const lastFile = this.el.querySelector(\"z-file:last-child z-chip button\");\n if (this.files.length > 0 && lastFile) {\n (lastFile as HTMLElement).focus();\n } else {\n this.getType() === ZFileUploadType.DEFAULT\n ? this.button.querySelector(\"button\").focus()\n : this.uploadLink.focus();\n }\n }\n\n private checkFiles(files: File[]): Map<string, string[]> {\n const errors = new Map<string, string[]>();\n const sizeErrorString = `supera il limite di ${this.fileMaxSize}MB`;\n const formatErrorString = \" ha un formato non supportato\";\n files.forEach((file: File) => {\n const fileSize = file.size / 1024 / 1024;\n const fileFormatOk = this.acceptedFormat\n .split(\",\")\n .some((ext: string) => file.name.toLowerCase().endsWith(ext.trim()));\n const fileSizeOk = fileSize <= this.fileMaxSize;\n if (fileSizeOk && fileFormatOk) {\n if (!this.files.find((f) => f.name === file.name)) {\n this.files.push(file);\n this.fileInput.emit(file);\n this.input.value = \"\";\n }\n\n return;\n }\n errors.set(file.name, []);\n if (!fileSizeOk) {\n errors.get(file.name).push(sizeErrorString);\n }\n if (!fileFormatOk) {\n errors.get(file.name).push(formatErrorString);\n }\n });\n\n return errors;\n }\n\n private renderTitle(): HTMLElement {\n return <span id=\"title\">{this.mainTitle}</span>;\n }\n\n private renderDescription(cssClass): HTMLElement {\n return <span class={cssClass}>{this.description}</span>;\n }\n\n private renderAllowedFileExtensions(): HTMLElement {\n let fileFormatString = \"\";\n let fileWeightString = \"\";\n\n if (this.acceptedFormat) {\n const fileFormat = this.acceptedFormat\n .split(\", \")\n .map((string) => string.substring(1).toUpperCase())\n .join(\", \");\n fileFormatString = ` nei formati ${fileFormat}`;\n }\n\n if (this.fileMaxSize) {\n fileWeightString = ` per un massimo di ${this.fileMaxSize}MB di peso`;\n }\n\n const finalString = `Puoi allegare file${fileFormatString}${fileWeightString}.`;\n\n return <span class=\"body-3\">{fileFormatString || fileWeightString ? finalString : null}</span>;\n }\n\n private renderFileSection(): HTMLElement {\n if (!this.hasFileSection) {\n return;\n }\n\n return (\n <section class={`files-container ${!this.files.length ? \"hidden\" : \"\"}`}>\n <span class=\"heading-4-sb\">File appena caricati</span>\n <div class=\"files-wrapper\">\n <slot name=\"files\" />\n </div>\n <z-divider size={DividerSize.MEDIUM} />\n </section>\n );\n }\n\n private renderInput(): HTMLInputElement {\n return (\n <input\n {...this.inputAttributes}\n onChange={() => this.fileInputHandler()}\n accept={this.acceptedFormat}\n ref={(val) => (this.input = val)}\n />\n );\n }\n\n private renderUploadButton(): unknown[] {\n return [\n this.renderInput(),\n <z-button\n onClick={() => this.input.click()}\n onKeyPress={(e) => {\n if (e.code == \"Space\" || e.code == \"Enter\") {\n e.preventDefault();\n this.input.click();\n }\n }}\n id=\"fileSelect\"\n variant={this.buttonVariant}\n icon=\"upload\"\n ref={(val) => (this.button = val)}\n >\n {this.uploadBtnLabel}\n </z-button>,\n ];\n }\n\n private renderUploadLink(): unknown[] {\n return [\n this.renderInput(),\n <span class=\"body-1 upload-link-text\">\n Trascina o{\" \"}\n <span\n tabIndex={0}\n class=\"body-1-sb upload-link\"\n onClick={() => this.input.click()}\n onKeyPress={(e) => {\n if (e.code == \"Space\" || e.code == \"Enter\") {\n e.preventDefault();\n this.input.click();\n }\n }}\n ref={(val) => (this.uploadLink = val)}\n >\n carica\n </span>{\" \"}\n dal tuo computer\n </span>,\n ];\n }\n\n private renderDefaultMode(): unknown[] {\n return [\n this.renderDescription(\"body-3-sb\"),\n this.renderAllowedFileExtensions(),\n this.renderFileSection(),\n this.renderUploadButton(),\n ];\n }\n\n private renderDragDropMode(): unknown[] {\n return [\n this.renderFileSection(),\n <z-dragdrop-area drag-and-drop-label={this.dragAndDropLabel}>\n <div class=\"text-container\">\n {this.renderDescription(\"body-1\")}\n {this.renderUploadLink()}\n {this.renderAllowedFileExtensions()}\n </div>\n </z-dragdrop-area>,\n ];\n }\n\n private formatErrorString(key, value): string {\n const bothErrors = value[0] && value[1] ? \" e \" : \"\";\n\n return (\n <span class=\"error-message\">\n Il file <span class=\"file-name\">{key}</span> {value[1] ?? \"\"}\n {bothErrors}\n {value[0] ?? \"\"}.\n </span>\n );\n }\n\n private handleErrorModalContent(): HTMLDivElement {\n return (\n <div slot=\"modalContent\">\n <div class=\"modal-wrapper\">\n <div class=\"files\">\n {Array.from(this.invalidFiles).map(([key, value]) => {\n return <span class=\"body-3\">{this.formatErrorString(key, value)}</span>;\n })}\n </div>\n </div>\n </div>\n );\n }\n\n render(): HTMLZFileUploadElement {\n return (\n <Host>\n <div\n tabIndex={0}\n class={`container ${this.getType()}`}\n >\n {this.mainTitle && this.renderTitle()}\n {this.getType() == ZFileUploadType.DEFAULT ? this.renderDefaultMode() : this.renderDragDropMode()}\n </div>\n {!!this.invalidFiles.size && (\n <z-modal\n modalid={`file-upload-${this.type}-error-modal`}\n tabIndex={0}\n ref={(val) => (this.errorModal = val)}\n modaltitle=\"Errore di caricamento\"\n onModalClose={() => (this.invalidFiles = new Map<string, string[]>())}\n onModalBackgroundClick={() => (this.invalidFiles = new Map<string, string[]>())}\n >\n {this.handleErrorModalContent()}\n </z-modal>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as e,h as a}from"./p-10bb4f4b.js";import{B as i,d as s}from"./p-025f494e.js";const o=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host z-myz-card{--card-overflow:visible}:host>div{position:relative;width:100%;height:522px;transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out, -webkit-transform 0.5s ease-out}:host>div .content{position:relative;z-index:2;width:100%;height:522px;transform-style:preserve-3d;transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out, -webkit-transform 0.5s ease-out}:host>div .content.flipped{margin-top:-2px;transform:rotateY(180deg)}:host>div .front,:host>div .back{position:absolute;top:0;left:0;width:100%;height:100%;backface-visibility:hidden}:host>div .front{z-index:2;top:0;left:0;transform:rotateY(0deg)}:host>div .front z-button{position:absolute;z-index:3;top:calc(var(--space-unit) * 0.5);left:calc(-1 * var(--space-unit))}:host>div .back{z-index:1;top:0;left:0;display:flex;justify-content:center;padding:0 var(--space-unit);margin-left:calc(-1 * var(--space-unit));transform:rotateY(180deg)}.hide-info{display:none}";const
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as e,h as a}from"./p-10bb4f4b.js";import{B as i,d as s}from"./p-025f494e.js";const o=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host z-myz-card{--card-overflow:visible}:host>div{position:relative;width:100%;height:522px;transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out, -webkit-transform 0.5s ease-out}:host>div .content{position:relative;z-index:2;width:100%;height:522px;transform-style:preserve-3d;transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out, -webkit-transform 0.5s ease-out}:host>div .content.flipped{margin-top:-2px;transform:rotateY(180deg)}:host>div .front,:host>div .back{position:absolute;top:0;left:0;width:100%;height:100%;backface-visibility:hidden}:host>div .front{z-index:2;top:0;left:0;transform:rotateY(0deg)}:host>div .front z-button{position:absolute;z-index:3;top:calc(var(--space-unit) * 0.5);left:calc(-1 * var(--space-unit))}:host>div .back{z-index:1;top:0;left:0;display:flex;justify-content:center;padding:0 var(--space-unit);margin-left:calc(-1 * var(--space-unit));transform:rotateY(180deg)}.hide-info{display:none}";const d=o;const n=class{constructor(a){t(this,a);this.cardFlipped=e(this,"cardFlipped",7);this.name=undefined;this.cover=undefined;this.disabled=false;this.flipped=false;this.flipbuttonlabel="INFO";this.hideinfobtn=false}handleFlipCard(t){this.flipCard(t.detail)}flipCard(t=true){this.flipped=t;this.cardFlipped.emit(t)}render(){return a("div",{key:"27902c8b5de865c26c56ba38e245b9bad6edbd18"},a("z-myz-card",{key:"fc8095edfa2a7d59331977975e24af5fb6e35930"},a("z-myz-card-header",{key:"66dd4738696aa8417d36de2bcd4e8b6957a5f5e2",titolo:this.name}),a("div",{key:"5f825ad42844b2e895f17516e7b090d3c5ce8a6c",class:`content ${this.flipped?"flipped":""}`},a("div",{key:"f86a2a9e7378ba99b4eacf5c106f1a0dce5f4f96",class:"front"},a("z-myz-card-body",{key:"ca603d9fde5d8eef714dce707d6d7107d3211e4d"},a("z-myz-card-cover",{key:"63381a0912ced7fd24ad16865417c4e1da993e77",slot:"cover",titolo:this.name,img:this.cover,faded:this.disabled})),a("z-button",{key:"0cdfdcd7c39064180d4ec16bd5c0beb4b82c6e8c",class:{"hide-info":this.hideinfobtn},variant:i.SECONDARY,icon:"informationsource",size:s.X_SMALL,onClick:()=>this.flipCard(true),disabled:this.flipped},this.flipbuttonlabel)),a("div",{key:"ca62bad1d808d9f5fec3b620fa558c0a6ecea908",class:"back"},a("slot",{key:"068e582536a203fbf6bbd56eeef4ede786b89d1c",name:"info"}))),a("slot",{key:"97fb9bea58f45f42d81ff5344f34a9acaba32639"})))}};n.style=d;export{n as z_myz_card_dictionary};
|
|
2
|
+
//# sourceMappingURL=p-210fbe0f.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,c as t,h as a,a as i,g as r}from"./p-10bb4f4b.js";import{B as s,d as l}from"./p-025f494e.js";import{m as o}from"./p-2c886e8b.js";import"./p-356aac96.js";import"./p-4bc82510.js";import"./p-5e585fe9.js";import"./p-6790a3c1.js";import"./p-ca5975a3.js";import"./p-011a7536.js";import"./p-820c2503.js";import"./p-55d22af2.js";import"./p-cc46f0ce.js";import"./p-6087739d.js";import"./p-955da62e.js";const d="z-table-deprecated{display:block;width:100%;background-color:var(--color-white);font-family:var(--font-family-sans);font-weight:var(--font-rg);overflow-x:auto}z-table-deprecated>div.table{display:table;width:100%;border-collapse:separate}z-table-deprecated>div.table-bordered>z-table-body>z-table-row>z-table-cell:not(:last-child),z-table-deprecated>div.table-bordered>z-table-head>z-table-header-row>z-table-header:not(:last-child){border-right:var(--border-size-small) solid var(--color-surface03)}z-table-deprecated>div>z-table-body>z-table-row[expandable]>z-table-cell:first-child,z-table-deprecated>div>z-table-head>z-table-header-row[expandable]>z-table-header:first-child{border-right:none}z-table-deprecated>div>z-table-body>z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table-deprecated>div>z-table-body>z-table-row[expanded]+z-table-expanded-row{border-bottom:1px solid var(--gray200)}z-table-deprecated>div.table-column-sticky>z-table-body>z-table-row>z-table-cell:first-child,z-table-deprecated>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{position:sticky;z-index:1;left:0;box-shadow:1px 0 4px -1px rgb(66 69 72 / 40%)}z-table-deprecated>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{position:sticky;z-index:2;top:0;box-shadow:0 2px 3px -3px rgb(66 69 72 / 40%)}z-table-deprecated>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header:first-child,z-table-deprecated>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(--color-surface03)}z-table-empty-box.bordered{border-left:var(--border-size-small) solid var(--color-surface03)}.error-message{margin-top:calc(var(--space-unit) * 2)}.table-content{display:flex;width:100%;flex-direction:row}.error-content{display:flex;padding:calc(var(--space-unit) * 3);font-family:var(--font-family-sans)}.error-content>img{width:244px;height:188px;margin-right:calc(var(--space-unit) * 3)}@media only screen and (max-width: 768px){z-table-deprecated>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}}";const n=d;const c=class{constructor(a){e(this,a);this.callToAction=t(this,"callToAction",7);this.callToActionTwo=t(this,"callToActionTwo",7);this.lines=undefined;this.errorMessage="Siamo spiacenti, non siamo riusciti a caricare il contenuto richiesto";this.bordered=false;this.callToActionLabel=undefined;this.callToActionTwoLabel=undefined;this.columnSticky=false;this.empty=false;this.error=false;this.errorLink=undefined;this.headerSticky=false;this.message="Siamo spiacenti, al momento non sono presenti dati da visualizzare";this.subtitle="";this.hasTableBody=undefined;this.isMobile=undefined}handleResize(){this.isMobile=window.innerWidth<=o}handleOrientationChange(){this.isMobile=screen.width<=o}componentWillLoad(){var e;this.isMobile=window.innerWidth<=o;const t=this.host.querySelector('[slot="table-body"]');this.hasTableBody=!!((e=t===null||t===void 0?void 0:t.children)===null||e===void 0?void 0:e.length);if(!!t&&!this.hasTableBody){t.remove()}}componentWillRender(){this.host.setAttribute("role","table")}renderError(e){const t=this.lines?`calc(40px * ${this.lines})`:"auto";return a(i,null,a("div",{class:e},a("slot",{name:"table-header"})),a("z-table-error",null,a("div",{class:"error-content",style:{minHeight:t}},a("slot",{name:"error-image"}),a("div",{class:"text"},a("span",{class:"body-3-sb error-message"},this.errorMessage),a("slot",{name:"error-action"})))))}renderEmpty(e){const t=this.isMobile?l.SMALL:l.BIG;const r=`${this.hasTableBody?"table-content":""}`;if(this.hasTableBody){return a(i,null,a("div",{class:e},a("slot",{name:"table-header"}),a("div",{class:r},a("slot",{name:"table-body"}),a("z-table-empty-box",{class:this.bordered&&"bordered",message:this.message,subtitle:this.subtitle},!!this.callToActionLabel&&a("z-button",{slot:"cta1",variant:s.TERTIARY,onClick:()=>this.callToAction.emit(),size:t},this.callToActionLabel),!!this.callToActionTwoLabel&&a("z-button",{slot:"cta2",variant:s.TERTIARY,onClick:()=>this.callToActionTwo.emit(),size:t},this.callToActionTwoLabel)))))}return a(i,null,a("div",{class:e},a("slot",{name:"table-header"})),a("z-table-empty-box",{class:this.bordered&&"bordered",message:this.message,subtitle:this.subtitle},!!this.callToActionLabel&&a("z-button",{slot:"cta1",variant:s.TERTIARY,onClick:()=>this.callToAction.emit(),size:t},this.callToActionLabel),!!this.callToActionTwoLabel&&a("z-button",{slot:"cta2",variant:s.TERTIARY,onClick:()=>this.callToActionTwo.emit(),size:t},this.callToActionTwoLabel)))}render(){const e=`table ${this.empty?"table-empty":""} ${this.bordered?"table-bordered":""}\n ${this.columnSticky?"table-column-sticky":""}\n ${this.headerSticky?"table-header-sticky":""}`;if(this.error){return this.renderError(e)}if(this.empty){return this.renderEmpty(e)}return a(i,null,a("div",{class:e},a("slot",null)),a("slot",{name:"sticky-footer"}))}static get assetsDirs(){return["assets"]}get host(){return r(this)}};c.style=n;export{c as z_table_deprecated};
|
|
2
|
+
//# sourceMappingURL=p-2731d501.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["stylesCss","ZTableDeprecatedStyle0","ZTableDeprecated","handleResize","this","isMobile","window","innerWidth","mobileBreakpoint","handleOrientationChange","screen","width","componentWillLoad","tableBody","host","querySelector","hasTableBody","_a","children","length","remove","componentWillRender","setAttribute","renderError","tableClass","minHeight","lines","h","Host","class","name","style","errorMessage","renderEmpty","buttonSize","ButtonSize","SMALL","BIG","tableContentClass","bordered","message","subtitle","callToActionLabel","slot","variant","ButtonVariant","TERTIARY","onClick","callToAction","emit","size","callToActionTwoLabel","callToActionTwo","render","empty","columnSticky","headerSticky","error"],"sources":["src/deprecated/z-table-deprecated/z-table-deprecated/styles.css?tag=z-table-deprecated","src/deprecated/z-table-deprecated/z-table-deprecated/index.tsx"],"sourcesContent":["z-table-deprecated {\n display: block;\n width: 100%;\n background-color: var(--color-white);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n overflow-x: auto;\n}\n\nz-table-deprecated > div.table {\n display: table;\n width: 100%;\n border-collapse: separate;\n}\n\nz-table-deprecated > div.table-bordered > z-table-body > z-table-row > z-table-cell:not(:last-child),\nz-table-deprecated > div.table-bordered > z-table-head > z-table-header-row > z-table-header:not(:last-child) {\n border-right: var(--border-size-small) solid var(--color-surface03);\n}\n\n/** Remove border right to first cell if row is expandable */\nz-table-deprecated > div > z-table-body > z-table-row[expandable] > z-table-cell:first-child,\nz-table-deprecated > div > z-table-head > z-table-header-row[expandable] > z-table-header:first-child {\n border-right: none;\n}\n\nz-table-deprecated > div > z-table-body > z-table-row[expanded] > z-table-cell {\n background-color: var(--gray50);\n}\n\nz-table-deprecated > div > z-table-body > z-table-row[expanded] + z-table-expanded-row {\n border-bottom: 1px solid var(--gray200);\n}\n\nz-table-deprecated > div.table-column-sticky > z-table-body > z-table-row > z-table-cell:first-child,\nz-table-deprecated > div.table-column-sticky > z-table-head > z-table-header-row > z-table-header:first-child {\n position: sticky;\n z-index: 1;\n left: 0;\n box-shadow: 1px 0 4px -1px rgb(66 69 72 / 40%);\n}\n\nz-table-deprecated > div.table-header-sticky > z-table-head > z-table-header-row > z-table-header {\n position: sticky;\n z-index: 2; /* L'ombra delle celle sticky non va sopra all'header fisso. */\n top: 0;\n box-shadow: 0 2px 3px -3px rgb(66 69 72 / 40%);\n}\n\n/**\n * La cella in alto a sinistra rimane sempre sopra alle cell durante lo scroll.\n */\nz-table-deprecated > div.table-header-sticky > z-table-head > z-table-header-row > z-table-header:first-child,\nz-table-deprecated > div.table-column-sticky > z-table-head > z-table-header-row > z-table-header:first-child {\n z-index: 5;\n}\n\nz-table-body {\n width: auto;\n background-color: var(--color-white);\n}\n\nz-table-empty-box {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n border-bottom: var(--border-size-small) solid var(--color-surface03);\n}\n\nz-table-empty-box.bordered {\n border-left: var(--border-size-small) solid var(--color-surface03);\n}\n\n.error-message {\n margin-top: calc(var(--space-unit) * 2);\n}\n\n.table-content {\n display: flex;\n width: 100%;\n flex-direction: row;\n}\n\n.error-content {\n display: flex;\n padding: calc(var(--space-unit) * 3);\n font-family: var(--font-family-sans);\n}\n\n.error-content > img {\n width: 244px;\n height: 188px;\n margin-right: calc(var(--space-unit) * 3);\n}\n\n/* Mobile */\n@media only screen and (max-width: 768px) {\n z-table-deprecated > div.table-empty {\n display: none;\n }\n\n .error-content {\n display: flex;\n flex-direction: column;\n }\n\n .error-content > img {\n width: auto;\n height: auto;\n }\n\n .text {\n padding: calc(var(--space-unit) * 3) 0;\n }\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, h} from \"@stencil/core\";\nimport {ButtonSize, ButtonVariant} from \"../../../beans\";\nimport {mobileBreakpoint} from \"../../../constants/breakpoints\";\nimport \"../z-table-body/index\";\nimport \"../z-table-cell/index\";\nimport \"../z-table-empty-box/index\";\nimport \"../z-table-expanded-row/index\";\nimport \"../z-table-footer/index\";\nimport \"../z-table-head/index\";\nimport \"../z-table-header/index\";\nimport \"../z-table-header-row/index\";\nimport \"../z-table-row/index\";\nimport \"../z-table-sticky-footer/index\";\n\n/**\n * @slot - table elements\n * @slot sticky-footer - set the content of the sticky footer\n * @deprecated\n */\n@Component({\n assetsDirs: [\"assets\"],\n styleUrl: \"styles.css\",\n tag: \"z-table-deprecated\",\n})\nexport class ZTableDeprecated {\n @Element() host: HTMLZTableDeprecatedElement;\n\n /** Number of lines of element */\n @Prop({reflect: true})\n lines?: number;\n\n /** Error message */\n @Prop()\n errorMessage?: string = \"Siamo spiacenti, non siamo riusciti a caricare il contenuto richiesto\";\n\n /** Sets table with border */\n @Prop()\n bordered?: boolean = false;\n\n /** Sets call to action label */\n @Prop()\n callToActionLabel?: string;\n\n /** Sets call to action label */\n @Prop()\n callToActionTwoLabel?: string;\n\n /** Sets first column sticky */\n @Prop()\n columnSticky?: boolean = false;\n\n /** Sets empty table */\n @Prop()\n empty?: boolean = false;\n\n /** Set error status */\n @Prop()\n error?: boolean = false;\n\n /** Set error status */\n @Prop()\n errorLink?: string;\n\n /** Sets header sticky */\n @Prop()\n headerSticky?: boolean = false;\n\n /** Set message */\n @Prop()\n message?: string = \"Siamo spiacenti, al momento non sono presenti dati da visualizzare\";\n\n /** Set subtitle */\n @Prop()\n subtitle?: string = \"\";\n\n /** Set if has table content, useful when empty conte to who first column */\n @State()\n hasTableBody: boolean;\n\n /** Handle mobile */\n @State()\n isMobile: boolean;\n /** remove call to action event */\n\n /** remove call to action event */\n @Event({\n eventName: \"callToAction\",\n composed: true,\n cancelable: true,\n bubbles: true,\n })\n callToAction: EventEmitter;\n\n /** remove call to action event */\n @Event({\n eventName: \"callToActionTwo\",\n composed: true,\n cancelable: true,\n bubbles: true,\n })\n callToActionTwo: EventEmitter;\n\n @Listen(\"resize\", {target: \"window\"})\n handleResize(): void {\n this.isMobile = window.innerWidth <= mobileBreakpoint;\n }\n\n @Listen(\"orientationchange\", {target: \"window\"})\n handleOrientationChange(): void {\n this.isMobile = screen.width <= mobileBreakpoint;\n }\n\n componentWillLoad(): void {\n this.isMobile = window.innerWidth <= mobileBreakpoint;\n\n const tableBody = this.host.querySelector('[slot=\"table-body\"]');\n this.hasTableBody = !!tableBody?.children?.length;\n\n if (!!tableBody && !this.hasTableBody) {\n tableBody.remove();\n }\n }\n\n componentWillRender(): void {\n this.host.setAttribute(\"role\", \"table\");\n }\n\n private renderError(tableClass): HTMLZTableDeprecatedElement {\n const minHeight = this.lines ? `calc(40px * ${this.lines})` : \"auto\";\n\n return (\n <Host>\n <div class={tableClass}>\n <slot name=\"table-header\" />\n </div>\n <z-table-error>\n <div\n class=\"error-content\"\n style={{minHeight}}\n >\n <slot name=\"error-image\" />\n <div class=\"text\">\n <span class=\"body-3-sb error-message\">{this.errorMessage}</span>\n <slot name=\"error-action\" />\n </div>\n </div>\n </z-table-error>\n </Host>\n );\n }\n\n private renderEmpty(tableClass): HTMLZTableDeprecatedElement {\n const buttonSize = this.isMobile ? ButtonSize.SMALL : ButtonSize.BIG;\n const tableContentClass = `${this.hasTableBody ? \"table-content\" : \"\"}`;\n if (this.hasTableBody) {\n return (\n <Host>\n <div class={tableClass}>\n <slot name=\"table-header\" />\n <div class={tableContentClass}>\n <slot name=\"table-body\" />\n <z-table-empty-box\n class={this.bordered && \"bordered\"}\n message={this.message}\n subtitle={this.subtitle}\n >\n {!!this.callToActionLabel && (\n <z-button\n slot=\"cta1\"\n variant={ButtonVariant.TERTIARY}\n onClick={() => this.callToAction.emit()}\n size={buttonSize}\n >\n {this.callToActionLabel}\n </z-button>\n )}\n {!!this.callToActionTwoLabel && (\n <z-button\n slot=\"cta2\"\n variant={ButtonVariant.TERTIARY}\n onClick={() => this.callToActionTwo.emit()}\n size={buttonSize}\n >\n {this.callToActionTwoLabel}\n </z-button>\n )}\n </z-table-empty-box>\n </div>\n </div>\n </Host>\n );\n }\n\n return (\n <Host>\n <div class={tableClass}>\n <slot name=\"table-header\" />\n </div>\n <z-table-empty-box\n class={this.bordered && \"bordered\"}\n message={this.message}\n subtitle={this.subtitle}\n >\n {!!this.callToActionLabel && (\n <z-button\n slot=\"cta1\"\n variant={ButtonVariant.TERTIARY}\n onClick={() => this.callToAction.emit()}\n size={buttonSize}\n >\n {this.callToActionLabel}\n </z-button>\n )}\n {!!this.callToActionTwoLabel && (\n <z-button\n slot=\"cta2\"\n variant={ButtonVariant.TERTIARY}\n onClick={() => this.callToActionTwo.emit()}\n size={buttonSize}\n >\n {this.callToActionTwoLabel}\n </z-button>\n )}\n </z-table-empty-box>\n </Host>\n );\n }\n\n render(): HTMLZTableDeprecatedElement {\n const tableClass = `table ${this.empty ? \"table-empty\" : \"\"} ${this.bordered ? \"table-bordered\" : \"\"}\n ${this.columnSticky ? \"table-column-sticky\" : \"\"}\n ${this.headerSticky ? \"table-header-sticky\" : \"\"}`;\n\n if (this.error) {\n return this.renderError(tableClass);\n }\n if (this.empty) {\n return this.renderEmpty(tableClass);\n }\n\n return (\n <Host>\n <div class={tableClass}>\n <slot />\n </div>\n <slot name=\"sticky-footer\" />\n </Host>\n );\n }\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as i,h as e}from"./p-10bb4f4b.js";import{f as n}from"./p-025f494e.js";const r=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}.digits-container{display:flex;justify-content:flex-start}input{width:calc(var(--space-unit) * 5);height:72px;box-sizing:border-box;padding:0;caret-color:transparent;color:var(--color-surface05);font-family:var(--font-family-sans);font-size:32px;font-weight:300;text-align:center}input.error{border:1px solid;border-color:var(--color-error01);background-color:var(--color-error-inverse);border-radius:4px}input:not(:last-of-type){margin-right:var(--space-unit)}@media only screen and (min-width: 768px){input:not(:last-of-type){margin-right:calc(var(--space-unit) * 2)}}@media only screen and (min-width: 1025px){input{width:calc(var(--space-unit) * 6)}}";const
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as i,h as e}from"./p-10bb4f4b.js";import{f as n}from"./p-025f494e.js";const r=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}.digits-container{display:flex;justify-content:flex-start}input{width:calc(var(--space-unit) * 5);height:72px;box-sizing:border-box;padding:0;caret-color:transparent;color:var(--color-surface05);font-family:var(--font-family-sans);font-size:32px;font-weight:300;text-align:center}input.error{border:1px solid;border-color:var(--color-error01);background-color:var(--color-error-inverse);border-radius:4px}input:not(:last-of-type){margin-right:var(--space-unit)}@media only screen and (min-width: 768px){input:not(:last-of-type){margin-right:calc(var(--space-unit) * 2)}}@media only screen and (min-width: 1025px){input{width:calc(var(--space-unit) * 6)}}";const a=r;const s=class{constructor(e){t(this,e);this.otpChange=i(this,"otpChange",7);this.inputNum=6;this.status=undefined;this.message=undefined}emitInputChange(t){this.otpChange.emit({value:t})}componentWillLoad(){this.otp=[...Array(this.inputNum)];this.otpRef=[...Array(this.inputNum)]}render(){return e("div",{key:"ed4894a5e991ebb5e870ab0a1f54c75217721c5c",class:"otp-container"},e("div",{key:"1bef4aae264fb80813a5b7b71412eb638c17736d",class:"digits-container"},this.otp.map(((t,i)=>e("input",{class:this.status==n.ERROR?"error":null,onKeyDown:t=>{if(t.keyCode>47){this.otpRef[i].value=""}},onKeyUp:t=>{if(t.keyCode>47){i<this.inputNum-1&&this.otpRef[i+1].focus()}},onInput:t=>{this.otp[i]=t.target.value;this.emitInputChange(this.otp.join(""))},type:"text",minlength:"1",maxlength:"1",autoComplete:"off",ref:t=>this.otpRef[i]=t})))),e("z-input-message",{key:"6b40b61f792ad0f1789a44d27b51657e2f446a8b",message:this.message,status:this.status}))}};s.style=a;export{s as z_otp};
|
|
2
|
+
//# sourceMappingURL=p-2f72475d.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as o,g as a}from"./p-10bb4f4b.js";const r=".sc-z-table-body-h{display:table-row-group;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.sc-z-table-body-h>z-table-row[expanded].sc-z-table-body+z-table-expanded-row.sc-z-table-body{display:table-row}";const e=r;const s=class{constructor(o){t(this,o)}componentWillRender(){this.host.setAttribute("role","rowgroup");Array.from(this.host.children).forEach(((t,o)=>t.setAttribute("aria-rowindex",`${o}`)))}render(){return o("slot",{key:"d422df9305a81ae9beb6b1a695cf08a944f7b893"})}get host(){return a(this)}};s.style=e;export{s as Z};
|
|
2
|
+
//# sourceMappingURL=p-356aac96.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["stylesCss","ZTableBodyStyle0","ZTableBody","componentWillRender","this","host","setAttribute","Array","from","children","forEach","child","index","render","h","key"],"sources":["src/deprecated/z-table-deprecated/z-table-body/styles.css?tag=z-table-body&encapsulation=scoped","src/deprecated/z-table-deprecated/z-table-body/index.tsx"],"sourcesContent":[":host {\n display: table-row-group;\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > z-table-row[expanded] + z-table-expanded-row {\n display: table-row;\n}\n","import {Component, Element, h} from \"@stencil/core\";\n\n/**\n * @deprecated\n */\n@Component({\n tag: \"z-table-body\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZTableBody {\n @Element() host: HTMLZTableBodyElement;\n\n componentWillRender(): void {\n this.host.setAttribute(\"role\", \"rowgroup\");\n\n Array.from(this.host.children).forEach((child, index) => child.setAttribute(\"aria-rowindex\", `${index}`));\n }\n\n render(): HTMLSlotElement {\n return <slot />;\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAY,6NAClB,MAAAC,EAAeD,E,MCUFE,EAAU,M,yBAGrB,mBAAAC,GACEC,KAAKC,KAAKC,aAAa,OAAQ,YAE/BC,MAAMC,KAAKJ,KAAKC,KAAKI,UAAUC,SAAQ,CAACC,EAAOC,IAAUD,EAAML,aAAa,gBAAiB,GAAGM,M,CAGlG,MAAAC,GACE,OAAOC,EAAA,QAAAC,IAAA,4C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as i,a as n,g as o}from"./p-10bb4f4b.js";import{d as s,a as e}from"./p-955da62e.js";import{T as c}from"./p-025f494e.js";import"./p-2c886e8b.js";const r=".sc-z-skip-to-content-h{position:absolute;left:-100%;height:60px;box-sizing:border-box;padding:calc(var(--space-unit) * 1.25) calc(var(--space-unit) * 3);background-color:#24f4ff;font-family:var(--font-family-sans);font-weight:var(--font-rg);text-align:center}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content{display:inline-flex;height:100%;align-items:center}.skip-to-content-visible.sc-z-skip-to-content-h,.sc-z-skip-to-content-h:focus{position:static;display:block}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content>a.z-link.link-invisible.sc-z-skip-to-content{overflow:hidden;width:0;height:0}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content>a.z-link.link-visible.sc-z-skip-to-content{width:initial;height:initial}.dark.sc-z-skip-to-content-h{background-color:var(--color-surface05);color:var(--color-surface01)}.light.sc-z-skip-to-content-h{border:var(--border-size-medium) solid var(--color-surface05);background-color:var(--color-surface01);color:var(--color-text01)}@media (min-width: 768px){.sc-z-skip-to-content-h{text-align:start}}@media (min-width: 1152px){.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content{padding:0 calc(var(--space-unit) * 3);border-right:var(--border-size-small) solid var(--color-surface05)}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content>a.z-link.link-invisible.sc-z-skip-to-content{overflow:initial;width:initial;height:initial}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content:first-child{padding-left:0}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content:last-child,.dark.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content:last-child,.light.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content:last-child{padding-right:0;border-right:none}.dark.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content{border-right:var(--border-size-small) solid var(--color-surface01)}}";const a=r;const l=class{constructor(i){t(this,i);this.variant=undefined;this.links=[];this.visible=false;this.visibleLink=""}handleFocusOutSkipToContent(t){if(this.isInSkipToContent(t.target)){this.visible=false}}handleFocusSkipToContent(t){if(this.isInSkipToContent(t.target)){this.visible=true}}componentDidLoad(){this.showFirstChild()}componentWillRender(){if(this.links){this.links=typeof this.links==="string"?JSON.parse(this.links):this.links}}isInSkipToContent(t){const i=s(t);const n=i.find((t=>t.nodeName.toLowerCase()==="z-skip-to-content"));return!!n}showFirstChild(){var t;const i=(t=this.hostElement.children)===null||t===void 0?void 0:t[0];if(i){this.visibleLink=i.id}}handleLinkClick(){this.visible=false}render(){return i(n,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as i,a as n,g as o}from"./p-10bb4f4b.js";import{d as s,a as e}from"./p-955da62e.js";import{T as c}from"./p-025f494e.js";import"./p-2c886e8b.js";const r=".sc-z-skip-to-content-h{position:absolute;left:-100%;height:60px;box-sizing:border-box;padding:calc(var(--space-unit) * 1.25) calc(var(--space-unit) * 3);background-color:#24f4ff;font-family:var(--font-family-sans);font-weight:var(--font-rg);text-align:center}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content{display:inline-flex;height:100%;align-items:center}.skip-to-content-visible.sc-z-skip-to-content-h,.sc-z-skip-to-content-h:focus{position:static;display:block}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content>a.z-link.link-invisible.sc-z-skip-to-content{overflow:hidden;width:0;height:0}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content>a.z-link.link-visible.sc-z-skip-to-content{width:initial;height:initial}.dark.sc-z-skip-to-content-h{background-color:var(--color-surface05);color:var(--color-surface01)}.light.sc-z-skip-to-content-h{border:var(--border-size-medium) solid var(--color-surface05);background-color:var(--color-surface01);color:var(--color-text01)}@media (min-width: 768px){.sc-z-skip-to-content-h{text-align:start}}@media (min-width: 1152px){.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content{padding:0 calc(var(--space-unit) * 3);border-right:var(--border-size-small) solid var(--color-surface05)}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content>a.z-link.link-invisible.sc-z-skip-to-content{overflow:initial;width:initial;height:initial}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content:first-child{padding-left:0}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content:last-child,.dark.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content:last-child,.light.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content:last-child{padding-right:0;border-right:none}.dark.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content{border-right:var(--border-size-small) solid var(--color-surface01)}}";const a=r;const l=class{constructor(i){t(this,i);this.variant=undefined;this.links=[];this.visible=false;this.visibleLink=""}handleFocusOutSkipToContent(t){if(this.isInSkipToContent(t.target)){this.visible=false}}handleFocusSkipToContent(t){if(this.isInSkipToContent(t.target)){this.visible=true}}componentDidLoad(){this.showFirstChild()}componentWillRender(){if(this.links){this.links=typeof this.links==="string"?JSON.parse(this.links):this.links}}isInSkipToContent(t){const i=s(t);const n=i.find((t=>t.nodeName.toLowerCase()==="z-skip-to-content"));return!!n}showFirstChild(){var t;const i=(t=this.hostElement.children)===null||t===void 0?void 0:t[0];if(i){this.visibleLink=i.id}}handleLinkClick(){this.visible=false}render(){return i(n,{key:"148da854d3c5a83e5c103b3efcc5358f86278936",class:{[this.variant]:true,"skip-to-content-visible":this.visible}},this.links.map(((t,n)=>{const o=`skip-to-content-${n}`;return i("div",{class:"link-container"},i("a",{id:o,class:{"body-1-sb":true,"z-link":true,"z-link-underline":true,"z-link-white":this.variant===c.DARK,"z-link-black":this.variant!==c.DARK,"link-visible":o==this.visibleLink,"link-invisible":o!=this.visibleLink},"aria-label":t.ariaLabel||t.label,href:t.href,onFocus:()=>this.visibleLink=o,onClick:()=>this.handleLinkClick(),onKeyUp:t=>e(t,this.handleLinkClick.bind(this))},t.label))})))}get hostElement(){return o(this)}};l.style=a;export{l as z_skip_to_content};
|
|
2
|
+
//# sourceMappingURL=p-378b2bbf.entry.js.map
|