@zanichelli/albe-web-components 8.1.0-RC1 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-06609e4d.js +17 -0
- package/dist/cjs/index-1872a74b.js +34 -0
- package/dist/cjs/index-23d8692f.js +21 -0
- package/dist/cjs/index-27ba9f7c.js +79 -0
- package/dist/cjs/index-2b53b57b.js +22 -0
- package/dist/cjs/index-46406671.js +67 -0
- package/dist/cjs/{index-10e0d8b7.js → index-4e1850d7.js} +5 -15
- package/dist/cjs/index-8834c5a3.js +41 -0
- package/dist/cjs/index-92a9f89e.js +21 -0
- package/dist/cjs/index-9648272b.js +21 -0
- package/dist/cjs/index-977baebe.js +49 -0
- package/dist/cjs/index-a9764c98.js +17 -0
- package/dist/cjs/index-bbd48475.js +20 -0
- package/dist/cjs/index-d550acd3.js +70 -0
- package/dist/cjs/index-e3299e0a.js +32 -8
- package/dist/cjs/index-e5daa5a5.js +17 -0
- package/dist/cjs/index-ebbadaf8.js +21 -0
- package/dist/cjs/index-f43320ff.js +29 -0
- package/dist/cjs/index.cjs.js +8 -14
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-dd90aed2.js → utils-aa00c0cc.js} +1 -1
- package/dist/cjs/{utils-3b4947cd.js → utils-b0293a5e.js} +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header_11.cjs.entry.js +6 -5
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-avatar.cjs.entry.js +1 -1
- package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/z-card.cjs.entry.js +1 -1
- package/dist/cjs/z-carousel.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +2 -2
- package/dist/cjs/z-combobox.cjs.entry.js +2 -2
- package/dist/cjs/z-contextual-menu.cjs.entry.js +1 -1
- package/dist/cjs/z-cover-hero.cjs.entry.js +1 -1
- package/dist/cjs/z-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +1 -1
- package/dist/cjs/z-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/z-file.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.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.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +1 -1
- package/dist/cjs/z-pagination.cjs.entry.js +1 -1
- package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +1 -1
- package/dist/cjs/z-range-picker.cjs.entry.js +2 -2
- package/dist/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/cjs/z-select.cjs.entry.js +2 -2
- package/dist/cjs/z-skip-to-content.cjs.entry.js +2 -2
- package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
- package/dist/cjs/z-table-body.cjs.entry.js +3 -17
- package/dist/cjs/z-table-cell.cjs.entry.js +4 -29
- package/dist/cjs/z-table-deprecated.cjs.entry.js +91 -0
- package/dist/cjs/z-table-empty-box.cjs.entry.js +3 -24
- package/dist/cjs/z-table-expanded-row.cjs.entry.js +3 -12
- package/dist/cjs/z-table-footer.cjs.entry.js +3 -16
- package/dist/cjs/z-table-head.cjs.entry.js +3 -16
- package/dist/cjs/z-table-header-row.cjs.entry.js +3 -15
- package/dist/cjs/z-table-header.cjs.entry.js +5 -74
- package/dist/cjs/z-table-row.cjs.entry.js +4 -36
- package/dist/cjs/z-table-sticky-footer.cjs.entry.js +3 -12
- package/dist/cjs/z-table.cjs.entry.js +43 -57
- package/dist/cjs/z-tbody.cjs.entry.js +10 -0
- package/dist/cjs/z-td.cjs.entry.js +11 -0
- package/dist/cjs/z-tfoot.cjs.entry.js +10 -0
- package/dist/cjs/z-th.cjs.entry.js +11 -0
- package/dist/cjs/z-thead.cjs.entry.js +10 -0
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-toggle-switch.cjs.entry.js +2 -2
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/z-tr.cjs.entry.js +15 -0
- package/dist/collection/beans/index.js +5 -15
- package/dist/collection/collection-manifest.json +18 -12
- package/dist/collection/components/inputs/z-input/index.js +3 -2
- package/dist/collection/components/inputs/z-input/styles.css +4 -0
- package/dist/collection/components/table/cells/z-td/index.js +143 -0
- package/dist/collection/components/table/cells/z-td/styles.css +59 -0
- package/dist/collection/components/table/cells/z-th/index.js +187 -0
- package/dist/collection/components/table/cells/z-th/styles.css +88 -0
- package/dist/collection/components/table/z-table/index.js +115 -0
- package/dist/collection/components/table/z-table/styles.css +22 -0
- package/dist/collection/components/table/z-tbody/index.js +22 -0
- package/dist/collection/components/table/z-tbody/styles.css +4 -0
- package/dist/collection/components/table/z-tfoot/index.js +50 -0
- package/dist/collection/components/table/z-tfoot/styles.css +13 -0
- package/dist/collection/components/table/z-thead/index.js +50 -0
- package/dist/collection/components/table/z-thead/styles.css +19 -0
- package/dist/collection/components/table/z-tr/index.js +133 -0
- package/dist/collection/components/table/z-tr/styles.css +87 -0
- package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-body/index.js +3 -0
- package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-cell/index.js +9 -11
- package/dist/collection/{components/z-table/z-table → deprecated/z-table-deprecated/z-table-deprecated}/index.js +13 -2
- package/dist/collection/{components/z-table/z-table → deprecated/z-table-deprecated/z-table-deprecated}/styles.css +14 -14
- package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-empty-box/index.js +3 -0
- package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-expanded-row/index.js +3 -0
- package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-footer/index.js +3 -0
- package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-head/index.js +3 -0
- package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-header/index.js +27 -39
- package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-header-row/index.js +3 -0
- package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-row/index.js +3 -0
- package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-sticky-footer/index.js +1 -0
- package/dist/esm/index-0e0fa88d.js +19 -0
- package/dist/esm/index-16d8ed5b.js +39 -0
- package/dist/esm/index-1ae1c122.js +15 -0
- package/dist/esm/index-272fc060.js +32 -0
- package/dist/esm/index-2c800f19.js +20 -0
- package/dist/esm/index-2cdac489.js +27 -0
- package/dist/esm/index-6d83248c.js +19 -0
- package/dist/esm/index-77b7d7ae.js +47 -0
- package/dist/esm/index-83736b34.js +15 -0
- package/dist/esm/index-8c7b48bc.js +19 -0
- package/dist/esm/{index-c53ca6bc.js → index-9c5d63ea.js} +6 -16
- package/dist/esm/index-a2ca4b97.js +32 -8
- package/dist/esm/index-a66b7e8a.js +65 -0
- package/dist/esm/index-db083023.js +77 -0
- package/dist/esm/index-e2c8b8b5.js +18 -0
- package/dist/esm/index-f171ca51.js +15 -0
- package/dist/esm/index-f98f4ad3.js +19 -0
- package/dist/esm/index-fff6ed17.js +68 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-412ebe25.js → utils-cd86cb21.js} +1 -1
- package/dist/esm/{utils-4db4ed1f.js → utils-d7278f26.js} +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-anchor-navigation.entry.js +1 -1
- package/dist/esm/z-app-header_11.entry.js +6 -5
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +1 -1
- package/dist/esm/z-breadcrumb.entry.js +2 -2
- package/dist/esm/z-card.entry.js +1 -1
- package/dist/esm/z-carousel.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +2 -2
- package/dist/esm/z-combobox.entry.js +2 -2
- package/dist/esm/z-contextual-menu.entry.js +1 -1
- package/dist/esm/z-cover-hero.entry.js +1 -1
- package/dist/esm/z-date-picker.entry.js +2 -2
- package/dist/esm/z-dragdrop-area_2.entry.js +1 -1
- package/dist/esm/z-file-upload.entry.js +2 -2
- package/dist/esm/z-file.entry.js +1 -1
- package/dist/esm/z-info-reveal.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.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +2 -2
- package/dist/esm/z-myz-card_4.entry.js +1 -1
- package/dist/esm/z-myz-list-item.entry.js +2 -2
- package/dist/esm/z-navigation-tab-link.entry.js +1 -1
- package/dist/esm/z-navigation-tab.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +1 -1
- package/dist/esm/z-otp.entry.js +1 -1
- package/dist/esm/z-pagination.entry.js +1 -1
- package/dist/esm/z-pocket_3.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +1 -1
- package/dist/esm/z-range-picker.entry.js +2 -2
- package/dist/esm/z-section-title.entry.js +1 -1
- package/dist/esm/z-select.entry.js +2 -2
- package/dist/esm/z-skip-to-content.entry.js +2 -2
- package/dist/esm/z-slideshow.entry.js +2 -2
- package/dist/esm/z-table-body.entry.js +2 -20
- package/dist/esm/z-table-cell.entry.js +3 -32
- package/dist/esm/z-table-deprecated.entry.js +87 -0
- package/dist/esm/z-table-empty-box.entry.js +2 -27
- package/dist/esm/z-table-expanded-row.entry.js +2 -15
- package/dist/esm/z-table-footer.entry.js +2 -19
- package/dist/esm/z-table-head.entry.js +2 -19
- package/dist/esm/z-table-header-row.entry.js +2 -18
- package/dist/esm/z-table-header.entry.js +4 -77
- package/dist/esm/z-table-row.entry.js +3 -39
- package/dist/esm/z-table-sticky-footer.entry.js +2 -15
- package/dist/esm/z-table.entry.js +46 -60
- package/dist/esm/z-tbody.entry.js +2 -0
- package/dist/esm/z-td.entry.js +3 -0
- package/dist/esm/z-tfoot.entry.js +2 -0
- package/dist/esm/z-th.entry.js +3 -0
- package/dist/esm/z-thead.entry.js +2 -0
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +1 -1
- package/dist/esm/z-toggle-switch.entry.js +2 -2
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/esm/z-tr.entry.js +7 -0
- package/dist/types/beans/index.d.ts +4 -13
- package/dist/types/components/buttons/z-button/index.d.ts +0 -0
- package/dist/types/components/buttons/z-button-sort/index.d.ts +0 -0
- package/dist/types/components/buttons/z-chip/index.d.ts +0 -0
- package/dist/types/components/buttons/z-toggle-button/index.d.ts +0 -0
- package/dist/types/components/buttons/z-toggle-switch/index.d.ts +0 -0
- package/dist/types/components/date-picker/utils.d.ts +0 -0
- package/dist/types/components/date-picker/z-date-picker/index.d.ts +0 -0
- package/dist/types/components/date-picker/z-range-picker/index.d.ts +0 -0
- package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +0 -0
- package/dist/types/components/file-upload/z-file/index.d.ts +0 -0
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +0 -0
- package/dist/types/components/icons/icons.d.ts +0 -0
- package/dist/types/components/icons/z-icon/index.d.ts +0 -0
- package/dist/types/components/index.d.ts +0 -0
- package/dist/types/components/indicators/z-stepper/index.d.ts +0 -0
- package/dist/types/components/indicators/z-stepper-item/index.d.ts +0 -0
- package/dist/types/components/inputs/z-combobox/index.d.ts +0 -0
- package/dist/types/components/inputs/z-input/index.d.ts +0 -0
- package/dist/types/components/inputs/z-input-message/index.d.ts +0 -0
- package/dist/types/components/inputs/z-searchbar/index.d.ts +0 -0
- package/dist/types/components/inputs/z-select/index.d.ts +0 -0
- package/dist/types/components/list/z-list/index.d.ts +0 -0
- package/dist/types/components/list/z-list-element/index.d.ts +0 -0
- package/dist/types/components/list/z-list-group/index.d.ts +0 -0
- package/dist/types/components/list/z-toast-notification-list/index.d.ts +0 -0
- package/dist/types/components/logo/z-logo/index.d.ts +0 -0
- package/dist/types/components/modal/z-modal/index.d.ts +0 -0
- package/dist/types/components/navigation/tabs/z-navigation-tab/index.d.ts +0 -0
- package/dist/types/components/navigation/tabs/z-navigation-tab-link/index.d.ts +0 -0
- package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +0 -0
- package/dist/types/components/navigation/z-app-header/index.d.ts +0 -0
- package/dist/types/components/navigation/z-link/index.d.ts +0 -0
- package/dist/types/components/navigation/z-menu/index.d.ts +0 -0
- package/dist/types/components/navigation/z-menu-section/index.d.ts +0 -0
- package/dist/types/components/notification/z-info-box/index.d.ts +0 -0
- package/dist/types/components/notification/z-notification/index.d.ts +0 -0
- package/dist/types/components/notification/z-toast-notification/index.d.ts +0 -0
- package/dist/types/components/notification/z-tooltip/index.d.ts +0 -0
- package/dist/types/components/panel/z-panel-elem/index.d.ts +0 -0
- package/dist/types/components/table/cells/z-td/index.d.ts +36 -0
- package/dist/types/components/table/cells/z-th/index.d.ts +52 -0
- package/dist/types/components/table/z-table/index.d.ts +37 -0
- package/dist/types/components/table/z-tbody/index.d.ts +7 -0
- package/dist/types/components/table/z-tfoot/index.d.ts +11 -0
- package/dist/types/components/table/z-thead/index.d.ts +11 -0
- package/dist/types/components/table/z-tr/index.d.ts +41 -0
- package/dist/types/components/z-anchor-navigation/index.d.ts +0 -0
- package/dist/types/components/z-aria-alert/index.d.ts +0 -0
- package/dist/types/components/z-avatar/index.d.ts +0 -0
- package/dist/types/components/z-card/index.d.ts +0 -0
- package/dist/types/components/z-carousel/index.d.ts +0 -0
- package/dist/types/components/z-contextual-menu/index.d.ts +0 -0
- package/dist/types/components/z-cover-hero/index.d.ts +0 -0
- package/dist/types/components/z-divider/index.d.ts +0 -0
- package/dist/types/components/z-ghost-loading/index.d.ts +0 -0
- package/dist/types/components/z-info-reveal/index.d.ts +0 -0
- package/dist/types/components/z-offcanvas/index.d.ts +0 -0
- package/dist/types/components/z-pagination/index.d.ts +0 -0
- package/dist/types/components/z-popover/index.d.ts +0 -0
- package/dist/types/components/z-section-title/index.d.ts +0 -0
- package/dist/types/components/z-skip-to-content/index.d.ts +0 -0
- package/dist/types/components/z-tag/index.d.ts +0 -0
- package/dist/types/components/z-visually-hidden/index.d.ts +0 -0
- package/dist/types/components.d.ts +244 -118
- package/dist/types/constants/breakpoints.d.ts +0 -0
- package/dist/types/constants/icons.d.ts +0 -0
- package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-body/index.d.ts +3 -0
- package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-cell/index.d.ts +4 -2
- package/dist/types/{components/z-table/z-table → deprecated/z-table-deprecated/z-table-deprecated}/index.d.ts +14 -3
- package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-empty-box/index.d.ts +3 -0
- package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-expanded-row/index.d.ts +3 -0
- package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-footer/index.d.ts +3 -0
- package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-head/index.d.ts +3 -0
- package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-header/index.d.ts +6 -4
- package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-header-row/index.d.ts +3 -0
- package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-row/index.d.ts +3 -0
- package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-sticky-footer/index.d.ts +1 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/z-alert/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/z-otp/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +0 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -0
- package/dist/types/utils/utils.d.ts +0 -0
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-d4afc10f.entry.js → p-04b9260a.entry.js} +1 -1
- package/dist/web-components-library/p-051b9116.entry.js +1 -0
- package/dist/web-components-library/p-11976457.entry.js +1 -0
- package/{www/build/p-8ff9de86.entry.js → dist/web-components-library/p-145eace8.entry.js} +1 -1
- package/dist/web-components-library/p-152fc58b.entry.js +1 -0
- package/dist/web-components-library/{p-4367f978.entry.js → p-154596ad.js} +1 -1
- package/dist/web-components-library/{p-d96d4f30.entry.js → p-15738cb6.entry.js} +1 -1
- package/dist/web-components-library/{p-a0345d42.entry.js → p-15dca231.entry.js} +1 -1
- package/dist/web-components-library/p-1a98992a.entry.js +1 -0
- package/dist/web-components-library/{p-5aee5484.entry.js → p-1d7b6787.entry.js} +1 -1
- package/dist/web-components-library/p-220254b4.entry.js +1 -0
- package/dist/web-components-library/{p-661905c0.entry.js → p-2642bb12.entry.js} +1 -1
- package/dist/web-components-library/{p-3f55dce6.entry.js → p-2773516d.js} +1 -1
- package/dist/web-components-library/{p-bb0fe7bc.entry.js → p-2b3cf51a.js} +1 -1
- package/{www/build/p-e663af8b.entry.js → dist/web-components-library/p-2d609e87.entry.js} +1 -1
- package/dist/web-components-library/p-2fab41fb.entry.js +1 -0
- package/dist/web-components-library/p-30771d25.js +1 -0
- package/dist/web-components-library/{p-9b4b0fbb.entry.js → p-32c4383b.entry.js} +1 -1
- package/dist/web-components-library/{p-b0141c4d.entry.js → p-33d41e9f.entry.js} +1 -1
- package/{www/build/p-f3fce575.entry.js → dist/web-components-library/p-350dcf6d.entry.js} +1 -1
- package/dist/web-components-library/p-37ffe8b5.entry.js +1 -0
- package/dist/web-components-library/p-3fe7ffbe.entry.js +1 -0
- package/{www/build/p-bee6bf99.entry.js → dist/web-components-library/p-43235890.entry.js} +1 -1
- package/dist/web-components-library/p-43478f5b.entry.js +1 -0
- package/dist/web-components-library/p-4ae2fe27.js +1 -0
- package/dist/web-components-library/{p-482c478a.entry.js → p-4df0eb86.entry.js} +1 -1
- package/dist/web-components-library/{p-47c095c2.entry.js → p-5ab0be3f.entry.js} +1 -1
- package/dist/web-components-library/p-609186cd.entry.js +1 -0
- package/dist/web-components-library/p-62b89a37.js +1 -0
- package/dist/web-components-library/{p-0e92e0d9.entry.js → p-6409024c.js} +1 -1
- package/dist/web-components-library/p-64256f3d.entry.js +1 -0
- package/dist/web-components-library/p-64759e9f.js +1 -0
- package/dist/web-components-library/p-6477d18a.entry.js +1 -0
- package/{www/build/p-d8ea70ed.entry.js → dist/web-components-library/p-64acd74d.entry.js} +1 -1
- package/dist/web-components-library/p-64d902c6.entry.js +1 -0
- package/dist/web-components-library/p-6d723eea.entry.js +1 -0
- package/dist/web-components-library/p-74f343ce.js +1 -0
- package/dist/web-components-library/{p-37e050bd.entry.js → p-75b94adb.js} +1 -1
- package/{www/build/p-e4d78452.entry.js → dist/web-components-library/p-7d181b0a.entry.js} +1 -1
- package/dist/web-components-library/p-875dc6a3.js +1 -0
- package/dist/web-components-library/{p-0aa025fa.entry.js → p-88276662.entry.js} +1 -1
- package/dist/web-components-library/p-8878929e.js +1 -0
- package/dist/web-components-library/{p-374d6f57.entry.js → p-89ad35df.entry.js} +1 -1
- package/{www/build/p-c18b8fb3.js → dist/web-components-library/p-8c6b1f2c.js} +1 -1
- package/dist/web-components-library/p-8e334a37.entry.js +1 -0
- package/dist/web-components-library/{p-757c4b4d.entry.js → p-8e7891d0.entry.js} +1 -1
- package/dist/web-components-library/{p-e4e5a652.entry.js → p-91a29198.entry.js} +1 -1
- package/dist/web-components-library/{p-e41e28f7.entry.js → p-92828b84.entry.js} +1 -1
- package/dist/web-components-library/{p-89d048ff.entry.js → p-94550647.entry.js} +1 -1
- package/dist/web-components-library/p-97481f35.entry.js +1 -0
- package/dist/web-components-library/{p-81e6e4c8.entry.js → p-9eafcdd4.entry.js} +1 -1
- package/dist/web-components-library/p-a13b6a71.entry.js +1 -0
- package/dist/web-components-library/p-a4254712.entry.js +1 -0
- package/dist/web-components-library/p-a4711d6d.js +1 -0
- package/dist/web-components-library/p-ab4773c6.js +1 -0
- package/dist/web-components-library/p-ac9881cd.entry.js +1 -0
- package/dist/web-components-library/{p-ab1799fe.entry.js → p-b5e790d7.entry.js} +1 -1
- package/dist/web-components-library/p-b6f0020b.js +1 -0
- package/dist/web-components-library/{p-3ea868e0.entry.js → p-b7d13c6f.entry.js} +1 -1
- package/{www/build/p-c59c6c78.entry.js → dist/web-components-library/p-b851ced1.entry.js} +1 -1
- package/dist/web-components-library/{p-0f8f488c.entry.js → p-bc8d30ce.entry.js} +1 -1
- package/dist/web-components-library/{p-e7c7ac3d.entry.js → p-c35e1265.entry.js} +1 -1
- package/dist/web-components-library/p-c76e27b4.entry.js +1 -0
- package/dist/web-components-library/p-cd14f3f5.entry.js +1 -0
- package/dist/web-components-library/{p-aa228ddb.entry.js → p-d1e9a84b.entry.js} +1 -1
- package/dist/web-components-library/{p-d9c76001.entry.js → p-d2ed2111.entry.js} +1 -1
- package/dist/web-components-library/p-d60b4bc5.entry.js +1 -0
- package/dist/web-components-library/p-dc974567.entry.js +1 -0
- package/dist/web-components-library/{p-29426408.entry.js → p-dca95f65.entry.js} +1 -1
- package/{www/build/p-78c5f1a4.entry.js → dist/web-components-library/p-e6807d13.entry.js} +1 -1
- package/{www/build/p-856c6f33.entry.js → dist/web-components-library/p-f3da70cd.entry.js} +1 -1
- package/dist/web-components-library/p-f62ca674.js +1 -0
- package/dist/web-components-library/p-f6a7b40e.js +1 -0
- package/dist/web-components-library/p-fb5450a7.js +1 -0
- package/dist/web-components-library/{p-dd515f64.entry.js → p-fb9f2761.entry.js} +1 -1
- package/{www/build/p-a2d11471.entry.js → dist/web-components-library/p-ffbb02d3.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.css +0 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/loader/cdn.js +0 -0
- package/loader/index.cjs.js +0 -0
- package/loader/index.d.ts +0 -0
- package/loader/index.es2017.js +0 -0
- package/loader/index.js +0 -0
- package/loader/package.json +0 -0
- package/package.json +1 -1
- package/react/components.d.ts +7 -1
- package/react/components.js +9 -3
- package/react/components.js.map +1 -1
- package/readme.md +2 -2
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-d4afc10f.entry.js → p-04b9260a.entry.js} +1 -1
- package/www/build/p-051b9116.entry.js +1 -0
- package/www/build/p-11976457.entry.js +1 -0
- package/{dist/web-components-library/p-8ff9de86.entry.js → www/build/p-145eace8.entry.js} +1 -1
- package/www/build/p-152fc58b.entry.js +1 -0
- package/www/build/{p-4367f978.entry.js → p-154596ad.js} +1 -1
- package/www/build/{p-d96d4f30.entry.js → p-15738cb6.entry.js} +1 -1
- package/www/build/{p-a0345d42.entry.js → p-15dca231.entry.js} +1 -1
- package/www/build/p-1a98992a.entry.js +1 -0
- package/www/build/{p-5aee5484.entry.js → p-1d7b6787.entry.js} +1 -1
- package/www/build/p-220254b4.entry.js +1 -0
- package/www/build/{p-661905c0.entry.js → p-2642bb12.entry.js} +1 -1
- package/www/build/{p-3f55dce6.entry.js → p-2773516d.js} +1 -1
- package/www/build/{p-bb0fe7bc.entry.js → p-2b3cf51a.js} +1 -1
- package/{dist/web-components-library/p-e663af8b.entry.js → www/build/p-2d609e87.entry.js} +1 -1
- package/www/build/p-2fab41fb.entry.js +1 -0
- package/www/build/p-30771d25.js +1 -0
- package/www/build/{p-9b4b0fbb.entry.js → p-32c4383b.entry.js} +1 -1
- package/www/build/{p-b0141c4d.entry.js → p-33d41e9f.entry.js} +1 -1
- package/{dist/web-components-library/p-f3fce575.entry.js → www/build/p-350dcf6d.entry.js} +1 -1
- package/www/build/p-37ffe8b5.entry.js +1 -0
- package/www/build/p-3fe7ffbe.entry.js +1 -0
- package/{dist/web-components-library/p-bee6bf99.entry.js → www/build/p-43235890.entry.js} +1 -1
- package/www/build/p-43478f5b.entry.js +1 -0
- package/www/build/p-4ae2fe27.js +1 -0
- package/www/build/{p-482c478a.entry.js → p-4df0eb86.entry.js} +1 -1
- package/www/build/{p-47c095c2.entry.js → p-5ab0be3f.entry.js} +1 -1
- package/www/build/p-609186cd.entry.js +1 -0
- package/www/build/p-62b89a37.js +1 -0
- package/www/build/{p-0e92e0d9.entry.js → p-6409024c.js} +1 -1
- package/www/build/p-64256f3d.entry.js +1 -0
- package/www/build/p-64759e9f.js +1 -0
- package/www/build/p-6477d18a.entry.js +1 -0
- package/{dist/web-components-library/p-d8ea70ed.entry.js → www/build/p-64acd74d.entry.js} +1 -1
- package/www/build/p-64d902c6.entry.js +1 -0
- package/www/build/p-6d723eea.entry.js +1 -0
- package/www/build/p-74f343ce.js +1 -0
- package/www/build/{p-37e050bd.entry.js → p-75b94adb.js} +1 -1
- package/{dist/web-components-library/p-e4d78452.entry.js → www/build/p-7d181b0a.entry.js} +1 -1
- package/www/build/p-875dc6a3.js +1 -0
- package/www/build/{p-0aa025fa.entry.js → p-88276662.entry.js} +1 -1
- package/www/build/p-8878929e.js +1 -0
- package/www/build/{p-374d6f57.entry.js → p-89ad35df.entry.js} +1 -1
- package/{dist/web-components-library/p-c18b8fb3.js → www/build/p-8c6b1f2c.js} +1 -1
- package/www/build/p-8e334a37.entry.js +1 -0
- package/www/build/{p-757c4b4d.entry.js → p-8e7891d0.entry.js} +1 -1
- package/www/build/{p-e4e5a652.entry.js → p-91a29198.entry.js} +1 -1
- package/www/build/{p-e41e28f7.entry.js → p-92828b84.entry.js} +1 -1
- package/www/build/{p-89d048ff.entry.js → p-94550647.entry.js} +1 -1
- package/www/build/p-97481f35.entry.js +1 -0
- package/www/build/{p-81e6e4c8.entry.js → p-9eafcdd4.entry.js} +1 -1
- package/www/build/p-a13b6a71.entry.js +1 -0
- package/www/build/p-a4254712.entry.js +1 -0
- package/www/build/p-a4711d6d.js +1 -0
- package/www/build/p-ab4773c6.js +1 -0
- package/www/build/p-ac9881cd.entry.js +1 -0
- package/www/build/{p-ab1799fe.entry.js → p-b5e790d7.entry.js} +1 -1
- package/www/build/p-b6f0020b.js +1 -0
- package/www/build/{p-3ea868e0.entry.js → p-b7d13c6f.entry.js} +1 -1
- package/{dist/web-components-library/p-c59c6c78.entry.js → www/build/p-b851ced1.entry.js} +1 -1
- package/www/build/{p-0f8f488c.entry.js → p-bc8d30ce.entry.js} +1 -1
- package/www/build/{p-e7c7ac3d.entry.js → p-c35e1265.entry.js} +1 -1
- package/www/build/p-c76e27b4.entry.js +1 -0
- package/www/build/p-cd14f3f5.entry.js +1 -0
- package/www/build/{p-aa228ddb.entry.js → p-d1e9a84b.entry.js} +1 -1
- package/www/build/{p-d9c76001.entry.js → p-d2ed2111.entry.js} +1 -1
- package/www/build/p-d60b4bc5.entry.js +1 -0
- package/www/build/p-dc974567.entry.js +1 -0
- package/www/build/{p-29426408.entry.js → p-dca95f65.entry.js} +1 -1
- package/{dist/web-components-library/p-78c5f1a4.entry.js → www/build/p-e6807d13.entry.js} +1 -1
- package/{dist/web-components-library/p-856c6f33.entry.js → www/build/p-f3da70cd.entry.js} +1 -1
- package/www/build/p-f62ca674.js +1 -0
- package/www/build/p-f6a7b40e.js +1 -0
- package/www/build/p-fb5450a7.js +1 -0
- package/www/build/{p-dd515f64.entry.js → p-fb9f2761.entry.js} +1 -1
- package/www/build/p-fbcf172a.js +1 -0
- package/{dist/web-components-library/p-a2d11471.entry.js → www/build/p-ffbb02d3.entry.js} +1 -1
- package/www/build/web-components-library.css +0 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.js +0 -0
- package/www/host.config.json +0 -0
- package/www/index.html +1 -1
- package/CHANGELOG.md +0 -2575
- package/dist/cjs/z-book-card.cjs.entry.js +0 -115
- package/dist/collection/components/z-book-card/index.js +0 -308
- package/dist/collection/components/z-book-card/styles.css +0 -363
- package/dist/esm/z-book-card.entry.js +0 -111
- package/dist/types/components/z-book-card/index.d.ts +0 -75
- package/dist/web-components-library/p-03ee7c14.entry.js +0 -1
- package/dist/web-components-library/p-095ce6ef.entry.js +0 -1
- package/dist/web-components-library/p-3be171d0.entry.js +0 -1
- package/dist/web-components-library/p-64fa04a0.entry.js +0 -1
- package/dist/web-components-library/p-6a459468.entry.js +0 -1
- package/dist/web-components-library/p-800ca36a.entry.js +0 -1
- package/dist/web-components-library/p-8c3eeb55.js +0 -1
- package/dist/web-components-library/p-9f1b9bbc.entry.js +0 -1
- package/dist/web-components-library/p-c4417a91.entry.js +0 -1
- package/dist/web-components-library/p-d00cf0ff.entry.js +0 -1
- package/dist/web-components-library/p-e936bf5f.entry.js +0 -1
- package/dist/web-components-library/p-eaa4eba8.entry.js +0 -1
- package/dist/web-components-library/p-f0cd78f2.js +0 -1
- package/dist/web-components-library/p-fed42db6.entry.js +0 -1
- package/src-react/index.ts +0 -1
- package/www/build/p-03ee7c14.entry.js +0 -1
- package/www/build/p-095ce6ef.entry.js +0 -1
- package/www/build/p-3be171d0.entry.js +0 -1
- package/www/build/p-64fa04a0.entry.js +0 -1
- package/www/build/p-6a459468.entry.js +0 -1
- package/www/build/p-800ca36a.entry.js +0 -1
- package/www/build/p-8c3eeb55.js +0 -1
- package/www/build/p-9f1b9bbc.entry.js +0 -1
- package/www/build/p-c4417a91.entry.js +0 -1
- package/www/build/p-d00cf0ff.entry.js +0 -1
- package/www/build/p-e936bf5f.entry.js +0 -1
- package/www/build/p-eaa4eba8.entry.js +0 -1
- package/www/build/p-f0cd78f2.js +0 -1
- package/www/build/p-f25c985e.js +0 -1
- package/www/build/p-fed42db6.entry.js +0 -1
- package/www/pages/book-cards.html +0 -269
- /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-body/styles.css +0 -0
- /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-cell/styles.css +0 -0
- /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-empty-box/styles.css +0 -0
- /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-expanded-row/styles.css +0 -0
- /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-footer/styles.css +0 -0
- /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-head/styles.css +0 -0
- /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-header/styles.css +0 -0
- /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-header-row/styles.css +0 -0
- /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-row/styles.css +0 -0
- /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-sticky-footer/styles.css +0 -0
|
@@ -164,10 +164,11 @@ export class ZInput {
|
|
|
164
164
|
return (h("button", { type: "button", class: "icon-button input-icon", tabIndex: -1 }, h("z-icon", { name: this.icon, class: this.size })));
|
|
165
165
|
}
|
|
166
166
|
renderResetIcon() {
|
|
167
|
+
let hidden = false;
|
|
167
168
|
if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == InputType.NUMBER) {
|
|
168
|
-
|
|
169
|
+
hidden = true;
|
|
169
170
|
}
|
|
170
|
-
return (h("button", { type: "button", class:
|
|
171
|
+
return (h("button", { type: "button", class: `icon-button reset-icon ${hidden ? "hidden" : ""}`, "aria-label": "cancella il contenuto dell'input", onClick: () => this.emitInputChange("") }, h("z-icon", { name: "multiply", class: this.size })));
|
|
171
172
|
}
|
|
172
173
|
renderShowHidePassword() {
|
|
173
174
|
return (h("button", { type: "button", class: "icon-button toggle-password-icon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled", class: this.size })));
|
|
@@ -207,6 +207,10 @@ label.input-label {
|
|
|
207
207
|
margin-left: calc(var(--space-unit) * 0.5);
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
.text-wrapper .icons-wrapper > button.icon-button.hidden {
|
|
211
|
+
display: none;
|
|
212
|
+
}
|
|
213
|
+
|
|
210
214
|
.text-wrapper .icons-wrapper > button.icon-button.reset-icon,
|
|
211
215
|
.text-wrapper .icons-wrapper > button.icon-button.toggle-password-icon {
|
|
212
216
|
cursor: pointer;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { ButtonVariant, ControlSize } from "../../../../beans";
|
|
3
|
+
/**
|
|
4
|
+
* ZTd component.
|
|
5
|
+
* @slot - ZTd content.
|
|
6
|
+
*/
|
|
7
|
+
export class ZTd {
|
|
8
|
+
constructor() {
|
|
9
|
+
/**
|
|
10
|
+
* Whether the cell should stick.
|
|
11
|
+
*/
|
|
12
|
+
this.sticky = false;
|
|
13
|
+
/**
|
|
14
|
+
* Enables the contextual menu.
|
|
15
|
+
* Can be set to "hover" or "always" to show the button only on cell hover or always.
|
|
16
|
+
* Set a nullish value to hide the menu button.
|
|
17
|
+
*/
|
|
18
|
+
this.showMenu = null;
|
|
19
|
+
/**
|
|
20
|
+
* Store the open state of the menu.
|
|
21
|
+
*/
|
|
22
|
+
this.isMenuOpen = false;
|
|
23
|
+
}
|
|
24
|
+
updateColspan() {
|
|
25
|
+
if (this.colspan) {
|
|
26
|
+
this.host.style.gridColumn = `span ${this.colspan}`;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
this.host.style.removeProperty("grid-column");
|
|
30
|
+
}
|
|
31
|
+
this.colspanChange.emit(this.colspan || 1);
|
|
32
|
+
}
|
|
33
|
+
componentWillLoad() {
|
|
34
|
+
this.updateColspan();
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return (h(Host, { role: "cell", "menu-open": this.isMenuOpen }, h("slot", null), this.showMenu && (h("div", { class: "cell--menu-container prevent-expand" }, h("z-button", { variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: () => (this.popoverEl.open = !this.popoverEl.open) }), h("z-popover", { ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open) }, h("slot", { name: "contextual-menu" }))))));
|
|
38
|
+
}
|
|
39
|
+
static get is() { return "z-td"; }
|
|
40
|
+
static get encapsulation() { return "shadow"; }
|
|
41
|
+
static get originalStyleUrls() {
|
|
42
|
+
return {
|
|
43
|
+
"$": ["styles.css"]
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
static get styleUrls() {
|
|
47
|
+
return {
|
|
48
|
+
"$": ["styles.css"]
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
static get properties() {
|
|
52
|
+
return {
|
|
53
|
+
"colspan": {
|
|
54
|
+
"type": "number",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "number",
|
|
58
|
+
"resolved": "number",
|
|
59
|
+
"references": {}
|
|
60
|
+
},
|
|
61
|
+
"required": false,
|
|
62
|
+
"optional": false,
|
|
63
|
+
"docs": {
|
|
64
|
+
"tags": [],
|
|
65
|
+
"text": "Number of columns that the cell should span."
|
|
66
|
+
},
|
|
67
|
+
"attribute": "colspan",
|
|
68
|
+
"reflect": false
|
|
69
|
+
},
|
|
70
|
+
"sticky": {
|
|
71
|
+
"type": "boolean",
|
|
72
|
+
"mutable": false,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "boolean",
|
|
75
|
+
"resolved": "boolean",
|
|
76
|
+
"references": {}
|
|
77
|
+
},
|
|
78
|
+
"required": false,
|
|
79
|
+
"optional": false,
|
|
80
|
+
"docs": {
|
|
81
|
+
"tags": [],
|
|
82
|
+
"text": "Whether the cell should stick."
|
|
83
|
+
},
|
|
84
|
+
"attribute": "sticky",
|
|
85
|
+
"reflect": true,
|
|
86
|
+
"defaultValue": "false"
|
|
87
|
+
},
|
|
88
|
+
"showMenu": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"mutable": false,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "VisibilityCondition",
|
|
93
|
+
"resolved": "VisibilityCondition.ALWAYS | VisibilityCondition.HOVER",
|
|
94
|
+
"references": {
|
|
95
|
+
"VisibilityCondition": {
|
|
96
|
+
"location": "import",
|
|
97
|
+
"path": "../../../../beans"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"required": false,
|
|
102
|
+
"optional": false,
|
|
103
|
+
"docs": {
|
|
104
|
+
"tags": [],
|
|
105
|
+
"text": "Enables the contextual menu.\nCan be set to \"hover\" or \"always\" to show the button only on cell hover or always.\nSet a nullish value to hide the menu button."
|
|
106
|
+
},
|
|
107
|
+
"attribute": "show-menu",
|
|
108
|
+
"reflect": true,
|
|
109
|
+
"defaultValue": "null"
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
static get states() {
|
|
114
|
+
return {
|
|
115
|
+
"isMenuOpen": {}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
static get events() {
|
|
119
|
+
return [{
|
|
120
|
+
"method": "colspanChange",
|
|
121
|
+
"name": "colspanChange",
|
|
122
|
+
"bubbles": true,
|
|
123
|
+
"cancelable": false,
|
|
124
|
+
"composed": true,
|
|
125
|
+
"docs": {
|
|
126
|
+
"tags": [],
|
|
127
|
+
"text": "Emitted when the value of the `colspan` changes."
|
|
128
|
+
},
|
|
129
|
+
"complexType": {
|
|
130
|
+
"original": "number",
|
|
131
|
+
"resolved": "number",
|
|
132
|
+
"references": {}
|
|
133
|
+
}
|
|
134
|
+
}];
|
|
135
|
+
}
|
|
136
|
+
static get elementRef() { return "host"; }
|
|
137
|
+
static get watchers() {
|
|
138
|
+
return [{
|
|
139
|
+
"propName": "colspan",
|
|
140
|
+
"methodName": "updateColspan"
|
|
141
|
+
}];
|
|
142
|
+
}
|
|
143
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
min-width: 128px;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
align-items: center;
|
|
7
|
+
padding: var(--z-table--cells-padding, calc(var(--space-unit) * 2));
|
|
8
|
+
background-color: var(--color-surface01);
|
|
9
|
+
gap: calc(var(--space-unit) * 2) var(--space-unit);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host([sticky]) {
|
|
13
|
+
position: sticky;
|
|
14
|
+
z-index: 1;
|
|
15
|
+
top: 0;
|
|
16
|
+
left: 0;
|
|
17
|
+
box-shadow: 8px 0 16px -8px var(--shadow-color-base);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Leave the space for the menu button */
|
|
21
|
+
:host([show-menu])::after {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
height: 100%;
|
|
24
|
+
margin-right: calc(var(--space-unit) * 4);
|
|
25
|
+
background: transparent;
|
|
26
|
+
content: "";
|
|
27
|
+
user-select: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.cell--menu-container {
|
|
31
|
+
position: absolute;
|
|
32
|
+
z-index: 1;
|
|
33
|
+
top: var(--space-unit);
|
|
34
|
+
right: var(--space-unit);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host(:not([show-menu])) .cell--menu-container {
|
|
38
|
+
opacity: 0;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host(:is([show-menu], [menu-open])) .cell--menu-container,
|
|
43
|
+
:host([show-menu]) .cell--menu-container:focus-within {
|
|
44
|
+
opacity: 1;
|
|
45
|
+
pointer-events: all;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media (min-width: 768px) and (hover: hover) {
|
|
49
|
+
:host([show-menu="hover"]) .cell--menu-container {
|
|
50
|
+
opacity: 0;
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host([show-menu="hover"]:hover) .cell--menu-container {
|
|
55
|
+
opacity: 1;
|
|
56
|
+
pointer-events: all;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { ButtonVariant, ControlSize, SortDirection } from "../../../../beans";
|
|
3
|
+
/**
|
|
4
|
+
* ZTh component.
|
|
5
|
+
* @slot - ZTh content.
|
|
6
|
+
* @slot contextual-menu - Contextual menu content. Only visible when `showMenu` is true.
|
|
7
|
+
*/
|
|
8
|
+
export class ZTh {
|
|
9
|
+
constructor() {
|
|
10
|
+
/**
|
|
11
|
+
* Enables the contextual menu.
|
|
12
|
+
* Can be set to "hover" or "always" to show the button only on cell hover or always.
|
|
13
|
+
* Set a nullish value to hide the menu button.
|
|
14
|
+
*/
|
|
15
|
+
this.showMenu = null;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the cell should stick.
|
|
18
|
+
*/
|
|
19
|
+
this.sticky = false;
|
|
20
|
+
/**
|
|
21
|
+
* Store the open state of the menu.
|
|
22
|
+
*/
|
|
23
|
+
this.isMenuOpen = false;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get the value to set to the `aria-sort` attribute based on the current sort direction.
|
|
27
|
+
*/
|
|
28
|
+
get ariaSortDirection() {
|
|
29
|
+
if (!this.sortDirection) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return this.sortDirection === SortDirection.ASC ? "ascending" : "descending";
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Handle the click on the sort button.
|
|
36
|
+
* @fires sort
|
|
37
|
+
*/
|
|
38
|
+
handleSort() {
|
|
39
|
+
if (!this.sortDirection) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
this.sortDirection = this.sortDirection === SortDirection.ASC ? SortDirection.DESC : SortDirection.ASC;
|
|
43
|
+
this.sort.emit({
|
|
44
|
+
sortDirection: this.sortDirection,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
updateColspan() {
|
|
48
|
+
if (this.colspan) {
|
|
49
|
+
this.host.style.gridColumn = `span ${this.colspan}`;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
this.host.style.removeProperty("grid-column");
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
componentWillLoad() {
|
|
56
|
+
this.updateColspan();
|
|
57
|
+
}
|
|
58
|
+
render() {
|
|
59
|
+
return (h(Host, { role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection }, h("slot", null), this.sortDirection && (h("button", { class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, h("z-icon", { name: this.sortDirection === SortDirection.ASC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (h("div", { class: "cell--menu-container" }, h("z-button", { variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: () => (this.popoverEl.open = !this.popoverEl.open) }), h("z-popover", { ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open) }, h("slot", { name: "contextual-menu" }))))));
|
|
60
|
+
}
|
|
61
|
+
static get is() { return "z-th"; }
|
|
62
|
+
static get encapsulation() { return "shadow"; }
|
|
63
|
+
static get originalStyleUrls() {
|
|
64
|
+
return {
|
|
65
|
+
"$": ["styles.css"]
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
static get styleUrls() {
|
|
69
|
+
return {
|
|
70
|
+
"$": ["styles.css"]
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
static get properties() {
|
|
74
|
+
return {
|
|
75
|
+
"colspan": {
|
|
76
|
+
"type": "number",
|
|
77
|
+
"mutable": false,
|
|
78
|
+
"complexType": {
|
|
79
|
+
"original": "number",
|
|
80
|
+
"resolved": "number",
|
|
81
|
+
"references": {}
|
|
82
|
+
},
|
|
83
|
+
"required": false,
|
|
84
|
+
"optional": false,
|
|
85
|
+
"docs": {
|
|
86
|
+
"tags": [],
|
|
87
|
+
"text": "Number of columns that the cell should span."
|
|
88
|
+
},
|
|
89
|
+
"attribute": "colspan",
|
|
90
|
+
"reflect": false
|
|
91
|
+
},
|
|
92
|
+
"showMenu": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"mutable": false,
|
|
95
|
+
"complexType": {
|
|
96
|
+
"original": "VisibilityCondition",
|
|
97
|
+
"resolved": "VisibilityCondition.ALWAYS | VisibilityCondition.HOVER",
|
|
98
|
+
"references": {
|
|
99
|
+
"VisibilityCondition": {
|
|
100
|
+
"location": "import",
|
|
101
|
+
"path": "../../../../beans"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"required": false,
|
|
106
|
+
"optional": false,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": "Enables the contextual menu.\nCan be set to \"hover\" or \"always\" to show the button only on cell hover or always.\nSet a nullish value to hide the menu button."
|
|
110
|
+
},
|
|
111
|
+
"attribute": "show-menu",
|
|
112
|
+
"reflect": true,
|
|
113
|
+
"defaultValue": "null"
|
|
114
|
+
},
|
|
115
|
+
"sticky": {
|
|
116
|
+
"type": "boolean",
|
|
117
|
+
"mutable": false,
|
|
118
|
+
"complexType": {
|
|
119
|
+
"original": "boolean",
|
|
120
|
+
"resolved": "boolean",
|
|
121
|
+
"references": {}
|
|
122
|
+
},
|
|
123
|
+
"required": false,
|
|
124
|
+
"optional": false,
|
|
125
|
+
"docs": {
|
|
126
|
+
"tags": [],
|
|
127
|
+
"text": "Whether the cell should stick."
|
|
128
|
+
},
|
|
129
|
+
"attribute": "sticky",
|
|
130
|
+
"reflect": true,
|
|
131
|
+
"defaultValue": "false"
|
|
132
|
+
},
|
|
133
|
+
"sortDirection": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"mutable": true,
|
|
136
|
+
"complexType": {
|
|
137
|
+
"original": "SortDirection",
|
|
138
|
+
"resolved": "SortDirection.ASC | SortDirection.DESC",
|
|
139
|
+
"references": {
|
|
140
|
+
"SortDirection": {
|
|
141
|
+
"location": "import",
|
|
142
|
+
"path": "../../../../beans"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"required": false,
|
|
147
|
+
"optional": true,
|
|
148
|
+
"docs": {
|
|
149
|
+
"tags": [],
|
|
150
|
+
"text": "Current sorting direction.\nSet `SortDirection.ASC` or `SortDirection.DESC` to show the sort icon."
|
|
151
|
+
},
|
|
152
|
+
"attribute": "sort-direction",
|
|
153
|
+
"reflect": false
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
static get states() {
|
|
158
|
+
return {
|
|
159
|
+
"isMenuOpen": {}
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
static get events() {
|
|
163
|
+
return [{
|
|
164
|
+
"method": "sort",
|
|
165
|
+
"name": "sort",
|
|
166
|
+
"bubbles": true,
|
|
167
|
+
"cancelable": true,
|
|
168
|
+
"composed": true,
|
|
169
|
+
"docs": {
|
|
170
|
+
"tags": [],
|
|
171
|
+
"text": "Sort event fired when the user clicks on the sort button.\nThe sorting logic must be implemented by the app.\nYou can set an `id` on the `z-th` to easly identify the column in the event listener."
|
|
172
|
+
},
|
|
173
|
+
"complexType": {
|
|
174
|
+
"original": "any",
|
|
175
|
+
"resolved": "any",
|
|
176
|
+
"references": {}
|
|
177
|
+
}
|
|
178
|
+
}];
|
|
179
|
+
}
|
|
180
|
+
static get elementRef() { return "host"; }
|
|
181
|
+
static get watchers() {
|
|
182
|
+
return [{
|
|
183
|
+
"propName": "colspan",
|
|
184
|
+
"methodName": "updateColspan"
|
|
185
|
+
}];
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
min-width: 128px;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
align-items: center;
|
|
7
|
+
padding: var(--z-table--cells-padding, calc(var(--space-unit) * 2));
|
|
8
|
+
background-color: var(--color-surface01);
|
|
9
|
+
gap: calc(var(--space-unit) * 2) var(--space-unit);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host([sticky]) {
|
|
13
|
+
position: sticky;
|
|
14
|
+
z-index: 1;
|
|
15
|
+
top: 0;
|
|
16
|
+
left: 0;
|
|
17
|
+
box-shadow: 8px 0 16px -8px var(--shadow-color-base);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Leave the space for the menu button */
|
|
21
|
+
:host([show-menu])::after {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
height: 100%;
|
|
24
|
+
margin-right: calc(var(--space-unit) * 4);
|
|
25
|
+
background: transparent;
|
|
26
|
+
content: "";
|
|
27
|
+
user-select: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.cell--menu-container {
|
|
31
|
+
position: absolute;
|
|
32
|
+
z-index: 1;
|
|
33
|
+
top: var(--space-unit);
|
|
34
|
+
right: var(--space-unit);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host(:not([show-menu])) .cell--menu-container {
|
|
38
|
+
opacity: 0;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host(:is([show-menu], [menu-open])) .cell--menu-container,
|
|
43
|
+
:host([show-menu]) .cell--menu-container:focus-within {
|
|
44
|
+
opacity: 1;
|
|
45
|
+
pointer-events: all;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media (min-width: 768px) and (hover: hover) {
|
|
49
|
+
:host([show-menu="hover"]) .cell--menu-container {
|
|
50
|
+
opacity: 0;
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host([show-menu="hover"]:hover) .cell--menu-container {
|
|
55
|
+
opacity: 1;
|
|
56
|
+
pointer-events: all;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
:host {
|
|
62
|
+
background-color: var(--color-surface02);
|
|
63
|
+
font-weight: var(--font-sb);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* :host([sticky]) {
|
|
67
|
+
background-color: var(--color-surface02);
|
|
68
|
+
} */
|
|
69
|
+
|
|
70
|
+
:host([sortable]) {
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.z-th--sort-button {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
padding: 0;
|
|
79
|
+
border: none;
|
|
80
|
+
margin-top: auto;
|
|
81
|
+
background-color: transparent;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.z-th--sort-button:focus {
|
|
86
|
+
box-shadow: var(--shadow-focus-primary);
|
|
87
|
+
outline: none;
|
|
88
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import "../z-thead/index";
|
|
3
|
+
import "../z-tbody/index";
|
|
4
|
+
import "../z-tr/index";
|
|
5
|
+
import "../z-tfoot/index";
|
|
6
|
+
/**
|
|
7
|
+
* ZTable component.
|
|
8
|
+
* @slot - Table content (`z-thead`, `z-tbody`, `z-tfoot`, `z-tr`).
|
|
9
|
+
* @cssprop --z-table--cells-padding - Padding of the cells.
|
|
10
|
+
*/
|
|
11
|
+
export class ZTable {
|
|
12
|
+
constructor() {
|
|
13
|
+
/**
|
|
14
|
+
* Whether the table cells should show a border between them.
|
|
15
|
+
*/
|
|
16
|
+
this.bordered = false;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the table contains some expandable rows.
|
|
19
|
+
*/
|
|
20
|
+
this.expandable = false;
|
|
21
|
+
}
|
|
22
|
+
updateExpandable() {
|
|
23
|
+
this.expandable = this.host.querySelectorAll("z-tr[expandable]").length > 0;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Setup table:
|
|
27
|
+
* - create the resize observer for resize event
|
|
28
|
+
* - create mutation observer for expandable attribute
|
|
29
|
+
*/
|
|
30
|
+
componentWillLoad() {
|
|
31
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
32
|
+
this.tableResize.emit(this);
|
|
33
|
+
});
|
|
34
|
+
this.resizeObserver.observe(this.host);
|
|
35
|
+
this.expandableMutationObserver = new MutationObserver(() => {
|
|
36
|
+
this.updateExpandable();
|
|
37
|
+
});
|
|
38
|
+
this.expandableMutationObserver.observe(this.host, {
|
|
39
|
+
childList: true,
|
|
40
|
+
subtree: true,
|
|
41
|
+
attributes: true,
|
|
42
|
+
attributeFilter: ["expandable"],
|
|
43
|
+
attributeOldValue: false,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
disconnectedCallback() {
|
|
47
|
+
this.resizeObserver.disconnect();
|
|
48
|
+
this.expandableMutationObserver.disconnect();
|
|
49
|
+
}
|
|
50
|
+
render() {
|
|
51
|
+
return (h(Host, { expandable: this.expandable }, h("div", { class: "table", role: "table" }, h("slot", null))));
|
|
52
|
+
}
|
|
53
|
+
static get is() { return "z-table"; }
|
|
54
|
+
static get encapsulation() { return "shadow"; }
|
|
55
|
+
static get originalStyleUrls() {
|
|
56
|
+
return {
|
|
57
|
+
"$": ["styles.css"]
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
static get styleUrls() {
|
|
61
|
+
return {
|
|
62
|
+
"$": ["styles.css"]
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
static get properties() {
|
|
66
|
+
return {
|
|
67
|
+
"bordered": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "boolean",
|
|
72
|
+
"resolved": "boolean",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": "Whether the table cells should show a border between them."
|
|
80
|
+
},
|
|
81
|
+
"attribute": "bordered",
|
|
82
|
+
"reflect": true,
|
|
83
|
+
"defaultValue": "false"
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
static get states() {
|
|
88
|
+
return {
|
|
89
|
+
"expandable": {}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
static get events() {
|
|
93
|
+
return [{
|
|
94
|
+
"method": "tableResize",
|
|
95
|
+
"name": "tableResize",
|
|
96
|
+
"bubbles": true,
|
|
97
|
+
"cancelable": true,
|
|
98
|
+
"composed": true,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": "Table emits its own resize event when it changes size, using a ResizeObserver.\nThis is convenient for sticky cells that needs to update styles when stuck."
|
|
102
|
+
},
|
|
103
|
+
"complexType": {
|
|
104
|
+
"original": "ZTable",
|
|
105
|
+
"resolved": "ZTable",
|
|
106
|
+
"references": {
|
|
107
|
+
"ZTable": {
|
|
108
|
+
"location": "global"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}];
|
|
113
|
+
}
|
|
114
|
+
static get elementRef() { return "host"; }
|
|
115
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--z-table--cells-padding: calc(var(--space-unit) * 2);
|
|
3
|
+
|
|
4
|
+
position: relative;
|
|
5
|
+
display: block;
|
|
6
|
+
overflow: auto;
|
|
7
|
+
max-width: 100%;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
background-color: var(--color-surface01);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host([expandable]) {
|
|
13
|
+
--z-table--expand-button-size: 40px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host([bordered]) {
|
|
17
|
+
--z-table--cell-left-border: 1px solid var(--color-surface03);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.table {
|
|
21
|
+
min-width: max-content;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* ZTbody component.
|
|
4
|
+
* @slot - ZTbody content (`z-tr`).
|
|
5
|
+
*/
|
|
6
|
+
export class ZTbody {
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, { role: "rowgroup" }, h("slot", null)));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "z-tbody"; }
|
|
11
|
+
static get encapsulation() { return "shadow"; }
|
|
12
|
+
static get originalStyleUrls() {
|
|
13
|
+
return {
|
|
14
|
+
"$": ["styles.css"]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
static get styleUrls() {
|
|
18
|
+
return {
|
|
19
|
+
"$": ["styles.css"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|