@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,21 @@
|
|
|
1
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
+
import { ZTableBody } from "./index";
|
|
3
|
+
describe("Suite test ZTableBody", () => {
|
|
4
|
+
it("Test render ZTableBody con slot", async () => {
|
|
5
|
+
const page = await newSpecPage({
|
|
6
|
+
components: [ZTableBody],
|
|
7
|
+
html: `<z-table-body><z-table-row></z-table-row></z-table-body>`,
|
|
8
|
+
});
|
|
9
|
+
expect(page.root).toEqualHtml(`<z-table-body role="rowgroup">
|
|
10
|
+
<z-table-row aria-rowindex="0"></z-table-row>
|
|
11
|
+
</z-table-body>`);
|
|
12
|
+
});
|
|
13
|
+
it("Test render ZTableBody con role rowgroup", async () => {
|
|
14
|
+
const page = await newSpecPage({
|
|
15
|
+
components: [ZTableBody],
|
|
16
|
+
html: `<z-table-body></z-table-body>`,
|
|
17
|
+
});
|
|
18
|
+
expect(page.root.getAttribute("role")).toEqual("rowgroup");
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=index.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../src/deprecated/z-table-deprecated/z-table-body/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AAEnC,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,EAAE,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;QAC/C,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,UAAU,CAAC;YACxB,IAAI,EAAE,0DAA0D;SACjE,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAC3B;;sBAEgB,CACjB,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;QACxD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,UAAU,CAAC;YACxB,IAAI,EAAE,+BAA+B;SACtC,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import {newSpecPage} from \"@stencil/core/testing\";\n\nimport {ZTableBody} from \"./index\";\n\ndescribe(\"Suite test ZTableBody\", () => {\n it(\"Test render ZTableBody con slot\", async () => {\n const page = await newSpecPage({\n components: [ZTableBody],\n html: `<z-table-body><z-table-row></z-table-row></z-table-body>`,\n });\n\n expect(page.root).toEqualHtml(\n `<z-table-body role=\"rowgroup\">\n <z-table-row aria-rowindex=\"0\"></z-table-row>\n </z-table-body>`\n );\n });\n\n it(\"Test render ZTableBody con role rowgroup\", async () => {\n const page = await newSpecPage({\n components: [ZTableBody],\n html: `<z-table-body></z-table-body>`,\n });\n\n expect(page.root.getAttribute(\"role\")).toEqual(\"rowgroup\");\n });\n});\n"]}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { ButtonVariant, ButtonSize } from "../../../beans";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
6
|
+
export class ZTableCell {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.showButton = undefined;
|
|
9
|
+
this.padding = "medium";
|
|
10
|
+
this.isMenuOpened = false;
|
|
11
|
+
}
|
|
12
|
+
handleMenu() {
|
|
13
|
+
this.isMenuOpened = !this.isMenuOpened;
|
|
14
|
+
}
|
|
15
|
+
componentWillRender() {
|
|
16
|
+
this.host.setAttribute("role", "cell");
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return (h(Host, { key: 'a55491d43ef04929fdd38073b589d12d5d373ca4' }, this.showButton && (h("div", { class: {
|
|
20
|
+
"button-container": true,
|
|
21
|
+
"visible": this.isMenuOpened,
|
|
22
|
+
} }, h("div", { class: "button-content" }, h("z-button", { icon: "contextual-menu", variant: ButtonVariant.TERTIARY, size: ButtonSize.X_SMALL, onClick: () => this.handleMenu() }), h("div", { class: {
|
|
23
|
+
"contextual-menu-container": true,
|
|
24
|
+
"visible": this.isMenuOpened,
|
|
25
|
+
} }, h("slot", { name: "contextual-menu" }))))), h("slot", { key: 'd8d5dab5bac78f43151d50d22df6cfbefdc81694' })));
|
|
26
|
+
}
|
|
27
|
+
static get is() { return "z-table-cell"; }
|
|
28
|
+
static get encapsulation() { return "shadow"; }
|
|
29
|
+
static get originalStyleUrls() {
|
|
30
|
+
return {
|
|
31
|
+
"$": ["styles.css"]
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
static get styleUrls() {
|
|
35
|
+
return {
|
|
36
|
+
"$": ["styles.css"]
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
static get properties() {
|
|
40
|
+
return {
|
|
41
|
+
"showButton": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"mutable": false,
|
|
44
|
+
"complexType": {
|
|
45
|
+
"original": "boolean",
|
|
46
|
+
"resolved": "boolean",
|
|
47
|
+
"references": {}
|
|
48
|
+
},
|
|
49
|
+
"required": false,
|
|
50
|
+
"optional": true,
|
|
51
|
+
"docs": {
|
|
52
|
+
"tags": [],
|
|
53
|
+
"text": "[Optional] Show contextual menu button"
|
|
54
|
+
},
|
|
55
|
+
"attribute": "show-button",
|
|
56
|
+
"reflect": false
|
|
57
|
+
},
|
|
58
|
+
"padding": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"mutable": false,
|
|
61
|
+
"complexType": {
|
|
62
|
+
"original": "\"x-small\" | \"small\" | \"medium\" | \"large\" | \"special\"",
|
|
63
|
+
"resolved": "\"large\" | \"medium\" | \"small\" | \"special\" | \"x-small\"",
|
|
64
|
+
"references": {}
|
|
65
|
+
},
|
|
66
|
+
"required": false,
|
|
67
|
+
"optional": false,
|
|
68
|
+
"docs": {
|
|
69
|
+
"tags": [],
|
|
70
|
+
"text": "Set padding size of cell, if special 0px padding will be set"
|
|
71
|
+
},
|
|
72
|
+
"attribute": "padding",
|
|
73
|
+
"reflect": true,
|
|
74
|
+
"defaultValue": "\"medium\""
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
static get states() {
|
|
79
|
+
return {
|
|
80
|
+
"isMenuOpened": {}
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
static get elementRef() { return "host"; }
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/deprecated/z-table-deprecated/z-table-cell/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,eAAe,CAAC;AACvE,OAAO,EAAC,aAAa,EAAE,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAEzD;;GAEG;AAMH,MAAM,OAAO,UAAU;;;uBAS2C,QAAQ;4BAGzD,KAAK;;IAEZ,UAAU;QAChB,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;IACzC,CAAC;IAED,mBAAmB;QACjB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACF,IAAI,CAAC,UAAU,IAAI,CAClB,WACE,KAAK,EAAE;oBACL,kBAAkB,EAAE,IAAI;oBACxB,SAAS,EAAE,IAAI,CAAC,YAAY;iBAC7B;gBAED,WAAK,KAAK,EAAC,gBAAgB;oBACzB,gBACE,IAAI,EAAC,iBAAiB,EACtB,OAAO,EAAE,aAAa,CAAC,QAAQ,EAC/B,IAAI,EAAE,UAAU,CAAC,OAAO,EACxB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,GAChC;oBACF,WACE,KAAK,EAAE;4BACL,2BAA2B,EAAE,IAAI;4BACjC,SAAS,EAAE,IAAI,CAAC,YAAY;yBAC7B;wBAED,YAAM,IAAI,EAAC,iBAAiB,GAAG,CAC3B,CACF,CACF,CACP;YACD,8DAAQ,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, h, Host, Prop, State} from \"@stencil/core\";\nimport {ButtonVariant, ButtonSize} from \"../../../beans\";\n\n/**\n * @deprecated\n */\n@Component({\n tag: \"z-table-cell\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTableCell {\n @Element() host: HTMLZTableCellElement;\n\n /** [Optional] Show contextual menu button */\n @Prop()\n showButton?: boolean;\n\n /** Set padding size of cell, if special 0px padding will be set */\n @Prop({reflect: true})\n padding: \"x-small\" | \"small\" | \"medium\" | \"large\" | \"special\" = \"medium\";\n\n @State()\n isMenuOpened = false;\n\n private handleMenu(): void {\n this.isMenuOpened = !this.isMenuOpened;\n }\n\n componentWillRender(): void {\n this.host.setAttribute(\"role\", \"cell\");\n }\n\n render(): HTMLZTableCellElement {\n return (\n <Host>\n {this.showButton && (\n <div\n class={{\n \"button-container\": true,\n \"visible\": this.isMenuOpened,\n }}\n >\n <div class=\"button-content\">\n <z-button\n icon=\"contextual-menu\"\n variant={ButtonVariant.TERTIARY}\n size={ButtonSize.X_SMALL}\n onClick={() => this.handleMenu()}\n />\n <div\n class={{\n \"contextual-menu-container\": true,\n \"visible\": this.isMenuOpened,\n }}\n >\n <slot name=\"contextual-menu\" />\n </div>\n </div>\n </div>\n )}\n <slot />\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
+
import { ZTableCell } from "./index";
|
|
3
|
+
describe("Suite test ZTableCell", () => {
|
|
4
|
+
it("Test render ZTableCell con slot", async () => {
|
|
5
|
+
const page = await newSpecPage({
|
|
6
|
+
components: [ZTableCell],
|
|
7
|
+
html: `<z-table-cell><span>Test</span></z-table-cell>`,
|
|
8
|
+
});
|
|
9
|
+
expect(page.root).toEqualHtml(`
|
|
10
|
+
<z-table-cell padding="medium" role="cell">
|
|
11
|
+
<mock:shadow-root>
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</mock:shadow-root>
|
|
14
|
+
<span>Test</span>
|
|
15
|
+
</z-table-cell>
|
|
16
|
+
`);
|
|
17
|
+
});
|
|
18
|
+
it("Test render ZTableCell con button", async () => {
|
|
19
|
+
const page = await newSpecPage({
|
|
20
|
+
components: [ZTableCell],
|
|
21
|
+
html: `<z-table-cell show-button="true"><span>Test</span></z-table-cell>`,
|
|
22
|
+
});
|
|
23
|
+
expect(page.root).toEqualHtml(`
|
|
24
|
+
<z-table-cell padding="medium" role="cell" show-button="true">
|
|
25
|
+
<mock:shadow-root>
|
|
26
|
+
<div class="button-container">
|
|
27
|
+
<div class="button-content">
|
|
28
|
+
<z-button icon="contextual-menu" size="x-small" variant="tertiary"></z-button>
|
|
29
|
+
<div class="contextual-menu-container">
|
|
30
|
+
<slot name="contextual-menu"></slot>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
<slot></slot>
|
|
35
|
+
</mock:shadow-root>
|
|
36
|
+
<span>
|
|
37
|
+
Test
|
|
38
|
+
</span>
|
|
39
|
+
</z-table-cell>
|
|
40
|
+
`);
|
|
41
|
+
});
|
|
42
|
+
it("Test render ZTableCell con role cell", async () => {
|
|
43
|
+
const page = await newSpecPage({
|
|
44
|
+
components: [ZTableCell],
|
|
45
|
+
html: `<z-table-cell></z-table-cell>`,
|
|
46
|
+
});
|
|
47
|
+
expect(page.root.getAttribute("role")).toEqual("cell");
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=index.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../src/deprecated/z-table-deprecated/z-table-cell/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AAEnC,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,EAAE,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;QAC/C,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,UAAU,CAAC;YACxB,IAAI,EAAE,gDAAgD;SACvD,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;KAO7B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;QACjD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,UAAU,CAAC;YACxB,IAAI,EAAE,mEAAmE;SAC1E,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;KAiB7B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sCAAsC,EAAE,KAAK,IAAI,EAAE;QACpD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,UAAU,CAAC;YACxB,IAAI,EAAE,+BAA+B;SACtC,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import {newSpecPage} from \"@stencil/core/testing\";\n\nimport {ZTableCell} from \"./index\";\n\ndescribe(\"Suite test ZTableCell\", () => {\n it(\"Test render ZTableCell con slot\", async () => {\n const page = await newSpecPage({\n components: [ZTableCell],\n html: `<z-table-cell><span>Test</span></z-table-cell>`,\n });\n\n expect(page.root).toEqualHtml(`\n <z-table-cell padding=\"medium\" role=\"cell\">\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n <span>Test</span>\n </z-table-cell>\n `);\n });\n\n it(\"Test render ZTableCell con button\", async () => {\n const page = await newSpecPage({\n components: [ZTableCell],\n html: `<z-table-cell show-button=\"true\"><span>Test</span></z-table-cell>`,\n });\n\n expect(page.root).toEqualHtml(`\n <z-table-cell padding=\"medium\" role=\"cell\" show-button=\"true\">\n <mock:shadow-root>\n <div class=\"button-container\">\n <div class=\"button-content\">\n <z-button icon=\"contextual-menu\" size=\"x-small\" variant=\"tertiary\"></z-button>\n <div class=\"contextual-menu-container\">\n <slot name=\"contextual-menu\"></slot>\n </div>\n </div>\n </div>\n <slot></slot>\n </mock:shadow-root>\n <span>\n Test\n </span>\n </z-table-cell>\n `);\n });\n\n it(\"Test render ZTableCell con role cell\", async () => {\n const page = await newSpecPage({\n components: [ZTableCell],\n html: `<z-table-cell></z-table-cell>`,\n });\n\n expect(page.root.getAttribute(\"role\")).toEqual(\"cell\");\n });\n});\n"]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: table-cell;
|
|
3
|
+
border-bottom: var(--border-size-small) solid var(--color-surface03);
|
|
4
|
+
background-color: var(--color-white);
|
|
5
|
+
font-family: var(--font-family-sans);
|
|
6
|
+
font-weight: var(--font-rg);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host > .button-container {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host:hover > .button-container {
|
|
14
|
+
display: initial;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.button-container {
|
|
18
|
+
position: absolute;
|
|
19
|
+
z-index: 5;
|
|
20
|
+
top: 8px;
|
|
21
|
+
right: 8px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.button-content {
|
|
25
|
+
position: relative;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.contextual-menu-container {
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: calc(100% - var(--space-unit));
|
|
31
|
+
right: 0;
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.button-container.visible,
|
|
36
|
+
.contextual-menu-container.visible {
|
|
37
|
+
display: initial;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:host([padding="x-small"]) {
|
|
41
|
+
padding: calc(var(--space-unit) * 0.5);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host([padding="small"]) {
|
|
45
|
+
padding: calc(var(--space-unit));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([padding="medium"]) {
|
|
49
|
+
padding: calc(var(--space-unit) * 2);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host([padding="large"]) {
|
|
53
|
+
padding: calc(var(--space-unit) * 2.5);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:host([padding="special"]) {
|
|
57
|
+
padding: 0;
|
|
58
|
+
}
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { ButtonSize, ButtonVariant } from "../../../beans";
|
|
3
|
+
import { mobileBreakpoint } from "../../../constants/breakpoints";
|
|
4
|
+
import "../z-table-body/index";
|
|
5
|
+
import "../z-table-cell/index";
|
|
6
|
+
import "../z-table-empty-box/index";
|
|
7
|
+
import "../z-table-expanded-row/index";
|
|
8
|
+
import "../z-table-footer/index";
|
|
9
|
+
import "../z-table-head/index";
|
|
10
|
+
import "../z-table-header/index";
|
|
11
|
+
import "../z-table-header-row/index";
|
|
12
|
+
import "../z-table-row/index";
|
|
13
|
+
import "../z-table-sticky-footer/index";
|
|
14
|
+
/**
|
|
15
|
+
* @slot - table elements
|
|
16
|
+
* @slot sticky-footer - set the content of the sticky footer
|
|
17
|
+
* @deprecated
|
|
18
|
+
*/
|
|
19
|
+
export class ZTableDeprecated {
|
|
20
|
+
constructor() {
|
|
21
|
+
this.lines = undefined;
|
|
22
|
+
this.errorMessage = "Siamo spiacenti, non siamo riusciti a caricare il contenuto richiesto";
|
|
23
|
+
this.bordered = false;
|
|
24
|
+
this.callToActionLabel = undefined;
|
|
25
|
+
this.callToActionTwoLabel = undefined;
|
|
26
|
+
this.columnSticky = false;
|
|
27
|
+
this.empty = false;
|
|
28
|
+
this.error = false;
|
|
29
|
+
this.errorLink = undefined;
|
|
30
|
+
this.headerSticky = false;
|
|
31
|
+
this.message = "Siamo spiacenti, al momento non sono presenti dati da visualizzare";
|
|
32
|
+
this.subtitle = "";
|
|
33
|
+
this.hasTableBody = undefined;
|
|
34
|
+
this.isMobile = undefined;
|
|
35
|
+
}
|
|
36
|
+
handleResize() {
|
|
37
|
+
this.isMobile = window.innerWidth <= mobileBreakpoint;
|
|
38
|
+
}
|
|
39
|
+
handleOrientationChange() {
|
|
40
|
+
this.isMobile = screen.width <= mobileBreakpoint;
|
|
41
|
+
}
|
|
42
|
+
componentWillLoad() {
|
|
43
|
+
var _a;
|
|
44
|
+
this.isMobile = window.innerWidth <= mobileBreakpoint;
|
|
45
|
+
const tableBody = this.host.querySelector('[slot="table-body"]');
|
|
46
|
+
this.hasTableBody = !!((_a = tableBody === null || tableBody === void 0 ? void 0 : tableBody.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
47
|
+
if (!!tableBody && !this.hasTableBody) {
|
|
48
|
+
tableBody.remove();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
componentWillRender() {
|
|
52
|
+
this.host.setAttribute("role", "table");
|
|
53
|
+
}
|
|
54
|
+
renderError(tableClass) {
|
|
55
|
+
const minHeight = this.lines ? `calc(40px * ${this.lines})` : "auto";
|
|
56
|
+
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-error", null, h("div", { class: "error-content", style: { minHeight } }, h("slot", { name: "error-image" }), h("div", { class: "text" }, h("span", { class: "body-3-sb error-message" }, this.errorMessage), h("slot", { name: "error-action" }))))));
|
|
57
|
+
}
|
|
58
|
+
renderEmpty(tableClass) {
|
|
59
|
+
const buttonSize = this.isMobile ? ButtonSize.SMALL : ButtonSize.BIG;
|
|
60
|
+
const tableContentClass = `${this.hasTableBody ? "table-content" : ""}`;
|
|
61
|
+
if (this.hasTableBody) {
|
|
62
|
+
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" }), h("div", { class: tableContentClass }, h("slot", { name: "table-body" }), h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (h("z-button", { slot: "cta1", variant: ButtonVariant.TERTIARY, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (h("z-button", { slot: "cta2", variant: ButtonVariant.TERTIARY, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))))));
|
|
63
|
+
}
|
|
64
|
+
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (h("z-button", { slot: "cta1", variant: ButtonVariant.TERTIARY, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (h("z-button", { slot: "cta2", variant: ButtonVariant.TERTIARY, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))));
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
const tableClass = `table ${this.empty ? "table-empty" : ""} ${this.bordered ? "table-bordered" : ""}
|
|
68
|
+
${this.columnSticky ? "table-column-sticky" : ""}
|
|
69
|
+
${this.headerSticky ? "table-header-sticky" : ""}`;
|
|
70
|
+
if (this.error) {
|
|
71
|
+
return this.renderError(tableClass);
|
|
72
|
+
}
|
|
73
|
+
if (this.empty) {
|
|
74
|
+
return this.renderEmpty(tableClass);
|
|
75
|
+
}
|
|
76
|
+
return (h(Host, null, h("div", { class: tableClass }, h("slot", null)), h("slot", { name: "sticky-footer" })));
|
|
77
|
+
}
|
|
78
|
+
static get is() { return "z-table-deprecated"; }
|
|
79
|
+
static get originalStyleUrls() {
|
|
80
|
+
return {
|
|
81
|
+
"$": ["styles.css"]
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
static get styleUrls() {
|
|
85
|
+
return {
|
|
86
|
+
"$": ["styles.css"]
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
static get assetsDirs() { return ["assets"]; }
|
|
90
|
+
static get properties() {
|
|
91
|
+
return {
|
|
92
|
+
"lines": {
|
|
93
|
+
"type": "number",
|
|
94
|
+
"mutable": false,
|
|
95
|
+
"complexType": {
|
|
96
|
+
"original": "number",
|
|
97
|
+
"resolved": "number",
|
|
98
|
+
"references": {}
|
|
99
|
+
},
|
|
100
|
+
"required": false,
|
|
101
|
+
"optional": true,
|
|
102
|
+
"docs": {
|
|
103
|
+
"tags": [],
|
|
104
|
+
"text": "Number of lines of element"
|
|
105
|
+
},
|
|
106
|
+
"attribute": "lines",
|
|
107
|
+
"reflect": true
|
|
108
|
+
},
|
|
109
|
+
"errorMessage": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"mutable": false,
|
|
112
|
+
"complexType": {
|
|
113
|
+
"original": "string",
|
|
114
|
+
"resolved": "string",
|
|
115
|
+
"references": {}
|
|
116
|
+
},
|
|
117
|
+
"required": false,
|
|
118
|
+
"optional": true,
|
|
119
|
+
"docs": {
|
|
120
|
+
"tags": [],
|
|
121
|
+
"text": "Error message"
|
|
122
|
+
},
|
|
123
|
+
"attribute": "error-message",
|
|
124
|
+
"reflect": false,
|
|
125
|
+
"defaultValue": "\"Siamo spiacenti, non siamo riusciti a caricare il contenuto richiesto\""
|
|
126
|
+
},
|
|
127
|
+
"bordered": {
|
|
128
|
+
"type": "boolean",
|
|
129
|
+
"mutable": false,
|
|
130
|
+
"complexType": {
|
|
131
|
+
"original": "boolean",
|
|
132
|
+
"resolved": "boolean",
|
|
133
|
+
"references": {}
|
|
134
|
+
},
|
|
135
|
+
"required": false,
|
|
136
|
+
"optional": true,
|
|
137
|
+
"docs": {
|
|
138
|
+
"tags": [],
|
|
139
|
+
"text": "Sets table with border"
|
|
140
|
+
},
|
|
141
|
+
"attribute": "bordered",
|
|
142
|
+
"reflect": false,
|
|
143
|
+
"defaultValue": "false"
|
|
144
|
+
},
|
|
145
|
+
"callToActionLabel": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"mutable": false,
|
|
148
|
+
"complexType": {
|
|
149
|
+
"original": "string",
|
|
150
|
+
"resolved": "string",
|
|
151
|
+
"references": {}
|
|
152
|
+
},
|
|
153
|
+
"required": false,
|
|
154
|
+
"optional": true,
|
|
155
|
+
"docs": {
|
|
156
|
+
"tags": [],
|
|
157
|
+
"text": "Sets call to action label"
|
|
158
|
+
},
|
|
159
|
+
"attribute": "call-to-action-label",
|
|
160
|
+
"reflect": false
|
|
161
|
+
},
|
|
162
|
+
"callToActionTwoLabel": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"mutable": false,
|
|
165
|
+
"complexType": {
|
|
166
|
+
"original": "string",
|
|
167
|
+
"resolved": "string",
|
|
168
|
+
"references": {}
|
|
169
|
+
},
|
|
170
|
+
"required": false,
|
|
171
|
+
"optional": true,
|
|
172
|
+
"docs": {
|
|
173
|
+
"tags": [],
|
|
174
|
+
"text": "Sets call to action label"
|
|
175
|
+
},
|
|
176
|
+
"attribute": "call-to-action-two-label",
|
|
177
|
+
"reflect": false
|
|
178
|
+
},
|
|
179
|
+
"columnSticky": {
|
|
180
|
+
"type": "boolean",
|
|
181
|
+
"mutable": false,
|
|
182
|
+
"complexType": {
|
|
183
|
+
"original": "boolean",
|
|
184
|
+
"resolved": "boolean",
|
|
185
|
+
"references": {}
|
|
186
|
+
},
|
|
187
|
+
"required": false,
|
|
188
|
+
"optional": true,
|
|
189
|
+
"docs": {
|
|
190
|
+
"tags": [],
|
|
191
|
+
"text": "Sets first column sticky"
|
|
192
|
+
},
|
|
193
|
+
"attribute": "column-sticky",
|
|
194
|
+
"reflect": false,
|
|
195
|
+
"defaultValue": "false"
|
|
196
|
+
},
|
|
197
|
+
"empty": {
|
|
198
|
+
"type": "boolean",
|
|
199
|
+
"mutable": false,
|
|
200
|
+
"complexType": {
|
|
201
|
+
"original": "boolean",
|
|
202
|
+
"resolved": "boolean",
|
|
203
|
+
"references": {}
|
|
204
|
+
},
|
|
205
|
+
"required": false,
|
|
206
|
+
"optional": true,
|
|
207
|
+
"docs": {
|
|
208
|
+
"tags": [],
|
|
209
|
+
"text": "Sets empty table"
|
|
210
|
+
},
|
|
211
|
+
"attribute": "empty",
|
|
212
|
+
"reflect": false,
|
|
213
|
+
"defaultValue": "false"
|
|
214
|
+
},
|
|
215
|
+
"error": {
|
|
216
|
+
"type": "boolean",
|
|
217
|
+
"mutable": false,
|
|
218
|
+
"complexType": {
|
|
219
|
+
"original": "boolean",
|
|
220
|
+
"resolved": "boolean",
|
|
221
|
+
"references": {}
|
|
222
|
+
},
|
|
223
|
+
"required": false,
|
|
224
|
+
"optional": true,
|
|
225
|
+
"docs": {
|
|
226
|
+
"tags": [],
|
|
227
|
+
"text": "Set error status"
|
|
228
|
+
},
|
|
229
|
+
"attribute": "error",
|
|
230
|
+
"reflect": false,
|
|
231
|
+
"defaultValue": "false"
|
|
232
|
+
},
|
|
233
|
+
"errorLink": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"mutable": false,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "string",
|
|
238
|
+
"resolved": "string",
|
|
239
|
+
"references": {}
|
|
240
|
+
},
|
|
241
|
+
"required": false,
|
|
242
|
+
"optional": true,
|
|
243
|
+
"docs": {
|
|
244
|
+
"tags": [],
|
|
245
|
+
"text": "Set error status"
|
|
246
|
+
},
|
|
247
|
+
"attribute": "error-link",
|
|
248
|
+
"reflect": false
|
|
249
|
+
},
|
|
250
|
+
"headerSticky": {
|
|
251
|
+
"type": "boolean",
|
|
252
|
+
"mutable": false,
|
|
253
|
+
"complexType": {
|
|
254
|
+
"original": "boolean",
|
|
255
|
+
"resolved": "boolean",
|
|
256
|
+
"references": {}
|
|
257
|
+
},
|
|
258
|
+
"required": false,
|
|
259
|
+
"optional": true,
|
|
260
|
+
"docs": {
|
|
261
|
+
"tags": [],
|
|
262
|
+
"text": "Sets header sticky"
|
|
263
|
+
},
|
|
264
|
+
"attribute": "header-sticky",
|
|
265
|
+
"reflect": false,
|
|
266
|
+
"defaultValue": "false"
|
|
267
|
+
},
|
|
268
|
+
"message": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"mutable": false,
|
|
271
|
+
"complexType": {
|
|
272
|
+
"original": "string",
|
|
273
|
+
"resolved": "string",
|
|
274
|
+
"references": {}
|
|
275
|
+
},
|
|
276
|
+
"required": false,
|
|
277
|
+
"optional": true,
|
|
278
|
+
"docs": {
|
|
279
|
+
"tags": [],
|
|
280
|
+
"text": "Set message"
|
|
281
|
+
},
|
|
282
|
+
"attribute": "message",
|
|
283
|
+
"reflect": false,
|
|
284
|
+
"defaultValue": "\"Siamo spiacenti, al momento non sono presenti dati da visualizzare\""
|
|
285
|
+
},
|
|
286
|
+
"subtitle": {
|
|
287
|
+
"type": "string",
|
|
288
|
+
"mutable": false,
|
|
289
|
+
"complexType": {
|
|
290
|
+
"original": "string",
|
|
291
|
+
"resolved": "string",
|
|
292
|
+
"references": {}
|
|
293
|
+
},
|
|
294
|
+
"required": false,
|
|
295
|
+
"optional": true,
|
|
296
|
+
"docs": {
|
|
297
|
+
"tags": [],
|
|
298
|
+
"text": "Set subtitle"
|
|
299
|
+
},
|
|
300
|
+
"attribute": "subtitle",
|
|
301
|
+
"reflect": false,
|
|
302
|
+
"defaultValue": "\"\""
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
static get states() {
|
|
307
|
+
return {
|
|
308
|
+
"hasTableBody": {},
|
|
309
|
+
"isMobile": {}
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
static get events() {
|
|
313
|
+
return [{
|
|
314
|
+
"method": "callToAction",
|
|
315
|
+
"name": "callToAction",
|
|
316
|
+
"bubbles": true,
|
|
317
|
+
"cancelable": true,
|
|
318
|
+
"composed": true,
|
|
319
|
+
"docs": {
|
|
320
|
+
"tags": [],
|
|
321
|
+
"text": "remove call to action event"
|
|
322
|
+
},
|
|
323
|
+
"complexType": {
|
|
324
|
+
"original": "any",
|
|
325
|
+
"resolved": "any",
|
|
326
|
+
"references": {}
|
|
327
|
+
}
|
|
328
|
+
}, {
|
|
329
|
+
"method": "callToActionTwo",
|
|
330
|
+
"name": "callToActionTwo",
|
|
331
|
+
"bubbles": true,
|
|
332
|
+
"cancelable": true,
|
|
333
|
+
"composed": true,
|
|
334
|
+
"docs": {
|
|
335
|
+
"tags": [],
|
|
336
|
+
"text": "remove call to action event"
|
|
337
|
+
},
|
|
338
|
+
"complexType": {
|
|
339
|
+
"original": "any",
|
|
340
|
+
"resolved": "any",
|
|
341
|
+
"references": {}
|
|
342
|
+
}
|
|
343
|
+
}];
|
|
344
|
+
}
|
|
345
|
+
static get elementRef() { return "host"; }
|
|
346
|
+
static get listeners() {
|
|
347
|
+
return [{
|
|
348
|
+
"name": "resize",
|
|
349
|
+
"method": "handleResize",
|
|
350
|
+
"target": "window",
|
|
351
|
+
"capture": false,
|
|
352
|
+
"passive": true
|
|
353
|
+
}, {
|
|
354
|
+
"name": "orientationchange",
|
|
355
|
+
"method": "handleOrientationChange",
|
|
356
|
+
"target": "window",
|
|
357
|
+
"capture": false,
|
|
358
|
+
"passive": false
|
|
359
|
+
}];
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/deprecated/z-table-deprecated/z-table-deprecated/index.tsx"],"names":[],"mappings":"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","sourcesContent":["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"]}
|