@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,286 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { NavigationTabsOrientation, NavigationTabsSize } from "../../beans";
|
|
3
|
+
import { ICONS } from "../../components/icons/icons";
|
|
4
|
+
/**
|
|
5
|
+
* Single tab component to use inside `z-navigation-tabs`. It renders a button.
|
|
6
|
+
* This component uses the `tab` role:
|
|
7
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/tab_role
|
|
8
|
+
*/
|
|
9
|
+
export class ZNavigationTab {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.ariaControls = undefined;
|
|
12
|
+
this.tabId = undefined;
|
|
13
|
+
this.selected = false;
|
|
14
|
+
this.disabled = false;
|
|
15
|
+
this.orientation = NavigationTabsOrientation.HORIZONTAL;
|
|
16
|
+
this.size = NavigationTabsSize.BIG;
|
|
17
|
+
this.icon = undefined;
|
|
18
|
+
this.label = undefined;
|
|
19
|
+
this.htmlTitle = undefined;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Scroll into view to center the tab.
|
|
23
|
+
*/
|
|
24
|
+
scrollToTab({ target: button }) {
|
|
25
|
+
const scrollOptions = (this.orientation === NavigationTabsOrientation.HORIZONTAL
|
|
26
|
+
? { block: "nearest", inline: "center" }
|
|
27
|
+
: { block: "center", inline: "nearest" });
|
|
28
|
+
button.scrollIntoView(Object.assign({ behavior: "smooth" }, scrollOptions));
|
|
29
|
+
}
|
|
30
|
+
onClick() {
|
|
31
|
+
if (!this.disabled) {
|
|
32
|
+
this.selected = true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
onSelected() {
|
|
36
|
+
if (this.selected) {
|
|
37
|
+
this.selectedEvent.emit();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Render the icon component using the icon's name passed from prop.
|
|
42
|
+
* Use the `filled` version when the tab is `selected`.
|
|
43
|
+
* @returns {HTMLElement}
|
|
44
|
+
*/
|
|
45
|
+
renderIcon() {
|
|
46
|
+
let icon = this.icon;
|
|
47
|
+
const iconFilled = `${icon.replace(/-filled$/, "")}-filled`;
|
|
48
|
+
if (this.selected && Object.keys(ICONS).includes(iconFilled)) {
|
|
49
|
+
icon = iconFilled;
|
|
50
|
+
}
|
|
51
|
+
return h("z-icon", { name: icon });
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
return (h(Host, { key: '9f7613292bba051a6fbf38a9da4979d9ad46bce3', role: "tab", id: this.tabId, "aria-selected": this.selected ? "true" : "false", "aria-controls": this.ariaControls }, h("button", { key: '724d57e9b6d12f6f4cf30755ff17e5ae51bdc4a5', tabIndex: this.selected ? 0 : -1, onFocus: this.scrollToTab.bind(this), disabled: this.disabled, title: this.htmlTitle }, this.icon && this.renderIcon(), this.orientation === NavigationTabsOrientation.HORIZONTAL && this.label)));
|
|
55
|
+
}
|
|
56
|
+
static get is() { return "z-navigation-tab"; }
|
|
57
|
+
static get originalStyleUrls() {
|
|
58
|
+
return {
|
|
59
|
+
"$": ["../navigation-tab.css"]
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
static get styleUrls() {
|
|
63
|
+
return {
|
|
64
|
+
"$": ["../navigation-tab.css"]
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
static get properties() {
|
|
68
|
+
return {
|
|
69
|
+
"ariaControls": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"mutable": false,
|
|
72
|
+
"complexType": {
|
|
73
|
+
"original": "string",
|
|
74
|
+
"resolved": "string",
|
|
75
|
+
"references": {}
|
|
76
|
+
},
|
|
77
|
+
"required": false,
|
|
78
|
+
"optional": true,
|
|
79
|
+
"docs": {
|
|
80
|
+
"tags": [{
|
|
81
|
+
"name": "link",
|
|
82
|
+
"text": "https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls"
|
|
83
|
+
}],
|
|
84
|
+
"text": "`aria-controls` attribute of the tab.\nIdentifies the element (with `role=tabpanel`) whose contents or presence are controlled by this tab.\nThe value must be the `id` of the element it controls."
|
|
85
|
+
},
|
|
86
|
+
"attribute": "aria-controls",
|
|
87
|
+
"reflect": false
|
|
88
|
+
},
|
|
89
|
+
"tabId": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"mutable": false,
|
|
92
|
+
"complexType": {
|
|
93
|
+
"original": "string",
|
|
94
|
+
"resolved": "string",
|
|
95
|
+
"references": {}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": true,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [{
|
|
101
|
+
"name": "link",
|
|
102
|
+
"text": "https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby"
|
|
103
|
+
}, {
|
|
104
|
+
"name": "deprecated",
|
|
105
|
+
"text": "Use native `id` attribute instead"
|
|
106
|
+
}],
|
|
107
|
+
"text": "`id` attribute of the tab.\nSet this id to the `aria-labelledby` attribute of the controlled `tabpanel` element."
|
|
108
|
+
},
|
|
109
|
+
"attribute": "tab-id",
|
|
110
|
+
"reflect": false
|
|
111
|
+
},
|
|
112
|
+
"selected": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"mutable": true,
|
|
115
|
+
"complexType": {
|
|
116
|
+
"original": "boolean",
|
|
117
|
+
"resolved": "boolean",
|
|
118
|
+
"references": {}
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"optional": true,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": "Whether the tab is selected."
|
|
125
|
+
},
|
|
126
|
+
"attribute": "selected",
|
|
127
|
+
"reflect": true,
|
|
128
|
+
"defaultValue": "false"
|
|
129
|
+
},
|
|
130
|
+
"disabled": {
|
|
131
|
+
"type": "boolean",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "boolean",
|
|
135
|
+
"resolved": "boolean",
|
|
136
|
+
"references": {}
|
|
137
|
+
},
|
|
138
|
+
"required": false,
|
|
139
|
+
"optional": true,
|
|
140
|
+
"docs": {
|
|
141
|
+
"tags": [],
|
|
142
|
+
"text": "Whether the tab is disabled."
|
|
143
|
+
},
|
|
144
|
+
"attribute": "disabled",
|
|
145
|
+
"reflect": true,
|
|
146
|
+
"defaultValue": "false"
|
|
147
|
+
},
|
|
148
|
+
"orientation": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"mutable": false,
|
|
151
|
+
"complexType": {
|
|
152
|
+
"original": "NavigationTabsOrientation",
|
|
153
|
+
"resolved": "NavigationTabsOrientation.HORIZONTAL | NavigationTabsOrientation.VERTICAL",
|
|
154
|
+
"references": {
|
|
155
|
+
"NavigationTabsOrientation": {
|
|
156
|
+
"location": "import",
|
|
157
|
+
"path": "../../beans",
|
|
158
|
+
"id": "src/beans/index.tsx::NavigationTabsOrientation"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"required": false,
|
|
163
|
+
"optional": false,
|
|
164
|
+
"docs": {
|
|
165
|
+
"tags": [],
|
|
166
|
+
"text": "Tab orientation. Do not set this manually: `z-navigation-tabs` will handle this."
|
|
167
|
+
},
|
|
168
|
+
"attribute": "orientation",
|
|
169
|
+
"reflect": true,
|
|
170
|
+
"defaultValue": "NavigationTabsOrientation.HORIZONTAL"
|
|
171
|
+
},
|
|
172
|
+
"size": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"mutable": false,
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "NavigationTabsSize",
|
|
177
|
+
"resolved": "NavigationTabsSize.BIG | NavigationTabsSize.SMALL",
|
|
178
|
+
"references": {
|
|
179
|
+
"NavigationTabsSize": {
|
|
180
|
+
"location": "import",
|
|
181
|
+
"path": "../../beans",
|
|
182
|
+
"id": "src/beans/index.tsx::NavigationTabsSize"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": "Tab size. Do not set this manually: `z-navigation-tabs` will handle this."
|
|
191
|
+
},
|
|
192
|
+
"attribute": "size",
|
|
193
|
+
"reflect": true,
|
|
194
|
+
"defaultValue": "NavigationTabsSize.BIG"
|
|
195
|
+
},
|
|
196
|
+
"icon": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"mutable": false,
|
|
199
|
+
"complexType": {
|
|
200
|
+
"original": "string",
|
|
201
|
+
"resolved": "string",
|
|
202
|
+
"references": {}
|
|
203
|
+
},
|
|
204
|
+
"required": false,
|
|
205
|
+
"optional": false,
|
|
206
|
+
"docs": {
|
|
207
|
+
"tags": [{
|
|
208
|
+
"name": "deprecated",
|
|
209
|
+
"text": "Use a native `<button>` instead."
|
|
210
|
+
}],
|
|
211
|
+
"text": "Name of the icon to use.\nThe `filled` version will be automatically used (if found) when the tab is `selected`."
|
|
212
|
+
},
|
|
213
|
+
"attribute": "icon",
|
|
214
|
+
"reflect": false
|
|
215
|
+
},
|
|
216
|
+
"label": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"mutable": false,
|
|
219
|
+
"complexType": {
|
|
220
|
+
"original": "string",
|
|
221
|
+
"resolved": "string",
|
|
222
|
+
"references": {}
|
|
223
|
+
},
|
|
224
|
+
"required": false,
|
|
225
|
+
"optional": false,
|
|
226
|
+
"docs": {
|
|
227
|
+
"tags": [],
|
|
228
|
+
"text": "Label to show in the tab."
|
|
229
|
+
},
|
|
230
|
+
"attribute": "label",
|
|
231
|
+
"reflect": false
|
|
232
|
+
},
|
|
233
|
+
"htmlTitle": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"mutable": false,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "string",
|
|
238
|
+
"resolved": "string",
|
|
239
|
+
"references": {}
|
|
240
|
+
},
|
|
241
|
+
"required": false,
|
|
242
|
+
"optional": false,
|
|
243
|
+
"docs": {
|
|
244
|
+
"tags": [],
|
|
245
|
+
"text": "Html `title` attribute for the button."
|
|
246
|
+
},
|
|
247
|
+
"attribute": "html-title",
|
|
248
|
+
"reflect": false
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
static get events() {
|
|
253
|
+
return [{
|
|
254
|
+
"method": "selectedEvent",
|
|
255
|
+
"name": "selected",
|
|
256
|
+
"bubbles": true,
|
|
257
|
+
"cancelable": true,
|
|
258
|
+
"composed": true,
|
|
259
|
+
"docs": {
|
|
260
|
+
"tags": [],
|
|
261
|
+
"text": "The tab has been selected."
|
|
262
|
+
},
|
|
263
|
+
"complexType": {
|
|
264
|
+
"original": "any",
|
|
265
|
+
"resolved": "any",
|
|
266
|
+
"references": {}
|
|
267
|
+
}
|
|
268
|
+
}];
|
|
269
|
+
}
|
|
270
|
+
static get watchers() {
|
|
271
|
+
return [{
|
|
272
|
+
"propName": "selected",
|
|
273
|
+
"methodName": "onSelected"
|
|
274
|
+
}];
|
|
275
|
+
}
|
|
276
|
+
static get listeners() {
|
|
277
|
+
return [{
|
|
278
|
+
"name": "click",
|
|
279
|
+
"method": "onClick",
|
|
280
|
+
"target": undefined,
|
|
281
|
+
"capture": false,
|
|
282
|
+
"passive": false
|
|
283
|
+
}];
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/deprecated/z-navigation-tab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAgB,KAAK,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AAC3F,OAAO,EAAC,yBAAyB,EAAE,kBAAkB,EAAC,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAC,KAAK,EAAC,MAAM,8BAA8B,CAAC;AAEnD;;;;GAIG;AAKH,MAAM,OAAO,cAAc;;;;wBAuBJ,KAAK;wBAML,KAAK;2BAMe,yBAAyB,CAAC,UAAU;oBAMlD,kBAAkB,CAAC,GAAG;;;;;IA4BjD;;OAEG;IACK,WAAW,CAAC,EAAC,MAAM,EAAE,MAAM,EAAC;QAClC,MAAM,aAAa,GAAG,CACpB,IAAI,CAAC,WAAW,KAAK,yBAAyB,CAAC,UAAU;YACvD,CAAC,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC;YACtC,CAAC,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAC,CAChB,CAAC;QAE3B,MAAM,CAAC,cAAc,iBACnB,QAAQ,EAAE,QAAQ,IACf,aAAa,EAChB,CAAC;IACL,CAAC;IAGD,OAAO;QACL,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACvB,CAAC;IACH,CAAC;IAGD,UAAU;QACR,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC;IAED;;;;OAIG;IACK,UAAU;QAChB,IAAI,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACrB,MAAM,UAAU,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,SAAS,CAAC;QAE5D,IAAI,IAAI,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YAC7D,IAAI,GAAG,UAAU,CAAC;QACpB,CAAC;QAED,OAAO,cAAQ,IAAI,EAAE,IAAI,GAAW,CAAC;IACvC,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,IAAI,EAAC,KAAK,EACV,EAAE,EAAE,IAAI,CAAC,KAAK,mBACC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,mBAChC,IAAI,CAAC,YAAY;YAEhC,+DACE,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAChC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EACpC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,KAAK,EAAE,IAAI,CAAC,SAAS;gBAEpB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;gBAC9B,IAAI,CAAC,WAAW,KAAK,yBAAyB,CAAC,UAAU,IAAI,IAAI,CAAC,KAAK,CACjE,CACJ,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Prop, h, Listen, Event, EventEmitter, Watch, Host} from \"@stencil/core\";\nimport {NavigationTabsOrientation, NavigationTabsSize} from \"../../beans\";\nimport {ICONS} from \"../../components/icons/icons\";\n\n/**\n * Single tab component to use inside `z-navigation-tabs`. It renders a button.\n * This component uses the `tab` role:\n * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/tab_role\n */\n@Component({\n tag: \"z-navigation-tab\",\n styleUrl: \"../navigation-tab.css\",\n})\nexport class ZNavigationTab {\n /**\n * `aria-controls` attribute of the tab.\n * Identifies the element (with `role=tabpanel`) whose contents or presence are controlled by this tab.\n * The value must be the `id` of the element it controls.\n * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls\n */\n @Prop()\n ariaControls?: string;\n\n /**\n * `id` attribute of the tab.\n * Set this id to the `aria-labelledby` attribute of the controlled `tabpanel` element.\n * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby\n * @deprecated Use native `id` attribute instead\n */\n @Prop()\n tabId?: string;\n\n /**\n * Whether the tab is selected.\n */\n @Prop({mutable: true, reflect: true})\n selected?: boolean = false;\n\n /**\n * Whether the tab is disabled.\n */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /**\n * Tab orientation. Do not set this manually: `z-navigation-tabs` will handle this.\n */\n @Prop({reflect: true})\n orientation: NavigationTabsOrientation = NavigationTabsOrientation.HORIZONTAL;\n\n /**\n * Tab size. Do not set this manually: `z-navigation-tabs` will handle this.\n */\n @Prop({reflect: true})\n size: NavigationTabsSize = NavigationTabsSize.BIG;\n\n /**\n * Name of the icon to use.\n * The `filled` version will be automatically used (if found) when the tab is `selected`.\n * @deprecated Use a native `<button>` instead.\n */\n @Prop()\n icon: string;\n\n /**\n * Label to show in the tab.\n */\n @Prop()\n label: string;\n\n /**\n * Html `title` attribute for the button.\n */\n @Prop()\n htmlTitle: string;\n\n /**\n * The tab has been selected.\n */\n @Event({eventName: \"selected\"})\n private selectedEvent: EventEmitter;\n\n /**\n * Scroll into view to center the tab.\n */\n private scrollToTab({target: button}): void {\n const scrollOptions = (\n this.orientation === NavigationTabsOrientation.HORIZONTAL\n ? {block: \"nearest\", inline: \"center\"}\n : {block: \"center\", inline: \"nearest\"}\n ) as ScrollIntoViewOptions;\n\n button.scrollIntoView({\n behavior: \"smooth\",\n ...scrollOptions,\n });\n }\n\n @Listen(\"click\")\n onClick(): void {\n if (!this.disabled) {\n this.selected = true;\n }\n }\n\n @Watch(\"selected\")\n onSelected(): void {\n if (this.selected) {\n this.selectedEvent.emit();\n }\n }\n\n /**\n * Render the icon component using the icon's name passed from prop.\n * Use the `filled` version when the tab is `selected`.\n * @returns {HTMLElement}\n */\n private renderIcon(): HTMLZIconElement {\n let icon = this.icon;\n const iconFilled = `${icon.replace(/-filled$/, \"\")}-filled`;\n\n if (this.selected && Object.keys(ICONS).includes(iconFilled)) {\n icon = iconFilled;\n }\n\n return <z-icon name={icon}></z-icon>;\n }\n\n render(): HTMLZNavigationTabElement {\n return (\n <Host\n role=\"tab\"\n id={this.tabId}\n aria-selected={this.selected ? \"true\" : \"false\"}\n aria-controls={this.ariaControls}\n >\n <button\n tabIndex={this.selected ? 0 : -1}\n onFocus={this.scrollToTab.bind(this)}\n disabled={this.disabled}\n title={this.htmlTitle}\n >\n {this.icon && this.renderIcon()}\n {this.orientation === NavigationTabsOrientation.HORIZONTAL && this.label}\n </button>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { NavigationTabsOrientation, NavigationTabsSize } from "../../beans";
|
|
3
|
+
import { ICONS } from "../../components/icons/icons";
|
|
4
|
+
/**
|
|
5
|
+
* Single tab component to use inside `z-navigation-tabs`. It renders an anchor element.
|
|
6
|
+
* This component uses the `tab` role:
|
|
7
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/tab_role
|
|
8
|
+
* @deprecated Use a native `<a>` instead.
|
|
9
|
+
*/
|
|
10
|
+
export class ZNavigationTabLink {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.ariaControls = undefined;
|
|
13
|
+
this.tabId = undefined;
|
|
14
|
+
this.selected = false;
|
|
15
|
+
this.disabled = false;
|
|
16
|
+
this.orientation = NavigationTabsOrientation.HORIZONTAL;
|
|
17
|
+
this.size = NavigationTabsSize.BIG;
|
|
18
|
+
this.htmlTitle = undefined;
|
|
19
|
+
this.target = undefined;
|
|
20
|
+
this.href = undefined;
|
|
21
|
+
this.icon = undefined;
|
|
22
|
+
this.label = undefined;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Scroll into view to center the tab.
|
|
26
|
+
*/
|
|
27
|
+
scrollToTab({ target: button }) {
|
|
28
|
+
const scrollOptions = (this.orientation === NavigationTabsOrientation.HORIZONTAL
|
|
29
|
+
? { block: "nearest", inline: "center" }
|
|
30
|
+
: { block: "center", inline: "nearest" });
|
|
31
|
+
button.scrollIntoView(Object.assign({ behavior: "smooth" }, scrollOptions));
|
|
32
|
+
}
|
|
33
|
+
onClick() {
|
|
34
|
+
if (this.disabled) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
this.selected = true;
|
|
38
|
+
}
|
|
39
|
+
onSelected() {
|
|
40
|
+
if (this.selected) {
|
|
41
|
+
this.selectedEvent.emit();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Render the icon component using the icon's name passed from prop.
|
|
46
|
+
* Use the `filled` version when the tab is `selected`.
|
|
47
|
+
* @returns {HTMLElement}
|
|
48
|
+
*/
|
|
49
|
+
renderIcon() {
|
|
50
|
+
let icon = this.icon;
|
|
51
|
+
const iconFilled = `${icon.replace(/-filled$/, "")}-filled`;
|
|
52
|
+
if (this.selected && Object.keys(ICONS).includes(iconFilled)) {
|
|
53
|
+
icon = iconFilled;
|
|
54
|
+
}
|
|
55
|
+
return h("z-icon", { name: icon });
|
|
56
|
+
}
|
|
57
|
+
render() {
|
|
58
|
+
return (h(Host, { key: '77c729dd9c1bfd412d958eb477f2e227ba7fc7a7', role: "tab", id: this.tabId, "aria-selected": this.selected ? "true" : "false", "aria-controls": this.ariaControls }, h("a", { key: '3b70074a8637c2df922e6c5dcfc38f45c14ae770', tabIndex: this.selected ? 0 : -1, onFocus: this.scrollToTab.bind(this), href: this.disabled ? null : this.href, title: this.htmlTitle, target: this.target }, this.icon && this.renderIcon(), this.orientation === "horizontal" && this.label)));
|
|
59
|
+
}
|
|
60
|
+
static get is() { return "z-navigation-tab-link"; }
|
|
61
|
+
static get originalStyleUrls() {
|
|
62
|
+
return {
|
|
63
|
+
"$": ["../navigation-tab.css"]
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
static get styleUrls() {
|
|
67
|
+
return {
|
|
68
|
+
"$": ["../navigation-tab.css"]
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
static get properties() {
|
|
72
|
+
return {
|
|
73
|
+
"ariaControls": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"mutable": false,
|
|
76
|
+
"complexType": {
|
|
77
|
+
"original": "string",
|
|
78
|
+
"resolved": "string",
|
|
79
|
+
"references": {}
|
|
80
|
+
},
|
|
81
|
+
"required": false,
|
|
82
|
+
"optional": true,
|
|
83
|
+
"docs": {
|
|
84
|
+
"tags": [{
|
|
85
|
+
"name": "link",
|
|
86
|
+
"text": "https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls"
|
|
87
|
+
}],
|
|
88
|
+
"text": "`aria-controls` attribute of the tab.\nIdentifies the element (with `role=tabpanel`) whose contents or presence are controlled by this tab.\nThe value must be the `id` of the element it controls."
|
|
89
|
+
},
|
|
90
|
+
"attribute": "aria-controls",
|
|
91
|
+
"reflect": false
|
|
92
|
+
},
|
|
93
|
+
"tabId": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"mutable": false,
|
|
96
|
+
"complexType": {
|
|
97
|
+
"original": "string",
|
|
98
|
+
"resolved": "string",
|
|
99
|
+
"references": {}
|
|
100
|
+
},
|
|
101
|
+
"required": false,
|
|
102
|
+
"optional": true,
|
|
103
|
+
"docs": {
|
|
104
|
+
"tags": [{
|
|
105
|
+
"name": "link",
|
|
106
|
+
"text": "https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby"
|
|
107
|
+
}, {
|
|
108
|
+
"name": "deprecated",
|
|
109
|
+
"text": "Use native `id` attribute instead"
|
|
110
|
+
}],
|
|
111
|
+
"text": "`id` attribute of the tab.\nSet this id to the `aria-labelledby` attribute of the controlled `tabpanel` element."
|
|
112
|
+
},
|
|
113
|
+
"attribute": "tab-id",
|
|
114
|
+
"reflect": false
|
|
115
|
+
},
|
|
116
|
+
"selected": {
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"mutable": true,
|
|
119
|
+
"complexType": {
|
|
120
|
+
"original": "boolean",
|
|
121
|
+
"resolved": "boolean",
|
|
122
|
+
"references": {}
|
|
123
|
+
},
|
|
124
|
+
"required": false,
|
|
125
|
+
"optional": true,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [],
|
|
128
|
+
"text": "Whether the tab is selected."
|
|
129
|
+
},
|
|
130
|
+
"attribute": "selected",
|
|
131
|
+
"reflect": true,
|
|
132
|
+
"defaultValue": "false"
|
|
133
|
+
},
|
|
134
|
+
"disabled": {
|
|
135
|
+
"type": "boolean",
|
|
136
|
+
"mutable": false,
|
|
137
|
+
"complexType": {
|
|
138
|
+
"original": "boolean",
|
|
139
|
+
"resolved": "boolean",
|
|
140
|
+
"references": {}
|
|
141
|
+
},
|
|
142
|
+
"required": false,
|
|
143
|
+
"optional": true,
|
|
144
|
+
"docs": {
|
|
145
|
+
"tags": [],
|
|
146
|
+
"text": "Whether the tab is disabled."
|
|
147
|
+
},
|
|
148
|
+
"attribute": "disabled",
|
|
149
|
+
"reflect": true,
|
|
150
|
+
"defaultValue": "false"
|
|
151
|
+
},
|
|
152
|
+
"orientation": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"mutable": false,
|
|
155
|
+
"complexType": {
|
|
156
|
+
"original": "NavigationTabsOrientation",
|
|
157
|
+
"resolved": "NavigationTabsOrientation.HORIZONTAL | NavigationTabsOrientation.VERTICAL",
|
|
158
|
+
"references": {
|
|
159
|
+
"NavigationTabsOrientation": {
|
|
160
|
+
"location": "import",
|
|
161
|
+
"path": "../../beans",
|
|
162
|
+
"id": "src/beans/index.tsx::NavigationTabsOrientation"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"required": false,
|
|
167
|
+
"optional": false,
|
|
168
|
+
"docs": {
|
|
169
|
+
"tags": [],
|
|
170
|
+
"text": "Tab orientation. Do not set this manually: `z-navigation-tabs` will handle this."
|
|
171
|
+
},
|
|
172
|
+
"attribute": "orientation",
|
|
173
|
+
"reflect": true,
|
|
174
|
+
"defaultValue": "NavigationTabsOrientation.HORIZONTAL"
|
|
175
|
+
},
|
|
176
|
+
"size": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"mutable": false,
|
|
179
|
+
"complexType": {
|
|
180
|
+
"original": "NavigationTabsSize",
|
|
181
|
+
"resolved": "NavigationTabsSize.BIG | NavigationTabsSize.SMALL",
|
|
182
|
+
"references": {
|
|
183
|
+
"NavigationTabsSize": {
|
|
184
|
+
"location": "import",
|
|
185
|
+
"path": "../../beans",
|
|
186
|
+
"id": "src/beans/index.tsx::NavigationTabsSize"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"required": false,
|
|
191
|
+
"optional": false,
|
|
192
|
+
"docs": {
|
|
193
|
+
"tags": [],
|
|
194
|
+
"text": "Tab size. Do not set this manually: `z-navigation-tabs` will handle this."
|
|
195
|
+
},
|
|
196
|
+
"attribute": "size",
|
|
197
|
+
"reflect": true,
|
|
198
|
+
"defaultValue": "NavigationTabsSize.BIG"
|
|
199
|
+
},
|
|
200
|
+
"htmlTitle": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"mutable": false,
|
|
203
|
+
"complexType": {
|
|
204
|
+
"original": "string",
|
|
205
|
+
"resolved": "string",
|
|
206
|
+
"references": {}
|
|
207
|
+
},
|
|
208
|
+
"required": false,
|
|
209
|
+
"optional": false,
|
|
210
|
+
"docs": {
|
|
211
|
+
"tags": [],
|
|
212
|
+
"text": "Html title attribute for the anchor element."
|
|
213
|
+
},
|
|
214
|
+
"attribute": "html-title",
|
|
215
|
+
"reflect": false
|
|
216
|
+
},
|
|
217
|
+
"target": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"mutable": false,
|
|
220
|
+
"complexType": {
|
|
221
|
+
"original": "string",
|
|
222
|
+
"resolved": "string",
|
|
223
|
+
"references": {}
|
|
224
|
+
},
|
|
225
|
+
"required": false,
|
|
226
|
+
"optional": false,
|
|
227
|
+
"docs": {
|
|
228
|
+
"tags": [],
|
|
229
|
+
"text": "Html `target` attribute for the anchor element."
|
|
230
|
+
},
|
|
231
|
+
"attribute": "target",
|
|
232
|
+
"reflect": false
|
|
233
|
+
},
|
|
234
|
+
"href": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"mutable": false,
|
|
237
|
+
"complexType": {
|
|
238
|
+
"original": "string",
|
|
239
|
+
"resolved": "string",
|
|
240
|
+
"references": {}
|
|
241
|
+
},
|
|
242
|
+
"required": false,
|
|
243
|
+
"optional": false,
|
|
244
|
+
"docs": {
|
|
245
|
+
"tags": [],
|
|
246
|
+
"text": "Url to set to the anchor element."
|
|
247
|
+
},
|
|
248
|
+
"attribute": "href",
|
|
249
|
+
"reflect": false
|
|
250
|
+
},
|
|
251
|
+
"icon": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"mutable": false,
|
|
254
|
+
"complexType": {
|
|
255
|
+
"original": "string",
|
|
256
|
+
"resolved": "string",
|
|
257
|
+
"references": {}
|
|
258
|
+
},
|
|
259
|
+
"required": false,
|
|
260
|
+
"optional": false,
|
|
261
|
+
"docs": {
|
|
262
|
+
"tags": [],
|
|
263
|
+
"text": "Name of the icon to use.\nThe `filled` version will be automatically used (if found) when the tab is `selected`."
|
|
264
|
+
},
|
|
265
|
+
"attribute": "icon",
|
|
266
|
+
"reflect": false
|
|
267
|
+
},
|
|
268
|
+
"label": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"mutable": false,
|
|
271
|
+
"complexType": {
|
|
272
|
+
"original": "string",
|
|
273
|
+
"resolved": "string",
|
|
274
|
+
"references": {}
|
|
275
|
+
},
|
|
276
|
+
"required": false,
|
|
277
|
+
"optional": false,
|
|
278
|
+
"docs": {
|
|
279
|
+
"tags": [],
|
|
280
|
+
"text": "Label to show in the tab."
|
|
281
|
+
},
|
|
282
|
+
"attribute": "label",
|
|
283
|
+
"reflect": false
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
static get events() {
|
|
288
|
+
return [{
|
|
289
|
+
"method": "selectedEvent",
|
|
290
|
+
"name": "selected",
|
|
291
|
+
"bubbles": true,
|
|
292
|
+
"cancelable": true,
|
|
293
|
+
"composed": true,
|
|
294
|
+
"docs": {
|
|
295
|
+
"tags": [],
|
|
296
|
+
"text": "The tab has been selected."
|
|
297
|
+
},
|
|
298
|
+
"complexType": {
|
|
299
|
+
"original": "any",
|
|
300
|
+
"resolved": "any",
|
|
301
|
+
"references": {}
|
|
302
|
+
}
|
|
303
|
+
}];
|
|
304
|
+
}
|
|
305
|
+
static get watchers() {
|
|
306
|
+
return [{
|
|
307
|
+
"propName": "selected",
|
|
308
|
+
"methodName": "onSelected"
|
|
309
|
+
}];
|
|
310
|
+
}
|
|
311
|
+
static get listeners() {
|
|
312
|
+
return [{
|
|
313
|
+
"name": "click",
|
|
314
|
+
"method": "onClick",
|
|
315
|
+
"target": undefined,
|
|
316
|
+
"capture": false,
|
|
317
|
+
"passive": false
|
|
318
|
+
}];
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/deprecated/z-navigation-tab-link/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAgB,KAAK,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AAC3F,OAAO,EAAC,yBAAyB,EAAE,kBAAkB,EAAC,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAC,KAAK,EAAC,MAAM,8BAA8B,CAAC;AAEnD;;;;;GAKG;AAKH,MAAM,OAAO,kBAAkB;;;;wBAuBR,KAAK;wBAML,KAAK;2BAMZ,yBAAyB,CAAC,UAAU;oBAM3C,kBAAkB,CAAC,GAAG;;;;;;;IAuC7B;;OAEG;IACK,WAAW,CAAC,EAAC,MAAM,EAAE,MAAM,EAAC;QAClC,MAAM,aAAa,GAAG,CACpB,IAAI,CAAC,WAAW,KAAK,yBAAyB,CAAC,UAAU;YACvD,CAAC,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC;YACtC,CAAC,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAC,CAChB,CAAC;QAE3B,MAAM,CAAC,cAAc,iBACnB,QAAQ,EAAE,QAAQ,IACf,aAAa,EAChB,CAAC;IACL,CAAC;IAGD,OAAO;QACL,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,OAAO;QACT,CAAC;QAED,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvB,CAAC;IAGD,UAAU;QACR,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC;IAED;;;;OAIG;IACK,UAAU;QAChB,IAAI,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACrB,MAAM,UAAU,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,SAAS,CAAC;QAE5D,IAAI,IAAI,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YAC7D,IAAI,GAAG,UAAU,CAAC;QACpB,CAAC;QAED,OAAO,cAAQ,IAAI,EAAE,IAAI,GAAW,CAAC;IACvC,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,IAAI,EAAC,KAAK,EACV,EAAE,EAAE,IAAI,CAAC,KAAK,mBACC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,mBAChC,IAAI,CAAC,YAAY;YAEhC,0DACE,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAChC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EACpC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EACtC,KAAK,EAAE,IAAI,CAAC,SAAS,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM;gBAElB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;gBAC9B,IAAI,CAAC,WAAW,KAAK,YAAY,IAAI,IAAI,CAAC,KAAK,CAC9C,CACC,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Prop, h, Listen, Event, EventEmitter, Watch, Host} from \"@stencil/core\";\nimport {NavigationTabsOrientation, NavigationTabsSize} from \"../../beans\";\nimport {ICONS} from \"../../components/icons/icons\";\n\n/**\n * Single tab component to use inside `z-navigation-tabs`. It renders an anchor element.\n * This component uses the `tab` role:\n * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/tab_role\n * @deprecated Use a native `<a>` instead.\n */\n@Component({\n tag: \"z-navigation-tab-link\",\n styleUrl: \"../navigation-tab.css\",\n})\nexport class ZNavigationTabLink {\n /**\n * `aria-controls` attribute of the tab.\n * Identifies the element (with `role=tabpanel`) whose contents or presence are controlled by this tab.\n * The value must be the `id` of the element it controls.\n * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls\n */\n @Prop()\n ariaControls?: string;\n\n /**\n * `id` attribute of the tab.\n * Set this id to the `aria-labelledby` attribute of the controlled `tabpanel` element.\n * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby\n * @deprecated Use native `id` attribute instead\n */\n @Prop()\n tabId?: string;\n\n /**\n * Whether the tab is selected.\n */\n @Prop({mutable: true, reflect: true})\n selected?: boolean = false;\n\n /**\n * Whether the tab is disabled.\n */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /**\n * Tab orientation. Do not set this manually: `z-navigation-tabs` will handle this.\n */\n @Prop({reflect: true})\n orientation = NavigationTabsOrientation.HORIZONTAL;\n\n /**\n * Tab size. Do not set this manually: `z-navigation-tabs` will handle this.\n */\n @Prop({reflect: true})\n size = NavigationTabsSize.BIG;\n\n /**\n * Html title attribute for the anchor element.\n */\n @Prop()\n htmlTitle: string;\n\n /**\n * Html `target` attribute for the anchor element.\n */\n @Prop()\n target: string;\n\n /**\n * Url to set to the anchor element.\n */\n @Prop()\n href: string;\n\n /**\n * Name of the icon to use.\n * The `filled` version will be automatically used (if found) when the tab is `selected`.\n */\n @Prop()\n icon: string;\n\n /**\n * Label to show in the tab.\n */\n @Prop()\n label: string;\n\n /**\n * The tab has been selected.\n */\n @Event({eventName: \"selected\"})\n private selectedEvent: EventEmitter;\n\n /**\n * Scroll into view to center the tab.\n */\n private scrollToTab({target: button}): void {\n const scrollOptions = (\n this.orientation === NavigationTabsOrientation.HORIZONTAL\n ? {block: \"nearest\", inline: \"center\"}\n : {block: \"center\", inline: \"nearest\"}\n ) as ScrollIntoViewOptions;\n\n button.scrollIntoView({\n behavior: \"smooth\",\n ...scrollOptions,\n });\n }\n\n @Listen(\"click\")\n onClick(): void {\n if (this.disabled) {\n return;\n }\n\n this.selected = true;\n }\n\n @Watch(\"selected\")\n onSelected(): void {\n if (this.selected) {\n this.selectedEvent.emit();\n }\n }\n\n /**\n * Render the icon component using the icon's name passed from prop.\n * Use the `filled` version when the tab is `selected`.\n * @returns {HTMLElement}\n */\n private renderIcon(): HTMLZIconElement {\n let icon = this.icon;\n const iconFilled = `${icon.replace(/-filled$/, \"\")}-filled`;\n\n if (this.selected && Object.keys(ICONS).includes(iconFilled)) {\n icon = iconFilled;\n }\n\n return <z-icon name={icon}></z-icon>;\n }\n\n render(): HTMLZNavigationTabLinkElement {\n return (\n <Host\n role=\"tab\"\n id={this.tabId}\n aria-selected={this.selected ? \"true\" : \"false\"}\n aria-controls={this.ariaControls}\n >\n <a\n tabIndex={this.selected ? 0 : -1}\n onFocus={this.scrollToTab.bind(this)}\n href={this.disabled ? null : this.href}\n title={this.htmlTitle}\n target={this.target}\n >\n {this.icon && this.renderIcon()}\n {this.orientation === \"horizontal\" && this.label}\n </a>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated
|
|
4
|
+
*/
|
|
5
|
+
export class ZTableBody {
|
|
6
|
+
componentWillRender() {
|
|
7
|
+
this.host.setAttribute("role", "rowgroup");
|
|
8
|
+
Array.from(this.host.children).forEach((child, index) => child.setAttribute("aria-rowindex", `${index}`));
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return h("slot", { key: 'd422df9305a81ae9beb6b1a695cf08a944f7b893' });
|
|
12
|
+
}
|
|
13
|
+
static get is() { return "z-table-body"; }
|
|
14
|
+
static get encapsulation() { return "scoped"; }
|
|
15
|
+
static get originalStyleUrls() {
|
|
16
|
+
return {
|
|
17
|
+
"$": ["styles.css"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
static get styleUrls() {
|
|
21
|
+
return {
|
|
22
|
+
"$": ["styles.css"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get elementRef() { return "host"; }
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/deprecated/z-table-deprecated/z-table-body/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAEpD;;GAEG;AAOH,MAAM,OAAO,UAAU;IAGrB,mBAAmB;QACjB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAE3C,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,eAAe,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC;IAC5G,CAAC;IAED,MAAM;QACJ,OAAO,8DAAQ,CAAC;IAClB,CAAC;;;;;;;;;;CACF","sourcesContent":["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"]}
|