@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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-e3299e0a.js');
|
|
4
|
+
|
|
5
|
+
const stylesCss = ".sc-z-table-sticky-footer-h{position:sticky;left:0;display:block;padding:var(--basex2);border-width:var(--border-size-small) 0 var(--border-base);border-style:solid;border-color:var(--gray200);background-color:var(--bg-white);font-weight:var(--font-rg)}";
|
|
6
|
+
|
|
7
|
+
const ZTableStickyFooter = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return index.h("slot", null);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
ZTableStickyFooter.style = stylesCss;
|
|
16
|
+
|
|
17
|
+
exports.ZTableStickyFooter = ZTableStickyFooter;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-e3299e0a.js');
|
|
4
|
+
const index$1 = require('./index-4e1850d7.js');
|
|
5
|
+
|
|
6
|
+
const stylesCss = ":host{display:table-cell;border-bottom:var(--border-size-small) solid var(--bg-grey-200);background-color:var(--color-white);font-family:var(--dashboard-font);font-weight:var(--font-rg)}:host>.button-container{display:none}:host:hover>.button-container{display:initial}.button-container{position:absolute;z-index:5;top:8px;right:8px}.button-content{position:relative}.contextual-menu-container{position:absolute;top:calc(100% - var(--space-unit));right:0;display:none}.button-container.visible,.contextual-menu-container.visible{display:initial}:host([padding=\"x-small\"]){padding:calc(var(--space-unit) * 0.5)}:host([padding=\"small\"]){padding:calc(var(--space-unit))}:host([padding=\"medium\"]){padding:calc(var(--space-unit) * 2)}:host([padding=\"large\"]){padding:calc(var(--space-unit) * 2.5)}:host([padding=\"special\"]){padding:0}";
|
|
7
|
+
|
|
8
|
+
const ZTableCell = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
/** Set padding size of cell, if special 0px padding will be set */
|
|
12
|
+
this.padding = "medium";
|
|
13
|
+
this.isMenuOpened = false;
|
|
14
|
+
}
|
|
15
|
+
handleMenu() {
|
|
16
|
+
this.isMenuOpened = !this.isMenuOpened;
|
|
17
|
+
}
|
|
18
|
+
componentWillRender() {
|
|
19
|
+
this.host.setAttribute("role", "cell");
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return (index.h(index.Host, null, this.showButton && (index.h("div", { class: {
|
|
23
|
+
"button-container": true,
|
|
24
|
+
"visible": this.isMenuOpened,
|
|
25
|
+
} }, index.h("div", { class: "button-content" }, index.h("z-button", { icon: "contextual-menu", variant: index$1.ButtonVariant.TERTIARY, size: index$1.ButtonSize.X_SMALL, onClick: () => this.handleMenu() }), index.h("div", { class: {
|
|
26
|
+
"contextual-menu-container": true,
|
|
27
|
+
"visible": this.isMenuOpened,
|
|
28
|
+
} }, index.h("slot", { name: "contextual-menu" }))))), index.h("slot", null)));
|
|
29
|
+
}
|
|
30
|
+
get host() { return index.getElement(this); }
|
|
31
|
+
};
|
|
32
|
+
ZTableCell.style = stylesCss;
|
|
33
|
+
|
|
34
|
+
exports.ZTableCell = ZTableCell;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-e3299e0a.js');
|
|
4
|
+
|
|
5
|
+
const stylesCss = ":host{--z-table--cells-bottom-border-size:var(\n --border-size-medium\n );--z-table--cells-background:var(\n --color-surface02\n );display:block;box-sizing:border-box}:host([sticky]){position:sticky;z-index:2;top:0;box-shadow:0 2px 4px -2px var(--shadow-color-base)}";
|
|
6
|
+
|
|
7
|
+
const ZThead = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
/**
|
|
11
|
+
* If true, the header will be stuck to the top of the table.
|
|
12
|
+
*/
|
|
13
|
+
this.sticky = false;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (index.h(index.Host, { role: "rowgroup" }, index.h("slot", null)));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
ZThead.style = stylesCss;
|
|
20
|
+
|
|
21
|
+
exports.ZThead = ZThead;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-e3299e0a.js');
|
|
4
|
+
const index$1 = require('./index-4e1850d7.js');
|
|
5
|
+
const utils = require('./utils-aa00c0cc.js');
|
|
6
|
+
|
|
7
|
+
const stylesCss = ":host{position:relative;display:table-cell;border-bottom:var(--border-size-medium) solid var(--gray200);background-color:var(--gray50);font-family:var(--dashboard-font);font-weight:var(--font-sb);text-align:start}.container{display:flex;align-items:flex-end}:host(.sortable){cursor:pointer}:host([padding=\"x-small\"]){padding:calc(var(--space-unit) * 0.5)}:host([padding=\"small\"]){padding:calc(var(--space-unit))}:host([padding=\"medium\"]){padding:calc(var(--space-unit) * 2)}:host([padding=\"large\"]){padding:calc(var(--space-unit) * 2.5)}:host([padding=\"special\"]){padding:0}.arrow{padding-left:var(--space-unit);opacity:1}.popover-container{position:absolute;top:var(--space-unit);right:var(--space-unit);display:none}.popover-container z-popover{--z-popover-theme--surface:var(--gray200);position:relative;z-index:1}.popover-container.visible{display:block}:host(:hover) .popover-container{display:block}";
|
|
8
|
+
|
|
9
|
+
const ZTableHeader = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.sort = index.createEvent(this, "sort", 7);
|
|
13
|
+
/** Set padding size of cell, if special 0px padding will be set */
|
|
14
|
+
this.padding = "medium";
|
|
15
|
+
/** [Optional] Default sort order */
|
|
16
|
+
this.defaultSortDirection = "asc";
|
|
17
|
+
/** Sort direction */
|
|
18
|
+
this.sortDirection = "none";
|
|
19
|
+
this.emitOnSort = this.emitOnSort.bind(this);
|
|
20
|
+
}
|
|
21
|
+
emitOnSort() {
|
|
22
|
+
this.sort.emit({
|
|
23
|
+
columnId: this.columnId,
|
|
24
|
+
sortDirection: this.sortDirection,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
handleSort() {
|
|
28
|
+
if (!this.sortable) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
this.sortDirection = (() => {
|
|
32
|
+
switch (this.sortDirection) {
|
|
33
|
+
case "asc":
|
|
34
|
+
return "desc";
|
|
35
|
+
case "desc":
|
|
36
|
+
return "asc";
|
|
37
|
+
case "none":
|
|
38
|
+
return this.defaultSortDirection;
|
|
39
|
+
default:
|
|
40
|
+
return "none";
|
|
41
|
+
}
|
|
42
|
+
})();
|
|
43
|
+
this.emitOnSort();
|
|
44
|
+
}
|
|
45
|
+
handleMenuClick() {
|
|
46
|
+
this.popover.open = !this.popover.open;
|
|
47
|
+
}
|
|
48
|
+
handleOutsideClick(e) {
|
|
49
|
+
const tree = utils.getElementTree(e.target);
|
|
50
|
+
const parent = tree.find((elem) => elem.nodeName.toLowerCase() === "z-popover");
|
|
51
|
+
if (!parent && this.popover) {
|
|
52
|
+
this.popover.open = false;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
handleClickHeaders(e) {
|
|
56
|
+
const target = e.target;
|
|
57
|
+
const parent = utils.getElementTree(target).find((elem) => elem.nodeName.toLowerCase() === "z-table-header");
|
|
58
|
+
if (!this.sortable || !parent) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const parentColumnId = parent.attributes.getNamedItem("column-id").value;
|
|
62
|
+
const isSortable = target.parentNode.sortable || target.sortable;
|
|
63
|
+
if (parentColumnId !== this.columnId && isSortable) {
|
|
64
|
+
this.sortDirection = "none";
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
componentWillRender() {
|
|
68
|
+
this.host.setAttribute("role", "columnheader");
|
|
69
|
+
}
|
|
70
|
+
render() {
|
|
71
|
+
return (index.h(index.Host, { class: {
|
|
72
|
+
sortable: this.sortable,
|
|
73
|
+
}, onClick: () => this.handleSort() }, index.h("div", { class: "container" }, index.h("slot", null), this.sortable && this.sortDirection !== "none" && (index.h("z-icon", { name: this.sortDirection === "asc" ? "arrow-up" : "arrow-down", class: "arrow" }))), this.showButton && (index.h("div", { class: "popover-container" }, index.h("z-button", { ref: (el) => (this.triggerButton = el), class: "contextual-popover-button", icon: "contextual-menu", variant: index$1.ButtonVariant.TERTIARY, size: index$1.ButtonSize.X_SMALL, onClick: () => this.handleMenuClick() }), index.h("z-popover", { ref: (el) => (this.popover = el), position: index$1.PopoverPosition.BOTTOM, center: true, bindTo: this.triggerButton }, index.h("div", null, index.h("slot", { name: "contextual-menu" })))))));
|
|
74
|
+
}
|
|
75
|
+
get host() { return index.getElement(this); }
|
|
76
|
+
};
|
|
77
|
+
ZTableHeader.style = stylesCss;
|
|
78
|
+
|
|
79
|
+
exports.ZTableHeader = ZTableHeader;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-e3299e0a.js');
|
|
4
|
+
|
|
5
|
+
const stylesCss = ".sc-z-table-body-h{display:table-row-group;font-family:var(--dashboard-font);font-weight:var(--font-rg)}.sc-z-table-body-h>z-table-row[expanded].sc-z-table-body+z-table-expanded-row.sc-z-table-body{display:table-row}";
|
|
6
|
+
|
|
7
|
+
const ZTableBody = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
componentWillRender() {
|
|
12
|
+
this.host.setAttribute("role", "rowgroup");
|
|
13
|
+
Array.from(this.host.children).forEach((child, index) => child.setAttribute("aria-rowindex", `${index}`));
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return index.h("slot", null);
|
|
17
|
+
}
|
|
18
|
+
get host() { return index.getElement(this); }
|
|
19
|
+
};
|
|
20
|
+
ZTableBody.style = stylesCss;
|
|
21
|
+
|
|
22
|
+
exports.ZTableBody = ZTableBody;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-e3299e0a.js');
|
|
4
|
+
const utils = require('./utils-aa00c0cc.js');
|
|
5
|
+
require('./index-977baebe.js');
|
|
6
|
+
require('./index-d550acd3.js');
|
|
7
|
+
|
|
8
|
+
const stylesCss = ":host{--columns:1;display:grid;min-width:max-content;box-sizing:border-box;grid-auto-flow:column;grid-template-columns:var(--z-table--expand-button-size, 0) repeat(var(--columns), minmax(128px, 1fr))}*{box-sizing:border-box}.z-tr--expand-button-container,::slotted(*){border-bottom:var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03)}::slotted(*:not(:last-child)){border-right:var(--z-table--cell-left-border, none)}:host([expandable]){--show-expandable-button:visible;cursor:pointer}:host([expandable]) ::slotted(*){grid-row:1}:host([expandable]) ::slotted(:nth-last-child(2)){border-right:none}:host([expandable]) ::slotted(*:last-child){border-left:0;grid-column:1 / span calc(var(--columns) + 1);grid-row:2}:host([expandable]:not([expanded])) ::slotted(*:last-child){display:none}:host([expanded]){margin-bottom:4px;box-shadow:0 4px 4px -2px var(--shadow-color-base)}:host([expanded]) .z-tr--expand-button-container,:host([expanded]) ::slotted(*){background-color:var(--color-surface02)}.z-tr--expand-button-container{display:flex;align-items:center;justify-content:center;background-color:var(--z-table--cells-background, var(--color-surface01))}.z-tr--expand-button-container button{display:flex;align-items:center;justify-content:center;padding:0;border:none;margin:auto;appearance:none;background:transparent;cursor:pointer;visibility:var(--show-expandable-button, hidden)}.z-tr--expand-button-container button:focus{box-shadow:var(--shadow-focus-primary);outline:none}.z-tr--expand-button-container button z-icon{--z-icon-width:16px;--z-icon-height:16px}";
|
|
9
|
+
|
|
10
|
+
const ZTr = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.expand = index.createEvent(this, "expand", 7);
|
|
14
|
+
/**
|
|
15
|
+
* Whether the row is expandable.
|
|
16
|
+
* Use a `z-td` as the last cell of the row for the additional content.
|
|
17
|
+
* It will show a button to expand/collapse the row.
|
|
18
|
+
* The last cell will be hidden until the button or row is clicked.
|
|
19
|
+
*
|
|
20
|
+
* If some element inside the expandable row contains the `prevent-expand` css class,
|
|
21
|
+
* the row will not expand by clicking that element.
|
|
22
|
+
*/
|
|
23
|
+
this.expandable = false;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the row is currently expanded.
|
|
26
|
+
*/
|
|
27
|
+
this.expanded = false;
|
|
28
|
+
}
|
|
29
|
+
updateColumns() {
|
|
30
|
+
const cells = Array.from(this.host.querySelectorAll("z-td, z-th"));
|
|
31
|
+
if (this.expandable) {
|
|
32
|
+
cells.pop();
|
|
33
|
+
}
|
|
34
|
+
const columns = cells.map((cell) => cell.colspan || 1).reduce((a, b) => a + b, 0);
|
|
35
|
+
this.host.style.setProperty("--columns", `${columns}`);
|
|
36
|
+
if (this.expandable) {
|
|
37
|
+
const expandableContent = cells.pop();
|
|
38
|
+
expandableContent.id = expandableContent.id || `z-tr-expandable-content-${utils.randomId()}`;
|
|
39
|
+
this.expandableContentId = expandableContent.id;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Handle click on row.
|
|
44
|
+
* Skip expansion if the click is on a element with `prevent-expand` css class.
|
|
45
|
+
*/
|
|
46
|
+
onRowClick(event) {
|
|
47
|
+
const preventExpand = event.target.closest(".prevent-expand");
|
|
48
|
+
if (!this.expandable || preventExpand) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
this.expanded = !this.expanded;
|
|
52
|
+
this.expand.emit({ expanded: this.expanded });
|
|
53
|
+
}
|
|
54
|
+
componentWillLoad() {
|
|
55
|
+
this.updateColumns();
|
|
56
|
+
}
|
|
57
|
+
render() {
|
|
58
|
+
return (index.h(index.Host, { role: "row", onClick: this.onRowClick.bind(this), expanded: this.expanded }, index.h("div", { class: "z-tr--expand-button-container" }, this.expandable && (index.h("button", { "aria-expanded": this.expanded ? "true" : "false", "aria-label": this.expanded ? "Comprimi riga" : "Espandi riga", "aria-controls": this.expandableContentId, type: "button" }, index.h("z-icon", { name: this.expanded ? "minus-circled" : "plus-circled" })))), index.h("slot", { onSlotchange: this.updateColumns.bind(this) })));
|
|
59
|
+
}
|
|
60
|
+
get host() { return index.getElement(this); }
|
|
61
|
+
static get watchers() { return {
|
|
62
|
+
"expandable": ["updateColumns"]
|
|
63
|
+
}; }
|
|
64
|
+
};
|
|
65
|
+
ZTr.style = stylesCss;
|
|
66
|
+
|
|
67
|
+
exports.ZTr = ZTr;
|
|
@@ -136,7 +136,6 @@ exports.SortDirection = void 0;
|
|
|
136
136
|
(function (SortDirection) {
|
|
137
137
|
SortDirection["ASC"] = "asc";
|
|
138
138
|
SortDirection["DESC"] = "desc";
|
|
139
|
-
SortDirection["NONE"] = "none";
|
|
140
139
|
})(exports.SortDirection || (exports.SortDirection = {}));
|
|
141
140
|
exports.AvatarSize = void 0;
|
|
142
141
|
(function (AvatarSize) {
|
|
@@ -151,14 +150,6 @@ exports.ListSize = void 0;
|
|
|
151
150
|
ListSize["LARGE"] = "large";
|
|
152
151
|
ListSize["X_LARGE"] = "x-large";
|
|
153
152
|
})(exports.ListSize || (exports.ListSize = {}));
|
|
154
|
-
exports.Size = void 0;
|
|
155
|
-
(function (Size) {
|
|
156
|
-
Size["X_SMALL"] = "x-small";
|
|
157
|
-
Size["SMALL"] = "small";
|
|
158
|
-
Size["MEDIUM"] = "medium";
|
|
159
|
-
Size["LARGE"] = "large";
|
|
160
|
-
Size["SPECIAL"] = "special";
|
|
161
|
-
})(exports.Size || (exports.Size = {}));
|
|
162
153
|
exports.ExpandableListStyle = void 0;
|
|
163
154
|
(function (ExpandableListStyle) {
|
|
164
155
|
ExpandableListStyle["ACCORDION"] = "accordion";
|
|
@@ -336,9 +327,8 @@ exports.BreadcrumbHomepageVariant = void 0;
|
|
|
336
327
|
BreadcrumbHomepageVariant["TEXT"] = "text";
|
|
337
328
|
BreadcrumbHomepageVariant["ICON"] = "icon";
|
|
338
329
|
})(exports.BreadcrumbHomepageVariant || (exports.BreadcrumbHomepageVariant = {}));
|
|
339
|
-
exports.
|
|
340
|
-
(function (
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
})(exports.BookCardVariant || (exports.BookCardVariant = {}));
|
|
330
|
+
exports.VisibilityCondition = void 0;
|
|
331
|
+
(function (VisibilityCondition) {
|
|
332
|
+
VisibilityCondition["HOVER"] = "hover";
|
|
333
|
+
VisibilityCondition["ALWAYS"] = "always";
|
|
334
|
+
})(exports.VisibilityCondition || (exports.VisibilityCondition = {}));
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-e3299e0a.js');
|
|
4
|
+
const index$1 = require('./index-4e1850d7.js');
|
|
5
|
+
|
|
6
|
+
const stylesCss = "z-table-row{display:table-row;font-family:var(--font-family-sans)}z-table-row[expanded-type=\"expandable\"]:hover{cursor:pointer}z-table-row[expanded-type=\"expandable\"]>z-table-cell:first-child,z-table-row[expanded-type=\"padding\"]>z-table-cell:first-child{--z-icon-width:16px;--z-icon-height:16px;width:24px;box-sizing:border-box;padding-right:0;padding-left:16px;fill:var(--gray800);text-align:center;user-select:none}.z-icon-placeholder{width:24px;padding-right:0}z-table-row[expanded-type=\"expandable\"]>z-table-cell:nth-child(2),z-table-row[expanded-type=\"padding\"]>z-table-cell:nth-child(2){padding-left:8px}z-table-row[expanded-type]:hover>z-table-cell:first-child{fill:var(--myz-blue-dark)}z-table-row[expanded]>z-table-cell{border-bottom:none;background-color:var(--gray50)}z-table-row[expanded]+z-table-expanded-row{display:table-row}";
|
|
7
|
+
|
|
8
|
+
const ZTableRow = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
this.expand = index.createEvent(this, "expand", 7);
|
|
12
|
+
/** Table row expanded type */
|
|
13
|
+
this.expandedType = index$1.ZTableRowExpandedType.NONE;
|
|
14
|
+
this.expanded = false;
|
|
15
|
+
}
|
|
16
|
+
emitOnExpand() {
|
|
17
|
+
this.expand.emit({ expanded: this.expanded });
|
|
18
|
+
}
|
|
19
|
+
handleExpand() {
|
|
20
|
+
this.expanded = !this.expanded;
|
|
21
|
+
this.emitOnExpand();
|
|
22
|
+
}
|
|
23
|
+
renderExpandButton() {
|
|
24
|
+
if (this.expandedType == index$1.ZTableRowExpandedType.EXPANDABLE) {
|
|
25
|
+
return (index.h("z-table-cell", { style: { borderRight: "none" } }, index.h("z-icon", { name: this.expanded ? "minus-circled" : "plus-circled" })));
|
|
26
|
+
}
|
|
27
|
+
return (index.h("z-table-cell", { style: { borderRight: "none" } }, index.h("div", { class: "z-icon-placeholder" })));
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
return (index.h(index.Host, { role: "row", expanded: this.expanded, onClick: (event) => {
|
|
31
|
+
const preventExpand = event.target.classList.contains("prevent-expand");
|
|
32
|
+
const isExpandable = this.expandedType === index$1.ZTableRowExpandedType.EXPANDABLE;
|
|
33
|
+
if (isExpandable && !preventExpand) {
|
|
34
|
+
this.handleExpand();
|
|
35
|
+
}
|
|
36
|
+
} }, this.expandedType !== index$1.ZTableRowExpandedType.NONE && this.renderExpandButton(), index.h("slot", null)));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
ZTableRow.style = stylesCss;
|
|
40
|
+
|
|
41
|
+
exports.ZTableRow = ZTableRow;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-e3299e0a.js');
|
|
4
|
+
|
|
5
|
+
const stylesCss = ":host{display:block;box-sizing:border-box;border-top:1px solid var(--color-surface03);border-bottom:1px solid var(--color-surface03)}:host([sticky]){position:sticky;z-index:1;bottom:0;background-color:var(--color-surface01)}";
|
|
6
|
+
|
|
7
|
+
const ZTfoot = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
/**
|
|
11
|
+
* If true, the footer will be stuck to the bottom of the table.
|
|
12
|
+
*/
|
|
13
|
+
this.sticky = false;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (index.h(index.Host, { role: "rowgroup" }, index.h("slot", null)));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
ZTfoot.style = stylesCss;
|
|
20
|
+
|
|
21
|
+
exports.ZTfoot = ZTfoot;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-e3299e0a.js');
|
|
4
|
+
|
|
5
|
+
const stylesCss = ".sc-z-table-head-h{display:table-header-group;font-family:var(--dashboard-font);font-weight:var(--font-rg)}";
|
|
6
|
+
|
|
7
|
+
const ZTableHead = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
componentWillRender() {
|
|
12
|
+
this.host.setAttribute("role", "rowgroup");
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return index.h("slot", null);
|
|
16
|
+
}
|
|
17
|
+
get host() { return index.getElement(this); }
|
|
18
|
+
};
|
|
19
|
+
ZTableHead.style = stylesCss;
|
|
20
|
+
|
|
21
|
+
exports.ZTableHead = ZTableHead;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-e3299e0a.js');
|
|
4
|
+
const index$1 = require('./index-4e1850d7.js');
|
|
5
|
+
|
|
6
|
+
const stylesCss = ":host{position:relative;display:flex;min-width:128px;box-sizing:border-box;align-items:center;padding:var(--z-table--cells-padding, calc(var(--space-unit) * 2));background-color:var(--color-surface01);gap:calc(var(--space-unit) * 2) var(--space-unit)}:host([sticky]){position:sticky;z-index:1;top:0;left:0;box-shadow:8px 0 16px -8px var(--shadow-color-base)}:host([show-menu])::after{display:inline-block;height:100%;margin-right:calc(var(--space-unit) * 4);background:transparent;content:\"\";user-select:none}.cell--menu-container{position:absolute;z-index:1;top:var(--space-unit);right:var(--space-unit)}:host(:not([show-menu])) .cell--menu-container{opacity:0;pointer-events:none}:host(:is([show-menu],[menu-open])) .cell--menu-container,:host([show-menu]) .cell--menu-container:focus-within{opacity:1;pointer-events:all}@media (min-width: 768px) and (hover: hover){:host([show-menu=\"hover\"]) .cell--menu-container{opacity:0;pointer-events:none}:host([show-menu=\"hover\"]:hover) .cell--menu-container{opacity:1;pointer-events:all}}";
|
|
7
|
+
|
|
8
|
+
const ZTd = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
this.colspanChange = index.createEvent(this, "colspanChange", 6);
|
|
12
|
+
/**
|
|
13
|
+
* Whether the cell should stick.
|
|
14
|
+
*/
|
|
15
|
+
this.sticky = false;
|
|
16
|
+
/**
|
|
17
|
+
* Enables the contextual menu.
|
|
18
|
+
* Can be set to "hover" or "always" to show the button only on cell hover or always.
|
|
19
|
+
* Set a nullish value to hide the menu button.
|
|
20
|
+
*/
|
|
21
|
+
this.showMenu = null;
|
|
22
|
+
/**
|
|
23
|
+
* Store the open state of the menu.
|
|
24
|
+
*/
|
|
25
|
+
this.isMenuOpen = false;
|
|
26
|
+
}
|
|
27
|
+
updateColspan() {
|
|
28
|
+
if (this.colspan) {
|
|
29
|
+
this.host.style.gridColumn = `span ${this.colspan}`;
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this.host.style.removeProperty("grid-column");
|
|
33
|
+
}
|
|
34
|
+
this.colspanChange.emit(this.colspan || 1);
|
|
35
|
+
}
|
|
36
|
+
componentWillLoad() {
|
|
37
|
+
this.updateColspan();
|
|
38
|
+
}
|
|
39
|
+
render() {
|
|
40
|
+
return (index.h(index.Host, { role: "cell", "menu-open": this.isMenuOpen }, index.h("slot", null), this.showMenu && (index.h("div", { class: "cell--menu-container prevent-expand" }, index.h("z-button", { variant: index$1.ButtonVariant.TERTIARY, icon: "contextual-menu", size: index$1.ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: () => (this.popoverEl.open = !this.popoverEl.open) }), index.h("z-popover", { ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open) }, index.h("slot", { name: "contextual-menu" }))))));
|
|
41
|
+
}
|
|
42
|
+
get host() { return index.getElement(this); }
|
|
43
|
+
static get watchers() { return {
|
|
44
|
+
"colspan": ["updateColspan"]
|
|
45
|
+
}; }
|
|
46
|
+
};
|
|
47
|
+
ZTd.style = stylesCss;
|
|
48
|
+
|
|
49
|
+
exports.ZTd = ZTd;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-e3299e0a.js');
|
|
4
|
+
|
|
5
|
+
const stylesCss = ":host{display:block;box-sizing:border-box}";
|
|
6
|
+
|
|
7
|
+
const ZTbody = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return (index.h(index.Host, { role: "rowgroup" }, index.h("slot", null)));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
ZTbody.style = stylesCss;
|
|
16
|
+
|
|
17
|
+
exports.ZTbody = ZTbody;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-e3299e0a.js');
|
|
4
|
+
|
|
5
|
+
const stylesCss = "z-table-header-row{display:table-row}z-table-header-row[expandable]>z-table-header:first-child{width:40px;box-sizing:border-box;user-select:none}z-table-header-row[expandable]>z-table-header:nth-child(2){padding-left:8px}";
|
|
6
|
+
|
|
7
|
+
const ZTableHeaderRow = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
renderExpandHeader() {
|
|
12
|
+
return index.h("z-table-header", null);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (index.h(index.Host, { role: "row" }, this.expandable && this.renderExpandHeader(), index.h("slot", null)));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
ZTableHeaderRow.style = stylesCss;
|
|
19
|
+
|
|
20
|
+
exports.ZTableHeaderRow = ZTableHeaderRow;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-e3299e0a.js');
|
|
4
|
+
const index$1 = require('./index-4e1850d7.js');
|
|
5
|
+
|
|
6
|
+
const stylesCss = ":host{position:relative;display:flex;min-width:128px;box-sizing:border-box;align-items:center;padding:var(--z-table--cells-padding, calc(var(--space-unit) * 2));background-color:var(--color-surface01);gap:calc(var(--space-unit) * 2) var(--space-unit)}:host([sticky]){position:sticky;z-index:1;top:0;left:0;box-shadow:8px 0 16px -8px var(--shadow-color-base)}:host([show-menu])::after{display:inline-block;height:100%;margin-right:calc(var(--space-unit) * 4);background:transparent;content:\"\";user-select:none}.cell--menu-container{position:absolute;z-index:1;top:var(--space-unit);right:var(--space-unit)}:host(:not([show-menu])) .cell--menu-container{opacity:0;pointer-events:none}:host(:is([show-menu],[menu-open])) .cell--menu-container,:host([show-menu]) .cell--menu-container:focus-within{opacity:1;pointer-events:all}@media (min-width: 768px) and (hover: hover){:host([show-menu=\"hover\"]) .cell--menu-container{opacity:0;pointer-events:none}:host([show-menu=\"hover\"]:hover) .cell--menu-container{opacity:1;pointer-events:all}}:host{background-color:var(--color-surface02);font-weight:var(--font-sb)}:host([sortable]){cursor:pointer}.z-th--sort-button{display:flex;align-items:center;justify-content:center;padding:0;border:none;margin-top:auto;background-color:transparent;cursor:pointer}.z-th--sort-button:focus{box-shadow:var(--shadow-focus-primary);outline:none}";
|
|
7
|
+
|
|
8
|
+
const ZTh = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
this.sort = index.createEvent(this, "sort", 7);
|
|
12
|
+
/**
|
|
13
|
+
* Enables the contextual menu.
|
|
14
|
+
* Can be set to "hover" or "always" to show the button only on cell hover or always.
|
|
15
|
+
* Set a nullish value to hide the menu button.
|
|
16
|
+
*/
|
|
17
|
+
this.showMenu = null;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the cell should stick.
|
|
20
|
+
*/
|
|
21
|
+
this.sticky = false;
|
|
22
|
+
/**
|
|
23
|
+
* Store the open state of the menu.
|
|
24
|
+
*/
|
|
25
|
+
this.isMenuOpen = false;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get the value to set to the `aria-sort` attribute based on the current sort direction.
|
|
29
|
+
*/
|
|
30
|
+
get ariaSortDirection() {
|
|
31
|
+
if (!this.sortDirection) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return this.sortDirection === index$1.SortDirection.ASC ? "ascending" : "descending";
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Handle the click on the sort button.
|
|
38
|
+
* @fires sort
|
|
39
|
+
*/
|
|
40
|
+
handleSort() {
|
|
41
|
+
if (!this.sortDirection) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
this.sortDirection = this.sortDirection === index$1.SortDirection.ASC ? index$1.SortDirection.DESC : index$1.SortDirection.ASC;
|
|
45
|
+
this.sort.emit({
|
|
46
|
+
sortDirection: this.sortDirection,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
updateColspan() {
|
|
50
|
+
if (this.colspan) {
|
|
51
|
+
this.host.style.gridColumn = `span ${this.colspan}`;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
this.host.style.removeProperty("grid-column");
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
componentWillLoad() {
|
|
58
|
+
this.updateColspan();
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
return (index.h(index.Host, { role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection }, index.h("slot", null), this.sortDirection && (index.h("button", { class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, index.h("z-icon", { name: this.sortDirection === index$1.SortDirection.ASC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (index.h("div", { class: "cell--menu-container" }, index.h("z-button", { variant: index$1.ButtonVariant.TERTIARY, icon: "contextual-menu", size: index$1.ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: () => (this.popoverEl.open = !this.popoverEl.open) }), index.h("z-popover", { ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open) }, index.h("slot", { name: "contextual-menu" }))))));
|
|
62
|
+
}
|
|
63
|
+
get host() { return index.getElement(this); }
|
|
64
|
+
static get watchers() { return {
|
|
65
|
+
"colspan": ["updateColspan"]
|
|
66
|
+
}; }
|
|
67
|
+
};
|
|
68
|
+
ZTh.style = stylesCss;
|
|
69
|
+
|
|
70
|
+
exports.ZTh = ZTh;
|
|
@@ -1934,10 +1934,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1934
1934
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1935
1935
|
/* webpackMode: "lazy" */
|
|
1936
1936
|
'./z-body.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1937
|
-
case 'z-book-card.cjs':
|
|
1938
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1939
|
-
/* webpackMode: "lazy" */
|
|
1940
|
-
'./z-book-card.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1941
1937
|
case 'z-breadcrumb.cjs':
|
|
1942
1938
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1943
1939
|
/* webpackMode: "lazy" */
|
|
@@ -2106,6 +2102,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2106
2102
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2107
2103
|
/* webpackMode: "lazy" */
|
|
2108
2104
|
'./z-table-body.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2105
|
+
case 'z-table-deprecated.cjs':
|
|
2106
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2107
|
+
/* webpackMode: "lazy" */
|
|
2108
|
+
'./z-table-deprecated.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2109
2109
|
case 'z-table-expanded-row.cjs':
|
|
2110
2110
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2111
2111
|
/* webpackMode: "lazy" */
|
|
@@ -2134,6 +2134,26 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2134
2134
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2135
2135
|
/* webpackMode: "lazy" */
|
|
2136
2136
|
'./z-tag.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2137
|
+
case 'z-tbody.cjs':
|
|
2138
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2139
|
+
/* webpackMode: "lazy" */
|
|
2140
|
+
'./z-tbody.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2141
|
+
case 'z-td.cjs':
|
|
2142
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2143
|
+
/* webpackMode: "lazy" */
|
|
2144
|
+
'./z-td.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2145
|
+
case 'z-tfoot.cjs':
|
|
2146
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2147
|
+
/* webpackMode: "lazy" */
|
|
2148
|
+
'./z-tfoot.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2149
|
+
case 'z-th.cjs':
|
|
2150
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2151
|
+
/* webpackMode: "lazy" */
|
|
2152
|
+
'./z-th.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2153
|
+
case 'z-thead.cjs':
|
|
2154
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2155
|
+
/* webpackMode: "lazy" */
|
|
2156
|
+
'./z-thead.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2137
2157
|
case 'z-toast-notification.cjs':
|
|
2138
2158
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2139
2159
|
/* webpackMode: "lazy" */
|
|
@@ -2154,6 +2174,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2154
2174
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2155
2175
|
/* webpackMode: "lazy" */
|
|
2156
2176
|
'./z-tooltip.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2177
|
+
case 'z-tr.cjs':
|
|
2178
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2179
|
+
/* webpackMode: "lazy" */
|
|
2180
|
+
'./z-tr.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2157
2181
|
case 'z-visually-hidden.cjs':
|
|
2158
2182
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2159
2183
|
/* webpackMode: "lazy" */
|
|
@@ -2194,6 +2218,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2194
2218
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2195
2219
|
/* webpackMode: "lazy" */
|
|
2196
2220
|
'./z-table-header.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2221
|
+
case 'z-link.cjs':
|
|
2222
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2223
|
+
/* webpackMode: "lazy" */
|
|
2224
|
+
'./z-link.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2197
2225
|
case 'z-myz-list-item.cjs':
|
|
2198
2226
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2199
2227
|
/* webpackMode: "lazy" */
|
|
@@ -2202,10 +2230,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2202
2230
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2203
2231
|
/* webpackMode: "lazy" */
|
|
2204
2232
|
'./z-typography.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2205
|
-
case 'z-link.cjs':
|
|
2206
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2207
|
-
/* webpackMode: "lazy" */
|
|
2208
|
-
'./z-link.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2209
2233
|
case 'z-popover.cjs':
|
|
2210
2234
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2211
2235
|
/* webpackMode: "lazy" */
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-e3299e0a.js');
|
|
4
|
+
|
|
5
|
+
const stylesCss = ":host{display:none;background-color:var(--gray50)}:host>td>div.content-container{margin-bottom:calc(var(--space-unit) / 2);box-shadow:var(--shadow-2)}";
|
|
6
|
+
|
|
7
|
+
const ZTableExpandedRow = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return (index.h("td", { colSpan: this.colSpan }, index.h("div", { class: "content-container" }, index.h("slot", null))));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
ZTableExpandedRow.style = stylesCss;
|
|
16
|
+
|
|
17
|
+
exports.ZTableExpandedRow = ZTableExpandedRow;
|