@zanichelli/albe-web-components 16.3.1-rc1 → 16.3.2
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 +2 -0
- package/dist/cjs/{index-01778132.js → index-041b41e6.js} +2 -2
- package/dist/cjs/{index-01778132.js.map → index-041b41e6.js.map} +1 -1
- package/dist/cjs/index-1dfb8b3c.js +47 -0
- package/dist/cjs/index-1dfb8b3c.js.map +1 -0
- package/dist/cjs/{index-ef486baa.js → index-25ded558.js} +2 -2
- package/dist/cjs/{index-ef486baa.js.map → index-25ded558.js.map} +1 -1
- package/dist/cjs/index-4bce26ea.js +59 -0
- package/dist/cjs/index-4bce26ea.js.map +1 -0
- package/dist/cjs/{index-b26fbd76.js → index-b7759a0d.js} +2 -2
- package/dist/cjs/{index-b26fbd76.js.map → index-b7759a0d.js.map} +1 -1
- package/dist/cjs/index-d4272b0e.js +65 -0
- package/dist/cjs/index-d4272b0e.js.map +1 -0
- 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 +73 -23
- 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 +28 -13
- package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -1
- package/dist/cjs/z-menu.cjs.entry.js +89 -43
- package/dist/cjs/z-menu.cjs.entry.js.map +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 +13 -21
- package/dist/collection/components/table/cells/z-th/index.js +5 -36
- package/dist/collection/components/table/cells/z-th/index.js.map +1 -1
- package/dist/collection/components/table/cells/z-th/styles.css +24 -57
- package/dist/collection/components/table/z-table/index.js +1 -1
- package/dist/collection/components/table/z-table/index.stories.js +3 -19
- package/dist/collection/components/table/z-table/index.stories.js.map +1 -1
- package/dist/collection/components/table/z-table/styles.css +4 -0
- 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 +1 -0
- 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 +55 -13
- package/dist/collection/components/z-app-header/index.js.map +1 -1
- package/dist/collection/components/z-app-header/index.stories.js +50 -116
- package/dist/collection/components/z-app-header/index.stories.js.map +1 -1
- package/dist/collection/components/z-app-header/styles.css +34 -25
- 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 +93 -42
- package/dist/collection/components/z-menu/index.js.map +1 -1
- package/dist/collection/components/z-menu/styles.css +40 -52
- package/dist/collection/components/z-menu-section/index.js +31 -16
- package/dist/collection/components/z-menu-section/index.js.map +1 -1
- package/dist/collection/components/z-menu-section/styles.css +8 -0
- 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 +14 -5
- package/dist/collection/components/z-searchbar/index.js.map +1 -1
- 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 +14 -5
- 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 +56 -14
- package/dist/components/z-app-header.js.map +1 -1
- 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 +30 -15
- package/dist/components/z-menu-section.js.map +1 -1
- package/dist/components/z-menu.js +89 -44
- package/dist/components/z-menu.js.map +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 +6 -14
- 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-8e5c830a.js → index-36f0f6c0.js} +2 -2
- package/dist/esm/{index-8e5c830a.js.map → index-36f0f6c0.js.map} +1 -1
- package/dist/esm/index-66bd56db.js +57 -0
- package/dist/esm/index-66bd56db.js.map +1 -0
- package/dist/esm/index-89520805.js +63 -0
- package/dist/esm/index-89520805.js.map +1 -0
- package/dist/esm/index-cddfba10.js +45 -0
- package/dist/esm/index-cddfba10.js.map +1 -0
- package/dist/esm/{index-fe4fc8da.js → index-dfddeb25.js} +2 -2
- package/dist/esm/{index-fe4fc8da.js.map → index-dfddeb25.js.map} +1 -1
- package/dist/esm/{index-09ff70db.js → index-e70be23f.js} +2 -2
- package/dist/esm/{index-09ff70db.js.map → index-e70be23f.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 +73 -23
- 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 +28 -13
- package/dist/esm/z-menu-section.entry.js.map +1 -1
- package/dist/esm/z-menu.entry.js +89 -43
- package/dist/esm/z-menu.entry.js.map +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 +0 -11
- package/dist/types/components/table/z-table/index.stories.d.ts +0 -11
- package/dist/types/components/z-app-header/index.d.ts +4 -3
- package/dist/types/components/z-menu/index.d.ts +9 -1
- package/dist/types/components/z-menu-section/index.d.ts +4 -2
- package/dist/types/components/z-searchbar/index.d.ts +1 -0
- package/dist/types/components.d.ts +0 -8
- package/dist/web-components-library/p-06d98334.entry.js +2 -0
- package/dist/web-components-library/{p-291319ed.entry.js → p-100c6243.entry.js} +2 -2
- package/dist/web-components-library/p-28018cd3.entry.js +2 -0
- package/dist/web-components-library/p-28018cd3.entry.js.map +1 -0
- package/dist/web-components-library/p-2b1fd95a.entry.js +2 -0
- package/dist/web-components-library/{p-6e92df75.entry.js → p-2f662fea.entry.js} +2 -2
- package/dist/web-components-library/p-3ae8fb1a.entry.js +2 -0
- package/dist/web-components-library/p-3dbad75e.js +2 -0
- package/dist/web-components-library/{p-a16ed530.entry.js → p-4537f922.entry.js} +2 -2
- package/dist/web-components-library/{p-17d2d60b.entry.js → p-45dc157c.entry.js} +2 -2
- package/dist/web-components-library/{p-b6ea478b.entry.js → p-46d98609.entry.js} +2 -2
- package/dist/web-components-library/p-4a2e0034.js +2 -0
- package/dist/web-components-library/{p-155c52f7.js.map → p-4a2e0034.js.map} +1 -1
- package/dist/web-components-library/p-4f3f8578.entry.js +2 -0
- package/dist/web-components-library/{p-956ece11.entry.js → p-51f1c9c0.entry.js} +2 -2
- package/dist/web-components-library/{p-0b100bd7.entry.js → p-5a0f0978.entry.js} +2 -2
- package/dist/web-components-library/{p-ee430669.entry.js → p-5a178c69.entry.js} +2 -2
- package/dist/web-components-library/p-60f410df.js +2 -0
- package/dist/web-components-library/p-60f410df.js.map +1 -0
- package/dist/web-components-library/p-63ec7bad.entry.js +2 -0
- package/dist/web-components-library/p-64aab82f.js +2 -0
- package/dist/web-components-library/p-68f4fbc8.entry.js +2 -0
- package/dist/web-components-library/{p-f87bcdc3.entry.js.map → p-68f4fbc8.entry.js.map} +1 -1
- package/{www/build/p-b387e877.entry.js → dist/web-components-library/p-6a1b3e86.entry.js} +2 -2
- package/{www/build/p-1320c34d.entry.js → dist/web-components-library/p-6db2fd46.entry.js} +2 -2
- package/{www/build/p-0ca0265f.entry.js → dist/web-components-library/p-707e5f91.entry.js} +2 -2
- package/dist/web-components-library/{p-89b1e0ce.entry.js → p-777ad335.entry.js} +2 -2
- package/{www/build/p-eb93aa0b.entry.js → dist/web-components-library/p-7aba5af3.entry.js} +2 -2
- package/dist/web-components-library/p-7d5bf905.entry.js +2 -0
- package/dist/web-components-library/{p-6f9fc850.entry.js → p-820b48f6.entry.js} +2 -2
- package/dist/web-components-library/p-823c45d4.entry.js +2 -0
- package/dist/web-components-library/{p-d847bfcd.entry.js → p-855334f4.entry.js} +2 -2
- package/dist/web-components-library/p-8a6a4d22.js +2 -0
- package/dist/web-components-library/p-8a6a4d22.js.map +1 -0
- package/{www/build/p-9fc6961e.entry.js → dist/web-components-library/p-8d56e74b.entry.js} +2 -2
- package/dist/web-components-library/p-8e5f1ae0.entry.js +2 -0
- package/dist/web-components-library/p-8e5f1ae0.entry.js.map +1 -0
- package/dist/web-components-library/p-95cb8701.js +2 -0
- package/{www/build/p-4704cece.entry.js → dist/web-components-library/p-9a1b51ed.entry.js} +2 -2
- package/dist/web-components-library/{p-140b5d8f.entry.js → p-9b9a04ad.entry.js} +2 -2
- package/dist/web-components-library/{p-ef8a7250.entry.js → p-a0fd1323.entry.js} +2 -2
- package/dist/web-components-library/{p-64ba80da.entry.js → p-a64a1bf0.entry.js} +2 -2
- package/dist/web-components-library/{p-e770ed95.entry.js → p-aaae6b16.entry.js} +2 -2
- package/dist/web-components-library/{p-d94c5857.entry.js → p-ab7f129e.entry.js} +2 -2
- package/{www/build/p-62b75a18.entry.js → dist/web-components-library/p-ad97fdc4.entry.js} +2 -2
- package/dist/web-components-library/{p-b7af7424.entry.js → p-b2356bc7.entry.js} +2 -2
- package/dist/web-components-library/p-b6e7866f.entry.js +2 -0
- package/dist/web-components-library/p-b6e7866f.entry.js.map +1 -0
- package/dist/web-components-library/p-c1e498ac.entry.js +2 -0
- package/dist/web-components-library/p-c54d0925.entry.js +2 -0
- package/dist/web-components-library/p-c679277c.entry.js +2 -0
- package/{www/build/p-9bf06eb5.entry.js.map → dist/web-components-library/p-c679277c.entry.js.map} +1 -1
- package/dist/web-components-library/p-cc71a90c.entry.js +2 -0
- package/dist/web-components-library/{p-f26b2e47.entry.js → p-cd0219b4.entry.js} +2 -2
- package/dist/web-components-library/{p-48b2e967.entry.js → p-d5f5e107.entry.js} +2 -2
- package/dist/web-components-library/{p-f410f295.entry.js → p-df8c381a.entry.js} +2 -2
- package/dist/web-components-library/{p-ca7634bf.entry.js → p-e25d7f0a.entry.js} +2 -2
- package/dist/web-components-library/{p-a45e72f0.entry.js → p-e4d97fbf.entry.js} +2 -2
- package/dist/web-components-library/{p-c451b4d7.entry.js → p-e529a714.entry.js} +2 -2
- package/dist/web-components-library/{p-ecae1a7a.entry.js → p-ea9c0ff3.entry.js} +2 -2
- package/dist/web-components-library/{p-9a48e70b.entry.js → p-f06ad42c.entry.js} +2 -2
- package/dist/web-components-library/{p-00f7e0da.entry.js → p-f15d0a00.entry.js} +2 -2
- package/{www/build/p-c38833ea.entry.js → dist/web-components-library/p-f425c6f2.entry.js} +2 -2
- package/dist/web-components-library/p-f703660d.entry.js +2 -0
- package/{www/build/p-30f09188.entry.js → dist/web-components-library/p-f8bbca6e.entry.js} +2 -2
- package/dist/web-components-library/p-fb0b11cd.entry.js +2 -0
- package/dist/web-components-library/p-fb0b11cd.entry.js.map +1 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/dist/web-components-library/web-components-library.esm.js.map +1 -1
- package/package.json +1 -1
- package/www/build/p-06d98334.entry.js +2 -0
- package/www/build/{p-291319ed.entry.js → p-100c6243.entry.js} +2 -2
- package/www/build/p-28018cd3.entry.js +2 -0
- package/www/build/p-28018cd3.entry.js.map +1 -0
- package/www/build/p-2b1fd95a.entry.js +2 -0
- package/www/build/{p-6e92df75.entry.js → p-2f662fea.entry.js} +2 -2
- package/www/build/p-38bf2bfc.js +2 -0
- package/www/build/p-3ae8fb1a.entry.js +2 -0
- package/www/build/p-3dbad75e.js +2 -0
- package/www/build/{p-a16ed530.entry.js → p-4537f922.entry.js} +2 -2
- package/www/build/{p-17d2d60b.entry.js → p-45dc157c.entry.js} +2 -2
- package/www/build/{p-b6ea478b.entry.js → p-46d98609.entry.js} +2 -2
- package/www/build/p-4a2e0034.js +2 -0
- package/www/build/{p-155c52f7.js.map → p-4a2e0034.js.map} +1 -1
- package/www/build/p-4f3f8578.entry.js +2 -0
- package/www/build/{p-956ece11.entry.js → p-51f1c9c0.entry.js} +2 -2
- package/www/build/{p-0b100bd7.entry.js → p-5a0f0978.entry.js} +2 -2
- package/www/build/{p-ee430669.entry.js → p-5a178c69.entry.js} +2 -2
- package/www/build/p-60f410df.js +2 -0
- package/www/build/p-60f410df.js.map +1 -0
- package/www/build/p-63ec7bad.entry.js +2 -0
- package/www/build/p-64aab82f.js +2 -0
- package/www/build/p-68f4fbc8.entry.js +2 -0
- package/www/build/{p-f87bcdc3.entry.js.map → p-68f4fbc8.entry.js.map} +1 -1
- package/{dist/web-components-library/p-b387e877.entry.js → www/build/p-6a1b3e86.entry.js} +2 -2
- package/{dist/web-components-library/p-1320c34d.entry.js → www/build/p-6db2fd46.entry.js} +2 -2
- package/{dist/web-components-library/p-0ca0265f.entry.js → www/build/p-707e5f91.entry.js} +2 -2
- package/www/build/{p-89b1e0ce.entry.js → p-777ad335.entry.js} +2 -2
- package/{dist/web-components-library/p-eb93aa0b.entry.js → www/build/p-7aba5af3.entry.js} +2 -2
- package/www/build/p-7d5bf905.entry.js +2 -0
- package/www/build/{p-6f9fc850.entry.js → p-820b48f6.entry.js} +2 -2
- package/www/build/p-823c45d4.entry.js +2 -0
- package/www/build/{p-d847bfcd.entry.js → p-855334f4.entry.js} +2 -2
- package/www/build/p-8a6a4d22.js +2 -0
- package/www/build/p-8a6a4d22.js.map +1 -0
- package/{dist/web-components-library/p-9fc6961e.entry.js → www/build/p-8d56e74b.entry.js} +2 -2
- package/www/build/p-8e5f1ae0.entry.js +2 -0
- package/www/build/p-8e5f1ae0.entry.js.map +1 -0
- package/www/build/p-95cb8701.js +2 -0
- package/{dist/web-components-library/p-4704cece.entry.js → www/build/p-9a1b51ed.entry.js} +2 -2
- package/www/build/{p-140b5d8f.entry.js → p-9b9a04ad.entry.js} +2 -2
- package/www/build/{p-ef8a7250.entry.js → p-a0fd1323.entry.js} +2 -2
- package/www/build/{p-64ba80da.entry.js → p-a64a1bf0.entry.js} +2 -2
- package/www/build/{p-e770ed95.entry.js → p-aaae6b16.entry.js} +2 -2
- package/www/build/{p-d94c5857.entry.js → p-ab7f129e.entry.js} +2 -2
- package/{dist/web-components-library/p-62b75a18.entry.js → www/build/p-ad97fdc4.entry.js} +2 -2
- package/www/build/{p-b7af7424.entry.js → p-b2356bc7.entry.js} +2 -2
- package/www/build/p-b6e7866f.entry.js +2 -0
- package/www/build/p-b6e7866f.entry.js.map +1 -0
- package/www/build/p-c1e498ac.entry.js +2 -0
- package/www/build/p-c54d0925.entry.js +2 -0
- package/www/build/p-c679277c.entry.js +2 -0
- package/{dist/web-components-library/p-9bf06eb5.entry.js.map → www/build/p-c679277c.entry.js.map} +1 -1
- package/www/build/p-cc71a90c.entry.js +2 -0
- package/www/build/{p-f26b2e47.entry.js → p-cd0219b4.entry.js} +2 -2
- package/www/build/{p-48b2e967.entry.js → p-d5f5e107.entry.js} +2 -2
- package/www/build/{p-f410f295.entry.js → p-df8c381a.entry.js} +2 -2
- package/www/build/{p-ca7634bf.entry.js → p-e25d7f0a.entry.js} +2 -2
- package/www/build/{p-a45e72f0.entry.js → p-e4d97fbf.entry.js} +2 -2
- package/www/build/{p-c451b4d7.entry.js → p-e529a714.entry.js} +2 -2
- package/www/build/{p-ecae1a7a.entry.js → p-ea9c0ff3.entry.js} +2 -2
- package/www/build/{p-9a48e70b.entry.js → p-f06ad42c.entry.js} +2 -2
- package/www/build/{p-00f7e0da.entry.js → p-f15d0a00.entry.js} +2 -2
- package/{dist/web-components-library/p-c38833ea.entry.js → www/build/p-f425c6f2.entry.js} +2 -2
- package/www/build/p-f703660d.entry.js +2 -0
- package/{dist/web-components-library/p-30f09188.entry.js → www/build/p-f8bbca6e.entry.js} +2 -2
- package/www/build/p-fb0b11cd.entry.js +2 -0
- package/www/build/p-fb0b11cd.entry.js.map +1 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.esm.js.map +1 -1
- package/www/index.html +1 -1
- package/dist/cjs/index-9963e4d6.js +0 -71
- package/dist/cjs/index-9963e4d6.js.map +0 -1
- package/dist/cjs/index-b504fdc8.js +0 -47
- package/dist/cjs/index-b504fdc8.js.map +0 -1
- package/dist/cjs/index-ec5b8c02.js +0 -59
- package/dist/cjs/index-ec5b8c02.js.map +0 -1
- package/dist/esm/index-81b223e5.js +0 -45
- package/dist/esm/index-81b223e5.js.map +0 -1
- package/dist/esm/index-96faeb1f.js +0 -57
- package/dist/esm/index-96faeb1f.js.map +0 -1
- package/dist/esm/index-ee04c4d5.js +0 -69
- package/dist/esm/index-ee04c4d5.js.map +0 -1
- package/dist/web-components-library/p-04c39e8a.entry.js +0 -2
- package/dist/web-components-library/p-04c39e8a.entry.js.map +0 -1
- package/dist/web-components-library/p-155c52f7.js +0 -2
- package/dist/web-components-library/p-16719dff.entry.js +0 -2
- package/dist/web-components-library/p-2a83f280.entry.js +0 -2
- package/dist/web-components-library/p-2cab65f7.entry.js +0 -2
- package/dist/web-components-library/p-32d603b8.js +0 -2
- package/dist/web-components-library/p-37019125.js +0 -2
- package/dist/web-components-library/p-37019125.js.map +0 -1
- package/dist/web-components-library/p-3b26bd7b.entry.js +0 -2
- package/dist/web-components-library/p-3d97dedf.entry.js +0 -2
- package/dist/web-components-library/p-5b2b0988.entry.js +0 -2
- package/dist/web-components-library/p-5b2b0988.entry.js.map +0 -1
- package/dist/web-components-library/p-6297dfaa.entry.js +0 -2
- package/dist/web-components-library/p-6d2fb9f2.entry.js +0 -2
- package/dist/web-components-library/p-6d2fb9f2.entry.js.map +0 -1
- package/dist/web-components-library/p-8855aef4.js +0 -2
- package/dist/web-components-library/p-9bf06eb5.entry.js +0 -2
- package/dist/web-components-library/p-9c36d574.entry.js +0 -2
- package/dist/web-components-library/p-a167bdd5.js +0 -2
- package/dist/web-components-library/p-af7e5773.entry.js +0 -2
- package/dist/web-components-library/p-c39ca8e7.entry.js +0 -2
- package/dist/web-components-library/p-c6867a3b.js +0 -2
- package/dist/web-components-library/p-c6867a3b.js.map +0 -1
- package/dist/web-components-library/p-c923360b.entry.js +0 -2
- package/dist/web-components-library/p-c923360b.entry.js.map +0 -1
- package/dist/web-components-library/p-cfe336c9.entry.js +0 -2
- package/dist/web-components-library/p-f87bcdc3.entry.js +0 -2
- package/dist/web-components-library/p-febc4982.entry.js +0 -2
- package/www/build/p-04c39e8a.entry.js +0 -2
- package/www/build/p-04c39e8a.entry.js.map +0 -1
- package/www/build/p-155c52f7.js +0 -2
- package/www/build/p-16719dff.entry.js +0 -2
- package/www/build/p-2a83f280.entry.js +0 -2
- package/www/build/p-2cab65f7.entry.js +0 -2
- package/www/build/p-32d603b8.js +0 -2
- package/www/build/p-37019125.js +0 -2
- package/www/build/p-37019125.js.map +0 -1
- package/www/build/p-3b26bd7b.entry.js +0 -2
- package/www/build/p-3d97dedf.entry.js +0 -2
- package/www/build/p-5b2b0988.entry.js +0 -2
- package/www/build/p-5b2b0988.entry.js.map +0 -1
- package/www/build/p-6297dfaa.entry.js +0 -2
- package/www/build/p-6d2fb9f2.entry.js +0 -2
- package/www/build/p-6d2fb9f2.entry.js.map +0 -1
- package/www/build/p-8855aef4.js +0 -2
- package/www/build/p-8e25517b.js +0 -2
- package/www/build/p-9bf06eb5.entry.js +0 -2
- package/www/build/p-9c36d574.entry.js +0 -2
- package/www/build/p-a167bdd5.js +0 -2
- package/www/build/p-af7e5773.entry.js +0 -2
- package/www/build/p-c39ca8e7.entry.js +0 -2
- package/www/build/p-c6867a3b.js +0 -2
- package/www/build/p-c6867a3b.js.map +0 -1
- package/www/build/p-c923360b.entry.js +0 -2
- package/www/build/p-c923360b.entry.js.map +0 -1
- package/www/build/p-cfe336c9.entry.js +0 -2
- package/www/build/p-f87bcdc3.entry.js +0 -2
- package/www/build/p-febc4982.entry.js +0 -2
- /package/dist/web-components-library/{p-9c36d574.entry.js.map → p-06d98334.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-291319ed.entry.js.map → p-100c6243.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-16719dff.entry.js.map → p-2b1fd95a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6e92df75.entry.js.map → p-2f662fea.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-af7e5773.entry.js.map → p-3ae8fb1a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a167bdd5.js.map → p-3dbad75e.js.map} +0 -0
- /package/dist/web-components-library/{p-a16ed530.entry.js.map → p-4537f922.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-17d2d60b.entry.js.map → p-45dc157c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b6ea478b.entry.js.map → p-46d98609.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2a83f280.entry.js.map → p-4f3f8578.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-956ece11.entry.js.map → p-51f1c9c0.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0b100bd7.entry.js.map → p-5a0f0978.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ee430669.entry.js.map → p-5a178c69.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-3b26bd7b.entry.js.map → p-63ec7bad.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8855aef4.js.map → p-64aab82f.js.map} +0 -0
- /package/dist/web-components-library/{p-b387e877.entry.js.map → p-6a1b3e86.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-1320c34d.entry.js.map → p-6db2fd46.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0ca0265f.entry.js.map → p-707e5f91.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-89b1e0ce.entry.js.map → p-777ad335.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-eb93aa0b.entry.js.map → p-7aba5af3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6297dfaa.entry.js.map → p-7d5bf905.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6f9fc850.entry.js.map → p-820b48f6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-cfe336c9.entry.js.map → p-823c45d4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d847bfcd.entry.js.map → p-855334f4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9fc6961e.entry.js.map → p-8d56e74b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-32d603b8.js.map → p-95cb8701.js.map} +0 -0
- /package/dist/web-components-library/{p-4704cece.entry.js.map → p-9a1b51ed.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-140b5d8f.entry.js.map → p-9b9a04ad.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ef8a7250.entry.js.map → p-a0fd1323.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-64ba80da.entry.js.map → p-a64a1bf0.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e770ed95.entry.js.map → p-aaae6b16.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d94c5857.entry.js.map → p-ab7f129e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-62b75a18.entry.js.map → p-ad97fdc4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b7af7424.entry.js.map → p-b2356bc7.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-3d97dedf.entry.js.map → p-c1e498ac.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2cab65f7.entry.js.map → p-c54d0925.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c39ca8e7.entry.js.map → p-cc71a90c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f26b2e47.entry.js.map → p-cd0219b4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-48b2e967.entry.js.map → p-d5f5e107.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f410f295.entry.js.map → p-df8c381a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ca7634bf.entry.js.map → p-e25d7f0a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a45e72f0.entry.js.map → p-e4d97fbf.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c451b4d7.entry.js.map → p-e529a714.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ecae1a7a.entry.js.map → p-ea9c0ff3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9a48e70b.entry.js.map → p-f06ad42c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-00f7e0da.entry.js.map → p-f15d0a00.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c38833ea.entry.js.map → p-f425c6f2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-febc4982.entry.js.map → p-f703660d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-30f09188.entry.js.map → p-f8bbca6e.entry.js.map} +0 -0
- /package/www/build/{p-9c36d574.entry.js.map → p-06d98334.entry.js.map} +0 -0
- /package/www/build/{p-291319ed.entry.js.map → p-100c6243.entry.js.map} +0 -0
- /package/www/build/{p-16719dff.entry.js.map → p-2b1fd95a.entry.js.map} +0 -0
- /package/www/build/{p-6e92df75.entry.js.map → p-2f662fea.entry.js.map} +0 -0
- /package/www/build/{p-af7e5773.entry.js.map → p-3ae8fb1a.entry.js.map} +0 -0
- /package/www/build/{p-a167bdd5.js.map → p-3dbad75e.js.map} +0 -0
- /package/www/build/{p-a16ed530.entry.js.map → p-4537f922.entry.js.map} +0 -0
- /package/www/build/{p-17d2d60b.entry.js.map → p-45dc157c.entry.js.map} +0 -0
- /package/www/build/{p-b6ea478b.entry.js.map → p-46d98609.entry.js.map} +0 -0
- /package/www/build/{p-2a83f280.entry.js.map → p-4f3f8578.entry.js.map} +0 -0
- /package/www/build/{p-956ece11.entry.js.map → p-51f1c9c0.entry.js.map} +0 -0
- /package/www/build/{p-0b100bd7.entry.js.map → p-5a0f0978.entry.js.map} +0 -0
- /package/www/build/{p-ee430669.entry.js.map → p-5a178c69.entry.js.map} +0 -0
- /package/www/build/{p-3b26bd7b.entry.js.map → p-63ec7bad.entry.js.map} +0 -0
- /package/www/build/{p-8855aef4.js.map → p-64aab82f.js.map} +0 -0
- /package/www/build/{p-b387e877.entry.js.map → p-6a1b3e86.entry.js.map} +0 -0
- /package/www/build/{p-1320c34d.entry.js.map → p-6db2fd46.entry.js.map} +0 -0
- /package/www/build/{p-0ca0265f.entry.js.map → p-707e5f91.entry.js.map} +0 -0
- /package/www/build/{p-89b1e0ce.entry.js.map → p-777ad335.entry.js.map} +0 -0
- /package/www/build/{p-eb93aa0b.entry.js.map → p-7aba5af3.entry.js.map} +0 -0
- /package/www/build/{p-6297dfaa.entry.js.map → p-7d5bf905.entry.js.map} +0 -0
- /package/www/build/{p-6f9fc850.entry.js.map → p-820b48f6.entry.js.map} +0 -0
- /package/www/build/{p-cfe336c9.entry.js.map → p-823c45d4.entry.js.map} +0 -0
- /package/www/build/{p-d847bfcd.entry.js.map → p-855334f4.entry.js.map} +0 -0
- /package/www/build/{p-9fc6961e.entry.js.map → p-8d56e74b.entry.js.map} +0 -0
- /package/www/build/{p-32d603b8.js.map → p-95cb8701.js.map} +0 -0
- /package/www/build/{p-4704cece.entry.js.map → p-9a1b51ed.entry.js.map} +0 -0
- /package/www/build/{p-140b5d8f.entry.js.map → p-9b9a04ad.entry.js.map} +0 -0
- /package/www/build/{p-ef8a7250.entry.js.map → p-a0fd1323.entry.js.map} +0 -0
- /package/www/build/{p-64ba80da.entry.js.map → p-a64a1bf0.entry.js.map} +0 -0
- /package/www/build/{p-e770ed95.entry.js.map → p-aaae6b16.entry.js.map} +0 -0
- /package/www/build/{p-d94c5857.entry.js.map → p-ab7f129e.entry.js.map} +0 -0
- /package/www/build/{p-62b75a18.entry.js.map → p-ad97fdc4.entry.js.map} +0 -0
- /package/www/build/{p-b7af7424.entry.js.map → p-b2356bc7.entry.js.map} +0 -0
- /package/www/build/{p-3d97dedf.entry.js.map → p-c1e498ac.entry.js.map} +0 -0
- /package/www/build/{p-2cab65f7.entry.js.map → p-c54d0925.entry.js.map} +0 -0
- /package/www/build/{p-c39ca8e7.entry.js.map → p-cc71a90c.entry.js.map} +0 -0
- /package/www/build/{p-f26b2e47.entry.js.map → p-cd0219b4.entry.js.map} +0 -0
- /package/www/build/{p-48b2e967.entry.js.map → p-d5f5e107.entry.js.map} +0 -0
- /package/www/build/{p-f410f295.entry.js.map → p-df8c381a.entry.js.map} +0 -0
- /package/www/build/{p-ca7634bf.entry.js.map → p-e25d7f0a.entry.js.map} +0 -0
- /package/www/build/{p-a45e72f0.entry.js.map → p-e4d97fbf.entry.js.map} +0 -0
- /package/www/build/{p-c451b4d7.entry.js.map → p-e529a714.entry.js.map} +0 -0
- /package/www/build/{p-ecae1a7a.entry.js.map → p-ea9c0ff3.entry.js.map} +0 -0
- /package/www/build/{p-9a48e70b.entry.js.map → p-f06ad42c.entry.js.map} +0 -0
- /package/www/build/{p-00f7e0da.entry.js.map → p-f15d0a00.entry.js.map} +0 -0
- /package/www/build/{p-c38833ea.entry.js.map → p-f425c6f2.entry.js.map} +0 -0
- /package/www/build/{p-febc4982.entry.js.map → p-f703660d.entry.js.map} +0 -0
- /package/www/build/{p-30f09188.entry.js.map → p-f8bbca6e.entry.js.map} +0 -0
|
@@ -11,7 +11,7 @@ const ZAriaAlert = class {
|
|
|
11
11
|
this.mode = index$1.ZAriaAlertMode.POLITE;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (index.h(index.Host, { key: '
|
|
14
|
+
return (index.h(index.Host, { key: 'fe408ff28d71e45649f8881b395da6b0c1fd3e96', "aria-live": this.mode, "aria-atomic": "true", "aria-relevant": "additions" }, index.h("slot", { key: '2999a9a7cd442b5d9c4a74e0c68418497335045e' })));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -33,10 +33,10 @@ const ZAvatar = class {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (index.h(index.Host, { key: '
|
|
36
|
+
return (index.h(index.Host, { key: '17a097738ce186c791794f5f8192cd46845df2a6', class: { [this.size]: true, [`body-${this.getTextSize()}-sb`]: true }, style: {
|
|
37
37
|
color: `var(--${this.textColor})`,
|
|
38
38
|
backgroundColor: `var(--${this.backgroundColor})`,
|
|
39
|
-
} }, this.text && !this.image && index.h("span", { key: '
|
|
39
|
+
} }, this.text && !this.image && index.h("span", { key: '178497c915f987e2f2daff1e17282062dfac9110' }, this.text.substring(0, 2)), this.image && (index.h("img", { key: '57221f7fca8e9dae9afeea77de4db247d3ad3174', src: this.image, onError: () => (this.image = "") }))));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
ZAvatar.style = ZAvatarStyle0;
|
|
@@ -124,7 +124,7 @@ const ZBookCard = class {
|
|
|
124
124
|
return (index.h("div", { class: "action-container" }, index.h("slot", { name: "footer-cta" })));
|
|
125
125
|
}
|
|
126
126
|
render() {
|
|
127
|
-
return (index.h("article", { key: '
|
|
127
|
+
return (index.h("article", { key: 'e114133d50e62f5d94d15c3529efa7700a3cd4c3', class: {
|
|
128
128
|
[this.variant]: true,
|
|
129
129
|
borderless: !!this.borderless,
|
|
130
130
|
} }, this.renderCard()));
|
|
@@ -204,10 +204,10 @@ const ZBreadcrumb = class {
|
|
|
204
204
|
];
|
|
205
205
|
}
|
|
206
206
|
render() {
|
|
207
|
-
return (index.h(index.Host, { key: '
|
|
207
|
+
return (index.h(index.Host, { key: '582cae1fd6a48626be9e602dfeb565e7a592f786', style: { "--line-clamp-popover": `${this.overflowMenuItemRows}` } }, index.h("nav", { key: 'b029e4b1206b9ef6235d2c4995bd90a7ff05ffdf', ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
|
|
208
208
|
semibold: this.pathStyle === index$1.BreadcrumbPathStyle.SEMIBOLD,
|
|
209
209
|
underlined: this.pathStyle === index$1.BreadcrumbPathStyle.UNDERLINED,
|
|
210
|
-
} }, index.h("ol", { key: '
|
|
210
|
+
} }, index.h("ol", { key: '738872ff5e7edc74ea1dc1f0b2b29379412f02f1' }, this.viewPortWidth === index$1.Device.MOBILE ? this.renderMobileItems() : this.renderItems()))));
|
|
211
211
|
}
|
|
212
212
|
get hostElement() { return index.getElement(this); }
|
|
213
213
|
static get watchers() { return {
|
|
@@ -46,7 +46,7 @@ const ZButtonSort = class {
|
|
|
46
46
|
return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (index.h("button", { key: '
|
|
49
|
+
return (index.h("button", { key: 'aa62d28a065254d872620c3deb96125c2cbbee86', title: this.setButtonTitle(), id: this.buttonid, class: { selected: this.isselected }, onClick: () => this.emitButtonSortClick() }, index.h("span", { key: 'f4ffc37957555118ff4984aa4a02619ff43a3187', ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), index.h("span", { key: 'fded8bf8fd6ccc4c18181c7707bda4fe1bb6c8d7', class: "counter" }, this.counter && ` (${this.counter})`), index.h("span", { key: '01352602fc60865ed02b3032d1a734a2ab3fd0fc', class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), index.h("z-icon", { key: '086d4a4f9f5b06b6e81009b9f344347b979a69ec', name: "caret-up-down", width: 16, height: 16 })));
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
ZButtonSort.style = ZButtonSortStyle0;
|
|
@@ -19,11 +19,11 @@ const ZChip = class {
|
|
|
19
19
|
this.ariaLabel = "";
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (index.h("div", { key: '
|
|
22
|
+
return (index.h("div", { key: '6e341c6b23f7ec91070af8e6790832baa2065338', class: {
|
|
23
23
|
"z-chip-container": true,
|
|
24
24
|
"z-chip-interactive": !!this.interactiveIcon,
|
|
25
25
|
[this.type]: true,
|
|
26
|
-
}, "aria-disabled": this.disabled }, this.icon && index.h("z-icon", { key: '
|
|
26
|
+
}, "aria-disabled": this.disabled }, this.icon && index.h("z-icon", { key: '8340f5866aa0b7ae4eefe07fd528d93be8fe6a53', name: this.icon }), index.h("slot", { key: '36b769d7fd5e8485d4583b094bb6f7d28362a503' }), this.interactiveIcon && (index.h("button", { key: '1859652a7c22fa0449f6f246d83b20ca3b063aa8', type: "button", onClick: () => this.interactiveIconClick.emit(), "aria-label": this.ariaLabel, disabled: this.disabled }, index.h("z-icon", { key: '1f21cc01c122a3d605b038cbc12d43294cac838b', class: "interactive-icon", name: this.interactiveIcon })))));
|
|
27
27
|
}
|
|
28
28
|
get el() { return index.getElement(this); }
|
|
29
29
|
};
|
|
@@ -262,7 +262,7 @@ const ZCombobox = class {
|
|
|
262
262
|
return (index.h("div", { class: "check-all-wrapper" }, index.h("z-input", { type: index$1.InputType.CHECKBOX, checked: allChecked, htmlid: checkAllId, class: this.getCheckboxClass(), label: allChecked ? this.uncheckalltext : this.checkalltext, disabled: this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length, size: this.size === index$1.ControlSize.X_SMALL ? index$1.ControlSize.SMALL : this.size, role: "option", "aria-selected": allChecked ? "true" : "false", onKeyDown: (e) => this.handleSelectArrowsNavigation(e, checkAllId), onInputCheck: (e) => this.checkAll(e.detail.checked), onInputFocus: (e) => this.handleCheckboxFocus(e.detail.id) })));
|
|
263
263
|
}
|
|
264
264
|
render() {
|
|
265
|
-
return (index.h("div", { key: '
|
|
265
|
+
return (index.h("div", { key: '75e48688980a202cd06c3613cd337264f4b42496', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
|
|
266
266
|
}
|
|
267
267
|
get element() { return index.getElement(this); }
|
|
268
268
|
static get watchers() { return {
|
|
@@ -33,9 +33,9 @@ const ZCoverHero = class {
|
|
|
33
33
|
return (index.h("div", { class: "content-container" }, index.h("slot", { name: "content" })));
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (index.h(index.Host, { key: '
|
|
36
|
+
return (index.h(index.Host, { key: 'b8db9df129ba92efc6c254a1058a9b89186fc6ca' }, this.variant === index$1.CoverHeroVariant.STACKED &&
|
|
37
37
|
this.contentPosition === index$1.CoverHeroContentPosition.TOP &&
|
|
38
|
-
this.renderContent(), index.h("div", { key: '
|
|
38
|
+
this.renderContent(), index.h("div", { key: '8b959ffe0c0c4fbddacb20ced4401234a8482ba3', class: "main-container" }, index.h("div", { key: '87918b02dc80974fb17400a64ffc3fdd277d8a14', class: "cover-container" }, index.h("slot", { key: '311401325e923d2f944b2f2989b2f2dc95971413', name: "cover" })), index.h("slot", { key: '7137546741734ea302b8fb00eea39f334c6780d2', name: "info-reveal" }), this.variant === index$1.CoverHeroVariant.OVERLAY && this.renderContent()), this.variant === index$1.CoverHeroVariant.STACKED &&
|
|
39
39
|
this.contentPosition === index$1.CoverHeroContentPosition.BOTTOM &&
|
|
40
40
|
this.renderContent()));
|
|
41
41
|
}
|
|
@@ -1006,16 +1006,16 @@ const ZModal = class {
|
|
|
1006
1006
|
e.preventDefault();
|
|
1007
1007
|
}
|
|
1008
1008
|
render() {
|
|
1009
|
-
return (index.h("dialog", { key: '
|
|
1009
|
+
return (index.h("dialog", { key: '879616ceb0fe8efdc260faf34308b8abde70a9dc', class: {
|
|
1010
1010
|
"modal-dialog": !this.scrollInside,
|
|
1011
|
-
}, "aria-labelledby": "modal-title", "aria-describedby": "modal-content", role: this.alertdialog ? "alertdialog" : undefined, ref: (el) => (this.dialog = el), onClose: () => this.emitModalClose(), onCancel: (e) => this.handleEscape(e) }, index.h("div", { key: '
|
|
1011
|
+
}, "aria-labelledby": "modal-title", "aria-describedby": "modal-content", role: this.alertdialog ? "alertdialog" : undefined, ref: (el) => (this.dialog = el), onClose: () => this.emitModalClose(), onCancel: (e) => this.handleEscape(e) }, index.h("div", { key: 'cbb8ef7c9ddabbdfddf1abd92a95ffb78109f3ba', class: {
|
|
1012
1012
|
"modal-container": true,
|
|
1013
1013
|
"modal-container-scroll-inside": this.scrollInside,
|
|
1014
1014
|
"modal-container-scroll-outside": !this.scrollInside,
|
|
1015
|
-
}, id: this.modalid }, index.h("header", { key: '
|
|
1015
|
+
}, id: this.modalid }, index.h("header", { key: 'fa1811f7d3ac5a58163acc6e9292fa0cbf899b6f', onClick: this.emitModalHeaderActive.bind(this) }, index.h("div", { key: 'ded46a7e313929991a9740c7f1baf3885b85ce15' }, this.modaltitle && index.h("h1", { key: 'd127c62752ed24c849fb1de7e3e44e3ef72ea564', id: "modal-title" }, this.modaltitle), this.closeButtonSlot()), this.modalsubtitle && (index.h("div", { key: '7055e46bc31534ef074246aaf95158b1cd9b4078', class: "subtitle", id: "modal-subtitle" }, this.modalsubtitle))), index.h("div", { key: 'fec1db797c7cd9ed298c62da41327f07547375d4', class: {
|
|
1016
1016
|
"modal-content-scroll-inside": this.scrollInside,
|
|
1017
1017
|
"modal-content-scroll-outside": !this.scrollInside,
|
|
1018
|
-
}, id: "modal-content" }, index.h("slot", { key: '
|
|
1018
|
+
}, id: "modal-content" }, index.h("slot", { key: 'fead24447d41a1eaf4972d9c65bdc42b1937988f', name: "modalContent" }))), index.h("div", { key: '322c011045b5ed86aabc924217e142a7233f1eeb', class: {
|
|
1019
1019
|
"modal-background": true,
|
|
1020
1020
|
"modal-background-scroll-outside": !this.scrollInside,
|
|
1021
1021
|
}, "data-action": "modalBackground", "data-modal": this.modalid, onClick: () => {
|
|
@@ -12,7 +12,7 @@ const ZGhostLoading = class {
|
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return index.h(index.Host, { key: '
|
|
15
|
+
return index.h(index.Host, { key: '2881f3b25dedc311f34cd76911ff96f2fdfc0c41' });
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
ZGhostLoading.style = ZGhostLoadingStyle0;
|
|
@@ -18,7 +18,7 @@ const ZInfoBox = class {
|
|
|
18
18
|
this.infoBoxClose.emit({ boxid: this.boxid });
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (index.h("div", { key: '
|
|
21
|
+
return (index.h("div", { key: '2f83796cb61288f4250b00847fe63005e9d62f5c', id: this.boxid }, index.h("slot", { key: '7531c58a7563a6e30f68df36a0a92650ee19b3b5', name: "content" }), this.isclosable && (index.h("z-icon", { key: 'ac0ae6e8195f62c776b2ee7da5dac09a0f17b703', name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() }))));
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
ZInfoBox.style = ZInfoBoxStyle0;
|
|
@@ -50,7 +50,7 @@ const ZInfoReveal = class {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return (index.h(index.Host, { key: '
|
|
53
|
+
return (index.h(index.Host, { key: '26f1289a1592702b470934f4d9fe38c34039a013', open: this.open }, index.h("button", { key: '970af3aaf1e9460ee380249de460389f1bdfdfda', class: "z-info-reveal-trigger", type: "button", onClick: this.togglePanel.bind(this), "aria-label": !this.label ? this.ariaLabel : undefined, "aria-expanded": this.open ? "true" : "false", "aria-controls": "z-info-reveal-panel" }, this.icon && index.h("z-icon", { key: '396653feab94053d64b2157d4a79699d54cf5cf5', name: this.icon }), this.label && index.h("span", { key: '785319a805aecdf9f8c2ffa5f451c0f2868c5df3', class: "z-info-reveal-label" }, this.label)), index.h("div", { key: '729762b03fd3d2fb73914ed9a46d2634ff6b8d0b', class: "z-info-reveal-panel", id: "z-info-reveal-panel", ref: (el) => (this.panel = el), hidden: !this.open }, index.h("slot", { key: 'a16a68e1e7c4b1bcb10e69d1fe48fbe5f8dfda26' }), index.h("button", { key: 'e91b170b87e62dab979876413aad47bdb5e9d758', class: "z-info-reveal-close", type: "button", onClick: this.closePanel.bind(this), "aria-label": "Chiudi pannello informazioni" }, index.h("z-icon", { key: '772445e4bc3895c5c0328a5e7adca8994324c471', name: "multiply" })))));
|
|
54
54
|
}
|
|
55
55
|
get host() { return index.getElement(this); }
|
|
56
56
|
static get watchers() { return {
|
|
@@ -25,7 +25,7 @@ const ZLogo = class {
|
|
|
25
25
|
if (this.height) {
|
|
26
26
|
style["height"] = style["max-height"] = `${this.height}px`;
|
|
27
27
|
}
|
|
28
|
-
return (index.h(index.Host, { key: '
|
|
28
|
+
return (index.h(index.Host, { key: '62a2be82e036760d34d812904b967ac96a22604a', style: style, class: { mobile: !!this.mobileLogo } }, this.link ? (index.h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, index.h("img", { alt: this.imageAlt }))) : (index.h("img", { alt: this.imageAlt }))));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
ZLogo.style = ZLogoStyle0;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index$1 = require('./index-96af6326.js');
|
|
6
6
|
const index = require('./index-bab7a651.js');
|
|
7
7
|
|
|
8
|
-
const stylesCss = ":host{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.label{display:flex;width:100%;align-items:center;padding:var(--space-unit) 0;border:0;border-bottom:var(--border-size-small) solid var(--color-surface03);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}:host(:is([active],[open])) .label,.label:focus:focus-visible,.label:hover{border-color:var(--color-secondary01)}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / \"\";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.5}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}::slotted([slot=\"section\"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-1);line-height:1.333;outline:none}::slotted([slot=\"section\"]:last-of-type){border:none}::slotted([slot=\"section\"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-secondary01)}::slotted([slot=\"section\"]:hover),::slotted([slot=\"section\"]:focus:focus-visible),::slotted([slot=\"section\"][active]){color:var(--color-secondary01);font-weight:var(--font-bd)}";
|
|
8
|
+
const stylesCss = ":host{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.label{display:flex;width:100%;align-items:center;padding:var(--space-unit) 0;border:0;border-bottom:var(--border-size-small) solid var(--color-surface03);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}:host(:last-child:not([open])) .label{border-bottom:none}:host(:is([active],[open])) .label,.label:focus:focus-visible,.label:hover{border-color:var(--color-secondary01)}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / \"\";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.5}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items[hidden]{display:none}::slotted([slot=\"section\"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-1);line-height:1.333;outline:none}::slotted([slot=\"section\"]:last-of-type){border:none}::slotted([slot=\"section\"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-secondary01)}::slotted([slot=\"section\"]:hover),::slotted([slot=\"section\"]:focus:focus-visible),::slotted([slot=\"section\"][active]){color:var(--color-secondary01);font-weight:var(--font-bd)}";
|
|
9
9
|
const ZMenuSectionStyle0 = stylesCss;
|
|
10
10
|
|
|
11
11
|
const ZMenuSection = class {
|
|
@@ -17,15 +17,14 @@ const ZMenuSection = class {
|
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
this.open = !this.open;
|
|
20
|
-
this.setFocus();
|
|
21
20
|
}
|
|
22
21
|
setItemsA11yAttrs() {
|
|
23
22
|
if (!this.hasItems) {
|
|
24
23
|
return;
|
|
25
24
|
}
|
|
26
|
-
this.items.forEach((item
|
|
25
|
+
this.items.forEach((item) => {
|
|
27
26
|
item.setAttribute("role", "menuitem");
|
|
28
|
-
item.
|
|
27
|
+
item.tabIndex = -1;
|
|
29
28
|
});
|
|
30
29
|
}
|
|
31
30
|
onItemsChange() {
|
|
@@ -41,11 +40,18 @@ const ZMenuSection = class {
|
|
|
41
40
|
const labelElement = ev.target.assignedElements()[0];
|
|
42
41
|
labelElement.dataset.text = labelElement === null || labelElement === void 0 ? void 0 : labelElement.textContent;
|
|
43
42
|
}
|
|
43
|
+
onLabelClick() {
|
|
44
|
+
this.toggle();
|
|
45
|
+
this.setFocus();
|
|
46
|
+
}
|
|
44
47
|
onLabelKeydown(ev) {
|
|
45
48
|
if (ev.key === index.KeyboardCode.ENTER || ev.key === index.KeyboardCode.SPACE) {
|
|
46
49
|
ev.preventDefault();
|
|
47
50
|
ev.stopPropagation();
|
|
48
51
|
this.toggle();
|
|
52
|
+
if (this.open) {
|
|
53
|
+
this.focustFirstItem();
|
|
54
|
+
}
|
|
49
55
|
}
|
|
50
56
|
}
|
|
51
57
|
/**
|
|
@@ -61,6 +67,13 @@ const ZMenuSection = class {
|
|
|
61
67
|
current.tabIndex = -1;
|
|
62
68
|
}
|
|
63
69
|
}
|
|
70
|
+
focustFirstItem() {
|
|
71
|
+
this.moveFocus(this.items[0]);
|
|
72
|
+
}
|
|
73
|
+
/** Focus the last item. */
|
|
74
|
+
async focusLastItem() {
|
|
75
|
+
this.moveFocus(this.items[this.items.length - 1]);
|
|
76
|
+
}
|
|
64
77
|
/** Set tabindex of the label to 0, then focus it. */
|
|
65
78
|
async setFocus() {
|
|
66
79
|
this.htmlTabindex = 0;
|
|
@@ -68,15 +81,10 @@ const ZMenuSection = class {
|
|
|
68
81
|
this.label.focus();
|
|
69
82
|
}, 100);
|
|
70
83
|
}
|
|
71
|
-
/** Focus the last item. */
|
|
72
|
-
async focusLastItem() {
|
|
73
|
-
this.htmlTabindex = 0;
|
|
74
|
-
this.moveFocus(this.items[this.items.length - 1]);
|
|
75
|
-
}
|
|
76
84
|
onOpenChange() {
|
|
77
85
|
if (!this.open) {
|
|
78
|
-
this.closed.emit();
|
|
79
86
|
this.setItemsA11yAttrs();
|
|
87
|
+
this.closed.emit();
|
|
80
88
|
}
|
|
81
89
|
else {
|
|
82
90
|
this.opened.emit();
|
|
@@ -94,7 +102,7 @@ const ZMenuSection = class {
|
|
|
94
102
|
}
|
|
95
103
|
ev.preventDefault();
|
|
96
104
|
ev.stopPropagation();
|
|
97
|
-
this.label.
|
|
105
|
+
this.moveFocus(this.label, this.focusableItem);
|
|
98
106
|
this.open = false;
|
|
99
107
|
break;
|
|
100
108
|
case index.KeyboardCode.ARROW_RIGHT:
|
|
@@ -104,6 +112,7 @@ const ZMenuSection = class {
|
|
|
104
112
|
ev.preventDefault();
|
|
105
113
|
ev.stopPropagation();
|
|
106
114
|
this.open = true;
|
|
115
|
+
this.focustFirstItem();
|
|
107
116
|
break;
|
|
108
117
|
case index.KeyboardCode.ARROW_DOWN: {
|
|
109
118
|
if (!this.open) {
|
|
@@ -112,7 +121,7 @@ const ZMenuSection = class {
|
|
|
112
121
|
if (document.activeElement === this.host) {
|
|
113
122
|
ev.preventDefault();
|
|
114
123
|
ev.stopPropagation();
|
|
115
|
-
this.
|
|
124
|
+
this.focustFirstItem();
|
|
116
125
|
break;
|
|
117
126
|
}
|
|
118
127
|
const currentIndex = this.items.indexOf(this.focusableItem);
|
|
@@ -122,6 +131,10 @@ const ZMenuSection = class {
|
|
|
122
131
|
ev.stopPropagation();
|
|
123
132
|
this.moveFocus(receiver, this.focusableItem);
|
|
124
133
|
}
|
|
134
|
+
else {
|
|
135
|
+
this.htmlTabindex = 0;
|
|
136
|
+
this.focusableItem.tabIndex = -1;
|
|
137
|
+
}
|
|
125
138
|
break;
|
|
126
139
|
}
|
|
127
140
|
case index.KeyboardCode.ARROW_UP: {
|
|
@@ -137,6 +150,7 @@ const ZMenuSection = class {
|
|
|
137
150
|
}
|
|
138
151
|
else {
|
|
139
152
|
// since there isn't a previous item to focus, give the focus to the label element
|
|
153
|
+
this.focusableItem.tabIndex = -1;
|
|
140
154
|
this.setFocus();
|
|
141
155
|
}
|
|
142
156
|
break;
|
|
@@ -155,6 +169,7 @@ const ZMenuSection = class {
|
|
|
155
169
|
this.toggle = this.toggle.bind(this);
|
|
156
170
|
this.onItemsChange = this.onItemsChange.bind(this);
|
|
157
171
|
this.onLabelSlotChange = this.onLabelSlotChange.bind(this);
|
|
172
|
+
this.onLabelClick = this.onLabelClick.bind(this);
|
|
158
173
|
this.onLabelKeydown = this.onLabelKeydown.bind(this);
|
|
159
174
|
this.onItemsKeydown = this.onItemsKeydown.bind(this);
|
|
160
175
|
}
|
|
@@ -162,7 +177,7 @@ const ZMenuSection = class {
|
|
|
162
177
|
this.onItemsChange();
|
|
163
178
|
}
|
|
164
179
|
render() {
|
|
165
|
-
return (index$1.h(index$1.Host, { key: '
|
|
180
|
+
return (index$1.h(index$1.Host, { key: '4d9223bebf25df5eb224a7674c920ebc17470826', open: this.open }, index$1.h("button", { key: '2f75c046ad4519df706283d3b37c2d9feb8734d3', ref: (el) => (this.label = el), class: "label", "aria-haspopup": `${!!this.hasItems}`, "aria-expanded": `${!!this.open}`, role: "menuitem", tabindex: this.htmlTabindex, onClick: this.onLabelClick, onKeyDown: this.onLabelKeydown }, index$1.h("slot", { key: '0a3b20723371deac12792436d977c343c237720b', onSlotchange: this.onLabelSlotChange }), this.hasItems && index$1.h("z-icon", { key: '7fe5e9dc4a9eac28f0f3a381fedbe0ec3e7ca99d', name: this.open ? "chevron-up" : "chevron-down" })), index$1.h("div", { key: '80e167ce90df12c27eddc1e28b6bf6dd3b5d0dd7', class: "items", role: "menu", hidden: !this.open }, index$1.h("slot", { key: 'a0e88a56848abf198ced22e4fc390267aea6114e', name: "section", onSlotchange: this.onItemsChange }))));
|
|
166
181
|
}
|
|
167
182
|
get host() { return index$1.getElement(this); }
|
|
168
183
|
static get watchers() { return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"z-menu-section.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,k+DAAk+D,CAAC;AACr/D,2BAAe,SAAS;;MCYX,YAAY;IAkCvB,IAAY,aAAa;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAC,QAAQ,EAAC,KAAK,QAAQ,KAAK,CAAC,CAAC,CAAC;KACxD;IAEO,MAAM;QACZ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,OAAO;SACR;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,QAAQ,EAAE,CAAC;KACjB;IAEO,iBAAiB;QACvB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,OAAO;SACR;QAED,IAAI,CAAC,KAAK,CAAC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,YAAY,EAAE,IAAI,CAAC,aAAa,GAChC,CACE,CACP,CACI,EACP;KACH;;;;;;;;;;;","names":["KeyboardCode","h","Host"],"sources":["src/components/z-menu-section/styles.css?tag=z-menu-section&encapsulation=shadow","src/components/z-menu-section/index.tsx"],"sourcesContent":[":host {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n padding: 0;\n font-family: var(--font-family-sans);\n}\n\n:host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n.label {\n display: flex;\n width: 100%;\n align-items: center;\n padding: var(--space-unit) 0;\n border: 0;\n border-bottom: var(--border-size-small) solid var(--color-surface03);\n margin: 0;\n background: transparent;\n border-radius: 0;\n cursor: pointer;\n text-align: left;\n}\n\n:host(:is([active], [open])) .label,\n.label:focus:focus-visible,\n.label:hover {\n border-color: var(--color-secondary01);\n}\n\n.label:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n:host(:is([active], [open])) .label ::slotted(*),\n.label:focus:focus-visible ::slotted(*),\n.label:hover ::slotted(*) {\n font-weight: var(--font-bd);\n}\n\n::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n/* Trick to prevent layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text])::after {\n overflow: hidden;\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text])::after {\n display: none;\n }\n}\n\n.label ::slotted(*) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.5;\n}\n\n.label z-icon {\n margin-left: calc(var(--space-unit) * 4);\n fill: var(--color-default-icon);\n}\n\n.items {\n display: flex;\n width: 100%;\n flex-direction: column;\n padding: calc(var(--space-unit) / 2);\n padding-bottom: calc(var(--space-unit) * 1.5);\n}\n\n::slotted([slot=\"section\"]) {\n display: inline-flex;\n padding: calc(var(--space-unit) / 2);\n margin: 0;\n font-size: var(--font-size-1);\n line-height: 1.333;\n outline: none;\n}\n\n::slotted([slot=\"section\"]:last-of-type) {\n border: none;\n}\n\n::slotted([slot=\"section\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-secondary01);\n}\n\n::slotted([slot=\"section\"]:hover),\n::slotted([slot=\"section\"]:focus:focus-visible),\n::slotted([slot=\"section\"][active]) {\n color: var(--color-secondary01);\n font-weight: var(--font-bd);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, Watch, h} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot item - Single entry of the section. Set the same slot name to different items to put many of them. Add the `active` attribute to a slotted item to highlight it.\n */\n@Component({\n tag: \"z-menu-section\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSection {\n @Element() host: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Tabindex value to set on the label button.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZMenu).\n */\n @Prop()\n htmlTabindex = -1;\n\n /** The opening state of the section. */\n @Prop({mutable: true})\n open: boolean;\n\n @State()\n hasItems: boolean;\n\n @State()\n items: HTMLElement[];\n\n /** The section has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The section has been closed. */\n @Event()\n closed: EventEmitter;\n\n private label: HTMLButtonElement;\n\n private get focusableItem(): HTMLElement {\n return this.items.find(({tabIndex}) => tabIndex === 0);\n }\n\n private toggle(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.open = !this.open;\n this.setFocus();\n }\n\n private setItemsA11yAttrs(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.items.forEach((item, index) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.setAttribute(\"tabindex\", index === 0 ? \"0\" : \"-1\");\n });\n }\n\n private onItemsChange(): void {\n this.items = Array.from(this.host.querySelectorAll('[slot=\"section\"]')) as HTMLElement[];\n this.hasItems = this.items.length > 0;\n this.setItemsA11yAttrs();\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.textContent;\n }\n\n private onLabelKeydown(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.ENTER || ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n ev.stopPropagation();\n this.toggle();\n }\n }\n\n /**\n * Move focus and adjust the tabindex value of `receiver` and `current` elements,\n * setting -1 to the `current` and 0 to the `receiver`, then focus the `receiver` element.\n */\n private moveFocus(receiver: HTMLElement, current?: HTMLElement): void {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n if (current) {\n current.tabIndex = -1;\n }\n }\n\n /** Set tabindex of the label to 0, then focus it. */\n @Method()\n async setFocus(): Promise<void> {\n this.htmlTabindex = 0;\n setTimeout(() => {\n this.label.focus();\n }, 100);\n }\n\n /** Focus the last item. */\n @Method()\n async focusLastItem(): Promise<void> {\n this.htmlTabindex = 0;\n this.moveFocus(this.items[this.items.length - 1]);\n }\n\n @Watch(\"open\")\n onOpenChange(): void {\n if (!this.open) {\n this.closed.emit();\n this.setItemsA11yAttrs();\n } else {\n this.opened.emit();\n }\n }\n\n @Watch(\"htmlTabindex\")\n onTabindexChange(): void {\n this.label.tabIndex = this.htmlTabindex;\n }\n\n @Listen(\"keydown\")\n private onItemsKeydown(ev: KeyboardEvent): void {\n switch (ev.key) {\n case KeyboardCode.ESC:\n case KeyboardCode.ARROW_LEFT:\n if (!this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.label.focus();\n this.open = false;\n break;\n case KeyboardCode.ARROW_RIGHT:\n if (this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (!this.open) {\n break;\n }\n if (document.activeElement === this.host) {\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(this.items[0]);\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex + 1];\n if (receiver) {\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(receiver, this.focusableItem);\n }\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (!this.open || document.activeElement === this.host) {\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex - 1];\n ev.preventDefault();\n ev.stopPropagation();\n if (receiver) {\n this.moveFocus(receiver, this.focusableItem);\n } else {\n // since there isn't a previous item to focus, give the focus to the label element\n this.setFocus();\n }\n break;\n }\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n this.onItemsKeydown = this.onItemsKeydown.bind(this);\n }\n\n connectedCallback(): void {\n this.onItemsChange();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host open={this.open}>\n <button\n ref={(el) => (this.label = el)}\n class=\"label\"\n aria-haspopup={`${this.hasItems}`}\n aria-expanded={`${!!this.open}`}\n role=\"menuitem\"\n tabindex={this.htmlTabindex}\n onClick={this.toggle}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n {this.hasItems && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n {this.open && (\n <div\n class=\"items\"\n role=\"menu\"\n >\n <slot\n name=\"section\"\n onSlotchange={this.onItemsChange}\n />\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"z-menu-section.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,ujEAAujE,CAAC;AAC1kE,2BAAe,SAAS;;MCYX,YAAY;IAkCvB,IAAY,aAAa;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAC,QAAQ,EAAC,KAAK,QAAQ,KAAK,CAAC,CAAC,CAAC;KACxD;IAEO,MAAM;QACZ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,OAAO;SACR;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;KACxB;IAEO,iBAAiB;QACvB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,OAAO;SACR;QAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI;YACtB,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;YACtC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;SACpB,CAAC,CAAC;KACJ;IAEO,aAAa;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAkB,CAAC;QACzF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QACtC,IAAI,CAAC,iBAAiB,EAAE,CAAC;KAC1B;;;;;IAMO,iBAAiB,CAAC,EAAS;QACjC,MAAM,YAAY,GAAI,EAAE,CAAC,MAA0B,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAgB,CAAC;QACzF,YAAY,CAAC,OAAO,CAAC,IAAI,GAAG,YAAY,aAAZ,YAAY,uB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.css?tag=z-menu-section&encapsulation=shadow","src/components/z-menu-section/index.tsx"],"sourcesContent":[":host {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n padding: 0;\n font-family: var(--font-family-sans);\n}\n\n:host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n.label {\n display: flex;\n width: 100%;\n align-items: center;\n padding: var(--space-unit) 0;\n border: 0;\n border-bottom: var(--border-size-small) solid var(--color-surface03);\n margin: 0;\n background: transparent;\n border-radius: 0;\n cursor: pointer;\n text-align: left;\n}\n\n:host(:last-child:not([open])) .label {\n border-bottom: none;\n}\n\n:host(:is([active], [open])) .label,\n.label:focus:focus-visible,\n.label:hover {\n border-color: var(--color-secondary01);\n}\n\n.label:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n:host(:is([active], [open])) .label ::slotted(*),\n.label:focus:focus-visible ::slotted(*),\n.label:hover ::slotted(*) {\n font-weight: var(--font-bd);\n}\n\n::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n/* Trick to prevent layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text])::after {\n overflow: hidden;\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text])::after {\n display: none;\n }\n}\n\n.label ::slotted(*) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.5;\n}\n\n.label z-icon {\n margin-left: calc(var(--space-unit) * 4);\n fill: var(--color-default-icon);\n}\n\n.items {\n display: flex;\n width: 100%;\n flex-direction: column;\n padding: calc(var(--space-unit) / 2);\n padding-bottom: calc(var(--space-unit) * 1.5);\n}\n\n.items[hidden] {\n display: none;\n}\n\n::slotted([slot=\"section\"]) {\n display: inline-flex;\n padding: calc(var(--space-unit) / 2);\n margin: 0;\n font-size: var(--font-size-1);\n line-height: 1.333;\n outline: none;\n}\n\n::slotted([slot=\"section\"]:last-of-type) {\n border: none;\n}\n\n::slotted([slot=\"section\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-secondary01);\n}\n\n::slotted([slot=\"section\"]:hover),\n::slotted([slot=\"section\"]:focus:focus-visible),\n::slotted([slot=\"section\"][active]) {\n color: var(--color-secondary01);\n font-weight: var(--font-bd);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, Watch, h} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot item - Single entry of the section. Set the same slot name to different items to put many of them. Add the `active` attribute to a slotted item to highlight it.\n */\n@Component({\n tag: \"z-menu-section\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSection {\n @Element() host: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Tabindex value to set on the label button.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZMenu).\n */\n @Prop()\n htmlTabindex = -1;\n\n /** The opening state of the section. */\n @Prop({mutable: true})\n open: boolean;\n\n @State()\n hasItems: boolean;\n\n @State()\n items: HTMLElement[];\n\n /** The section has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The section has been closed. */\n @Event()\n closed: EventEmitter;\n\n private label: HTMLButtonElement;\n\n private get focusableItem(): HTMLElement {\n return this.items.find(({tabIndex}) => tabIndex === 0);\n }\n\n private toggle(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.open = !this.open;\n }\n\n private setItemsA11yAttrs(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.items.forEach((item) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.tabIndex = -1;\n });\n }\n\n private onItemsChange(): void {\n this.items = Array.from(this.host.querySelectorAll('[slot=\"section\"]')) as HTMLElement[];\n this.hasItems = this.items.length > 0;\n this.setItemsA11yAttrs();\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.textContent;\n }\n\n private onLabelClick(): void {\n this.toggle();\n this.setFocus();\n }\n\n private onLabelKeydown(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.ENTER || ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n ev.stopPropagation();\n this.toggle();\n if (this.open) {\n this.focustFirstItem();\n }\n }\n }\n\n /**\n * Move focus and adjust the tabindex value of `receiver` and `current` elements,\n * setting -1 to the `current` and 0 to the `receiver`, then focus the `receiver` element.\n */\n private moveFocus(receiver: HTMLElement, current?: HTMLElement): void {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n if (current) {\n current.tabIndex = -1;\n }\n }\n\n private focustFirstItem(): void {\n this.moveFocus(this.items[0]);\n }\n\n /** Focus the last item. */\n @Method()\n async focusLastItem(): Promise<void> {\n this.moveFocus(this.items[this.items.length - 1]);\n }\n\n /** Set tabindex of the label to 0, then focus it. */\n @Method()\n async setFocus(): Promise<void> {\n this.htmlTabindex = 0;\n setTimeout(() => {\n this.label.focus();\n }, 100);\n }\n\n @Watch(\"open\")\n onOpenChange(): void {\n if (!this.open) {\n this.setItemsA11yAttrs();\n this.closed.emit();\n } else {\n this.opened.emit();\n }\n }\n\n @Watch(\"htmlTabindex\")\n onTabindexChange(): void {\n this.label.tabIndex = this.htmlTabindex;\n }\n\n @Listen(\"keydown\")\n private onItemsKeydown(ev: KeyboardEvent): void {\n switch (ev.key) {\n case KeyboardCode.ESC:\n case KeyboardCode.ARROW_LEFT:\n if (!this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(this.label, this.focusableItem);\n this.open = false;\n break;\n case KeyboardCode.ARROW_RIGHT:\n if (this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n this.focustFirstItem();\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (!this.open) {\n break;\n }\n if (document.activeElement === this.host) {\n ev.preventDefault();\n ev.stopPropagation();\n this.focustFirstItem();\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex + 1];\n if (receiver) {\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(receiver, this.focusableItem);\n } else {\n this.htmlTabindex = 0;\n this.focusableItem.tabIndex = -1;\n }\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (!this.open || document.activeElement === this.host) {\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex - 1];\n ev.preventDefault();\n ev.stopPropagation();\n if (receiver) {\n this.moveFocus(receiver, this.focusableItem);\n } else {\n // since there isn't a previous item to focus, give the focus to the label element\n this.focusableItem.tabIndex = -1;\n this.setFocus();\n }\n break;\n }\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onLabelClick = this.onLabelClick.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n this.onItemsKeydown = this.onItemsKeydown.bind(this);\n }\n\n connectedCallback(): void {\n this.onItemsChange();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host open={this.open}>\n <button\n ref={(el) => (this.label = el)}\n class=\"label\"\n aria-haspopup={`${!!this.hasItems}`}\n aria-expanded={`${!!this.open}`}\n role=\"menuitem\"\n tabindex={this.htmlTabindex}\n onClick={this.onLabelClick}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n {this.hasItems && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n <div\n class=\"items\"\n role=\"menu\"\n hidden={!this.open}\n >\n <slot\n name=\"section\"\n onSlotchange={this.onItemsChange}\n />\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|