@zanichelli/albe-web-components 16.2.1 → 16.3.0-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/cjs/{index-1f9f28df.js → index-5d3e254f.js} +2 -2
- package/dist/cjs/{index-1f9f28df.js.map → index-5d3e254f.js.map} +1 -1
- package/dist/cjs/index-6994b9af.js +75 -0
- package/dist/cjs/index-6994b9af.js.map +1 -0
- package/dist/cjs/index-b695a167.js +47 -0
- package/dist/cjs/index-b695a167.js.map +1 -0
- package/dist/cjs/index-c234bc14.js +59 -0
- package/dist/cjs/index-c234bc14.js.map +1 -0
- package/dist/cjs/{index-b361709b.js → index-ce636845.js} +2 -2
- package/dist/cjs/{index-b361709b.js.map → index-ce636845.js.map} +1 -1
- package/dist/cjs/{index-1890445d.js → index-cf034e55.js} +2 -2
- package/dist/cjs/{index-1890445d.js.map → index-cf034e55.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-accordion.cjs.entry.js +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +71 -15
- package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-avatar.cjs.entry.js +2 -2
- package/dist/cjs/z-book-card.cjs.entry.js +1 -1
- package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +2 -2
- package/dist/cjs/z-combobox.cjs.entry.js +1 -1
- package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +4 -4
- package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
- package/dist/cjs/z-info-box.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
- package/dist/cjs/z-logo.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
- package/dist/cjs/z-menu.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
- package/dist/cjs/z-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +1 -1
- package/dist/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/cjs/z-select.cjs.entry.js +1 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +8 -8
- package/dist/cjs/z-table.cjs.entry.js.map +1 -1
- package/dist/cjs/z-tbody.cjs.entry.js +1 -1
- package/dist/cjs/z-td.cjs.entry.js +1 -1
- package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
- package/dist/cjs/z-th.cjs.entry.js +1 -1
- package/dist/cjs/z-thead.cjs.entry.js +1 -1
- 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-button.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/z-tr.cjs.entry.js +3 -3
- package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/collection/components/table/cells/z-td/index.js +1 -1
- package/dist/collection/components/table/cells/z-td/index.js.map +1 -1
- package/dist/collection/components/table/cells/z-td/styles.css +5 -15
- package/dist/collection/components/table/cells/z-th/index.js +39 -5
- package/dist/collection/components/table/cells/z-th/index.js.map +1 -1
- package/dist/collection/components/table/cells/z-th/styles.css +34 -19
- package/dist/collection/components/table/z-table/index.js +1 -1
- package/dist/collection/components/table/z-table/styles.css +0 -4
- package/dist/collection/components/table/z-tbody/index.js +1 -1
- package/dist/collection/components/table/z-tfoot/index.js +1 -1
- package/dist/collection/components/table/z-thead/index.js +1 -1
- package/dist/collection/components/table/z-tr/index.js +1 -1
- package/dist/collection/components/table/z-tr/styles.css +0 -1
- package/dist/collection/components/z-accordion/index.js +1 -1
- package/dist/collection/components/z-anchor-navigation/index.js +1 -1
- package/dist/collection/components/z-app-header/index.js +3 -3
- package/dist/collection/components/z-aria-alert/index.js +1 -1
- package/dist/collection/components/z-avatar/index.js +2 -2
- package/dist/collection/components/z-book-card/index.js +1 -1
- package/dist/collection/components/z-breadcrumb/index.js +2 -2
- package/dist/collection/components/z-button-sort/index.js +1 -1
- package/dist/collection/components/z-chip/index.js +2 -2
- package/dist/collection/components/z-combobox/index.js +1 -1
- package/dist/collection/components/z-cover-hero/index.js +2 -2
- package/dist/collection/components/z-divider/index.js +1 -1
- package/dist/collection/components/z-ghost-loading/index.js +1 -1
- package/dist/collection/components/z-info-box/index.js +1 -1
- package/dist/collection/components/z-info-reveal/index.js +1 -1
- package/dist/collection/components/z-input/index.js +1 -1
- package/dist/collection/components/z-input-message/index.js +1 -1
- package/dist/collection/components/z-logo/index.js +1 -1
- package/dist/collection/components/z-menu/index.js +1 -1
- package/dist/collection/components/z-menu-section/index.js +1 -1
- package/dist/collection/components/z-modal/index.js +4 -4
- package/dist/collection/components/z-navigation-tabs/index.js +2 -2
- package/dist/collection/components/z-notification/index.js +1 -1
- package/dist/collection/components/z-offcanvas/index.js +1 -1
- package/dist/collection/components/z-panel-elem/index.js +2 -2
- package/dist/collection/components/z-popover/index.js +1 -1
- package/dist/collection/components/z-searchbar/index.js +63 -5
- package/dist/collection/components/z-searchbar/index.js.map +1 -1
- package/dist/collection/components/z-searchbar/index.spec.js +19 -19
- package/dist/collection/components/z-searchbar/index.spec.js.map +1 -1
- package/dist/collection/components/z-searchbar/styles.css +9 -0
- package/dist/collection/components/z-section-title/index.js +1 -1
- package/dist/collection/components/z-select/index.js +1 -1
- package/dist/collection/components/z-skip-to-content/index.js +1 -1
- package/dist/collection/components/z-stepper/index.js +1 -1
- package/dist/collection/components/z-stepper-item/index.js +1 -1
- package/dist/collection/components/z-tag/index.js +2 -2
- package/dist/collection/components/z-toast-notification/index.js +1 -1
- package/dist/collection/components/z-toast-notification-list/index.js +1 -1
- package/dist/collection/components/z-toggle-button/index.js +2 -2
- package/dist/collection/components/z-toggle-switch/index.js +3 -3
- package/dist/collection/components/z-tooltip/index.js +1 -1
- package/dist/collection/components/z-visually-hidden/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
- package/dist/components/index10.js +1 -1
- package/dist/components/index11.js +1 -1
- package/dist/components/index15.js +4 -4
- package/dist/components/index16.js +1 -1
- package/dist/components/index17.js +1 -1
- package/dist/components/index18.js +1 -1
- package/dist/components/index19.js +1 -1
- package/dist/components/index20.js +1 -1
- package/dist/components/index21.js +1 -1
- package/dist/components/index22.js +1 -1
- package/dist/components/index23.js +65 -8
- package/dist/components/index23.js.map +1 -1
- package/dist/components/index24.js +2 -2
- package/dist/components/index3.js +1 -1
- package/dist/components/index5.js +2 -2
- package/dist/components/index6.js +1 -1
- package/dist/components/index8.js +1 -1
- package/dist/components/z-accordion.js +1 -1
- package/dist/components/z-anchor-navigation.js +1 -1
- package/dist/components/z-app-header.js +3 -3
- package/dist/components/z-aria-alert.js +1 -1
- package/dist/components/z-avatar.js +2 -2
- package/dist/components/z-book-card.js +1 -1
- package/dist/components/z-breadcrumb.js +2 -2
- package/dist/components/z-button-sort.js +1 -1
- package/dist/components/z-combobox.js +1 -1
- package/dist/components/z-cover-hero.js +2 -2
- package/dist/components/z-info-box.js +1 -1
- package/dist/components/z-info-reveal.js +1 -1
- package/dist/components/z-logo.js +1 -1
- package/dist/components/z-menu-section.js +1 -1
- package/dist/components/z-menu.js +1 -1
- package/dist/components/z-myz-card-alert.js +1 -1
- package/dist/components/z-myz-card-dictionary.js +1 -1
- package/dist/components/z-myz-card-footer-sections.js +1 -1
- package/dist/components/z-myz-card-footer.js +1 -1
- package/dist/components/z-myz-card-icon.js +1 -1
- package/dist/components/z-myz-card-info.js +1 -1
- package/dist/components/z-myz-card-list.js +1 -1
- package/dist/components/z-myz-list.js +1 -1
- package/dist/components/z-navigation-tabs.js +2 -2
- package/dist/components/z-notification.js +1 -1
- package/dist/components/z-otp.js +2 -2
- package/dist/components/z-panel-elem.js +2 -2
- package/dist/components/z-section-title.js +1 -1
- package/dist/components/z-select.js +1 -1
- package/dist/components/z-skip-to-content.js +1 -1
- package/dist/components/z-stepper-item.js +1 -1
- package/dist/components/z-stepper.js +1 -1
- package/dist/components/z-table.js +2 -2
- package/dist/components/z-table.js.map +1 -1
- package/dist/components/z-tbody.js +1 -1
- package/dist/components/z-td.js +2 -2
- package/dist/components/z-td.js.map +1 -1
- package/dist/components/z-tfoot.js +1 -1
- package/dist/components/z-th.js +17 -6
- package/dist/components/z-th.js.map +1 -1
- package/dist/components/z-thead.js +1 -1
- package/dist/components/z-toast-notification-list.js +1 -1
- package/dist/components/z-toast-notification.js +1 -1
- package/dist/components/z-toggle-button.js +2 -2
- package/dist/components/z-toggle-switch.js +3 -3
- package/dist/components/z-tooltip.js +1 -1
- package/dist/components/z-tr.js +2 -2
- package/dist/components/z-tr.js.map +1 -1
- package/dist/components/z-visually-hidden.js +1 -1
- package/dist/esm/index-34477eb0.js +57 -0
- package/dist/esm/index-34477eb0.js.map +1 -0
- package/dist/esm/{index-b556b384.js → index-46831abe.js} +2 -2
- package/dist/esm/{index-b556b384.js.map → index-46831abe.js.map} +1 -1
- package/dist/esm/index-6a12f127.js +73 -0
- package/dist/esm/index-6a12f127.js.map +1 -0
- package/dist/esm/index-b8299b2f.js +45 -0
- package/dist/esm/index-b8299b2f.js.map +1 -0
- package/dist/esm/{index-175661e6.js → index-c3b467d4.js} +2 -2
- package/dist/esm/{index-175661e6.js.map → index-c3b467d4.js.map} +1 -1
- package/dist/esm/{index-a81f1558.js → index-ea8cd874.js} +2 -2
- package/dist/esm/{index-a81f1558.js.map → index-ea8cd874.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-accordion.entry.js +1 -1
- package/dist/esm/z-alert.entry.js +1 -1
- package/dist/esm/z-anchor-navigation.entry.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +71 -15
- package/dist/esm/z-app-header_12.entry.js.map +1 -1
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +2 -2
- package/dist/esm/z-book-card.entry.js +1 -1
- package/dist/esm/z-breadcrumb.entry.js +2 -2
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +2 -2
- package/dist/esm/z-combobox.entry.js +1 -1
- package/dist/esm/z-cover-hero.entry.js +2 -2
- package/dist/esm/z-dragdrop-area_2.entry.js +4 -4
- package/dist/esm/z-ghost-loading.entry.js +1 -1
- package/dist/esm/z-info-box.entry.js +1 -1
- package/dist/esm/z-info-reveal.entry.js +1 -1
- package/dist/esm/z-logo.entry.js +1 -1
- package/dist/esm/z-menu-section.entry.js +1 -1
- package/dist/esm/z-menu.entry.js +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +1 -1
- package/dist/esm/z-myz-card-list.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +4 -4
- package/dist/esm/z-myz-list-item.entry.js +1 -1
- package/dist/esm/z-myz-list.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +2 -2
- package/dist/esm/z-notification.entry.js +1 -1
- package/dist/esm/z-otp.entry.js +2 -2
- package/dist/esm/z-panel-elem.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +1 -1
- package/dist/esm/z-section-title.entry.js +1 -1
- package/dist/esm/z-select.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +1 -1
- package/dist/esm/z-stepper-item.entry.js +1 -1
- package/dist/esm/z-stepper.entry.js +1 -1
- package/dist/esm/z-table.entry.js +8 -8
- package/dist/esm/z-table.entry.js.map +1 -1
- package/dist/esm/z-tbody.entry.js +1 -1
- package/dist/esm/z-td.entry.js +1 -1
- package/dist/esm/z-tfoot.entry.js +1 -1
- package/dist/esm/z-th.entry.js +1 -1
- package/dist/esm/z-thead.entry.js +1 -1
- 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-button.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +3 -3
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/esm/z-tr.entry.js +3 -3
- package/dist/esm/z-visually-hidden.entry.js +1 -1
- package/dist/types/components/table/cells/z-th/index.d.ts +7 -0
- package/dist/types/components/z-searchbar/index.d.ts +3 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/web-components-library/{p-4552744b.entry.js → p-09220299.entry.js} +2 -2
- package/dist/web-components-library/{p-f21bc3a9.entry.js → p-0b8d5c1f.entry.js} +2 -2
- package/dist/web-components-library/p-0b924d0a.entry.js +2 -0
- package/dist/web-components-library/{p-2672e36f.entry.js → p-0e33badd.entry.js} +2 -2
- package/{www/build/p-ad76b8ff.entry.js → dist/web-components-library/p-11568bf1.entry.js} +2 -2
- package/dist/web-components-library/{p-a4ada10b.entry.js → p-1d303951.entry.js} +2 -2
- package/dist/web-components-library/{p-8c9f7cef.entry.js → p-25e5d451.entry.js} +2 -2
- package/dist/web-components-library/p-29734dab.entry.js +2 -0
- package/{www/build/p-57eee056.entry.js.map → dist/web-components-library/p-29734dab.entry.js.map} +1 -1
- package/dist/web-components-library/p-30209b8a.js +2 -0
- package/dist/web-components-library/p-30209b8a.js.map +1 -0
- package/dist/web-components-library/p-3103ddeb.entry.js +2 -0
- package/dist/web-components-library/{p-6f4dd02b.entry.js.map → p-3103ddeb.entry.js.map} +1 -1
- package/dist/web-components-library/{p-91c04edc.entry.js → p-341bfe32.entry.js} +2 -2
- package/dist/web-components-library/{p-97b0c3b3.entry.js → p-35215608.entry.js} +2 -2
- package/dist/web-components-library/{p-e1852de3.entry.js → p-3b984ffd.entry.js} +2 -2
- package/dist/web-components-library/{p-2a7e4988.entry.js → p-409ebe4c.entry.js} +2 -2
- package/dist/web-components-library/p-490e8d13.entry.js +2 -0
- package/dist/web-components-library/{p-385bf4ca.entry.js → p-547f8749.entry.js} +2 -2
- package/{www/build/p-83350b5f.entry.js → dist/web-components-library/p-5555f634.entry.js} +2 -2
- package/{www/build/p-57ecb5a7.entry.js → dist/web-components-library/p-59102d22.entry.js} +2 -2
- package/dist/web-components-library/{p-8b309268.entry.js → p-5b7c0e47.entry.js} +2 -2
- package/dist/web-components-library/{p-77d8ad7e.entry.js → p-5dd023cd.entry.js} +2 -2
- package/{www/build/p-8c517cd7.entry.js → dist/web-components-library/p-62781e9d.entry.js} +2 -2
- package/dist/web-components-library/{p-e366782c.entry.js → p-644391ae.entry.js} +2 -2
- package/dist/web-components-library/{p-85f84e55.entry.js → p-6f428879.entry.js} +2 -2
- package/dist/web-components-library/p-72dabb18.js +2 -0
- package/{www/build/p-49e4ce84.entry.js → dist/web-components-library/p-78a0b45c.entry.js} +2 -2
- package/{www/build/p-af856537.entry.js → dist/web-components-library/p-7cbc5b10.entry.js} +2 -2
- package/dist/web-components-library/p-7f71467d.js +2 -0
- package/dist/web-components-library/p-7f71467d.js.map +1 -0
- package/dist/web-components-library/{p-6a664748.entry.js → p-83629cec.entry.js} +2 -2
- package/dist/web-components-library/p-85703ddb.entry.js +2 -0
- package/dist/web-components-library/{p-8d7323f7.entry.js → p-8ee4a205.entry.js} +2 -2
- package/dist/web-components-library/{p-e5dc0719.entry.js → p-9171a9f9.entry.js} +2 -2
- package/dist/web-components-library/{p-999762b5.entry.js → p-91b010a6.entry.js} +2 -2
- package/dist/web-components-library/p-91b010a6.entry.js.map +1 -0
- package/dist/web-components-library/p-9683014a.entry.js +2 -0
- package/dist/web-components-library/{p-f74f9f3c.entry.js → p-9d7f38ed.entry.js} +2 -2
- package/dist/web-components-library/p-a2eb8943.entry.js +2 -0
- package/dist/web-components-library/{p-63e970ee.entry.js → p-a7944554.entry.js} +2 -2
- package/{www/build/p-33eea921.entry.js → dist/web-components-library/p-a878ce38.entry.js} +2 -2
- package/dist/web-components-library/{p-324ef970.entry.js → p-a8dfd58d.entry.js} +2 -2
- package/dist/web-components-library/p-acc97c14.js +2 -0
- package/dist/web-components-library/p-acc97c14.js.map +1 -0
- package/dist/web-components-library/p-ae0696b9.entry.js +2 -0
- package/dist/web-components-library/p-ae0696b9.entry.js.map +1 -0
- package/dist/web-components-library/{p-ae96bc09.entry.js → p-b3bcce4b.entry.js} +2 -2
- package/{www/build/p-b84fa3b6.entry.js → dist/web-components-library/p-b66ddcd3.entry.js} +2 -2
- package/dist/web-components-library/{p-fe87b081.entry.js → p-b815d28c.entry.js} +2 -2
- package/dist/web-components-library/p-b9fd414f.js +2 -0
- package/{www/build/p-d9e1d8c7.js.map → dist/web-components-library/p-b9fd414f.js.map} +1 -1
- package/dist/web-components-library/p-bfa544c7.js +2 -0
- package/dist/web-components-library/{p-be4878f2.entry.js → p-c0abf852.entry.js} +2 -2
- package/dist/web-components-library/p-c2a380e3.entry.js +2 -0
- package/{www/build/p-05e9ae1e.entry.js → dist/web-components-library/p-c8dc6642.entry.js} +2 -2
- package/dist/web-components-library/{p-a5781264.entry.js → p-cf2bd064.entry.js} +2 -2
- package/{www/build/p-609c11d6.entry.js → dist/web-components-library/p-d123144c.entry.js} +2 -2
- package/dist/web-components-library/p-d1a658f6.entry.js +2 -0
- package/dist/web-components-library/{p-6319b5e2.entry.js → p-d5711578.entry.js} +2 -2
- package/dist/web-components-library/{p-21b85c7f.entry.js → p-db55ed80.entry.js} +2 -2
- package/dist/web-components-library/{p-6586441a.entry.js → p-dde69ccc.entry.js} +2 -2
- package/dist/web-components-library/{p-8499a29d.entry.js → p-eb7d08d1.entry.js} +2 -2
- package/dist/web-components-library/{p-6b2cd695.entry.js → p-f68628ca.entry.js} +2 -2
- package/{www/build/p-df05727f.entry.js → dist/web-components-library/p-f7dd9392.entry.js} +2 -2
- package/dist/web-components-library/{p-c90249e5.entry.js → p-fb3776ca.entry.js} +2 -2
- package/dist/web-components-library/web-components-library.css +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/dist/web-components-library/web-components-library.esm.js.map +1 -1
- package/package.json +1 -1
- package/www/build/{p-4552744b.entry.js → p-09220299.entry.js} +2 -2
- package/www/build/{p-f21bc3a9.entry.js → p-0b8d5c1f.entry.js} +2 -2
- package/www/build/p-0b924d0a.entry.js +2 -0
- package/www/build/{p-82ff5b56.css → p-0cd14493.css} +1 -1
- package/www/build/{p-2672e36f.entry.js → p-0e33badd.entry.js} +2 -2
- package/{dist/web-components-library/p-ad76b8ff.entry.js → www/build/p-11568bf1.entry.js} +2 -2
- package/www/build/{p-a4ada10b.entry.js → p-1d303951.entry.js} +2 -2
- package/www/build/{p-8c9f7cef.entry.js → p-25e5d451.entry.js} +2 -2
- package/www/build/p-29734dab.entry.js +2 -0
- package/{dist/web-components-library/p-57eee056.entry.js.map → www/build/p-29734dab.entry.js.map} +1 -1
- package/www/build/p-30209b8a.js +2 -0
- package/www/build/p-30209b8a.js.map +1 -0
- package/www/build/p-3103ddeb.entry.js +2 -0
- package/www/build/{p-6f4dd02b.entry.js.map → p-3103ddeb.entry.js.map} +1 -1
- package/www/build/{p-91c04edc.entry.js → p-341bfe32.entry.js} +2 -2
- package/www/build/{p-97b0c3b3.entry.js → p-35215608.entry.js} +2 -2
- package/www/build/{p-e1852de3.entry.js → p-3b984ffd.entry.js} +2 -2
- package/www/build/{p-2a7e4988.entry.js → p-409ebe4c.entry.js} +2 -2
- package/www/build/p-490e8d13.entry.js +2 -0
- package/www/build/{p-385bf4ca.entry.js → p-547f8749.entry.js} +2 -2
- package/{dist/web-components-library/p-83350b5f.entry.js → www/build/p-5555f634.entry.js} +2 -2
- package/{dist/web-components-library/p-57ecb5a7.entry.js → www/build/p-59102d22.entry.js} +2 -2
- package/www/build/{p-8b309268.entry.js → p-5b7c0e47.entry.js} +2 -2
- package/www/build/{p-77d8ad7e.entry.js → p-5dd023cd.entry.js} +2 -2
- package/{dist/web-components-library/p-8c517cd7.entry.js → www/build/p-62781e9d.entry.js} +2 -2
- package/www/build/{p-e366782c.entry.js → p-644391ae.entry.js} +2 -2
- package/www/build/{p-85f84e55.entry.js → p-6f428879.entry.js} +2 -2
- package/www/build/p-72dabb18.js +2 -0
- package/{dist/web-components-library/p-49e4ce84.entry.js → www/build/p-78a0b45c.entry.js} +2 -2
- package/{dist/web-components-library/p-af856537.entry.js → www/build/p-7cbc5b10.entry.js} +2 -2
- package/www/build/p-7f71467d.js +2 -0
- package/www/build/p-7f71467d.js.map +1 -0
- package/www/build/{p-6a664748.entry.js → p-83629cec.entry.js} +2 -2
- package/www/build/p-85703ddb.entry.js +2 -0
- package/www/build/{p-8d7323f7.entry.js → p-8ee4a205.entry.js} +2 -2
- package/www/build/{p-e5dc0719.entry.js → p-9171a9f9.entry.js} +2 -2
- package/www/build/{p-999762b5.entry.js → p-91b010a6.entry.js} +2 -2
- package/www/build/p-91b010a6.entry.js.map +1 -0
- package/www/build/p-9683014a.entry.js +2 -0
- package/www/build/{p-f74f9f3c.entry.js → p-9d7f38ed.entry.js} +2 -2
- package/www/build/p-a2eb8943.entry.js +2 -0
- package/www/build/{p-63e970ee.entry.js → p-a7944554.entry.js} +2 -2
- package/{dist/web-components-library/p-33eea921.entry.js → www/build/p-a878ce38.entry.js} +2 -2
- package/www/build/{p-324ef970.entry.js → p-a8dfd58d.entry.js} +2 -2
- package/www/build/p-acc97c14.js +2 -0
- package/www/build/p-acc97c14.js.map +1 -0
- package/www/build/p-ae0696b9.entry.js +2 -0
- package/www/build/p-ae0696b9.entry.js.map +1 -0
- package/www/build/{p-ae96bc09.entry.js → p-b3bcce4b.entry.js} +2 -2
- package/{dist/web-components-library/p-b84fa3b6.entry.js → www/build/p-b66ddcd3.entry.js} +2 -2
- package/www/build/{p-fe87b081.entry.js → p-b815d28c.entry.js} +2 -2
- package/www/build/p-b9fd414f.js +2 -0
- package/{dist/web-components-library/p-d9e1d8c7.js.map → www/build/p-b9fd414f.js.map} +1 -1
- package/www/build/p-bfa544c7.js +2 -0
- package/www/build/{p-be4878f2.entry.js → p-c0abf852.entry.js} +2 -2
- package/www/build/p-c2a380e3.entry.js +2 -0
- package/{dist/web-components-library/p-05e9ae1e.entry.js → www/build/p-c8dc6642.entry.js} +2 -2
- package/www/build/{p-a5781264.entry.js → p-cf2bd064.entry.js} +2 -2
- package/{dist/web-components-library/p-609c11d6.entry.js → www/build/p-d123144c.entry.js} +2 -2
- package/www/build/p-d1a658f6.entry.js +2 -0
- package/www/build/{p-6319b5e2.entry.js → p-d5711578.entry.js} +2 -2
- package/www/build/p-db1c4375.js +2 -0
- package/www/build/{p-21b85c7f.entry.js → p-db55ed80.entry.js} +2 -2
- package/www/build/{p-6586441a.entry.js → p-dde69ccc.entry.js} +2 -2
- package/www/build/{p-8499a29d.entry.js → p-eb7d08d1.entry.js} +2 -2
- package/www/build/{p-6b2cd695.entry.js → p-f68628ca.entry.js} +2 -2
- package/{dist/web-components-library/p-df05727f.entry.js → www/build/p-f7dd9392.entry.js} +2 -2
- package/www/build/{p-c90249e5.entry.js → p-fb3776ca.entry.js} +2 -2
- package/www/build/web-components-library.css +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.esm.js.map +1 -1
- package/www/index.html +1 -1
- package/dist/cjs/index-3a070c6b.js +0 -47
- package/dist/cjs/index-3a070c6b.js.map +0 -1
- package/dist/cjs/index-597156d1.js +0 -65
- package/dist/cjs/index-597156d1.js.map +0 -1
- package/dist/cjs/index-f0159789.js +0 -59
- package/dist/cjs/index-f0159789.js.map +0 -1
- package/dist/esm/index-230d44a5.js +0 -45
- package/dist/esm/index-230d44a5.js.map +0 -1
- package/dist/esm/index-7a28ff39.js +0 -63
- package/dist/esm/index-7a28ff39.js.map +0 -1
- package/dist/esm/index-fd7edd22.js +0 -57
- package/dist/esm/index-fd7edd22.js.map +0 -1
- package/dist/web-components-library/p-0794ae16.entry.js +0 -2
- package/dist/web-components-library/p-26b5c84d.js +0 -2
- package/dist/web-components-library/p-26b5c84d.js.map +0 -1
- package/dist/web-components-library/p-304eeab0.js +0 -2
- package/dist/web-components-library/p-4f7dd068.entry.js +0 -2
- package/dist/web-components-library/p-4f7dd068.entry.js.map +0 -1
- package/dist/web-components-library/p-57eee056.entry.js +0 -2
- package/dist/web-components-library/p-68822fbc.entry.js +0 -2
- package/dist/web-components-library/p-6f4dd02b.entry.js +0 -2
- package/dist/web-components-library/p-74a65c6f.entry.js +0 -2
- package/dist/web-components-library/p-7d7c5344.js +0 -2
- package/dist/web-components-library/p-7d7c5344.js.map +0 -1
- package/dist/web-components-library/p-7d827c11.js +0 -2
- package/dist/web-components-library/p-89584f19.entry.js +0 -2
- package/dist/web-components-library/p-999762b5.entry.js.map +0 -1
- package/dist/web-components-library/p-a7292e1c.entry.js +0 -2
- package/dist/web-components-library/p-aa0f083b.js +0 -2
- package/dist/web-components-library/p-aa0f083b.js.map +0 -1
- package/dist/web-components-library/p-d9e1d8c7.js +0 -2
- package/dist/web-components-library/p-ed2c8484.entry.js +0 -2
- package/dist/web-components-library/p-f8d45aa4.entry.js +0 -2
- package/www/build/p-0794ae16.entry.js +0 -2
- package/www/build/p-26b5c84d.js +0 -2
- package/www/build/p-26b5c84d.js.map +0 -1
- package/www/build/p-304eeab0.js +0 -2
- package/www/build/p-3d2abab6.js +0 -2
- package/www/build/p-4f7dd068.entry.js +0 -2
- package/www/build/p-4f7dd068.entry.js.map +0 -1
- package/www/build/p-57eee056.entry.js +0 -2
- package/www/build/p-68822fbc.entry.js +0 -2
- package/www/build/p-6f4dd02b.entry.js +0 -2
- package/www/build/p-74a65c6f.entry.js +0 -2
- package/www/build/p-7d7c5344.js +0 -2
- package/www/build/p-7d7c5344.js.map +0 -1
- package/www/build/p-7d827c11.js +0 -2
- package/www/build/p-89584f19.entry.js +0 -2
- package/www/build/p-999762b5.entry.js.map +0 -1
- package/www/build/p-a7292e1c.entry.js +0 -2
- package/www/build/p-aa0f083b.js +0 -2
- package/www/build/p-aa0f083b.js.map +0 -1
- package/www/build/p-d9e1d8c7.js +0 -2
- package/www/build/p-ed2c8484.entry.js +0 -2
- package/www/build/p-f8d45aa4.entry.js +0 -2
- /package/dist/web-components-library/{p-4552744b.entry.js.map → p-09220299.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f21bc3a9.entry.js.map → p-0b8d5c1f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0794ae16.entry.js.map → p-0b924d0a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2672e36f.entry.js.map → p-0e33badd.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ad76b8ff.entry.js.map → p-11568bf1.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a4ada10b.entry.js.map → p-1d303951.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8c9f7cef.entry.js.map → p-25e5d451.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-91c04edc.entry.js.map → p-341bfe32.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-97b0c3b3.entry.js.map → p-35215608.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e1852de3.entry.js.map → p-3b984ffd.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2a7e4988.entry.js.map → p-409ebe4c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-68822fbc.entry.js.map → p-490e8d13.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-385bf4ca.entry.js.map → p-547f8749.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-83350b5f.entry.js.map → p-5555f634.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-57ecb5a7.entry.js.map → p-59102d22.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8b309268.entry.js.map → p-5b7c0e47.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-77d8ad7e.entry.js.map → p-5dd023cd.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8c517cd7.entry.js.map → p-62781e9d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e366782c.entry.js.map → p-644391ae.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-85f84e55.entry.js.map → p-6f428879.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-304eeab0.js.map → p-72dabb18.js.map} +0 -0
- /package/dist/web-components-library/{p-49e4ce84.entry.js.map → p-78a0b45c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-af856537.entry.js.map → p-7cbc5b10.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6a664748.entry.js.map → p-83629cec.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-74a65c6f.entry.js.map → p-85703ddb.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8d7323f7.entry.js.map → p-8ee4a205.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e5dc0719.entry.js.map → p-9171a9f9.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a7292e1c.entry.js.map → p-9683014a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f74f9f3c.entry.js.map → p-9d7f38ed.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-89584f19.entry.js.map → p-a2eb8943.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-63e970ee.entry.js.map → p-a7944554.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-33eea921.entry.js.map → p-a878ce38.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-324ef970.entry.js.map → p-a8dfd58d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ae96bc09.entry.js.map → p-b3bcce4b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b84fa3b6.entry.js.map → p-b66ddcd3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fe87b081.entry.js.map → p-b815d28c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7d827c11.js.map → p-bfa544c7.js.map} +0 -0
- /package/dist/web-components-library/{p-be4878f2.entry.js.map → p-c0abf852.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ed2c8484.entry.js.map → p-c2a380e3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-05e9ae1e.entry.js.map → p-c8dc6642.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a5781264.entry.js.map → p-cf2bd064.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-609c11d6.entry.js.map → p-d123144c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f8d45aa4.entry.js.map → p-d1a658f6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6319b5e2.entry.js.map → p-d5711578.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-21b85c7f.entry.js.map → p-db55ed80.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6586441a.entry.js.map → p-dde69ccc.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8499a29d.entry.js.map → p-eb7d08d1.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6b2cd695.entry.js.map → p-f68628ca.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-df05727f.entry.js.map → p-f7dd9392.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c90249e5.entry.js.map → p-fb3776ca.entry.js.map} +0 -0
- /package/www/build/{p-4552744b.entry.js.map → p-09220299.entry.js.map} +0 -0
- /package/www/build/{p-f21bc3a9.entry.js.map → p-0b8d5c1f.entry.js.map} +0 -0
- /package/www/build/{p-0794ae16.entry.js.map → p-0b924d0a.entry.js.map} +0 -0
- /package/www/build/{p-2672e36f.entry.js.map → p-0e33badd.entry.js.map} +0 -0
- /package/www/build/{p-ad76b8ff.entry.js.map → p-11568bf1.entry.js.map} +0 -0
- /package/www/build/{p-a4ada10b.entry.js.map → p-1d303951.entry.js.map} +0 -0
- /package/www/build/{p-8c9f7cef.entry.js.map → p-25e5d451.entry.js.map} +0 -0
- /package/www/build/{p-91c04edc.entry.js.map → p-341bfe32.entry.js.map} +0 -0
- /package/www/build/{p-97b0c3b3.entry.js.map → p-35215608.entry.js.map} +0 -0
- /package/www/build/{p-e1852de3.entry.js.map → p-3b984ffd.entry.js.map} +0 -0
- /package/www/build/{p-2a7e4988.entry.js.map → p-409ebe4c.entry.js.map} +0 -0
- /package/www/build/{p-68822fbc.entry.js.map → p-490e8d13.entry.js.map} +0 -0
- /package/www/build/{p-385bf4ca.entry.js.map → p-547f8749.entry.js.map} +0 -0
- /package/www/build/{p-83350b5f.entry.js.map → p-5555f634.entry.js.map} +0 -0
- /package/www/build/{p-57ecb5a7.entry.js.map → p-59102d22.entry.js.map} +0 -0
- /package/www/build/{p-8b309268.entry.js.map → p-5b7c0e47.entry.js.map} +0 -0
- /package/www/build/{p-77d8ad7e.entry.js.map → p-5dd023cd.entry.js.map} +0 -0
- /package/www/build/{p-8c517cd7.entry.js.map → p-62781e9d.entry.js.map} +0 -0
- /package/www/build/{p-e366782c.entry.js.map → p-644391ae.entry.js.map} +0 -0
- /package/www/build/{p-85f84e55.entry.js.map → p-6f428879.entry.js.map} +0 -0
- /package/www/build/{p-304eeab0.js.map → p-72dabb18.js.map} +0 -0
- /package/www/build/{p-49e4ce84.entry.js.map → p-78a0b45c.entry.js.map} +0 -0
- /package/www/build/{p-af856537.entry.js.map → p-7cbc5b10.entry.js.map} +0 -0
- /package/www/build/{p-6a664748.entry.js.map → p-83629cec.entry.js.map} +0 -0
- /package/www/build/{p-74a65c6f.entry.js.map → p-85703ddb.entry.js.map} +0 -0
- /package/www/build/{p-8d7323f7.entry.js.map → p-8ee4a205.entry.js.map} +0 -0
- /package/www/build/{p-e5dc0719.entry.js.map → p-9171a9f9.entry.js.map} +0 -0
- /package/www/build/{p-a7292e1c.entry.js.map → p-9683014a.entry.js.map} +0 -0
- /package/www/build/{p-f74f9f3c.entry.js.map → p-9d7f38ed.entry.js.map} +0 -0
- /package/www/build/{p-89584f19.entry.js.map → p-a2eb8943.entry.js.map} +0 -0
- /package/www/build/{p-63e970ee.entry.js.map → p-a7944554.entry.js.map} +0 -0
- /package/www/build/{p-33eea921.entry.js.map → p-a878ce38.entry.js.map} +0 -0
- /package/www/build/{p-324ef970.entry.js.map → p-a8dfd58d.entry.js.map} +0 -0
- /package/www/build/{p-ae96bc09.entry.js.map → p-b3bcce4b.entry.js.map} +0 -0
- /package/www/build/{p-b84fa3b6.entry.js.map → p-b66ddcd3.entry.js.map} +0 -0
- /package/www/build/{p-fe87b081.entry.js.map → p-b815d28c.entry.js.map} +0 -0
- /package/www/build/{p-7d827c11.js.map → p-bfa544c7.js.map} +0 -0
- /package/www/build/{p-be4878f2.entry.js.map → p-c0abf852.entry.js.map} +0 -0
- /package/www/build/{p-ed2c8484.entry.js.map → p-c2a380e3.entry.js.map} +0 -0
- /package/www/build/{p-05e9ae1e.entry.js.map → p-c8dc6642.entry.js.map} +0 -0
- /package/www/build/{p-a5781264.entry.js.map → p-cf2bd064.entry.js.map} +0 -0
- /package/www/build/{p-609c11d6.entry.js.map → p-d123144c.entry.js.map} +0 -0
- /package/www/build/{p-f8d45aa4.entry.js.map → p-d1a658f6.entry.js.map} +0 -0
- /package/www/build/{p-6319b5e2.entry.js.map → p-d5711578.entry.js.map} +0 -0
- /package/www/build/{p-21b85c7f.entry.js.map → p-db55ed80.entry.js.map} +0 -0
- /package/www/build/{p-6586441a.entry.js.map → p-dde69ccc.entry.js.map} +0 -0
- /package/www/build/{p-8499a29d.entry.js.map → p-eb7d08d1.entry.js.map} +0 -0
- /package/www/build/{p-6b2cd695.entry.js.map → p-f68628ca.entry.js.map} +0 -0
- /package/www/build/{p-df05727f.entry.js.map → p-f7dd9392.entry.js.map} +0 -0
- /package/www/build/{p-c90249e5.entry.js.map → p-fb3776ca.entry.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"index-f0159789.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,ykDAAykD,CAAC;AAC5lD,kBAAe,SAAS;;MCeX,GAAG;;;;0BAaD,KAAK;wBAMP,KAAK;;;IAeN,aAAa;QACrB,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAkC,YAAY,CAAC,CAAC,CAAC;QACpG,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,KAAK,CAAC,GAAG,EAAE,CAAC;SACb;QAED,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QAClF,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,WAAW,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;QAEvD,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,MAAM,iBAAiB,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;YACtC,iBAAiB,CAAC,EAAE,GAAG,iBAAiB,CAAC,EAAE,IAAI,2BAA2BA,cAAQ,EAAE,EAAE,CAAC;YACvF,IAAI,CAAC,mBAAmB,GAAG,iBAAiB,CAAC,EAAE,CAAC;SACjD;KACF;;;;;IAMO,UAAU,CAAC,KAAiB;QAClC,MAAM,aAAa,GAAI,KAAK,CAAC,MAAsB,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;QAC/E,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,aAAa,EAAE;YACrC,OAAO;SACR;QAED,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAC,CAAC,CAAC;KAC7C;IAED,iBAAiB;QACf,IAAI,CAAC,aAAa,EAAE,CAAC;KACtB;IAED,MAAM;QACJ,QACEC,QAACC,UAAI,qDACH,IAAI,EAAC,KAAK,EACV,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EACnC,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEvBD,kEAAK,KAAK,EAAC,+BAA+B,IACvC,IAAI,CAAC,UAAU,KACdA,sFACiB,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,OAAO,gBACnC,IAAI,CAAC,QAAQ,GAAG,eAAe,GAAG,cAAc,mBAC7C,IAAI,CAAC,mBAAmB,EACvC,IAAI,EAAC,QAAQ,IAEbA,qEAAQ,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAG,eAAe,GAAG,cAAc,GAAW,CAClE,CACV,CACG,EACNA,mEAAM,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAS,CACrD,EACP;KACH;;;;;;;;;;","names":["randomId","h","Host"],"sources":["src/components/table/z-tr/styles.css?tag=z-tr&encapsulation=shadow","src/components/table/z-tr/index.tsx"],"sourcesContent":[":host {\n /* number of columns of the row. will be set in component's ts code */\n --columns: 1;\n\n display: grid;\n min-width: max-content;\n box-sizing: border-box;\n grid-auto-flow: column;\n grid-template-columns: var(--z-table--expand-button-size, 0) repeat(var(--columns), minmax(128px, 1fr));\n}\n\n* {\n box-sizing: border-box;\n}\n\n.z-tr--expand-button-container,\n::slotted(*) {\n border-bottom: var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03);\n}\n\n::slotted(*:not(:last-child)) {\n border-right: var(--z-table--cell-left-border, none);\n}\n\n:host([expandable]) {\n --show-expandable-button: visible;\n\n cursor: pointer;\n}\n\n:host([expandable]) ::slotted(*) {\n grid-row: 1;\n}\n\n:host([expandable]) ::slotted(:nth-last-child(2)) {\n border-right: none;\n}\n\n:host([expandable]) ::slotted(*:last-child) {\n border-left: 0;\n grid-column: 1 / span calc(var(--columns) + 1);\n grid-row: 2;\n}\n\n:host([expandable]:not([expanded])) ::slotted(*:last-child) {\n display: none;\n}\n\n:host([expanded]) {\n margin-bottom: 4px; /* prevents shadow to be cut by the next element */\n box-shadow: 0 4px 4px -2px var(--shadow-color-base);\n}\n\n:host([expanded]) .z-tr--expand-button-container,\n:host([expanded]) ::slotted(*) {\n background-color: var(--color-surface02);\n}\n\n.z-tr--expand-button-container {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--z-table--cells-background, var(--color-surface01));\n}\n\n.z-tr--expand-button-container button {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n margin: auto;\n appearance: none;\n background: transparent;\n cursor: pointer;\n visibility: var(--show-expandable-button, hidden);\n}\n\n.z-tr--expand-button-container button:focus {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.z-tr--expand-button-container button z-icon {\n --z-icon-width: 16px;\n --z-icon-height: 16px;\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\nimport {randomId} from \"../../../utils/utils\";\nimport \"../cells/z-td/index\";\nimport \"../cells/z-th/index\";\n\n/**\n * ZTr component.\n * When the row is `expandable`, you can set the `prevent-expand` css class on an interactive element inside the row\n * to prevent the row from expanding.\n * @slot - ZTr content (`z-td` or `z-th`).\n */\n@Component({\n tag: \"z-tr\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTr {\n @Element() host: HTMLZTrElement;\n\n /**\n * Whether the row is expandable.\n * Use a `z-td` as the last cell of the row for the additional content.\n * It will show a button to expand/collapse the row.\n * The last cell will be hidden until the button or row is clicked.\n *\n * If some element inside the expandable row contains the `prevent-expand` css class,\n * the row will not expand by clicking that element.\n */\n @Prop({reflect: true})\n expandable = false;\n\n /**\n * Whether the row is currently expanded.\n */\n @State()\n expanded = false;\n\n /**\n * HTML Id of the expandable content.\n * It is used to link the button to the content through the `aria-controls` attribute.\n */\n @State()\n expandableContentId: string;\n\n /** Row has been expanded */\n @Event()\n expand: EventEmitter;\n\n @Watch(\"expandable\")\n @Listen(\"colspanchange\")\n protected updateColumns(): void {\n const cells = Array.from(this.host.querySelectorAll<HTMLZTdElement | HTMLZThElement>(\"z-td, z-th\"));\n if (this.expandable) {\n cells.pop();\n }\n\n const columns = cells.map((cell) => cell.colspan || 1).reduce((a, b) => a + b, 0);\n this.host.style.setProperty(\"--columns\", `${columns}`);\n\n if (this.expandable) {\n const expandableContent = cells.pop();\n expandableContent.id = expandableContent.id || `z-tr-expandable-content-${randomId()}`;\n this.expandableContentId = expandableContent.id;\n }\n }\n\n /**\n * Handle click on row.\n * Skip expansion if the click is on a element with `prevent-expand` css class.\n */\n private onRowClick(event: MouseEvent): void {\n const preventExpand = (event.target as HTMLElement).closest(\".prevent-expand\");\n if (!this.expandable || preventExpand) {\n return;\n }\n\n this.expanded = !this.expanded;\n this.expand.emit({expanded: this.expanded});\n }\n\n componentWillLoad(): void {\n this.updateColumns();\n }\n\n render(): HTMLZTrElement {\n return (\n <Host\n role=\"row\"\n onClick={this.onRowClick.bind(this)}\n expanded={this.expanded}\n >\n <div class=\"z-tr--expand-button-container\">\n {this.expandable && (\n <button\n aria-expanded={this.expanded ? \"true\" : \"false\"}\n aria-label={this.expanded ? \"Comprimi riga\" : \"Espandi riga\"}\n aria-controls={this.expandableContentId}\n type=\"button\"\n >\n <z-icon name={this.expanded ? \"minus-circled\" : \"plus-circled\"}></z-icon>\n </button>\n )}\n </div>\n <slot onSlotchange={this.updateColumns.bind(this)}></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-a2130b6a.js';
|
|
2
|
-
import { P as PopoverPosition, B as ButtonVariant, e as ControlSize } from './index-b7dbacb4.js';
|
|
3
|
-
|
|
4
|
-
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}:host .cell-popover{z-index:100}@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}}";
|
|
5
|
-
const ZTdStyle0 = stylesCss;
|
|
6
|
-
|
|
7
|
-
const ZTd = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
this.colspanChange = createEvent(this, "colspanChange", 6);
|
|
11
|
-
this.colspan = undefined;
|
|
12
|
-
this.sticky = false;
|
|
13
|
-
this.showMenu = null;
|
|
14
|
-
this.popoverPosition = PopoverPosition.AUTO;
|
|
15
|
-
this.isMenuOpen = false;
|
|
16
|
-
}
|
|
17
|
-
updateColspan() {
|
|
18
|
-
if (this.colspan) {
|
|
19
|
-
this.host.style.gridColumn = `span ${this.colspan}`;
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
this.host.style.removeProperty("grid-column");
|
|
23
|
-
}
|
|
24
|
-
this.colspanChange.emit(this.colspan || 1);
|
|
25
|
-
}
|
|
26
|
-
onMenuButtonClick(ev) {
|
|
27
|
-
ev.stopPropagation();
|
|
28
|
-
this.popoverEl.open = !this.popoverEl.open;
|
|
29
|
-
}
|
|
30
|
-
componentWillLoad() {
|
|
31
|
-
this.updateColspan();
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
return (h(Host, { key: '36a62d2c751b3b889c7f69280418e95ff02192d5', role: "cell", "menu-open": this.isMenuOpen }, h("slot", { key: '6d593df3a5d84033f5ec055a00dc972d113ac4cb' }), this.showMenu && (h("div", { key: '77fbfdd8dc31fcfb6694461c8c0ed430323c3926', class: "cell--menu-container prevent-expand" }, h("z-button", { key: 'caf153b8ba5861b3dc7eabf966cdfdd9d3b197da', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: this.onMenuButtonClick.bind(this) }), h("z-popover", { key: 'd89b8e0e5b8e622a6e9a08640bff28d64ff0eb07', class: "cell-popover", ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: '339066d4dd0d6d57ac2358e6a8105aa690b2ca06', name: "contextual-menu" }))))));
|
|
35
|
-
}
|
|
36
|
-
get host() { return getElement(this); }
|
|
37
|
-
static get watchers() { return {
|
|
38
|
-
"colspan": ["updateColspan"]
|
|
39
|
-
}; }
|
|
40
|
-
};
|
|
41
|
-
ZTd.style = ZTdStyle0;
|
|
42
|
-
|
|
43
|
-
export { ZTd as Z };
|
|
44
|
-
|
|
45
|
-
//# sourceMappingURL=index-230d44a5.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"index-230d44a5.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,gjCAAgjC,CAAC;AACnkC,kBAAe,SAAS;;MCWX,GAAG;;;;;sBAaL,KAAK;wBAQkB,IAAI;+BAMA,eAAe,CAAC,IAAI;0BAM3C,KAAK;;IAgBR,aAAa;QACrB,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,QAAQ,IAAI,CAAC,OAAO,EAAE,CAAC;SACrD;aAAM;YACL,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;SAC/C;QAED,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;KAC5C;IAEO,iBAAiB,CAAC,EAAc;QACtC,EAAE,CAAC,eAAe,EAAE,CAAC;QACrB,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KAC5C;IAED,iBAAiB;QACf,IAAI,CAAC,aAAa,EAAE,CAAC;KACtB;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,IAAI,EAAC,MAAM,eACA,IAAI,CAAC,UAAU,IAE1B,8DAAa,EACZ,IAAI,CAAC,QAAQ,KACZ,4DAAK,KAAK,EAAC,qCAAqC,IAC9C,iEACE,OAAO,EAAE,aAAa,CAAC,QAAQ,EAC/B,IAAI,EAAC,iBAAiB,EACtB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,WAAW,GAAG,EAAwB,CAAC,EAC1D,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,GAC1C,EACF,kEACE,KAAK,EAAC,cAAc,EACpB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAyB,CAAC,EACzD,MAAM,EAAE,IAAI,CAAC,WAA0B,EACvC,YAAY,EAAE,CAAC,KAAK,MAAM,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAC9D,QAAQ,EAAE,IAAI,CAAC,eAAe,IAE9B,6DAAM,IAAI,EAAC,iBAAiB,GAAQ,CAC1B,CACR,CACP,CACI,EACP;KACH;;;;;;;;;;","names":[],"sources":["src/components/table/cells/z-td/styles.css?tag=z-td&encapsulation=shadow","src/components/table/cells/z-td/index.tsx"],"sourcesContent":["@import \"../z-table-cells.css\";\n","import {Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ButtonVariant, ControlSize, PopoverPosition, VisibilityCondition} from \"../../../../beans\";\n\n/**\n * ZTd component.\n * @slot - ZTd content.\n */\n@Component({\n tag: \"z-td\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTd {\n @Element() host: HTMLZTdElement;\n\n /**\n * Number of columns that the cell should span.\n */\n @Prop()\n colspan: number;\n\n /**\n * Whether the cell should stick.\n */\n @Prop({reflect: true})\n sticky = false;\n\n /**\n * Enables the contextual menu.\n * Can be set to \"hover\" or \"always\" to show the button only on cell hover or always.\n * Set a nullish value to hide the menu button.\n */\n @Prop({reflect: true})\n showMenu: VisibilityCondition = null;\n\n /**\n * Set the popover position, the default is \"auto\".\n */\n @Prop()\n popoverPosition?: PopoverPosition = PopoverPosition.AUTO;\n\n /**\n * Store the open state of the menu.\n */\n @State()\n isMenuOpen = false;\n\n private menuTrigger: HTMLZButtonElement;\n\n private popoverEl: HTMLZPopoverElement;\n\n /**\n * Emitted when the value of the `colspan` changes.\n */\n @Event({\n bubbles: true,\n cancelable: false,\n })\n colspanChange: EventEmitter<number>;\n\n @Watch(\"colspan\")\n protected updateColspan(): void {\n if (this.colspan) {\n this.host.style.gridColumn = `span ${this.colspan}`;\n } else {\n this.host.style.removeProperty(\"grid-column\");\n }\n\n this.colspanChange.emit(this.colspan || 1);\n }\n\n private onMenuButtonClick(ev: MouseEvent): void {\n ev.stopPropagation();\n this.popoverEl.open = !this.popoverEl.open;\n }\n\n componentWillLoad(): void {\n this.updateColspan();\n }\n\n render(): HTMLZTdElement {\n return (\n <Host\n role=\"cell\"\n menu-open={this.isMenuOpen}\n >\n <slot></slot>\n {this.showMenu && (\n <div class=\"cell--menu-container prevent-expand\">\n <z-button\n variant={ButtonVariant.TERTIARY}\n icon=\"contextual-menu\"\n size={ControlSize.X_SMALL}\n ref={(el) => (this.menuTrigger = el as HTMLZButtonElement)}\n onClick={this.onMenuButtonClick.bind(this)}\n />\n <z-popover\n class=\"cell-popover\"\n ref={(el) => (this.popoverEl = el as HTMLZPopoverElement)}\n bindTo={this.menuTrigger as HTMLElement}\n onOpenChange={(event) => (this.isMenuOpen = event.detail.open)}\n position={this.popoverPosition}\n >\n <slot name=\"contextual-menu\"></slot>\n </z-popover>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-a2130b6a.js';
|
|
2
|
-
import { P as PopoverPosition, S as SortDirection, B as ButtonVariant, e as ControlSize } from './index-b7dbacb4.js';
|
|
3
|
-
|
|
4
|
-
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}:host .cell-popover{z-index:100}@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}";
|
|
5
|
-
const ZThStyle0 = stylesCss;
|
|
6
|
-
|
|
7
|
-
const ZTh = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
this.sort = createEvent(this, "sort", 7);
|
|
11
|
-
this.colspan = undefined;
|
|
12
|
-
this.showMenu = null;
|
|
13
|
-
this.sticky = false;
|
|
14
|
-
this.sortDirection = undefined;
|
|
15
|
-
this.popoverPosition = PopoverPosition.AUTO;
|
|
16
|
-
this.isMenuOpen = false;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Get the value to set to the `aria-sort` attribute based on the current sort direction.
|
|
20
|
-
*/
|
|
21
|
-
get ariaSortDirection() {
|
|
22
|
-
if (!this.sortDirection) {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
return this.sortDirection === SortDirection.ASC ? "ascending" : "descending";
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Handle the click on the sort button.
|
|
29
|
-
* @fires sort
|
|
30
|
-
*/
|
|
31
|
-
handleSort() {
|
|
32
|
-
if (!this.sortDirection) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
this.sortDirection = this.sortDirection === SortDirection.ASC ? SortDirection.DESC : SortDirection.ASC;
|
|
36
|
-
this.sort.emit({
|
|
37
|
-
sortDirection: this.sortDirection,
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
updateColspan() {
|
|
41
|
-
if (this.colspan) {
|
|
42
|
-
this.host.style.gridColumn = `span ${this.colspan}`;
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
this.host.style.removeProperty("grid-column");
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
componentWillLoad() {
|
|
49
|
-
this.updateColspan();
|
|
50
|
-
}
|
|
51
|
-
render() {
|
|
52
|
-
return (h(Host, { key: '222509e3075cd7a6668301f8b54cebd3af7bd843', role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection }, h("slot", { key: '728dffd6851b3b9f6647a136c0d84d0da10c894b' }), this.sortDirection && (h("button", { key: 'a75b468b0057f404fdfcafd77cf63f10999f274a', class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, h("z-icon", { key: '9d4ac199ba40228afd8b4ac087effde4ae37f55b', name: this.sortDirection === SortDirection.ASC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (h("div", { key: '4769a6dfa1e6222448b1d409746dbe1f6420cc5d', class: "cell--menu-container" }, h("z-button", { key: '90951859a7fdcaddec8769e95d8a65de5c7e5ff7', 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", { key: '3066d766feab4b810d41b78a5f3801cbffa5688d', ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: '9bf90081ba6d5c82cdd9c69f0dd536bda756b8af', name: "contextual-menu" }))))));
|
|
53
|
-
}
|
|
54
|
-
get host() { return getElement(this); }
|
|
55
|
-
static get watchers() { return {
|
|
56
|
-
"colspan": ["updateColspan"]
|
|
57
|
-
}; }
|
|
58
|
-
};
|
|
59
|
-
ZTh.style = ZThStyle0;
|
|
60
|
-
|
|
61
|
-
export { ZTh as Z };
|
|
62
|
-
|
|
63
|
-
//# sourceMappingURL=index-7a28ff39.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"index-7a28ff39.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,m4CAAm4C,CAAC;AACt5C,kBAAe,SAAS;;MCYX,GAAG;;;;;wBAekB,IAAI;sBAM3B,KAAK;;+BAaI,eAAe,CAAC,IAAI;0BAMzB,KAAK;;;;;IAiBlB,IAAY,iBAAiB;QAC3B,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;YACvB,OAAO,IAAI,CAAC;SACb;QAED,OAAO,IAAI,CAAC,aAAa,KAAK,aAAa,CAAC,GAAG,GAAG,WAAW,GAAG,YAAY,CAAC;KAC9E;;;;;IAMO,UAAU;QAChB,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;YACvB,OAAO;SACR;QAED,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,KAAK,aAAa,CAAC,GAAG,GAAG,aAAa,CAAC,IAAI,GAAG,aAAa,CAAC,GAAG,CAAC;QACvG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;YACb,aAAa,EAAE,IAAI,CAAC,aAAa;SAClC,CAAC,CAAC;KACJ;IAGS,aAAa;QACrB,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,QAAQ,IAAI,CAAC,OAAO,EAAE,CAAC;SACrD;aAAM;YACL,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;SAC/C;KACF;IAED,iBAAiB;QACf,IAAI,CAAC,aAAa,EAAE,CAAC;KACtB;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,IAAI,EAAC,cAAc,eACR,IAAI,CAAC,UAAU,eACf,IAAI,CAAC,iBAAiB,IAEjC,8DAAa,EACZ,IAAI,CAAC,aAAa,KACjB,+DACE,KAAK,EAAC,mBAAmB,EACzB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAEnC,+DACE,IAAI,EAAE,IAAI,CAAC,aAAa,KAAK,aAAa,CAAC,GAAG,GAAG,iBAAiB,GAAG,mBAAmB,EACxF,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACV,CACK,CACV,EACA,IAAI,CAAC,QAAQ,KACZ,4DAAK,KAAK,EAAC,sBAAsB,IAC/B,iEACE,OAAO,EAAE,aAAa,CAAC,QAAQ,EAC/B,IAAI,EAAC,iBAAiB,EACtB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,WAAW,GAAG,EAAiB,CAAC,EACnD,OAAO,EAAE,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAC3D,EACF,kEACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAyB,CAAC,EACzD,MAAM,EAAE,IAAI,CAAC,WAAW,EACxB,YAAY,EAAE,CAAC,KAAK,MAAM,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAC9D,QAAQ,EAAE,IAAI,CAAC,eAAe,IAE9B,6DAAM,IAAI,EAAC,iBAAiB,GAAQ,CAC1B,CACR,CACP,CACI,EACP;KACH;;;;;;;;;;","names":[],"sources":["src/components/table/cells/z-th/styles.css?tag=z-th&encapsulation=shadow","src/components/table/cells/z-th/index.tsx"],"sourcesContent":["@import \"../z-table-cells.css\";\n\n:host {\n background-color: var(--color-surface02);\n font-weight: var(--font-sb);\n}\n\n/* :host([sticky]) {\n background-color: var(--color-surface02);\n} */\n\n:host([sortable]) {\n cursor: pointer;\n}\n\n.z-th--sort-button {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n margin-top: auto;\n background-color: transparent;\n cursor: pointer;\n}\n\n.z-th--sort-button:focus {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n","import {Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ButtonVariant, ControlSize, PopoverPosition, SortDirection, VisibilityCondition} from \"../../../../beans\";\n\n/**\n * ZTh component.\n * @slot - ZTh content.\n * @slot contextual-menu - Contextual menu content. Only visible when `showMenu` is true.\n */\n@Component({\n tag: \"z-th\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTh {\n @Element() host: HTMLZThElement;\n\n /**\n * Number of columns that the cell should span.\n */\n @Prop()\n colspan: number;\n\n /**\n * Enables the contextual menu.\n * Can be set to \"hover\" or \"always\" to show the button only on cell hover or always.\n * Set a nullish value to hide the menu button.\n */\n @Prop({reflect: true})\n showMenu: VisibilityCondition = null;\n\n /**\n * Whether the cell should stick.\n */\n @Prop({reflect: true})\n sticky = false;\n\n /**\n * Current sorting direction.\n * Set `SortDirection.ASC` or `SortDirection.DESC` to show the sort icon.\n */\n @Prop({mutable: true})\n sortDirection?: SortDirection;\n\n /**\n * Set popover position.\n */\n @Prop()\n popoverPosition = PopoverPosition.AUTO;\n\n /**\n * Store the open state of the menu.\n */\n @State()\n isMenuOpen = false;\n\n /**\n * Sort event fired when the user clicks on the sort button.\n * The sorting logic must be implemented by the app.\n * You can set an `id` on the `z-th` to easly identify the column in the event listener.\n */\n @Event()\n private sort: EventEmitter;\n\n private menuTrigger: HTMLElement;\n\n private popoverEl: HTMLZPopoverElement;\n\n /**\n * Get the value to set to the `aria-sort` attribute based on the current sort direction.\n */\n private get ariaSortDirection(): string {\n if (!this.sortDirection) {\n return null;\n }\n\n return this.sortDirection === SortDirection.ASC ? \"ascending\" : \"descending\";\n }\n\n /**\n * Handle the click on the sort button.\n * @fires sort\n */\n private handleSort(): void {\n if (!this.sortDirection) {\n return;\n }\n\n this.sortDirection = this.sortDirection === SortDirection.ASC ? SortDirection.DESC : SortDirection.ASC;\n this.sort.emit({\n sortDirection: this.sortDirection,\n });\n }\n\n @Watch(\"colspan\")\n protected updateColspan(): void {\n if (this.colspan) {\n this.host.style.gridColumn = `span ${this.colspan}`;\n } else {\n this.host.style.removeProperty(\"grid-column\");\n }\n }\n\n componentWillLoad(): void {\n this.updateColspan();\n }\n\n render(): HTMLZThElement {\n return (\n <Host\n role=\"columnheader\"\n menu-open={this.isMenuOpen}\n aria-sort={this.ariaSortDirection}\n >\n <slot></slot>\n {this.sortDirection && (\n <button\n class=\"z-th--sort-button\"\n type=\"button\"\n onClick={this.handleSort.bind(this)}\n >\n <z-icon\n name={this.sortDirection === SortDirection.ASC ? \"arrow-simple-up\" : \"arrow-simple-down\"}\n width={14}\n height={14}\n />\n </button>\n )}\n {this.showMenu && (\n <div class=\"cell--menu-container\">\n <z-button\n variant={ButtonVariant.TERTIARY}\n icon=\"contextual-menu\"\n size={ControlSize.X_SMALL}\n ref={(el) => (this.menuTrigger = el as HTMLElement)}\n onClick={() => (this.popoverEl.open = !this.popoverEl.open)}\n />\n <z-popover\n ref={(el) => (this.popoverEl = el as HTMLZPopoverElement)}\n bindTo={this.menuTrigger}\n onOpenChange={(event) => (this.isMenuOpen = event.detail.open)}\n position={this.popoverPosition}\n >\n <slot name=\"contextual-menu\"></slot>\n </z-popover>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-a2130b6a.js';
|
|
2
|
-
import { r as randomId } from './utils-8ade9e2d.js';
|
|
3
|
-
import './index-230d44a5.js';
|
|
4
|
-
import './index-7a28ff39.js';
|
|
5
|
-
|
|
6
|
-
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}";
|
|
7
|
-
const ZTrStyle0 = stylesCss;
|
|
8
|
-
|
|
9
|
-
const ZTr = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
registerInstance(this, hostRef);
|
|
12
|
-
this.expand = createEvent(this, "expand", 7);
|
|
13
|
-
this.expandable = false;
|
|
14
|
-
this.expanded = false;
|
|
15
|
-
this.expandableContentId = undefined;
|
|
16
|
-
}
|
|
17
|
-
updateColumns() {
|
|
18
|
-
const cells = Array.from(this.host.querySelectorAll("z-td, z-th"));
|
|
19
|
-
if (this.expandable) {
|
|
20
|
-
cells.pop();
|
|
21
|
-
}
|
|
22
|
-
const columns = cells.map((cell) => cell.colspan || 1).reduce((a, b) => a + b, 0);
|
|
23
|
-
this.host.style.setProperty("--columns", `${columns}`);
|
|
24
|
-
if (this.expandable) {
|
|
25
|
-
const expandableContent = cells.pop();
|
|
26
|
-
expandableContent.id = expandableContent.id || `z-tr-expandable-content-${randomId()}`;
|
|
27
|
-
this.expandableContentId = expandableContent.id;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Handle click on row.
|
|
32
|
-
* Skip expansion if the click is on a element with `prevent-expand` css class.
|
|
33
|
-
*/
|
|
34
|
-
onRowClick(event) {
|
|
35
|
-
const preventExpand = event.target.closest(".prevent-expand");
|
|
36
|
-
if (!this.expandable || preventExpand) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
this.expanded = !this.expanded;
|
|
40
|
-
this.expand.emit({ expanded: this.expanded });
|
|
41
|
-
}
|
|
42
|
-
componentWillLoad() {
|
|
43
|
-
this.updateColumns();
|
|
44
|
-
}
|
|
45
|
-
render() {
|
|
46
|
-
return (h(Host, { key: '1048c6109f085ef7d6a2c80ee1f821378f1419eb', role: "row", onClick: this.onRowClick.bind(this), expanded: this.expanded }, h("div", { key: 'b4333edd3915db24134ec862e61e42af75544544', class: "z-tr--expand-button-container" }, this.expandable && (h("button", { key: 'f5d0233257d0ffd2d1221b850f9d33565b882bfe', "aria-expanded": this.expanded ? "true" : "false", "aria-label": this.expanded ? "Comprimi riga" : "Espandi riga", "aria-controls": this.expandableContentId, type: "button" }, h("z-icon", { key: '0c0e51bac7a95bab954450447b2bce3dfa0079b6', name: this.expanded ? "minus-circled" : "plus-circled" })))), h("slot", { key: 'f7af8227af6ec842ead9b12ad13a6d1df448c9a6', onSlotchange: this.updateColumns.bind(this) })));
|
|
47
|
-
}
|
|
48
|
-
get host() { return getElement(this); }
|
|
49
|
-
static get watchers() { return {
|
|
50
|
-
"expandable": ["updateColumns"]
|
|
51
|
-
}; }
|
|
52
|
-
};
|
|
53
|
-
ZTr.style = ZTrStyle0;
|
|
54
|
-
|
|
55
|
-
export { ZTr as Z };
|
|
56
|
-
|
|
57
|
-
//# sourceMappingURL=index-fd7edd22.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"index-fd7edd22.js","mappings":";;;;;AAAA,MAAM,SAAS,GAAG,ykDAAykD,CAAC;AAC5lD,kBAAe,SAAS;;MCeX,GAAG;;;;0BAaD,KAAK;wBAMP,KAAK;;;IAeN,aAAa;QACrB,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAkC,YAAY,CAAC,CAAC,CAAC;QACpG,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,KAAK,CAAC,GAAG,EAAE,CAAC;SACb;QAED,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QAClF,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,WAAW,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;QAEvD,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,MAAM,iBAAiB,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;YACtC,iBAAiB,CAAC,EAAE,GAAG,iBAAiB,CAAC,EAAE,IAAI,2BAA2B,QAAQ,EAAE,EAAE,CAAC;YACvF,IAAI,CAAC,mBAAmB,GAAG,iBAAiB,CAAC,EAAE,CAAC;SACjD;KACF;;;;;IAMO,UAAU,CAAC,KAAiB;QAClC,MAAM,aAAa,GAAI,KAAK,CAAC,MAAsB,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;QAC/E,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,aAAa,EAAE;YACrC,OAAO;SACR;QAED,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAC,CAAC,CAAC;KAC7C;IAED,iBAAiB;QACf,IAAI,CAAC,aAAa,EAAE,CAAC;KACtB;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,IAAI,EAAC,KAAK,EACV,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EACnC,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEvB,4DAAK,KAAK,EAAC,+BAA+B,IACvC,IAAI,CAAC,UAAU,KACd,gFACiB,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,OAAO,gBACnC,IAAI,CAAC,QAAQ,GAAG,eAAe,GAAG,cAAc,mBAC7C,IAAI,CAAC,mBAAmB,EACvC,IAAI,EAAC,QAAQ,IAEb,+DAAQ,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAG,eAAe,GAAG,cAAc,GAAW,CAClE,CACV,CACG,EACN,6DAAM,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAS,CACrD,EACP;KACH;;;;;;;;;;","names":[],"sources":["src/components/table/z-tr/styles.css?tag=z-tr&encapsulation=shadow","src/components/table/z-tr/index.tsx"],"sourcesContent":[":host {\n /* number of columns of the row. will be set in component's ts code */\n --columns: 1;\n\n display: grid;\n min-width: max-content;\n box-sizing: border-box;\n grid-auto-flow: column;\n grid-template-columns: var(--z-table--expand-button-size, 0) repeat(var(--columns), minmax(128px, 1fr));\n}\n\n* {\n box-sizing: border-box;\n}\n\n.z-tr--expand-button-container,\n::slotted(*) {\n border-bottom: var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03);\n}\n\n::slotted(*:not(:last-child)) {\n border-right: var(--z-table--cell-left-border, none);\n}\n\n:host([expandable]) {\n --show-expandable-button: visible;\n\n cursor: pointer;\n}\n\n:host([expandable]) ::slotted(*) {\n grid-row: 1;\n}\n\n:host([expandable]) ::slotted(:nth-last-child(2)) {\n border-right: none;\n}\n\n:host([expandable]) ::slotted(*:last-child) {\n border-left: 0;\n grid-column: 1 / span calc(var(--columns) + 1);\n grid-row: 2;\n}\n\n:host([expandable]:not([expanded])) ::slotted(*:last-child) {\n display: none;\n}\n\n:host([expanded]) {\n margin-bottom: 4px; /* prevents shadow to be cut by the next element */\n box-shadow: 0 4px 4px -2px var(--shadow-color-base);\n}\n\n:host([expanded]) .z-tr--expand-button-container,\n:host([expanded]) ::slotted(*) {\n background-color: var(--color-surface02);\n}\n\n.z-tr--expand-button-container {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--z-table--cells-background, var(--color-surface01));\n}\n\n.z-tr--expand-button-container button {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n margin: auto;\n appearance: none;\n background: transparent;\n cursor: pointer;\n visibility: var(--show-expandable-button, hidden);\n}\n\n.z-tr--expand-button-container button:focus {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.z-tr--expand-button-container button z-icon {\n --z-icon-width: 16px;\n --z-icon-height: 16px;\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\nimport {randomId} from \"../../../utils/utils\";\nimport \"../cells/z-td/index\";\nimport \"../cells/z-th/index\";\n\n/**\n * ZTr component.\n * When the row is `expandable`, you can set the `prevent-expand` css class on an interactive element inside the row\n * to prevent the row from expanding.\n * @slot - ZTr content (`z-td` or `z-th`).\n */\n@Component({\n tag: \"z-tr\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTr {\n @Element() host: HTMLZTrElement;\n\n /**\n * Whether the row is expandable.\n * Use a `z-td` as the last cell of the row for the additional content.\n * It will show a button to expand/collapse the row.\n * The last cell will be hidden until the button or row is clicked.\n *\n * If some element inside the expandable row contains the `prevent-expand` css class,\n * the row will not expand by clicking that element.\n */\n @Prop({reflect: true})\n expandable = false;\n\n /**\n * Whether the row is currently expanded.\n */\n @State()\n expanded = false;\n\n /**\n * HTML Id of the expandable content.\n * It is used to link the button to the content through the `aria-controls` attribute.\n */\n @State()\n expandableContentId: string;\n\n /** Row has been expanded */\n @Event()\n expand: EventEmitter;\n\n @Watch(\"expandable\")\n @Listen(\"colspanchange\")\n protected updateColumns(): void {\n const cells = Array.from(this.host.querySelectorAll<HTMLZTdElement | HTMLZThElement>(\"z-td, z-th\"));\n if (this.expandable) {\n cells.pop();\n }\n\n const columns = cells.map((cell) => cell.colspan || 1).reduce((a, b) => a + b, 0);\n this.host.style.setProperty(\"--columns\", `${columns}`);\n\n if (this.expandable) {\n const expandableContent = cells.pop();\n expandableContent.id = expandableContent.id || `z-tr-expandable-content-${randomId()}`;\n this.expandableContentId = expandableContent.id;\n }\n }\n\n /**\n * Handle click on row.\n * Skip expansion if the click is on a element with `prevent-expand` css class.\n */\n private onRowClick(event: MouseEvent): void {\n const preventExpand = (event.target as HTMLElement).closest(\".prevent-expand\");\n if (!this.expandable || preventExpand) {\n return;\n }\n\n this.expanded = !this.expanded;\n this.expand.emit({expanded: this.expanded});\n }\n\n componentWillLoad(): void {\n this.updateColumns();\n }\n\n render(): HTMLZTrElement {\n return (\n <Host\n role=\"row\"\n onClick={this.onRowClick.bind(this)}\n expanded={this.expanded}\n >\n <div class=\"z-tr--expand-button-container\">\n {this.expandable && (\n <button\n aria-expanded={this.expanded ? \"true\" : \"false\"}\n aria-label={this.expanded ? \"Comprimi riga\" : \"Espandi riga\"}\n aria-controls={this.expandableContentId}\n type=\"button\"\n >\n <z-icon name={this.expanded ? \"minus-circled\" : \"plus-circled\"}></z-icon>\n </button>\n )}\n </div>\n <slot onSlotchange={this.updateColumns.bind(this)}></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as n,a as o,g as s}from"./p-cfa39bd3.js";import{P as i,S as a,B as r,e as c}from"./p-6037cdf3.js";const h=':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}:host .cell-popover{z-index:100}@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}';const d=h;const l=class{constructor(n){t(this,n);this.sort=e(this,"sort",7);this.colspan=undefined;this.showMenu=null;this.sticky=false;this.sortDirection=undefined;this.popoverPosition=i.AUTO;this.isMenuOpen=false}get ariaSortDirection(){if(!this.sortDirection){return null}return this.sortDirection===a.ASC?"ascending":"descending"}handleSort(){if(!this.sortDirection){return}this.sortDirection=this.sortDirection===a.ASC?a.DESC:a.ASC;this.sort.emit({sortDirection:this.sortDirection})}updateColspan(){if(this.colspan){this.host.style.gridColumn=`span ${this.colspan}`}else{this.host.style.removeProperty("grid-column")}}componentWillLoad(){this.updateColspan()}render(){return n(o,{key:"222509e3075cd7a6668301f8b54cebd3af7bd843",role:"columnheader","menu-open":this.isMenuOpen,"aria-sort":this.ariaSortDirection},n("slot",{key:"728dffd6851b3b9f6647a136c0d84d0da10c894b"}),this.sortDirection&&n("button",{key:"a75b468b0057f404fdfcafd77cf63f10999f274a",class:"z-th--sort-button",type:"button",onClick:this.handleSort.bind(this)},n("z-icon",{key:"9d4ac199ba40228afd8b4ac087effde4ae37f55b",name:this.sortDirection===a.ASC?"arrow-simple-up":"arrow-simple-down",width:14,height:14})),this.showMenu&&n("div",{key:"4769a6dfa1e6222448b1d409746dbe1f6420cc5d",class:"cell--menu-container"},n("z-button",{key:"90951859a7fdcaddec8769e95d8a65de5c7e5ff7",variant:r.TERTIARY,icon:"contextual-menu",size:c.X_SMALL,ref:t=>this.menuTrigger=t,onClick:()=>this.popoverEl.open=!this.popoverEl.open}),n("z-popover",{key:"3066d766feab4b810d41b78a5f3801cbffa5688d",ref:t=>this.popoverEl=t,bindTo:this.menuTrigger,onOpenChange:t=>this.isMenuOpen=t.detail.open,position:this.popoverPosition},n("slot",{key:"9bf90081ba6d5c82cdd9c69f0dd536bda756b8af",name:"contextual-menu"}))))}get host(){return s(this)}static get watchers(){return{colspan:["updateColspan"]}}};l.style=d;export{l as Z};
|
|
2
|
-
//# sourceMappingURL=p-26b5c84d.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["stylesCss","ZThStyle0","ZTh","PopoverPosition","AUTO","ariaSortDirection","this","sortDirection","SortDirection","ASC","handleSort","DESC","sort","emit","updateColspan","colspan","host","style","gridColumn","removeProperty","componentWillLoad","render","h","Host","key","role","isMenuOpen","class","type","onClick","bind","name","width","height","showMenu","variant","ButtonVariant","TERTIARY","icon","size","ControlSize","X_SMALL","ref","el","menuTrigger","popoverEl","open","bindTo","onOpenChange","event","detail","position","popoverPosition"],"sources":["src/components/table/cells/z-th/styles.css?tag=z-th&encapsulation=shadow","src/components/table/cells/z-th/index.tsx"],"sourcesContent":["@import \"../z-table-cells.css\";\n\n:host {\n background-color: var(--color-surface02);\n font-weight: var(--font-sb);\n}\n\n/* :host([sticky]) {\n background-color: var(--color-surface02);\n} */\n\n:host([sortable]) {\n cursor: pointer;\n}\n\n.z-th--sort-button {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n margin-top: auto;\n background-color: transparent;\n cursor: pointer;\n}\n\n.z-th--sort-button:focus {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n","import {Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ButtonVariant, ControlSize, PopoverPosition, SortDirection, VisibilityCondition} from \"../../../../beans\";\n\n/**\n * ZTh component.\n * @slot - ZTh content.\n * @slot contextual-menu - Contextual menu content. Only visible when `showMenu` is true.\n */\n@Component({\n tag: \"z-th\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTh {\n @Element() host: HTMLZThElement;\n\n /**\n * Number of columns that the cell should span.\n */\n @Prop()\n colspan: number;\n\n /**\n * Enables the contextual menu.\n * Can be set to \"hover\" or \"always\" to show the button only on cell hover or always.\n * Set a nullish value to hide the menu button.\n */\n @Prop({reflect: true})\n showMenu: VisibilityCondition = null;\n\n /**\n * Whether the cell should stick.\n */\n @Prop({reflect: true})\n sticky = false;\n\n /**\n * Current sorting direction.\n * Set `SortDirection.ASC` or `SortDirection.DESC` to show the sort icon.\n */\n @Prop({mutable: true})\n sortDirection?: SortDirection;\n\n /**\n * Set popover position.\n */\n @Prop()\n popoverPosition = PopoverPosition.AUTO;\n\n /**\n * Store the open state of the menu.\n */\n @State()\n isMenuOpen = false;\n\n /**\n * Sort event fired when the user clicks on the sort button.\n * The sorting logic must be implemented by the app.\n * You can set an `id` on the `z-th` to easly identify the column in the event listener.\n */\n @Event()\n private sort: EventEmitter;\n\n private menuTrigger: HTMLElement;\n\n private popoverEl: HTMLZPopoverElement;\n\n /**\n * Get the value to set to the `aria-sort` attribute based on the current sort direction.\n */\n private get ariaSortDirection(): string {\n if (!this.sortDirection) {\n return null;\n }\n\n return this.sortDirection === SortDirection.ASC ? \"ascending\" : \"descending\";\n }\n\n /**\n * Handle the click on the sort button.\n * @fires sort\n */\n private handleSort(): void {\n if (!this.sortDirection) {\n return;\n }\n\n this.sortDirection = this.sortDirection === SortDirection.ASC ? SortDirection.DESC : SortDirection.ASC;\n this.sort.emit({\n sortDirection: this.sortDirection,\n });\n }\n\n @Watch(\"colspan\")\n protected updateColspan(): void {\n if (this.colspan) {\n this.host.style.gridColumn = `span ${this.colspan}`;\n } else {\n this.host.style.removeProperty(\"grid-column\");\n }\n }\n\n componentWillLoad(): void {\n this.updateColspan();\n }\n\n render(): HTMLZThElement {\n return (\n <Host\n role=\"columnheader\"\n menu-open={this.isMenuOpen}\n aria-sort={this.ariaSortDirection}\n >\n <slot></slot>\n {this.sortDirection && (\n <button\n class=\"z-th--sort-button\"\n type=\"button\"\n onClick={this.handleSort.bind(this)}\n >\n <z-icon\n name={this.sortDirection === SortDirection.ASC ? \"arrow-simple-up\" : \"arrow-simple-down\"}\n width={14}\n height={14}\n />\n </button>\n )}\n {this.showMenu && (\n <div class=\"cell--menu-container\">\n <z-button\n variant={ButtonVariant.TERTIARY}\n icon=\"contextual-menu\"\n size={ControlSize.X_SMALL}\n ref={(el) => (this.menuTrigger = el as HTMLElement)}\n onClick={() => (this.popoverEl.open = !this.popoverEl.open)}\n />\n <z-popover\n ref={(el) => (this.popoverEl = el as HTMLZPopoverElement)}\n bindTo={this.menuTrigger}\n onOpenChange={(event) => (this.isMenuOpen = event.detail.open)}\n position={this.popoverPosition}\n >\n <slot name=\"contextual-menu\"></slot>\n </z-popover>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"yHAAA,MAAMA,EAAY,83CAClB,MAAAC,EAAeD,E,MCYFE,EAAG,M,yFAekB,K,YAMvB,M,kDAaSC,EAAgBC,K,gBAMrB,K,CAiBb,qBAAYC,GACV,IAAKC,KAAKC,cAAe,CACvB,OAAO,I,CAGT,OAAOD,KAAKC,gBAAkBC,EAAcC,IAAM,YAAc,Y,CAO1D,UAAAC,GACN,IAAKJ,KAAKC,cAAe,CACvB,M,CAGFD,KAAKC,cAAgBD,KAAKC,gBAAkBC,EAAcC,IAAMD,EAAcG,KAAOH,EAAcC,IACnGH,KAAKM,KAAKC,KAAK,CACbN,cAAeD,KAAKC,e,CAKd,aAAAO,GACR,GAAIR,KAAKS,QAAS,CAChBT,KAAKU,KAAKC,MAAMC,WAAa,QAAQZ,KAAKS,S,KACrC,CACLT,KAAKU,KAAKC,MAAME,eAAe,c,EAInC,iBAAAC,GACEd,KAAKQ,e,CAGP,MAAAO,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,KAAK,eAAc,YACRnB,KAAKoB,WAAU,YACfpB,KAAKD,mBAEhBiB,EAAA,QAAAE,IAAA,6CACClB,KAAKC,eACJe,EAAA,UAAAE,IAAA,2CACEG,MAAM,oBACNC,KAAK,SACLC,QAASvB,KAAKI,WAAWoB,KAAKxB,OAE9BgB,EAAA,UAAAE,IAAA,2CACEO,KAAMzB,KAAKC,gBAAkBC,EAAcC,IAAM,kBAAoB,oBACrEuB,MAAO,GACPC,OAAQ,MAIb3B,KAAK4B,UACJZ,EAAA,OAAAE,IAAA,2CAAKG,MAAM,wBACTL,EAAA,YAAAE,IAAA,2CACEW,QAASC,EAAcC,SACvBC,KAAK,kBACLC,KAAMC,EAAYC,QAClBC,IAAMC,GAAQrC,KAAKsC,YAAcD,EACjCd,QAAS,IAAOvB,KAAKuC,UAAUC,MAAQxC,KAAKuC,UAAUC,OAExDxB,EAAA,aAAAE,IAAA,2CACEkB,IAAMC,GAAQrC,KAAKuC,UAAYF,EAC/BI,OAAQzC,KAAKsC,YACbI,aAAeC,GAAW3C,KAAKoB,WAAauB,EAAMC,OAAOJ,KACzDK,SAAU7C,KAAK8C,iBAEf9B,EAAA,QAAAE,IAAA,2CAAMO,KAAK,sB","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as o,h as r,a as s}from"./p-cfa39bd3.js";const c=":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)}";const t=c;const e=class{constructor(r){o(this,r);this.sticky=false}render(){return r(s,{key:"b872f68fd9e643528d02adb7bd76f8377a59fcdc",role:"rowgroup"},r("slot",{key:"6ebdc491ee2459d415a53fb96e5f27405704a99f"}))}};e.style=t;export{e as Z};
|
|
2
|
-
//# sourceMappingURL=p-304eeab0.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,a,g as s}from"./p-cfa39bd3.js";import"./p-7d827c11.js";import"./p-304eeab0.js";import"./p-d9e1d8c7.js";import"./p-aa0f083b.js";import"./p-2c184714.js";import"./p-6037cdf3.js";import"./p-2c886e8b.js";import"./p-7d7c5344.js";import"./p-26b5c84d.js";const o=":host{--z-table--cells-padding:calc(var(--space-unit) * 2);position:relative;display:block;overflow:auto;max-width:100%;box-sizing:border-box;background-color:var(--color-surface01)}:host([expandable]){--z-table--expand-button-size:40px}:host([bordered]){--z-table--cell-left-border:1px solid var(--color-surface03)}.table{min-width:max-content}";const r=o;const i=class{constructor(e){t(this,e);this.bordered=false;this.expandable=false}updateExpandable(){this.expandable=this.host.querySelectorAll("z-tr[expandable]").length>0}componentWillLoad(){this.expandableMutationObserver=new MutationObserver((()=>{this.updateExpandable()}));this.expandableMutationObserver.observe(this.host,{childList:true,subtree:true,attributes:true,attributeFilter:["expandable"],attributeOldValue:false})}disconnectedCallback(){var t;(t=this.expandableMutationObserver)===null||t===void 0?void 0:t.disconnect()}render(){return e(a,{key:"2d8e50a74ff7ccf3c6dc4f5324a512177ad52f45",expandable:this.expandable},e("div",{key:"5e1d9d44dc90ac06683bf5306f7eecadffe807fe",class:"table",role:"table"},e("slot",{key:"12a615e336a4ad50390a2ab0b12b2d20b3503f06"})))}get host(){return s(this)}};i.style=r;export{i as z_table};
|
|
2
|
-
//# sourceMappingURL=p-4f7dd068.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["stylesCss","ZTableStyle0","ZTable","updateExpandable","this","expandable","host","querySelectorAll","length","componentWillLoad","expandableMutationObserver","MutationObserver","observe","childList","subtree","attributes","attributeFilter","attributeOldValue","disconnectedCallback","_a","disconnect","render","h","Host","key","class","role"],"sources":["src/components/table/z-table/styles.css?tag=z-table&encapsulation=shadow","src/components/table/z-table/index.tsx"],"sourcesContent":[":host {\n --z-table--cells-padding: calc(var(--space-unit) * 2);\n\n position: relative;\n display: block;\n overflow: auto;\n max-width: 100%;\n box-sizing: border-box;\n background-color: var(--color-surface01);\n}\n\n:host([expandable]) {\n --z-table--expand-button-size: 40px;\n}\n\n:host([bordered]) {\n --z-table--cell-left-border: 1px solid var(--color-surface03);\n}\n\n.table {\n min-width: max-content;\n}\n","import {Component, Element, Host, Prop, State, h} from \"@stencil/core\";\nimport \"../z-tbody/index\";\nimport \"../z-tfoot/index\";\nimport \"../z-thead/index\";\nimport \"../z-tr/index\";\n\n/**\n * ZTable component.\n * @slot - Table content (`z-thead`, `z-tbody`, `z-tfoot`, `z-tr`).\n * @cssprop --z-table--cells-padding - Padding of the cells.\n */\n@Component({\n tag: \"z-table\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTable {\n @Element() host: HTMLZTableElement;\n\n /**\n * Whether the table cells should show a border between them.\n */\n @Prop({reflect: true})\n bordered = false;\n\n /**\n * Whether the table contains some expandable rows.\n */\n @State()\n expandable = false;\n\n private updateExpandable(): void {\n this.expandable = this.host.querySelectorAll(\"z-tr[expandable]\").length > 0;\n }\n\n private expandableMutationObserver: MutationObserver;\n\n /**\n * Setup the table creating a mutation observer for the expandable attribute.\n */\n componentWillLoad(): void {\n this.expandableMutationObserver = new MutationObserver(() => {\n this.updateExpandable();\n });\n this.expandableMutationObserver.observe(this.host, {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: [\"expandable\"],\n attributeOldValue: false,\n });\n }\n\n disconnectedCallback(): void {\n this.expandableMutationObserver?.disconnect();\n }\n\n render(): HTMLZTableElement {\n return (\n <Host expandable={this.expandable}>\n <div\n class=\"table\"\n role=\"table\"\n >\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"4QAAA,MAAMA,EAAY,4VAClB,MAAAC,EAAeD,E,MCeFE,EAAM,M,uCAON,M,gBAME,K,CAEL,gBAAAC,GACNC,KAAKC,WAAaD,KAAKE,KAAKC,iBAAiB,oBAAoBC,OAAS,C,CAQ5E,iBAAAC,GACEL,KAAKM,2BAA6B,IAAIC,kBAAiB,KACrDP,KAAKD,kBAAkB,IAEzBC,KAAKM,2BAA2BE,QAAQR,KAAKE,KAAM,CACjDO,UAAW,KACXC,QAAS,KACTC,WAAY,KACZC,gBAAiB,CAAC,cAClBC,kBAAmB,O,CAIvB,oBAAAC,G,OACEC,EAAAf,KAAKM,8BAA0B,MAAAS,SAAA,SAAAA,EAAEC,Y,CAGnC,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACnB,WAAYD,KAAKC,YACrBiB,EAAA,OAAAE,IAAA,2CACEC,MAAM,QACNC,KAAK,SAELJ,EAAA,QAAAE,IAAA,8C","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,c,h as t,a as s}from"./p-cfa39bd3.js";import{k as i}from"./p-6037cdf3.js";import{r as a}from"./p-2c184714.js";import"./p-2c886e8b.js";const l='.sc-z-toggle-switch-h{position:relative;display:inline-flex;font-family:var(--font-family-sans);font-weight:var(--font-rg)}label.sc-z-toggle-switch{display:flex;flex-direction:row;align-items:center;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{color:var(--color-default-text);letter-spacing:0}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{position:relative;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 4);height:18px;align-items:center;background-color:var(--gray500);border-radius:var(--space-unit);color:var(--gray500);cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){box-shadow:var(--shadow-focus-primary);outline:none}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{position:absolute;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 2);height:calc(var(--space-unit) * 2);align-items:center;justify-content:center;margin:0;background-color:var(--color-white);border-radius:7px;box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type="checkbox"].sc-z-toggle-switch{position:absolute;z-index:-1;opacity:0;pointer-events:none}';const o=l;const r=class{constructor(t){e(this,t);this.toggleClick=c(this,"toggleClick",7);this.disabled=false;this.labelPosition=i.LEFT;this.checked=false;this.htmlid=`toggle-switch-id-${a()}`}emitToggleClick(){this.toggleClick.emit({id:this.htmlid,checked:this.checked})}handleClick(e){if(this.disabled){return}this.checked=e.target.checked;this.emitToggleClick()}render(){return t(s,{key:"cd90ad41b289f192e485c0cce90ae2a8057ddd7d"},t("input",{key:"5cc5e59f8cc0cc0548b072e41149cf7dc31bbcd8",id:this.htmlid,type:"checkbox",checked:this.checked,disabled:this.disabled,onChange:this.handleClick.bind(this)}),t("label",{key:"9774cc39f7ebe6bd02c5ce0e05d1b53075f4e426",htmlFor:this.htmlid,class:{[this.labelPosition]:true,disabled:this.disabled}},t("span",{key:"074941585b8a5862f04bd2d404ab74c86bcaa250"},t("slot",{key:"7fe6486df9479e76a7783646aed3e620f7f1d0f2"})),t("span",{key:"d4bf4b3febdab1bf8e88c12e1c7aa421b020997c",class:{container:true,disabled:this.disabled,checked:this.checked}},t("span",{key:"c46c06ff10a35060945b9298a551cf66508a5450",class:"circle"},this.checked&&t("z-icon",{key:"7ed667dc510d42e3e001ad8cb82b5c5f9d012583",width:12,height:12,name:"checkmark"})))))}};r.style=o;export{r as z_toggle_switch};
|
|
2
|
-
//# sourceMappingURL=p-57eee056.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as i,c as t,h as s}from"./p-cfa39bd3.js";import{a}from"./p-2c184714.js";import"./p-6037cdf3.js";import"./p-2c886e8b.js";const e=":host li{all:unset;all:reset;width:100%;line-height:14px;list-style-type:none}:host li>span{display:flex;padding:calc(var(--space-unit) * 2) 0;color:var(--color-default-text);fill:var(--color-default-icon);font-family:var(--font-family-sans);font-size:16px;font-weight:var(--font-rg);letter-spacing:0.23px;line-height:14px}:host(.small) li>span{padding:calc(var(--space-unit) * 1.5) 0;font-size:var(--font-size-2)}:host(.x-small) li>span{padding:var(--space-unit) 0;font-size:var(--font-size-2)}:host(.small) li>span>z-icon,:host(.x-small) li>span>z-icon{--z-icon-width:16px;--z-icon-height:16px;--z-icon-right-margin:calc(var(--space-unit) * 0.5);padding:0}:host li>span.border{border-bottom:2px solid var(--color-surface03)}:host li span:hover,a:hover{color:var(--color-primary01);fill:var(--color-primary01)}a,a:visited,a:active{color:inherit;fill:inherit;text-decoration:none}:host li span z-icon{width:calc(var(--space-unit) * 2);height:calc(var(--space-unit) * 2);padding:0 calc(var(--space-unit) * 1.5) 0 0;background-repeat:no-repeat;background-size:contain;color:var(--color-primary01);fill:var(--color-primary01)}";const n=e;const o=class{emitZListItemLinkClick(i,t){this.zListItemLinkClick.emit({e:i,linkId:t})}emitZListItemClick(i,t){this.zListItemClick.emit({e:i,listitemid:t})}constructor(s){i(this,s);this.zListItemLinkClick=t(this,"zListItemLinkClick",7);this.zListItemClick=t(this,"zListItemClick",7);this.text=undefined;this.link=undefined;this.linktarget="_self";this.icon=undefined;this.listitemid=undefined;this.action=undefined;this.underlined=true;this.emitZListItemLinkClick=this.emitZListItemLinkClick.bind(this);this.emitZListItemClick=this.emitZListItemClick.bind(this)}render(){const i=this.listitemid?`link_${this.listitemid}`:"";return s("li",{key:"94c2984279c7bc295ba60c54e205310b5d584f24",role:"button",id:this.listitemid,"data-action":this.action,onClick:i=>this.emitZListItemClick(i,this.listitemid),onKeyPress:i=>a(i,this.emitZListItemClick,this.listitemid)},s("span",{key:"766ae559f05ac6565f45930eea86f15cd9950324",class:this.underlined&&"border"},this.icon&&s("z-icon",{key:"82154a54b424ae62ac1701aed06872443c879795",name:this.icon}),this.link?s("a",{href:this.link?this.link:null,target:this.linktarget,id:i,onClick:t=>this.emitZListItemLinkClick(t,i),onKeyPress:t=>a(t,this.emitZListItemLinkClick,i),role:this.link?"link":"button",tabindex:"0"},this.text):s("span",{innerHTML:this.text}),s("slot",{key:"66674a723e927ea0be315fafd84c9d07883a4561"})))}};o.style=n;export{o as z_myz_list_item};
|
|
2
|
-
//# sourceMappingURL=p-6f4dd02b.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as n,a as s,g as o}from"./p-cfa39bd3.js";import{P as a,B as i,e as c}from"./p-6037cdf3.js";const r=':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}:host .cell-popover{z-index:100}@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}}';const l=r;const h=class{constructor(n){e(this,n);this.colspanChange=t(this,"colspanChange",6);this.colspan=undefined;this.sticky=false;this.showMenu=null;this.popoverPosition=a.AUTO;this.isMenuOpen=false}updateColspan(){if(this.colspan){this.host.style.gridColumn=`span ${this.colspan}`}else{this.host.style.removeProperty("grid-column")}this.colspanChange.emit(this.colspan||1)}onMenuButtonClick(e){e.stopPropagation();this.popoverEl.open=!this.popoverEl.open}componentWillLoad(){this.updateColspan()}render(){return n(s,{key:"36a62d2c751b3b889c7f69280418e95ff02192d5",role:"cell","menu-open":this.isMenuOpen},n("slot",{key:"6d593df3a5d84033f5ec055a00dc972d113ac4cb"}),this.showMenu&&n("div",{key:"77fbfdd8dc31fcfb6694461c8c0ed430323c3926",class:"cell--menu-container prevent-expand"},n("z-button",{key:"caf153b8ba5861b3dc7eabf966cdfdd9d3b197da",variant:i.TERTIARY,icon:"contextual-menu",size:c.X_SMALL,ref:e=>this.menuTrigger=e,onClick:this.onMenuButtonClick.bind(this)}),n("z-popover",{key:"d89b8e0e5b8e622a6e9a08640bff28d64ff0eb07",class:"cell-popover",ref:e=>this.popoverEl=e,bindTo:this.menuTrigger,onOpenChange:e=>this.isMenuOpen=e.detail.open,position:this.popoverPosition},n("slot",{key:"339066d4dd0d6d57ac2358e6a8105aa690b2ca06",name:"contextual-menu"}))))}get host(){return o(this)}static get watchers(){return{colspan:["updateColspan"]}}};h.style=l;export{h as Z};
|
|
2
|
-
//# sourceMappingURL=p-7d7c5344.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["stylesCss","ZTdStyle0","ZTd","PopoverPosition","AUTO","updateColspan","this","colspan","host","style","gridColumn","removeProperty","colspanChange","emit","onMenuButtonClick","ev","stopPropagation","popoverEl","open","componentWillLoad","render","h","Host","key","role","isMenuOpen","showMenu","class","variant","ButtonVariant","TERTIARY","icon","size","ControlSize","X_SMALL","ref","el","menuTrigger","onClick","bind","bindTo","onOpenChange","event","detail","position","popoverPosition","name"],"sources":["src/components/table/cells/z-td/styles.css?tag=z-td&encapsulation=shadow","src/components/table/cells/z-td/index.tsx"],"sourcesContent":["@import \"../z-table-cells.css\";\n","import {Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ButtonVariant, ControlSize, PopoverPosition, VisibilityCondition} from \"../../../../beans\";\n\n/**\n * ZTd component.\n * @slot - ZTd content.\n */\n@Component({\n tag: \"z-td\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTd {\n @Element() host: HTMLZTdElement;\n\n /**\n * Number of columns that the cell should span.\n */\n @Prop()\n colspan: number;\n\n /**\n * Whether the cell should stick.\n */\n @Prop({reflect: true})\n sticky = false;\n\n /**\n * Enables the contextual menu.\n * Can be set to \"hover\" or \"always\" to show the button only on cell hover or always.\n * Set a nullish value to hide the menu button.\n */\n @Prop({reflect: true})\n showMenu: VisibilityCondition = null;\n\n /**\n * Set the popover position, the default is \"auto\".\n */\n @Prop()\n popoverPosition?: PopoverPosition = PopoverPosition.AUTO;\n\n /**\n * Store the open state of the menu.\n */\n @State()\n isMenuOpen = false;\n\n private menuTrigger: HTMLZButtonElement;\n\n private popoverEl: HTMLZPopoverElement;\n\n /**\n * Emitted when the value of the `colspan` changes.\n */\n @Event({\n bubbles: true,\n cancelable: false,\n })\n colspanChange: EventEmitter<number>;\n\n @Watch(\"colspan\")\n protected updateColspan(): void {\n if (this.colspan) {\n this.host.style.gridColumn = `span ${this.colspan}`;\n } else {\n this.host.style.removeProperty(\"grid-column\");\n }\n\n this.colspanChange.emit(this.colspan || 1);\n }\n\n private onMenuButtonClick(ev: MouseEvent): void {\n ev.stopPropagation();\n this.popoverEl.open = !this.popoverEl.open;\n }\n\n componentWillLoad(): void {\n this.updateColspan();\n }\n\n render(): HTMLZTdElement {\n return (\n <Host\n role=\"cell\"\n menu-open={this.isMenuOpen}\n >\n <slot></slot>\n {this.showMenu && (\n <div class=\"cell--menu-container prevent-expand\">\n <z-button\n variant={ButtonVariant.TERTIARY}\n icon=\"contextual-menu\"\n size={ControlSize.X_SMALL}\n ref={(el) => (this.menuTrigger = el as HTMLZButtonElement)}\n onClick={this.onMenuButtonClick.bind(this)}\n />\n <z-popover\n class=\"cell-popover\"\n ref={(el) => (this.popoverEl = el as HTMLZPopoverElement)}\n bindTo={this.menuTrigger as HTMLElement}\n onOpenChange={(event) => (this.isMenuOpen = event.detail.open)}\n position={this.popoverPosition}\n >\n <slot name=\"contextual-menu\"></slot>\n </z-popover>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"kHAAA,MAAMA,EAAY,2iCAClB,MAAAC,EAAeD,E,MCWFE,EAAG,M,yGAaL,M,cAQuB,K,qBAMIC,EAAgBC,K,gBAMvC,K,CAgBH,aAAAC,GACR,GAAIC,KAAKC,QAAS,CAChBD,KAAKE,KAAKC,MAAMC,WAAa,QAAQJ,KAAKC,S,KACrC,CACLD,KAAKE,KAAKC,MAAME,eAAe,c,CAGjCL,KAAKM,cAAcC,KAAKP,KAAKC,SAAW,E,CAGlC,iBAAAO,CAAkBC,GACxBA,EAAGC,kBACHV,KAAKW,UAAUC,MAAQZ,KAAKW,UAAUC,I,CAGxC,iBAAAC,GACEb,KAAKD,e,CAGP,MAAAe,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,KAAK,OAAM,YACAlB,KAAKmB,YAEhBJ,EAAA,QAAAE,IAAA,6CACCjB,KAAKoB,UACJL,EAAA,OAAAE,IAAA,2CAAKI,MAAM,uCACTN,EAAA,YAAAE,IAAA,2CACEK,QAASC,EAAcC,SACvBC,KAAK,kBACLC,KAAMC,EAAYC,QAClBC,IAAMC,GAAQ9B,KAAK+B,YAAcD,EACjCE,QAAShC,KAAKQ,kBAAkByB,KAAKjC,QAEvCe,EAAA,aAAAE,IAAA,2CACEI,MAAM,eACNQ,IAAMC,GAAQ9B,KAAKW,UAAYmB,EAC/BI,OAAQlC,KAAK+B,YACbI,aAAeC,GAAWpC,KAAKmB,WAAaiB,EAAMC,OAAOzB,KACzD0B,SAAUtC,KAAKuC,iBAEfxB,EAAA,QAAAE,IAAA,2CAAMuB,KAAK,sB","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as o,h as r,a as s}from"./p-cfa39bd3.js";const a=":host{display:block;box-sizing:border-box}";const b=a;const c=class{constructor(r){o(this,r)}render(){return r(s,{key:"f3e13d724ae83c0117eafa2bd141a1b9319f0331",role:"rowgroup"},r("slot",{key:"f84d2b79230cb6b8305c0b01f4a48f8811634421"}))}};c.style=b;export{c as Z};
|
|
2
|
-
//# sourceMappingURL=p-7d827c11.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as a,h as r,a as t}from"./p-cfa39bd3.js";import{t as s}from"./p-6037cdf3.js";const e=class{constructor(r){a(this,r);this.mode=s.POLITE}render(){return r(t,{key:"851bdac7b9b7c2dd4a5042a78cfacfe234051928","aria-live":this.mode,"aria-atomic":"true","aria-relevant":"additions"},r("slot",{key:"e3217c0633b68f55bd62c26fd1afb6d00dfe2708"}))}};export{e as z_aria_alert};
|
|
2
|
-
//# sourceMappingURL=p-89584f19.entry.js.map
|