@zanichelli/albe-web-components 16.0.0-rc2 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/dist/cjs/{index-7ce01c0e.js → index-066b8da0.js} +5 -5
- package/dist/cjs/{index-7ce01c0e.js.map → index-066b8da0.js.map} +1 -1
- package/dist/cjs/{index-f31d0e66.js → index-1890445d.js} +3 -3
- package/dist/cjs/{index-f31d0e66.js.map → index-1890445d.js.map} +1 -1
- package/dist/cjs/{index-19279b08.js → index-1f9f28df.js} +3 -3
- package/dist/cjs/{index-19279b08.js.map → index-1f9f28df.js.map} +1 -1
- package/dist/cjs/{index-a83e999c.js → index-5cc0f0ca.js} +5 -6
- package/dist/cjs/index-5cc0f0ca.js.map +1 -0
- package/dist/cjs/{index-48cf79d4.js → index-98822eac.js} +6 -6
- package/dist/cjs/{index-48cf79d4.js.map → index-98822eac.js.map} +1 -1
- package/dist/cjs/{index-94f7957c.js → index-b361709b.js} +3 -3
- package/dist/cjs/{index-94f7957c.js.map → index-b361709b.js.map} +1 -1
- package/dist/cjs/{index-e3835c94.js → index-bab7a651.js} +3 -1
- package/dist/cjs/index-bab7a651.js.map +1 -0
- package/dist/cjs/{index-5dc4a8de.js → index-e801ae96.js} +55 -2
- package/dist/cjs/index-e801ae96.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-0d3ac1c1.js → utils-311316ce.js} +2 -2
- package/dist/cjs/{utils-0d3ac1c1.js.map → utils-311316ce.js.map} +1 -1
- package/dist/cjs/{utils-1a8655c7.js → utils-6bd8c55e.js} +2 -2
- package/dist/cjs/{utils-1a8655c7.js.map → utils-6bd8c55e.js.map} +1 -1
- package/dist/cjs/web-components-library.cjs.js +2 -2
- package/dist/cjs/z-accordion.cjs.entry.js +3 -3
- package/dist/cjs/z-alert.cjs.entry.js +2 -2
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +3 -3
- package/dist/cjs/z-app-header-deprecated.cjs.entry.js +158 -0
- package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +1 -0
- package/dist/cjs/z-app-header_12.cjs.entry.js +197 -67
- package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
- package/dist/cjs/z-aria-alert.cjs.entry.js +3 -3
- package/dist/cjs/z-avatar.cjs.entry.js +4 -4
- package/dist/cjs/z-book-card.cjs.entry.js +4 -4
- package/dist/cjs/z-breadcrumb.cjs.entry.js +5 -5
- package/dist/cjs/z-button-sort.cjs.entry.js +2 -2
- package/dist/cjs/z-card.cjs.entry.js +2 -2
- package/dist/cjs/z-carousel.cjs.entry.js +2 -2
- package/dist/cjs/z-chip.cjs.entry.js +4 -4
- package/dist/cjs/z-combobox.cjs.entry.js +4 -4
- package/dist/cjs/z-cover-hero.cjs.entry.js +4 -4
- package/dist/cjs/z-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +8 -8
- package/dist/cjs/z-file-upload.cjs.entry.js +4 -4
- package/dist/cjs/z-file.cjs.entry.js +3 -3
- package/dist/cjs/z-ghost-loading.cjs.entry.js +2 -2
- package/dist/cjs/z-info-box.cjs.entry.js +2 -2
- package/dist/cjs/z-info-reveal.cjs.entry.js +3 -3
- package/dist/cjs/z-logo.cjs.entry.js +2 -2
- package/dist/cjs/z-menu-deprecated.cjs.entry.js +115 -0
- package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +1 -0
- package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +60 -0
- package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +1 -0
- package/dist/cjs/z-menu-section.cjs.entry.js +92 -4
- package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -1
- package/dist/cjs/z-menu.cjs.entry.js +121 -10
- package/dist/cjs/z-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +3 -3
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +3 -3
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +3 -3
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-info.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-card-list.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card_4.cjs.entry.js +6 -6
- package/dist/cjs/z-myz-list-item.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-list.cjs.entry.js +2 -2
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +4 -4
- package/dist/cjs/z-notification.cjs.entry.js +2 -2
- package/dist/cjs/z-otp.cjs.entry.js +4 -4
- package/dist/cjs/z-pagination.cjs.entry.js +2 -2
- package/dist/cjs/z-panel-elem.cjs.entry.js +3 -3
- package/dist/cjs/z-popover.cjs.entry.js +3 -3
- package/dist/cjs/z-range-picker.cjs.entry.js +3 -3
- package/dist/cjs/z-section-title.cjs.entry.js +3 -3
- package/dist/cjs/z-select.cjs.entry.js +4 -4
- package/dist/cjs/z-skip-to-content.cjs.entry.js +4 -4
- package/dist/cjs/z-slideshow.cjs.entry.js +3 -3
- package/dist/cjs/z-stepper-item.cjs.entry.js +2 -2
- package/dist/cjs/z-stepper.cjs.entry.js +2 -2
- package/dist/cjs/z-table.cjs.entry.js +10 -10
- package/dist/cjs/z-tbody.cjs.entry.js +2 -2
- package/dist/cjs/z-td.cjs.entry.js +3 -3
- package/dist/cjs/z-tfoot.cjs.entry.js +2 -2
- package/dist/cjs/z-th.cjs.entry.js +3 -3
- package/dist/cjs/z-thead.cjs.entry.js +2 -2
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +3 -3
- package/dist/cjs/z-toast-notification.cjs.entry.js +3 -3
- package/dist/cjs/z-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/z-toggle-switch.cjs.entry.js +6 -6
- package/dist/cjs/z-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/z-tr.cjs.entry.js +6 -6
- package/dist/cjs/z-visually-hidden.cjs.entry.js +2 -2
- package/dist/collection/assets/orientamento.svg +14 -0
- package/dist/collection/beans/index.js +2 -0
- package/dist/collection/beans/index.js.map +1 -1
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +420 -0
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +1 -0
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.spec.js +203 -0
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.spec.js.map +1 -0
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js +635 -0
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js.map +1 -0
- package/dist/collection/components/deprecated/z-app-header-deprecated/styles.css +441 -0
- package/dist/collection/components/deprecated/z-menu-deprecated/index.js +244 -0
- package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +1 -0
- package/dist/collection/components/deprecated/z-menu-deprecated/index.spec.js +120 -0
- package/dist/collection/components/deprecated/z-menu-deprecated/index.spec.js.map +1 -0
- package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js +129 -0
- package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js.map +1 -0
- package/dist/collection/components/deprecated/z-menu-deprecated/styles.css +217 -0
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +131 -0
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +1 -0
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.spec.js +50 -0
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.spec.js.map +1 -0
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js +41 -0
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js.map +1 -0
- package/dist/collection/components/deprecated/z-menu-section-deprecated/styles.css +123 -0
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js +2 -2
- package/dist/collection/components/file-upload/z-file/index.js +1 -1
- package/dist/collection/components/file-upload/z-file-upload/index.js +1 -1
- package/dist/collection/components/list/z-list/index.js +1 -1
- package/dist/collection/components/list/z-list-element/index.js +1 -1
- package/dist/collection/components/list/z-list-group/index.js +2 -2
- package/dist/collection/components/table/cells/z-td/index.js +2 -27
- package/dist/collection/components/table/cells/z-td/index.js.map +1 -1
- package/dist/collection/components/table/cells/z-td/styles.css +0 -4
- package/dist/collection/components/table/cells/z-th/index.js +1 -1
- package/dist/collection/components/table/cells/z-th/styles.css +0 -4
- package/dist/collection/components/table/z-table/index.js +1 -1
- 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/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 +215 -159
- package/dist/collection/components/z-app-header/index.js.map +1 -1
- package/dist/collection/components/z-app-header/index.spec.js +493 -79
- package/dist/collection/components/z-app-header/index.spec.js.map +1 -1
- package/dist/collection/components/z-app-header/index.stories.js +59 -369
- package/dist/collection/components/z-app-header/index.stories.js.map +1 -1
- package/dist/collection/components/z-app-header/styles.css +147 -183
- 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 +128 -5
- package/dist/collection/components/z-menu/index.js.map +1 -1
- package/dist/collection/components/z-menu/index.spec.js +49 -33
- package/dist/collection/components/z-menu/index.spec.js.map +1 -1
- package/dist/collection/components/z-menu/index.stories.js +7 -7
- package/dist/collection/components/z-menu/index.stories.js.map +1 -1
- package/dist/collection/components/z-menu/styles.css +21 -8
- package/dist/collection/components/z-menu-section/index.js +102 -2
- package/dist/collection/components/z-menu-section/index.js.map +1 -1
- package/dist/collection/components/z-menu-section/index.spec.js +7 -7
- package/dist/collection/components/z-menu-section/index.spec.js.map +1 -1
- package/dist/collection/components/z-menu-section/index.stories.js +3 -3
- package/dist/collection/components/z-menu-section/index.stories.js.map +1 -1
- package/dist/collection/components/z-menu-section/styles.css +5 -5
- 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 +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/index.d.ts +6 -0
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/index10.js +1 -1
- package/dist/components/index11.js +1 -1
- package/dist/components/index12.js +1 -1
- package/dist/components/index13.js +1 -1
- package/dist/components/index14.js +2 -2
- 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/index2.js +2 -0
- package/dist/components/index2.js.map +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 +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/index7.js +2 -2
- 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-deprecated.d.ts +11 -0
- package/dist/components/z-app-header-deprecated.js +255 -0
- package/dist/components/z-app-header-deprecated.js.map +1 -0
- package/dist/components/z-app-header.js +190 -60
- 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-file-upload.js +1 -1
- package/dist/components/z-file.js +1 -1
- 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-deprecated.d.ts +11 -0
- package/dist/components/z-menu-deprecated.js +144 -0
- package/dist/components/z-menu-deprecated.js.map +1 -0
- package/dist/components/z-menu-section-deprecated.d.ts +11 -0
- package/dist/components/z-menu-section-deprecated.js +84 -0
- package/dist/components/z-menu-section-deprecated.js.map +1 -0
- package/dist/components/z-menu-section.js +92 -4
- package/dist/components/z-menu-section.js.map +1 -1
- package/dist/components/z-menu.js +117 -6
- 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 +1 -1
- package/dist/components/z-tbody.js +1 -1
- package/dist/components/z-td.js +3 -5
- package/dist/components/z-td.js.map +1 -1
- package/dist/components/z-tfoot.js +1 -1
- package/dist/components/z-th.js +2 -2
- 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 +1 -1
- package/dist/components/z-visually-hidden.js +1 -1
- package/dist/esm/index-175661e6.js +18 -0
- package/dist/esm/{index-41ee4016.js.map → index-175661e6.js.map} +1 -1
- package/dist/esm/{index-aa07660e.js → index-18018bb5.js} +5 -5
- package/dist/esm/{index-aa07660e.js.map → index-18018bb5.js.map} +1 -1
- package/dist/esm/{index-497d9441.js → index-292b4dd2.js} +5 -6
- package/dist/esm/index-292b4dd2.js.map +1 -0
- package/dist/esm/{index-437f0b00.js → index-50bbb22e.js} +6 -6
- package/dist/esm/{index-437f0b00.js.map → index-50bbb22e.js.map} +1 -1
- package/dist/esm/{index-ab5f1eaa.js → index-a2130b6a.js} +55 -3
- package/dist/esm/index-a2130b6a.js.map +1 -0
- package/dist/esm/{index-ea49e441.js → index-a81f1558.js} +3 -3
- package/dist/esm/{index-ea49e441.js.map → index-a81f1558.js.map} +1 -1
- package/dist/esm/{index-cfde9cec.js → index-b556b384.js} +3 -3
- package/dist/esm/{index-cfde9cec.js.map → index-b556b384.js.map} +1 -1
- package/dist/esm/{index-a7f69d42.js → index-b7dbacb4.js} +3 -1
- package/dist/esm/index-b7dbacb4.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-f7da2c5f.js → utils-54e02183.js} +2 -2
- package/dist/esm/{utils-f7da2c5f.js.map → utils-54e02183.js.map} +1 -1
- package/dist/esm/{utils-0ce33738.js → utils-8ade9e2d.js} +2 -2
- package/dist/esm/{utils-0ce33738.js.map → utils-8ade9e2d.js.map} +1 -1
- package/dist/esm/web-components-library.js +3 -3
- package/dist/esm/z-accordion.entry.js +3 -3
- package/dist/esm/z-alert.entry.js +2 -2
- package/dist/esm/z-anchor-navigation.entry.js +3 -3
- package/dist/esm/z-app-header-deprecated.entry.js +154 -0
- package/dist/esm/z-app-header-deprecated.entry.js.map +1 -0
- package/dist/esm/z-app-header_12.entry.js +197 -67
- package/dist/esm/z-app-header_12.entry.js.map +1 -1
- package/dist/esm/z-aria-alert.entry.js +3 -3
- package/dist/esm/z-avatar.entry.js +4 -4
- package/dist/esm/z-book-card.entry.js +4 -4
- package/dist/esm/z-breadcrumb.entry.js +5 -5
- package/dist/esm/z-button-sort.entry.js +2 -2
- package/dist/esm/z-card.entry.js +2 -2
- package/dist/esm/z-carousel.entry.js +2 -2
- package/dist/esm/z-chip.entry.js +4 -4
- package/dist/esm/z-combobox.entry.js +4 -4
- package/dist/esm/z-cover-hero.entry.js +4 -4
- package/dist/esm/z-date-picker.entry.js +3 -3
- package/dist/esm/z-dragdrop-area_2.entry.js +8 -8
- package/dist/esm/z-file-upload.entry.js +4 -4
- package/dist/esm/z-file.entry.js +3 -3
- package/dist/esm/z-ghost-loading.entry.js +2 -2
- package/dist/esm/z-info-box.entry.js +2 -2
- package/dist/esm/z-info-reveal.entry.js +3 -3
- package/dist/esm/z-logo.entry.js +2 -2
- package/dist/esm/z-menu-deprecated.entry.js +111 -0
- package/dist/esm/z-menu-deprecated.entry.js.map +1 -0
- package/dist/esm/z-menu-section-deprecated.entry.js +56 -0
- package/dist/esm/z-menu-section-deprecated.entry.js.map +1 -0
- package/dist/esm/z-menu-section.entry.js +92 -4
- package/dist/esm/z-menu-section.entry.js.map +1 -1
- package/dist/esm/z-menu.entry.js +117 -6
- package/dist/esm/z-menu.entry.js.map +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +3 -3
- package/dist/esm/z-myz-card-dictionary.entry.js +3 -3
- package/dist/esm/z-myz-card-footer-sections.entry.js +2 -2
- package/dist/esm/z-myz-card-footer.entry.js +3 -3
- package/dist/esm/z-myz-card-icon.entry.js +2 -2
- package/dist/esm/z-myz-card-info.entry.js +4 -4
- package/dist/esm/z-myz-card-list.entry.js +2 -2
- package/dist/esm/z-myz-card_4.entry.js +6 -6
- package/dist/esm/z-myz-list-item.entry.js +4 -4
- package/dist/esm/z-myz-list.entry.js +2 -2
- package/dist/esm/z-navigation-tabs.entry.js +4 -4
- package/dist/esm/z-notification.entry.js +2 -2
- package/dist/esm/z-otp.entry.js +4 -4
- package/dist/esm/z-pagination.entry.js +2 -2
- package/dist/esm/z-panel-elem.entry.js +3 -3
- package/dist/esm/z-popover.entry.js +3 -3
- package/dist/esm/z-range-picker.entry.js +3 -3
- package/dist/esm/z-section-title.entry.js +3 -3
- package/dist/esm/z-select.entry.js +4 -4
- package/dist/esm/z-skip-to-content.entry.js +4 -4
- package/dist/esm/z-slideshow.entry.js +3 -3
- package/dist/esm/z-stepper-item.entry.js +2 -2
- package/dist/esm/z-stepper.entry.js +2 -2
- package/dist/esm/z-table.entry.js +10 -10
- package/dist/esm/z-tbody.entry.js +2 -2
- package/dist/esm/z-td.entry.js +3 -3
- package/dist/esm/z-tfoot.entry.js +2 -2
- package/dist/esm/z-th.entry.js +3 -3
- package/dist/esm/z-thead.entry.js +2 -2
- package/dist/esm/z-toast-notification-list.entry.js +3 -3
- package/dist/esm/z-toast-notification.entry.js +3 -3
- package/dist/esm/z-toggle-button.entry.js +3 -3
- package/dist/esm/z-toggle-switch.entry.js +6 -6
- package/dist/esm/z-tooltip.entry.js +3 -3
- package/dist/esm/z-tr.entry.js +6 -6
- package/dist/esm/z-visually-hidden.entry.js +2 -2
- package/dist/types/beans/index.d.ts +3 -1
- package/dist/types/components/deprecated/z-app-header-deprecated/index.d.ts +149 -0
- package/dist/types/components/deprecated/z-app-header-deprecated/index.stories.d.ts +118 -0
- package/dist/types/components/deprecated/z-menu-deprecated/index.d.ts +61 -0
- package/dist/types/components/deprecated/z-menu-deprecated/index.stories.d.ts +27 -0
- package/dist/types/components/deprecated/z-menu-section-deprecated/index.d.ts +31 -0
- package/dist/types/components/deprecated/z-menu-section-deprecated/index.stories.d.ts +16 -0
- package/dist/types/components/table/cells/z-td/index.d.ts +1 -5
- package/dist/types/components/z-app-header/index.d.ts +33 -76
- package/dist/types/components/z-app-header/index.stories.d.ts +20 -40
- package/dist/types/components/z-menu/index.d.ts +11 -0
- package/dist/types/components/z-menu-section/index.d.ts +9 -0
- package/dist/types/components.d.ts +268 -18
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-5e0acf57.entry.js → p-054484d4.entry.js} +2 -2
- package/dist/web-components-library/{p-bd75bef4.entry.js → p-05e9ae1e.entry.js} +2 -2
- package/dist/web-components-library/{p-6c5a8061.entry.js → p-12d62027.entry.js} +2 -2
- package/{www/build/p-726e1059.entry.js → dist/web-components-library/p-18690383.entry.js} +2 -2
- package/dist/web-components-library/{p-a36045c2.entry.js → p-19f8c3d2.entry.js} +2 -2
- package/dist/web-components-library/p-1edbac5f.entry.js +2 -0
- package/dist/web-components-library/{p-9ddfcfd4.entry.js → p-21b85c7f.entry.js} +2 -2
- package/dist/web-components-library/{p-f7180c65.entry.js → p-2672e36f.entry.js} +2 -2
- package/{www/build/p-4a2b4ad1.entry.js → dist/web-components-library/p-28928bb6.entry.js} +2 -2
- package/dist/web-components-library/{p-a0231723.entry.js → p-2a7e4988.entry.js} +2 -2
- package/dist/web-components-library/{p-66d70fb4.js → p-2c184714.js} +2 -2
- package/dist/web-components-library/p-304eeab0.js +2 -0
- package/dist/web-components-library/{p-09897132.entry.js → p-324ef970.entry.js} +2 -2
- package/{www/build/p-90b4d340.entry.js → dist/web-components-library/p-33eea921.entry.js} +2 -2
- package/dist/web-components-library/p-385bf4ca.entry.js +2 -0
- package/dist/web-components-library/{p-411d929f.entry.js → p-3b266de4.entry.js} +2 -2
- package/dist/web-components-library/{p-2ed68ac5.entry.js → p-4552744b.entry.js} +2 -2
- package/dist/web-components-library/{p-ebdfd7e5.entry.js → p-49e4ce84.entry.js} +2 -2
- package/dist/web-components-library/p-57eee056.entry.js +2 -0
- package/dist/web-components-library/{p-e2997191.entry.js.map → p-57eee056.entry.js.map} +1 -1
- package/{www/build/p-1efacf4c.entry.js → dist/web-components-library/p-5a5481be.entry.js} +2 -2
- package/dist/web-components-library/p-6037cdf3.js +2 -0
- package/{www/build/p-3de034cf.js.map → dist/web-components-library/p-6037cdf3.js.map} +1 -1
- package/{www/build/p-65df3290.entry.js → dist/web-components-library/p-609c11d6.entry.js} +2 -2
- package/dist/web-components-library/p-6319b5e2.entry.js +2 -0
- package/{www/build/p-467d8a16.entry.js → dist/web-components-library/p-63e970ee.entry.js} +2 -2
- package/{www/build/p-7693ae18.entry.js → dist/web-components-library/p-6586441a.entry.js} +3 -3
- package/dist/web-components-library/p-68822fbc.entry.js +2 -0
- package/dist/web-components-library/{p-493c652a.entry.js → p-6a664748.entry.js} +2 -2
- package/dist/web-components-library/p-6b2cd695.entry.js +2 -0
- package/dist/web-components-library/p-6f4dd02b.entry.js +2 -0
- package/dist/web-components-library/{p-5e45636a.entry.js.map → p-6f4dd02b.entry.js.map} +1 -1
- package/dist/web-components-library/p-74a65c6f.entry.js +2 -0
- package/{www/build/p-dde9f76d.entry.js → dist/web-components-library/p-77d8ad7e.entry.js} +2 -2
- package/{www/build/p-2190352b.js → dist/web-components-library/p-78e52a02.js} +2 -2
- package/dist/web-components-library/p-7d827c11.js +2 -0
- package/dist/web-components-library/{p-5bbb5599.entry.js → p-83350b5f.entry.js} +2 -2
- package/dist/web-components-library/p-83eff308.entry.js +2 -0
- package/dist/web-components-library/p-83eff308.entry.js.map +1 -0
- package/dist/web-components-library/{p-8df46096.entry.js → p-8499a29d.entry.js} +2 -2
- package/{www/build/p-1501c221.entry.js → dist/web-components-library/p-85f84e55.entry.js} +2 -2
- package/dist/web-components-library/{p-376208ab.entry.js → p-88e756cd.entry.js} +2 -2
- package/dist/web-components-library/p-89584f19.entry.js +2 -0
- package/dist/web-components-library/{p-b6e14c6b.entry.js.map → p-89584f19.entry.js.map} +1 -1
- package/dist/web-components-library/{p-7ce64686.entry.js → p-8a10fec5.entry.js} +2 -2
- package/dist/web-components-library/p-8a10fec5.entry.js.map +1 -0
- package/dist/web-components-library/{p-214bc293.entry.js → p-8b309268.entry.js} +2 -2
- package/dist/web-components-library/p-8c517cd7.entry.js +2 -0
- package/dist/web-components-library/p-8c517cd7.entry.js.map +1 -0
- package/dist/web-components-library/{p-0c2fdbe5.entry.js → p-8c9f7cef.entry.js} +2 -2
- package/dist/web-components-library/p-8d7323f7.entry.js +2 -0
- package/dist/web-components-library/p-8d7323f7.entry.js.map +1 -0
- package/dist/web-components-library/p-8de7ea6e.js +2 -0
- package/dist/web-components-library/{p-82dc715b.js.map → p-8de7ea6e.js.map} +1 -1
- package/dist/web-components-library/{p-f3272ec6.entry.js → p-91c04edc.entry.js} +2 -2
- package/dist/web-components-library/{p-80359658.entry.js → p-97b0c3b3.entry.js} +2 -2
- package/dist/web-components-library/{p-74e134e6.entry.js → p-99b791d1.entry.js} +2 -2
- package/dist/web-components-library/p-9f2a7cf0.js +2 -0
- package/dist/web-components-library/p-9f2a7cf0.js.map +1 -0
- package/{www/build/p-63337e8b.entry.js → dist/web-components-library/p-a4ada10b.entry.js} +2 -2
- package/dist/web-components-library/p-a5781264.entry.js +2 -0
- package/{www/build/p-14bf4619.entry.js → dist/web-components-library/p-ad76b8ff.entry.js} +2 -2
- package/dist/web-components-library/p-ae94e377.js +2 -0
- package/{www/build/p-40e4e3af.js.map → dist/web-components-library/p-ae94e377.js.map} +1 -1
- package/dist/web-components-library/{p-2c81acaa.entry.js → p-ae96bc09.entry.js} +2 -2
- package/dist/web-components-library/{p-09a9e2ca.entry.js → p-af856537.entry.js} +2 -2
- package/{www/build/p-7d5983f6.entry.js → dist/web-components-library/p-b84fa3b6.entry.js} +2 -2
- package/dist/web-components-library/{p-ff4aa84a.entry.js → p-be4878f2.entry.js} +2 -2
- package/dist/web-components-library/p-bf2a057d.entry.js +2 -0
- package/dist/web-components-library/{p-82b845c3.entry.js → p-c0bdbfb5.entry.js} +2 -2
- package/dist/web-components-library/p-c0bdbfb5.entry.js.map +1 -0
- package/dist/web-components-library/{p-464e5886.entry.js → p-c6b269ce.entry.js} +2 -2
- package/dist/web-components-library/{p-1064cb1a.entry.js → p-c90249e5.entry.js} +2 -2
- package/dist/web-components-library/p-cf2640b0.entry.js +2 -0
- package/dist/web-components-library/p-cf2640b0.entry.js.map +1 -0
- package/dist/web-components-library/p-cfa39bd3.js +3 -0
- package/dist/web-components-library/p-cfa39bd3.js.map +1 -0
- package/dist/web-components-library/p-d9e1d8c7.js +2 -0
- package/dist/web-components-library/{p-60dfcfaa.entry.js → p-df05727f.entry.js} +2 -2
- package/dist/web-components-library/p-e0323da3.entry.js +2 -0
- package/dist/web-components-library/{p-810433b1.entry.js → p-e1852de3.entry.js} +2 -2
- package/dist/web-components-library/{p-2010d544.entry.js → p-e366782c.entry.js} +2 -2
- package/dist/web-components-library/{p-f323cc0b.entry.js → p-e5dc0719.entry.js} +2 -2
- package/dist/web-components-library/{p-ea9aa3bb.entry.js → p-f21bc3a9.entry.js} +2 -2
- package/{www/build/p-a11e1d48.entry.js → dist/web-components-library/p-f74f9f3c.entry.js} +2 -2
- package/dist/web-components-library/p-f8d45aa4.entry.js +2 -0
- package/dist/web-components-library/{p-c3809d39.entry.js → p-fe87b081.entry.js} +2 -2
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/dist/web-components-library/web-components-library.esm.js.map +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +3 -0
- package/react/components.js +5 -2
- package/react/components.js.map +1 -1
- package/www/assets/orientamento.svg +14 -0
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-5e0acf57.entry.js → p-054484d4.entry.js} +2 -2
- package/www/build/{p-bd75bef4.entry.js → p-05e9ae1e.entry.js} +2 -2
- package/www/build/{p-6c5a8061.entry.js → p-12d62027.entry.js} +2 -2
- package/{dist/web-components-library/p-726e1059.entry.js → www/build/p-18690383.entry.js} +2 -2
- package/www/build/{p-a36045c2.entry.js → p-19f8c3d2.entry.js} +2 -2
- package/www/build/p-1edbac5f.entry.js +2 -0
- package/www/build/{p-9ddfcfd4.entry.js → p-21b85c7f.entry.js} +2 -2
- package/www/build/{p-f7180c65.entry.js → p-2672e36f.entry.js} +2 -2
- package/{dist/web-components-library/p-4a2b4ad1.entry.js → www/build/p-28928bb6.entry.js} +2 -2
- package/www/build/{p-a0231723.entry.js → p-2a7e4988.entry.js} +2 -2
- package/www/build/{p-66d70fb4.js → p-2c184714.js} +2 -2
- package/www/build/p-304eeab0.js +2 -0
- package/www/build/{p-09897132.entry.js → p-324ef970.entry.js} +2 -2
- package/{dist/web-components-library/p-90b4d340.entry.js → www/build/p-33eea921.entry.js} +2 -2
- package/www/build/p-385bf4ca.entry.js +2 -0
- package/www/build/{p-411d929f.entry.js → p-3b266de4.entry.js} +2 -2
- package/www/build/{p-2ed68ac5.entry.js → p-4552744b.entry.js} +2 -2
- package/www/build/{p-ebdfd7e5.entry.js → p-49e4ce84.entry.js} +2 -2
- package/www/build/p-57eee056.entry.js +2 -0
- package/www/build/{p-e2997191.entry.js.map → p-57eee056.entry.js.map} +1 -1
- package/{dist/web-components-library/p-1efacf4c.entry.js → www/build/p-5a5481be.entry.js} +2 -2
- package/www/build/p-6037cdf3.js +2 -0
- package/{dist/web-components-library/p-3de034cf.js.map → www/build/p-6037cdf3.js.map} +1 -1
- package/{dist/web-components-library/p-65df3290.entry.js → www/build/p-609c11d6.entry.js} +2 -2
- package/www/build/p-6319b5e2.entry.js +2 -0
- package/{dist/web-components-library/p-467d8a16.entry.js → www/build/p-63e970ee.entry.js} +2 -2
- package/{dist/web-components-library/p-7693ae18.entry.js → www/build/p-6586441a.entry.js} +3 -3
- package/www/build/p-68822fbc.entry.js +2 -0
- package/www/build/{p-493c652a.entry.js → p-6a664748.entry.js} +2 -2
- package/www/build/p-6b2cd695.entry.js +2 -0
- package/www/build/p-6f4dd02b.entry.js +2 -0
- package/www/build/{p-5e45636a.entry.js.map → p-6f4dd02b.entry.js.map} +1 -1
- package/www/build/p-74a65c6f.entry.js +2 -0
- package/www/build/p-774b449d.js +2 -0
- package/{dist/web-components-library/p-dde9f76d.entry.js → www/build/p-77d8ad7e.entry.js} +2 -2
- package/{dist/web-components-library/p-2190352b.js → www/build/p-78e52a02.js} +2 -2
- package/www/build/p-7d827c11.js +2 -0
- package/www/build/{p-5bbb5599.entry.js → p-83350b5f.entry.js} +2 -2
- package/www/build/p-83eff308.entry.js +2 -0
- package/www/build/p-83eff308.entry.js.map +1 -0
- package/www/build/{p-8df46096.entry.js → p-8499a29d.entry.js} +2 -2
- package/{dist/web-components-library/p-1501c221.entry.js → www/build/p-85f84e55.entry.js} +2 -2
- package/www/build/{p-376208ab.entry.js → p-88e756cd.entry.js} +2 -2
- package/www/build/p-89584f19.entry.js +2 -0
- package/www/build/{p-b6e14c6b.entry.js.map → p-89584f19.entry.js.map} +1 -1
- package/www/build/{p-7ce64686.entry.js → p-8a10fec5.entry.js} +2 -2
- package/www/build/p-8a10fec5.entry.js.map +1 -0
- package/www/build/{p-214bc293.entry.js → p-8b309268.entry.js} +2 -2
- package/www/build/p-8c517cd7.entry.js +2 -0
- package/www/build/p-8c517cd7.entry.js.map +1 -0
- package/www/build/{p-0c2fdbe5.entry.js → p-8c9f7cef.entry.js} +2 -2
- package/www/build/p-8d7323f7.entry.js +2 -0
- package/www/build/p-8d7323f7.entry.js.map +1 -0
- package/www/build/p-8de7ea6e.js +2 -0
- package/www/build/{p-82dc715b.js.map → p-8de7ea6e.js.map} +1 -1
- package/www/build/{p-f3272ec6.entry.js → p-91c04edc.entry.js} +2 -2
- package/www/build/{p-80359658.entry.js → p-97b0c3b3.entry.js} +2 -2
- package/www/build/{p-74e134e6.entry.js → p-99b791d1.entry.js} +2 -2
- package/www/build/p-9f2a7cf0.js +2 -0
- package/www/build/p-9f2a7cf0.js.map +1 -0
- package/{dist/web-components-library/p-63337e8b.entry.js → www/build/p-a4ada10b.entry.js} +2 -2
- package/www/build/p-a5781264.entry.js +2 -0
- package/{dist/web-components-library/p-14bf4619.entry.js → www/build/p-ad76b8ff.entry.js} +2 -2
- package/www/build/p-ae94e377.js +2 -0
- package/{dist/web-components-library/p-40e4e3af.js.map → www/build/p-ae94e377.js.map} +1 -1
- package/www/build/{p-2c81acaa.entry.js → p-ae96bc09.entry.js} +2 -2
- package/www/build/{p-09a9e2ca.entry.js → p-af856537.entry.js} +2 -2
- package/{dist/web-components-library/p-7d5983f6.entry.js → www/build/p-b84fa3b6.entry.js} +2 -2
- package/www/build/{p-ff4aa84a.entry.js → p-be4878f2.entry.js} +2 -2
- package/www/build/p-bf2a057d.entry.js +2 -0
- package/www/build/{p-82b845c3.entry.js → p-c0bdbfb5.entry.js} +2 -2
- package/www/build/p-c0bdbfb5.entry.js.map +1 -0
- package/www/build/{p-464e5886.entry.js → p-c6b269ce.entry.js} +2 -2
- package/www/build/{p-1064cb1a.entry.js → p-c90249e5.entry.js} +2 -2
- package/www/build/p-cf2640b0.entry.js +2 -0
- package/www/build/p-cf2640b0.entry.js.map +1 -0
- package/www/build/p-cfa39bd3.js +3 -0
- package/www/build/p-cfa39bd3.js.map +1 -0
- package/www/build/p-d9e1d8c7.js +2 -0
- package/www/build/{p-60dfcfaa.entry.js → p-df05727f.entry.js} +2 -2
- package/www/build/p-e0323da3.entry.js +2 -0
- package/www/build/{p-810433b1.entry.js → p-e1852de3.entry.js} +2 -2
- package/www/build/{p-2010d544.entry.js → p-e366782c.entry.js} +2 -2
- package/www/build/{p-f323cc0b.entry.js → p-e5dc0719.entry.js} +2 -2
- package/www/build/{p-ea9aa3bb.entry.js → p-f21bc3a9.entry.js} +2 -2
- package/{dist/web-components-library/p-a11e1d48.entry.js → www/build/p-f74f9f3c.entry.js} +2 -2
- package/www/build/p-f8d45aa4.entry.js +2 -0
- package/www/build/{p-c3809d39.entry.js → p-fe87b081.entry.js} +2 -2
- 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-5dc4a8de.js.map +0 -1
- package/dist/cjs/index-a83e999c.js.map +0 -1
- package/dist/cjs/index-e3835c94.js.map +0 -1
- package/dist/esm/index-41ee4016.js +0 -18
- package/dist/esm/index-497d9441.js.map +0 -1
- package/dist/esm/index-a7f69d42.js.map +0 -1
- package/dist/esm/index-ab5f1eaa.js.map +0 -1
- package/dist/web-components-library/p-3de034cf.js +0 -2
- package/dist/web-components-library/p-40e4e3af.js +0 -2
- package/dist/web-components-library/p-4b27ccf0.entry.js +0 -2
- package/dist/web-components-library/p-4d1a8ee8.entry.js +0 -2
- package/dist/web-components-library/p-4d1a8ee8.entry.js.map +0 -1
- package/dist/web-components-library/p-5214f770.entry.js +0 -2
- package/dist/web-components-library/p-550b4473.entry.js +0 -2
- package/dist/web-components-library/p-5e45636a.entry.js +0 -2
- package/dist/web-components-library/p-5e734fd3.entry.js +0 -2
- package/dist/web-components-library/p-6f5b7f16.js +0 -2
- package/dist/web-components-library/p-6f5b7f16.js.map +0 -1
- package/dist/web-components-library/p-737293b2.js +0 -2
- package/dist/web-components-library/p-79766609.entry.js +0 -2
- package/dist/web-components-library/p-7cba8558.entry.js +0 -2
- package/dist/web-components-library/p-7ce64686.entry.js.map +0 -1
- package/dist/web-components-library/p-82b845c3.entry.js.map +0 -1
- package/dist/web-components-library/p-82dc715b.js +0 -2
- package/dist/web-components-library/p-93d39e70.entry.js +0 -2
- package/dist/web-components-library/p-b6e14c6b.entry.js +0 -2
- package/dist/web-components-library/p-b9078348.js +0 -2
- package/dist/web-components-library/p-cc3c02fe.js +0 -3
- package/dist/web-components-library/p-cc3c02fe.js.map +0 -1
- package/dist/web-components-library/p-e2997191.entry.js +0 -2
- package/dist/web-components-library/p-ee290d4c.entry.js +0 -2
- package/dist/web-components-library/p-f978d22d.entry.js +0 -2
- package/dist/web-components-library/p-fdd176e2.entry.js +0 -2
- package/dist/web-components-library/p-feca4075.js +0 -2
- package/www/build/p-3de034cf.js +0 -2
- package/www/build/p-40e4e3af.js +0 -2
- package/www/build/p-4b27ccf0.entry.js +0 -2
- package/www/build/p-4d1a8ee8.entry.js +0 -2
- package/www/build/p-4d1a8ee8.entry.js.map +0 -1
- package/www/build/p-5214f770.entry.js +0 -2
- package/www/build/p-550b4473.entry.js +0 -2
- package/www/build/p-5e45636a.entry.js +0 -2
- package/www/build/p-5e734fd3.entry.js +0 -2
- package/www/build/p-6f5b7f16.js +0 -2
- package/www/build/p-6f5b7f16.js.map +0 -1
- package/www/build/p-737293b2.js +0 -2
- package/www/build/p-79766609.entry.js +0 -2
- package/www/build/p-7cba8558.entry.js +0 -2
- package/www/build/p-7ce64686.entry.js.map +0 -1
- package/www/build/p-82b845c3.entry.js.map +0 -1
- package/www/build/p-82dc715b.js +0 -2
- package/www/build/p-93d39e70.entry.js +0 -2
- package/www/build/p-9bd47256.js +0 -2
- package/www/build/p-b6e14c6b.entry.js +0 -2
- package/www/build/p-b9078348.js +0 -2
- package/www/build/p-cc3c02fe.js +0 -3
- package/www/build/p-cc3c02fe.js.map +0 -1
- package/www/build/p-e2997191.entry.js +0 -2
- package/www/build/p-ee290d4c.entry.js +0 -2
- package/www/build/p-f978d22d.entry.js +0 -2
- package/www/build/p-fdd176e2.entry.js +0 -2
- package/www/build/p-feca4075.js +0 -2
- /package/dist/web-components-library/{p-5e0acf57.entry.js.map → p-054484d4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-bd75bef4.entry.js.map → p-05e9ae1e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6c5a8061.entry.js.map → p-12d62027.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-726e1059.entry.js.map → p-18690383.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a36045c2.entry.js.map → p-19f8c3d2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-4b27ccf0.entry.js.map → p-1edbac5f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9ddfcfd4.entry.js.map → p-21b85c7f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f7180c65.entry.js.map → p-2672e36f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-4a2b4ad1.entry.js.map → p-28928bb6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a0231723.entry.js.map → p-2a7e4988.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-66d70fb4.js.map → p-2c184714.js.map} +0 -0
- /package/dist/web-components-library/{p-737293b2.js.map → p-304eeab0.js.map} +0 -0
- /package/dist/web-components-library/{p-09897132.entry.js.map → p-324ef970.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-90b4d340.entry.js.map → p-33eea921.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7cba8558.entry.js.map → p-385bf4ca.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-411d929f.entry.js.map → p-3b266de4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2ed68ac5.entry.js.map → p-4552744b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ebdfd7e5.entry.js.map → p-49e4ce84.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-1efacf4c.entry.js.map → p-5a5481be.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-65df3290.entry.js.map → p-609c11d6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ee290d4c.entry.js.map → p-6319b5e2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-467d8a16.entry.js.map → p-63e970ee.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7693ae18.entry.js.map → p-6586441a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-5214f770.entry.js.map → p-68822fbc.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-493c652a.entry.js.map → p-6a664748.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-93d39e70.entry.js.map → p-6b2cd695.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-5e734fd3.entry.js.map → p-74a65c6f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-dde9f76d.entry.js.map → p-77d8ad7e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2190352b.js.map → p-78e52a02.js.map} +0 -0
- /package/dist/web-components-library/{p-feca4075.js.map → p-7d827c11.js.map} +0 -0
- /package/dist/web-components-library/{p-5bbb5599.entry.js.map → p-83350b5f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8df46096.entry.js.map → p-8499a29d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-1501c221.entry.js.map → p-85f84e55.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-376208ab.entry.js.map → p-88e756cd.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-214bc293.entry.js.map → p-8b309268.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0c2fdbe5.entry.js.map → p-8c9f7cef.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f3272ec6.entry.js.map → p-91c04edc.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-80359658.entry.js.map → p-97b0c3b3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-74e134e6.entry.js.map → p-99b791d1.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-63337e8b.entry.js.map → p-a4ada10b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-550b4473.entry.js.map → p-a5781264.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-14bf4619.entry.js.map → p-ad76b8ff.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2c81acaa.entry.js.map → p-ae96bc09.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-09a9e2ca.entry.js.map → p-af856537.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7d5983f6.entry.js.map → p-b84fa3b6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ff4aa84a.entry.js.map → p-be4878f2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-79766609.entry.js.map → p-bf2a057d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-464e5886.entry.js.map → p-c6b269ce.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-1064cb1a.entry.js.map → p-c90249e5.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b9078348.js.map → p-d9e1d8c7.js.map} +0 -0
- /package/dist/web-components-library/{p-60dfcfaa.entry.js.map → p-df05727f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f978d22d.entry.js.map → p-e0323da3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-810433b1.entry.js.map → p-e1852de3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2010d544.entry.js.map → p-e366782c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f323cc0b.entry.js.map → p-e5dc0719.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ea9aa3bb.entry.js.map → p-f21bc3a9.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a11e1d48.entry.js.map → p-f74f9f3c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fdd176e2.entry.js.map → p-f8d45aa4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c3809d39.entry.js.map → p-fe87b081.entry.js.map} +0 -0
- /package/www/build/{p-5e0acf57.entry.js.map → p-054484d4.entry.js.map} +0 -0
- /package/www/build/{p-bd75bef4.entry.js.map → p-05e9ae1e.entry.js.map} +0 -0
- /package/www/build/{p-6c5a8061.entry.js.map → p-12d62027.entry.js.map} +0 -0
- /package/www/build/{p-726e1059.entry.js.map → p-18690383.entry.js.map} +0 -0
- /package/www/build/{p-a36045c2.entry.js.map → p-19f8c3d2.entry.js.map} +0 -0
- /package/www/build/{p-4b27ccf0.entry.js.map → p-1edbac5f.entry.js.map} +0 -0
- /package/www/build/{p-9ddfcfd4.entry.js.map → p-21b85c7f.entry.js.map} +0 -0
- /package/www/build/{p-f7180c65.entry.js.map → p-2672e36f.entry.js.map} +0 -0
- /package/www/build/{p-4a2b4ad1.entry.js.map → p-28928bb6.entry.js.map} +0 -0
- /package/www/build/{p-a0231723.entry.js.map → p-2a7e4988.entry.js.map} +0 -0
- /package/www/build/{p-66d70fb4.js.map → p-2c184714.js.map} +0 -0
- /package/www/build/{p-737293b2.js.map → p-304eeab0.js.map} +0 -0
- /package/www/build/{p-09897132.entry.js.map → p-324ef970.entry.js.map} +0 -0
- /package/www/build/{p-90b4d340.entry.js.map → p-33eea921.entry.js.map} +0 -0
- /package/www/build/{p-7cba8558.entry.js.map → p-385bf4ca.entry.js.map} +0 -0
- /package/www/build/{p-411d929f.entry.js.map → p-3b266de4.entry.js.map} +0 -0
- /package/www/build/{p-2ed68ac5.entry.js.map → p-4552744b.entry.js.map} +0 -0
- /package/www/build/{p-ebdfd7e5.entry.js.map → p-49e4ce84.entry.js.map} +0 -0
- /package/www/build/{p-1efacf4c.entry.js.map → p-5a5481be.entry.js.map} +0 -0
- /package/www/build/{p-65df3290.entry.js.map → p-609c11d6.entry.js.map} +0 -0
- /package/www/build/{p-ee290d4c.entry.js.map → p-6319b5e2.entry.js.map} +0 -0
- /package/www/build/{p-467d8a16.entry.js.map → p-63e970ee.entry.js.map} +0 -0
- /package/www/build/{p-7693ae18.entry.js.map → p-6586441a.entry.js.map} +0 -0
- /package/www/build/{p-5214f770.entry.js.map → p-68822fbc.entry.js.map} +0 -0
- /package/www/build/{p-493c652a.entry.js.map → p-6a664748.entry.js.map} +0 -0
- /package/www/build/{p-93d39e70.entry.js.map → p-6b2cd695.entry.js.map} +0 -0
- /package/www/build/{p-5e734fd3.entry.js.map → p-74a65c6f.entry.js.map} +0 -0
- /package/www/build/{p-dde9f76d.entry.js.map → p-77d8ad7e.entry.js.map} +0 -0
- /package/www/build/{p-2190352b.js.map → p-78e52a02.js.map} +0 -0
- /package/www/build/{p-feca4075.js.map → p-7d827c11.js.map} +0 -0
- /package/www/build/{p-5bbb5599.entry.js.map → p-83350b5f.entry.js.map} +0 -0
- /package/www/build/{p-8df46096.entry.js.map → p-8499a29d.entry.js.map} +0 -0
- /package/www/build/{p-1501c221.entry.js.map → p-85f84e55.entry.js.map} +0 -0
- /package/www/build/{p-376208ab.entry.js.map → p-88e756cd.entry.js.map} +0 -0
- /package/www/build/{p-214bc293.entry.js.map → p-8b309268.entry.js.map} +0 -0
- /package/www/build/{p-0c2fdbe5.entry.js.map → p-8c9f7cef.entry.js.map} +0 -0
- /package/www/build/{p-f3272ec6.entry.js.map → p-91c04edc.entry.js.map} +0 -0
- /package/www/build/{p-80359658.entry.js.map → p-97b0c3b3.entry.js.map} +0 -0
- /package/www/build/{p-74e134e6.entry.js.map → p-99b791d1.entry.js.map} +0 -0
- /package/www/build/{p-63337e8b.entry.js.map → p-a4ada10b.entry.js.map} +0 -0
- /package/www/build/{p-550b4473.entry.js.map → p-a5781264.entry.js.map} +0 -0
- /package/www/build/{p-14bf4619.entry.js.map → p-ad76b8ff.entry.js.map} +0 -0
- /package/www/build/{p-2c81acaa.entry.js.map → p-ae96bc09.entry.js.map} +0 -0
- /package/www/build/{p-09a9e2ca.entry.js.map → p-af856537.entry.js.map} +0 -0
- /package/www/build/{p-7d5983f6.entry.js.map → p-b84fa3b6.entry.js.map} +0 -0
- /package/www/build/{p-ff4aa84a.entry.js.map → p-be4878f2.entry.js.map} +0 -0
- /package/www/build/{p-79766609.entry.js.map → p-bf2a057d.entry.js.map} +0 -0
- /package/www/build/{p-464e5886.entry.js.map → p-c6b269ce.entry.js.map} +0 -0
- /package/www/build/{p-1064cb1a.entry.js.map → p-c90249e5.entry.js.map} +0 -0
- /package/www/build/{p-b9078348.js.map → p-d9e1d8c7.js.map} +0 -0
- /package/www/build/{p-60dfcfaa.entry.js.map → p-df05727f.entry.js.map} +0 -0
- /package/www/build/{p-f978d22d.entry.js.map → p-e0323da3.entry.js.map} +0 -0
- /package/www/build/{p-810433b1.entry.js.map → p-e1852de3.entry.js.map} +0 -0
- /package/www/build/{p-2010d544.entry.js.map → p-e366782c.entry.js.map} +0 -0
- /package/www/build/{p-f323cc0b.entry.js.map → p-e5dc0719.entry.js.map} +0 -0
- /package/www/build/{p-ea9aa3bb.entry.js.map → p-f21bc3a9.entry.js.map} +0 -0
- /package/www/build/{p-a11e1d48.entry.js.map → p-f74f9f3c.entry.js.map} +0 -0
- /package/www/build/{p-fdd176e2.entry.js.map → p-f8d45aa4.entry.js.map} +0 -0
- /package/www/build/{p-c3809d39.entry.js.map → p-fe87b081.entry.js.map} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { KeyboardCode } from "../../beans";
|
|
2
3
|
/**
|
|
3
4
|
* A component to create submenus inside the ZMenu.
|
|
4
5
|
* @slot - Label of the menu section.
|
|
@@ -6,10 +7,90 @@ import { Host, h } from "@stencil/core";
|
|
|
6
7
|
*/
|
|
7
8
|
export class ZMenuSection {
|
|
8
9
|
constructor() {
|
|
10
|
+
this.currentIndex = -1;
|
|
11
|
+
this.currentCanvasOpenStatus = false;
|
|
9
12
|
this.active = undefined;
|
|
10
13
|
this.open = undefined;
|
|
11
14
|
this.hasContent = undefined;
|
|
12
15
|
}
|
|
16
|
+
canvasOpenStatusChanged(e) {
|
|
17
|
+
this.currentCanvasOpenStatus = e.detail;
|
|
18
|
+
}
|
|
19
|
+
handleKeyDown(e) {
|
|
20
|
+
if (e.code === KeyboardCode.ENTER) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (this.open && !this.currentCanvasOpenStatus) {
|
|
24
|
+
this.handleNavigationSideArrow(e);
|
|
25
|
+
}
|
|
26
|
+
this.handleArrowsNav(e);
|
|
27
|
+
}
|
|
28
|
+
handleNavigationSideArrow(e) {
|
|
29
|
+
if (e.code !== KeyboardCode.ARROW_RIGHT && e.code !== KeyboardCode.ARROW_LEFT) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if (e.code === KeyboardCode.ARROW_RIGHT) {
|
|
33
|
+
const nextElement = this.hostElement.parentElement.nextElementSibling;
|
|
34
|
+
if (nextElement) {
|
|
35
|
+
const menuButton = nextElement.shadowRoot.querySelector(".menu-label");
|
|
36
|
+
console.log(this.hostElement.parentElement);
|
|
37
|
+
menuButton.focus();
|
|
38
|
+
}
|
|
39
|
+
this.open = false;
|
|
40
|
+
nextElement.setAttribute("open", "true");
|
|
41
|
+
}
|
|
42
|
+
else if (e.code === KeyboardCode.ARROW_LEFT) {
|
|
43
|
+
const prevElement = this.hostElement.parentElement.previousElementSibling;
|
|
44
|
+
if (prevElement) {
|
|
45
|
+
const menuButton = prevElement.shadowRoot.querySelector(".menu-label");
|
|
46
|
+
menuButton.focus();
|
|
47
|
+
}
|
|
48
|
+
prevElement.setAttribute("open", "true");
|
|
49
|
+
this.open = false;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
handleArrowsNav(e) {
|
|
53
|
+
const menuItems = Array.from(this.hostElement.querySelectorAll('[slot="section"]'));
|
|
54
|
+
if (this.open) {
|
|
55
|
+
e.preventDefault();
|
|
56
|
+
e.stopPropagation();
|
|
57
|
+
if (e.code === KeyboardCode.ARROW_DOWN || e.code === KeyboardCode.ARROW_UP) {
|
|
58
|
+
let nextFocusableItem;
|
|
59
|
+
// INFO: reset focus on all menu items
|
|
60
|
+
menuItems.forEach((item) => item.setAttribute("tabindex", "-1"));
|
|
61
|
+
if (e.code === KeyboardCode.ARROW_DOWN) {
|
|
62
|
+
nextFocusableItem = this.getNextItem(menuItems, 1);
|
|
63
|
+
}
|
|
64
|
+
else if (e.code === KeyboardCode.ARROW_UP) {
|
|
65
|
+
nextFocusableItem = this.getNextItem(menuItems, -1);
|
|
66
|
+
}
|
|
67
|
+
if (nextFocusableItem) {
|
|
68
|
+
nextFocusableItem.setAttribute("tabindex", "0");
|
|
69
|
+
nextFocusableItem.focus();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
else if (e.code === KeyboardCode.ESC) {
|
|
73
|
+
this.focusToParentAndCloseMenu();
|
|
74
|
+
}
|
|
75
|
+
else if (e.shiftKey && e.code === KeyboardCode.TAB) {
|
|
76
|
+
this.focusToParentAndCloseMenu();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
getNextItem(menuItems, direction) {
|
|
81
|
+
if (this.currentIndex === -1) {
|
|
82
|
+
this.currentIndex = direction === 1 ? 0 : menuItems.length - 1;
|
|
83
|
+
return menuItems[this.currentIndex];
|
|
84
|
+
}
|
|
85
|
+
this.currentIndex = (this.currentIndex + direction + menuItems.length) % menuItems.length;
|
|
86
|
+
return menuItems[this.currentIndex];
|
|
87
|
+
}
|
|
88
|
+
focusToParentAndCloseMenu() {
|
|
89
|
+
const menuButton = this.hostElement.shadowRoot.querySelector("button");
|
|
90
|
+
menuButton.focus();
|
|
91
|
+
this.currentIndex = -1;
|
|
92
|
+
this.open = false;
|
|
93
|
+
}
|
|
13
94
|
toggle() {
|
|
14
95
|
if (!this.hasContent) {
|
|
15
96
|
return;
|
|
@@ -29,7 +110,7 @@ export class ZMenuSection {
|
|
|
29
110
|
* Check if some content slot is set.
|
|
30
111
|
*/
|
|
31
112
|
checkContent() {
|
|
32
|
-
this.hasContent = this.hostElement.querySelectorAll('[slot="
|
|
113
|
+
this.hasContent = this.hostElement.querySelectorAll('[slot="section"]').length > 0;
|
|
33
114
|
}
|
|
34
115
|
/**
|
|
35
116
|
* Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.
|
|
@@ -39,11 +120,18 @@ export class ZMenuSection {
|
|
|
39
120
|
const labelElement = ev.target.assignedElements()[0];
|
|
40
121
|
labelElement.dataset.text = (labelElement === null || labelElement === void 0 ? void 0 : labelElement.innerText) || null;
|
|
41
122
|
}
|
|
123
|
+
focusFirstSectionItemOnKeyUp() {
|
|
124
|
+
const firstElement = this.hostElement.querySelectorAll('[slot="section"]')[0];
|
|
125
|
+
if (firstElement) {
|
|
126
|
+
firstElement.focus();
|
|
127
|
+
this.currentIndex = 0;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
42
130
|
componentWillLoad() {
|
|
43
131
|
this.checkContent();
|
|
44
132
|
}
|
|
45
133
|
render() {
|
|
46
|
-
return (h(Host, { key: '
|
|
134
|
+
return (h(Host, { key: '1370ec8c9379a204ed8bfb387ef53f6ad976ce0f', role: "menu", open: this.open }, h("button", { key: '4a474f4f47b9f72f3621a4c1f043f287ebf98d66', class: "label", "aria-pressed": this.open ? "true" : "false", onClick: this.toggle.bind(this), onKeyUp: this.focusFirstSectionItemOnKeyUp.bind(this) }, h("slot", { key: '1332d96212421fd936b1ee1e295c856219bfb1cc', onSlotchange: this.onLabelSlotChange.bind(this) }), this.hasContent && h("z-icon", { key: '04b94f8f22bd56d16f7cdb3f394024c5726435e5', name: this.open ? "chevron-up" : "chevron-down" })), this.open && (h("div", { key: '01353c9f9b57cce04361849e79c3264f5f106472', class: "items" }, h("slot", { key: '29379c69dff6189d4226246eb859dad6c67ca0ec', name: "section", onSlotchange: this.checkContent.bind(this) })))));
|
|
47
135
|
}
|
|
48
136
|
static get is() { return "z-menu-section"; }
|
|
49
137
|
static get encapsulation() { return "shadow"; }
|
|
@@ -120,6 +208,18 @@ export class ZMenuSection {
|
|
|
120
208
|
static get elementRef() { return "hostElement"; }
|
|
121
209
|
static get listeners() {
|
|
122
210
|
return [{
|
|
211
|
+
"name": "canvasOpenStatusChanged",
|
|
212
|
+
"method": "canvasOpenStatusChanged",
|
|
213
|
+
"target": "document",
|
|
214
|
+
"capture": false,
|
|
215
|
+
"passive": false
|
|
216
|
+
}, {
|
|
217
|
+
"name": "keydown",
|
|
218
|
+
"method": "handleKeyDown",
|
|
219
|
+
"target": undefined,
|
|
220
|
+
"capture": false,
|
|
221
|
+
"passive": false
|
|
222
|
+
}, {
|
|
123
223
|
"name": "click",
|
|
124
224
|
"method": "handleClick",
|
|
125
225
|
"target": "document",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/z-menu-section/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAEpG;;;;GAIG;AAMH,MAAM,OAAO,YAAY;;;;;;IAqBf,MAAM;QACZ,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACrB,OAAO;QACT,CAAC;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;IACtD,CAAC;IAED,wEAAwE;IAExE,WAAW,CAAC,EAAc;QACxB,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAc,CAAC,EAAE,CAAC;YAC/D,OAAO;QACT,CAAC;QAED,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QAClB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;IACrB,CAAC;IAED;;OAEG;IACK,YAAY;QAClB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IAClF,CAAC;IAED;;;OAGG;IACK,iBAAiB,CAAC,EAAS;QACjC,MAAM,YAAY,GAAI,EAAE,CAAC,MAA0B,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAgB,CAAC;QACzF,YAAY,CAAC,OAAO,CAAC,IAAI,GAAG,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,KAAI,IAAI,CAAC;IAC9D,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,IAAI,EAAC,MAAM,EACX,IAAI,EAAE,IAAI,CAAC,IAAI;YAEf,+DACE,KAAK,EAAC,OAAO,kBACC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAC1C,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;gBAE/B,6DAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAS;gBAC7D,IAAI,CAAC,UAAU,IAAI,+DAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,GAAI,CACxE;YACR,IAAI,CAAC,IAAI,IAAI,CACZ,4DAAK,KAAK,EAAC,OAAO;gBAChB,6DACE,IAAI,EAAC,MAAM,EACX,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,GACpC,CACJ,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, h} from \"@stencil/core\";\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() hostElement: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n @State()\n open: boolean;\n\n @State()\n hasContent: boolean;\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 toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\n this.open ? this.opened.emit() : this.closed.emit();\n }\n\n /** Close the list when a click is performed outside of this Element. */\n @Listen(\"click\", {target: \"document\"})\n handleClick(ev: MouseEvent): void {\n if (!this.open || this.hostElement.contains(ev.target as Node)) {\n return;\n }\n\n this.open = false;\n this.closed.emit();\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasContent = this.hostElement.querySelectorAll('[slot=\"item\"]').length > 0;\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?.innerText || null;\n }\n\n componentWillLoad(): void {\n this.checkContent();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host\n role=\"menu\"\n open={this.open}\n >\n <button\n class=\"label\"\n aria-pressed={this.open ? \"true\" : \"false\"}\n onClick={this.toggle.bind(this)}\n >\n <slot onSlotchange={this.onLabelSlotChange.bind(this)}></slot>\n {this.hasContent && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n {this.open && (\n <div class=\"items\">\n <slot\n name=\"item\"\n onSlotchange={this.checkContent.bind(this)}\n ></slot>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/z-menu-section/index.tsx"],"names":[],"mappings":"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","sourcesContent":["import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, 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() hostElement: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n @State()\n open: boolean;\n\n @State()\n hasContent: boolean;\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 currentIndex = -1;\n\n private currentCanvasOpenStatus = false;\n\n @Listen(\"canvasOpenStatusChanged\", {target: \"document\"})\n canvasOpenStatusChanged(e: CustomEvent): void {\n this.currentCanvasOpenStatus = e.detail;\n }\n\n @Listen(\"keydown\")\n handleKeyDown(e: KeyboardEvent): void {\n if (e.code === KeyboardCode.ENTER) {\n return;\n }\n\n if (this.open && !this.currentCanvasOpenStatus) {\n this.handleNavigationSideArrow(e);\n }\n\n this.handleArrowsNav(e);\n }\n\n private handleNavigationSideArrow(e: KeyboardEvent): void {\n if (e.code !== KeyboardCode.ARROW_RIGHT && e.code !== KeyboardCode.ARROW_LEFT) {\n return;\n }\n if (e.code === KeyboardCode.ARROW_RIGHT) {\n const nextElement = this.hostElement.parentElement.nextElementSibling;\n if (nextElement) {\n const menuButton = nextElement.shadowRoot.querySelector(\".menu-label\") as HTMLElement;\n console.log(this.hostElement.parentElement);\n menuButton.focus();\n }\n this.open = false;\n nextElement.setAttribute(\"open\", \"true\");\n } else if (e.code === KeyboardCode.ARROW_LEFT) {\n const prevElement = this.hostElement.parentElement.previousElementSibling;\n if (prevElement) {\n const menuButton = prevElement.shadowRoot.querySelector(\".menu-label\") as HTMLElement;\n menuButton.focus();\n }\n prevElement.setAttribute(\"open\", \"true\");\n this.open = false;\n }\n }\n\n private handleArrowsNav(e: KeyboardEvent): void {\n const menuItems = Array.from(this.hostElement.querySelectorAll('[slot=\"section\"]')) as HTMLElement[];\n if (this.open) {\n e.preventDefault();\n e.stopPropagation();\n if (e.code === KeyboardCode.ARROW_DOWN || e.code === KeyboardCode.ARROW_UP) {\n let nextFocusableItem: HTMLElement;\n // INFO: reset focus on all menu items\n menuItems.forEach((item: HTMLElement) => item.setAttribute(\"tabindex\", \"-1\"));\n\n if (e.code === KeyboardCode.ARROW_DOWN) {\n nextFocusableItem = this.getNextItem(menuItems, 1);\n } else if (e.code === KeyboardCode.ARROW_UP) {\n nextFocusableItem = this.getNextItem(menuItems, -1);\n }\n\n if (nextFocusableItem) {\n nextFocusableItem.setAttribute(\"tabindex\", \"0\");\n nextFocusableItem.focus();\n }\n } else if (e.code === KeyboardCode.ESC) {\n this.focusToParentAndCloseMenu();\n } else if (e.shiftKey && e.code === KeyboardCode.TAB) {\n this.focusToParentAndCloseMenu();\n }\n }\n }\n\n private getNextItem(menuItems: HTMLElement[], direction: number): HTMLElement {\n if (this.currentIndex === -1) {\n this.currentIndex = direction === 1 ? 0 : menuItems.length - 1;\n\n return menuItems[this.currentIndex];\n }\n\n this.currentIndex = (this.currentIndex + direction + menuItems.length) % menuItems.length;\n\n return menuItems[this.currentIndex];\n }\n\n private focusToParentAndCloseMenu(): void {\n const menuButton = this.hostElement.shadowRoot.querySelector(\"button\") as HTMLElement;\n menuButton.focus();\n this.currentIndex = -1;\n this.open = false;\n }\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\n this.open ? this.opened.emit() : this.closed.emit();\n }\n\n /** Close the list when a click is performed outside of this Element. */\n @Listen(\"click\", {target: \"document\"})\n handleClick(ev: MouseEvent): void {\n if (!this.open || this.hostElement.contains(ev.target as Node)) {\n return;\n }\n\n this.open = false;\n this.closed.emit();\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasContent = this.hostElement.querySelectorAll('[slot=\"section\"]').length > 0;\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?.innerText || null;\n }\n\n private focusFirstSectionItemOnKeyUp(): void {\n const firstElement = this.hostElement.querySelectorAll('[slot=\"section\"]')[0] as HTMLElement;\n if (firstElement) {\n firstElement.focus();\n this.currentIndex = 0;\n }\n }\n\n componentWillLoad(): void {\n this.checkContent();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host\n role=\"menu\"\n open={this.open}\n >\n <button\n class=\"label\"\n aria-pressed={this.open ? \"true\" : \"false\"}\n onClick={this.toggle.bind(this)}\n onKeyUp={this.focusFirstSectionItemOnKeyUp.bind(this)}\n >\n <slot onSlotchange={this.onLabelSlotChange.bind(this)}></slot>\n {this.hasContent && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n {this.open && (\n <div class=\"items\">\n <slot\n name=\"section\"\n onSlotchange={this.checkContent.bind(this)}\n ></slot>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
@@ -6,9 +6,9 @@ describe("Suite test ZMenuSection", () => {
|
|
|
6
6
|
components: [ZMenuSection],
|
|
7
7
|
html: `<z-menu-section>
|
|
8
8
|
<h3>Menu section label</h3>
|
|
9
|
-
<a href="#" slot="
|
|
10
|
-
<a href="#" slot="
|
|
11
|
-
<a href="#" slot="
|
|
9
|
+
<a href="#" slot="section">Item 1</a>
|
|
10
|
+
<a href="#" slot="section">Item 2</a>
|
|
11
|
+
<a href="#" slot="section">Item 3</a>
|
|
12
12
|
</z-menu-section>`,
|
|
13
13
|
});
|
|
14
14
|
expect(page.root).toEqualHtml(`
|
|
@@ -20,16 +20,16 @@ describe("Suite test ZMenuSection", () => {
|
|
|
20
20
|
</button>
|
|
21
21
|
</mock:shadow-root>
|
|
22
22
|
<h3>Menu section label</h3>
|
|
23
|
-
<a href="#" slot="
|
|
24
|
-
<a href="#" slot="
|
|
25
|
-
<a href="#" slot="
|
|
23
|
+
<a href="#" slot="section">Item 1</a>
|
|
24
|
+
<a href="#" slot="section">Item 2</a>
|
|
25
|
+
<a href="#" slot="section">Item 3</a>
|
|
26
26
|
</z-menu-section>`);
|
|
27
27
|
});
|
|
28
28
|
it("Test ZMenuSection toggle events", async () => {
|
|
29
29
|
const page = await newSpecPage({
|
|
30
30
|
components: [ZMenuSection],
|
|
31
31
|
html: `<z-menu-section>
|
|
32
|
-
<div slot="
|
|
32
|
+
<div slot="section">item</div>
|
|
33
33
|
</z-menu-section>`,
|
|
34
34
|
});
|
|
35
35
|
const menu = page.rootInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../src/components/z-menu-section/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAC;AAErC,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACvC,EAAE,CAAC,8BAA8B,EAAE,KAAK,IAAI,EAAE;QAC5C,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,YAAY,CAAC;YAC1B,IAAI,EAAE;;;;;wBAKY;SACnB,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;sBAYZ,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;QAC/C,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,YAAY,CAAC;YAC1B,IAAI,EAAE;;wBAEY;SACnB,CAAC,CAAC;QACH,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC;QAE/B,MAAM,cAAc,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QACjC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;QACpD,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAC5B,iCAAiC;QACjC,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,MAAM,CAAC,cAAc,CAAC,CAAC,gBAAgB,EAAE,CAAC;QAE1C,MAAM,cAAc,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QACjC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;QACpD,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAC5B,oDAAoD;QACpD,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,MAAM,CAAC,cAAc,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import {newSpecPage} from \"@stencil/core/testing\";\n\nimport {ZMenuSection} from \"./index\";\n\ndescribe(\"Suite test ZMenuSection\", () => {\n it(\"Test render ZMenu with items\", async () => {\n const page = await newSpecPage({\n components: [ZMenuSection],\n html: `<z-menu-section>\n <h3>Menu section label</h3>\n <a href=\"#\" slot=\"
|
|
1
|
+
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../src/components/z-menu-section/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAC;AAErC,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACvC,EAAE,CAAC,8BAA8B,EAAE,KAAK,IAAI,EAAE;QAC5C,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,YAAY,CAAC;YAC1B,IAAI,EAAE;;;;;wBAKY;SACnB,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;sBAYZ,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;QAC/C,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,YAAY,CAAC;YAC1B,IAAI,EAAE;;wBAEY;SACnB,CAAC,CAAC;QACH,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC;QAE/B,MAAM,cAAc,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QACjC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;QACpD,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAC5B,iCAAiC;QACjC,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,MAAM,CAAC,cAAc,CAAC,CAAC,gBAAgB,EAAE,CAAC;QAE1C,MAAM,cAAc,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QACjC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;QACpD,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAC5B,oDAAoD;QACpD,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,MAAM,CAAC,cAAc,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import {newSpecPage} from \"@stencil/core/testing\";\n\nimport {ZMenuSection} from \"./index\";\n\ndescribe(\"Suite test ZMenuSection\", () => {\n it(\"Test render ZMenu with items\", async () => {\n const page = await newSpecPage({\n components: [ZMenuSection],\n html: `<z-menu-section>\n <h3>Menu section label</h3>\n <a href=\"#\" slot=\"section\">Item 1</a>\n <a href=\"#\" slot=\"section\">Item 2</a>\n <a href=\"#\" slot=\"section\">Item 3</a>\n </z-menu-section>`,\n });\n\n expect(page.root).toEqualHtml(`\n <z-menu-section role=\"menu\">\n <mock:shadow-root>\n <button aria-pressed=\"false\" class=\"label\">\n <slot></slot>\n <z-icon name=\"chevron-down\"></z-icon>\n </button>\n </mock:shadow-root>\n <h3>Menu section label</h3>\n <a href=\"#\" slot=\"section\">Item 1</a>\n <a href=\"#\" slot=\"section\">Item 2</a>\n <a href=\"#\" slot=\"section\">Item 3</a>\n </z-menu-section>`);\n });\n\n it(\"Test ZMenuSection toggle events\", async () => {\n const page = await newSpecPage({\n components: [ZMenuSection],\n html: `<z-menu-section>\n <div slot=\"section\">item</div>\n </z-menu-section>`,\n });\n const menu = page.rootInstance;\n\n const openedCallback = jest.fn();\n page.doc.addEventListener(\"opened\", openedCallback);\n await page.waitForChanges();\n // call `toggle` to open the menu\n menu.toggle();\n expect(openedCallback).toHaveBeenCalled();\n\n const closedCallback = jest.fn();\n page.doc.addEventListener(\"closed\", closedCallback);\n await page.waitForChanges();\n // the menu is already open, this call will close it\n menu.toggle();\n expect(closedCallback).toHaveBeenCalled();\n });\n});\n"]}
|
|
@@ -14,17 +14,17 @@ export const WithItems = {
|
|
|
14
14
|
<h3>Label</h3>
|
|
15
15
|
<a
|
|
16
16
|
href=""
|
|
17
|
-
slot="
|
|
17
|
+
slot="section"
|
|
18
18
|
>Item 1</a
|
|
19
19
|
>
|
|
20
20
|
<a
|
|
21
21
|
href=""
|
|
22
|
-
slot="
|
|
22
|
+
slot="section"
|
|
23
23
|
>Item 2</a
|
|
24
24
|
>
|
|
25
25
|
<a
|
|
26
26
|
href=""
|
|
27
|
-
slot="
|
|
27
|
+
slot="seection"
|
|
28
28
|
active
|
|
29
29
|
>Item 3 - active</a
|
|
30
30
|
>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../src/components/z-menu-section/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,SAAS,CAAC;AAEjB,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,gBAAgB;IAC3B,IAAI,EAAE;QACJ,MAAM,EAAE,KAAK;KACd;CAC2B,CAAC;AAE/B,eAAe,SAAS,CAAC;AAIzB,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;8BACM,IAAI,CAAC,MAAM;;;;;;;;;;;;;;;;;;;GAmBtC;CACc,CAAC;AAElB,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;8BACM,IAAI,CAAC,MAAM;;;GAGtC;CACc,CAAC","sourcesContent":["import {Meta, StoryObj} from \"@storybook/web-components\";\nimport {html} from \"lit\";\nimport {type ZMenuSection} from \".\";\nimport \"./index\";\n\nconst StoryMeta = {\n title: \"ZMenu/ZMenuSection\",\n component: \"z-menu-section\",\n args: {\n active: false,\n },\n} satisfies Meta<ZMenuSection>;\n\nexport default StoryMeta;\n\ntype Story = StoryObj<ZMenuSection>;\n\nexport const WithItems = {\n render: (args) => html`\n <z-menu-section .active=${args.active}>\n <h3>Label</h3>\n <a\n href=\"\"\n slot=\"
|
|
1
|
+
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../src/components/z-menu-section/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,SAAS,CAAC;AAEjB,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,gBAAgB;IAC3B,IAAI,EAAE;QACJ,MAAM,EAAE,KAAK;KACd;CAC2B,CAAC;AAE/B,eAAe,SAAS,CAAC;AAIzB,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;8BACM,IAAI,CAAC,MAAM;;;;;;;;;;;;;;;;;;;GAmBtC;CACc,CAAC;AAElB,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;8BACM,IAAI,CAAC,MAAM;;;GAGtC;CACc,CAAC","sourcesContent":["import {Meta, StoryObj} from \"@storybook/web-components\";\nimport {html} from \"lit\";\nimport {type ZMenuSection} from \".\";\nimport \"./index\";\n\nconst StoryMeta = {\n title: \"ZMenu/ZMenuSection\",\n component: \"z-menu-section\",\n args: {\n active: false,\n },\n} satisfies Meta<ZMenuSection>;\n\nexport default StoryMeta;\n\ntype Story = StoryObj<ZMenuSection>;\n\nexport const WithItems = {\n render: (args) => html`\n <z-menu-section .active=${args.active}>\n <h3>Label</h3>\n <a\n href=\"\"\n slot=\"section\"\n >Item 1</a\n >\n <a\n href=\"\"\n slot=\"section\"\n >Item 2</a\n >\n <a\n href=\"\"\n slot=\"seection\"\n active\n >Item 3 - active</a\n >\n </z-menu-section>\n `,\n} satisfies Story;\n\nexport const WithoutItems = {\n render: (args) => html`\n <z-menu-section .active=${args.active}>\n <h3>Label</h3>\n </z-menu-section>\n `,\n} satisfies Story;\n"]}
|
|
@@ -101,7 +101,7 @@ when placed below the real text using `flex-direction: column`. */
|
|
|
101
101
|
padding-bottom: calc(var(--space-unit) * 1.5);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.items > ::slotted([slot="
|
|
104
|
+
.items > ::slotted([slot="section"]) {
|
|
105
105
|
display: inline-flex;
|
|
106
106
|
padding: calc(var(--space-unit) / 2);
|
|
107
107
|
margin: 0;
|
|
@@ -110,14 +110,14 @@ when placed below the real text using `flex-direction: column`. */
|
|
|
110
110
|
outline: none;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
.items > ::slotted([slot="
|
|
113
|
+
.items > ::slotted([slot="section"]:focus:focus-visible) {
|
|
114
114
|
box-shadow: var(--shadow-focus-primary);
|
|
115
115
|
color: var(--color-secondary01);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
.items > ::slotted([slot="
|
|
119
|
-
.items > ::slotted([slot="
|
|
120
|
-
.items > ::slotted([slot="
|
|
118
|
+
.items > ::slotted([slot="section"]:hover),
|
|
119
|
+
.items > ::slotted([slot="section"]:focus:focus-visible),
|
|
120
|
+
.items > ::slotted([slot="section"][active]) {
|
|
121
121
|
color: var(--color-secondary01);
|
|
122
122
|
font-weight: var(--font-bd);
|
|
123
123
|
}
|
|
@@ -111,16 +111,16 @@ export class ZModal {
|
|
|
111
111
|
e.preventDefault();
|
|
112
112
|
}
|
|
113
113
|
render() {
|
|
114
|
-
return (h("dialog", { key: '
|
|
114
|
+
return (h("dialog", { key: 'a1e93e72fa4aa80d94192e1fb18bca7a50ad0aa3', class: {
|
|
115
115
|
"modal-dialog": !this.scrollInside,
|
|
116
|
-
}, "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) }, h("div", { key: '
|
|
116
|
+
}, "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) }, h("div", { key: '5346f87a3812911b434a2b9b95691e86ecaeb853', class: {
|
|
117
117
|
"modal-container": true,
|
|
118
118
|
"modal-container-scroll-inside": this.scrollInside,
|
|
119
119
|
"modal-container-scroll-outside": !this.scrollInside,
|
|
120
|
-
}, id: this.modalid }, h("header", { key: '
|
|
120
|
+
}, id: this.modalid }, h("header", { key: 'ae7f3aa101e7a55276c4a07a58fd126da494ba83', onClick: this.emitModalHeaderActive.bind(this) }, h("div", { key: '6938cbb56171186773c6b2d14323bde7d2f40761' }, this.modaltitle && h("h1", { key: '0cc3ee46b3598ec91465c1f8668b399c0c32034f', id: "modal-title" }, this.modaltitle), this.closeButtonSlot()), this.modalsubtitle && (h("div", { key: '453e07da973d95eed5e66c4768c86cfe47cadbf3', class: "subtitle", id: "modal-subtitle" }, this.modalsubtitle))), h("div", { key: 'bb5a5facd7b854e172a4f0502f97a6fffc03552a', class: {
|
|
121
121
|
"modal-content-scroll-inside": this.scrollInside,
|
|
122
122
|
"modal-content-scroll-outside": !this.scrollInside,
|
|
123
|
-
}, id: "modal-content" }, h("slot", { key: '
|
|
123
|
+
}, id: "modal-content" }, h("slot", { key: '3c2b58be34c464e06065258e710853e716d415df', name: "modalContent" }))), h("div", { key: '2b0e3e016ba08aeb65307ead19d9ca2ca408a85d', class: {
|
|
124
124
|
"modal-background": true,
|
|
125
125
|
"modal-background-scroll-outside": !this.scrollInside,
|
|
126
126
|
}, "data-action": "modalBackground", "data-modal": this.modalid, onClick: () => {
|
|
@@ -204,10 +204,10 @@ export class ZNavigationTabs {
|
|
|
204
204
|
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
205
205
|
}
|
|
206
206
|
render() {
|
|
207
|
-
return (h(Host, { key: '
|
|
207
|
+
return (h(Host, { key: '16294d384c48cb2380178445630240fcc6f085cc', class: {
|
|
208
208
|
"interactive-2": this.size === NavigationTabsSize.SMALL,
|
|
209
209
|
"interactive-1": this.size !== NavigationTabsSize.SMALL,
|
|
210
|
-
}, scrollable: this.canNavigate }, h("button", { key: '
|
|
210
|
+
}, scrollable: this.canNavigate }, h("button", { key: '98eae832700569a7f2539aa51cee7c07ac2f3815', class: "navigation-button", onClick: this.navigateBackwards.bind(this), tabIndex: -1, disabled: !this.canNavigatePrev, "aria-label": "Mostra elementi precedenti", hidden: !this.canNavigate }, h("z-icon", { key: '21ddd942ac5c9a7cfdf53e1c31788268b7932f03', name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-left" : "chevron-up", width: 16, height: 16 })), h("nav", { key: 'd2582f956ec466d672bdf43494f96d1b2ee73485', role: "tablist", "aria-label": this.ariaLabel, ref: (el) => (this.nav = el !== null && el !== void 0 ? el : this.nav), onScroll: this.checkScrollEnabled.bind(this), "aria-orientation": this.orientation }, h("slot", { key: '3cfbaf5ef02b8964b1b497deef2b8e95b6ef94e0' })), h("button", { key: '6cc204b98252d19cdd79bdf2f9f1824c2f69d559', class: "navigation-button", onClick: this.navigateForward.bind(this), tabIndex: -1, disabled: !this.canNavigateNext, "aria-label": "Mostra elementi successivi", hidden: !this.canNavigate }, h("z-icon", { key: '7bc36b5cdb865c759e0bb37362a820557e079be4', name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-right" : "chevron-down", width: 16, height: 16 }))));
|
|
211
211
|
}
|
|
212
212
|
static get is() { return "z-navigation-tabs"; }
|
|
213
213
|
static get originalStyleUrls() {
|
|
@@ -25,7 +25,7 @@ export class ZNotification {
|
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
27
|
var _a;
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: 'bf9ead754226002371eb0669770d24c0230bcf92' }, this.contenticonname && (h("z-icon", { key: '322709ad12acd8a885214809012178649b172bd8', class: "status-icon", name: this.contenticonname, width: 16, height: 16 })), h("div", { key: 'd68ea8f5984fee4d906a05f93f9cf3ef4dae932c', class: "content-container" }, h("div", { key: 'd67f12dcbcf7075cbc0e111db260dce207e3411a', class: "content-text" }, h("slot", { key: '6e23a5b287e328657e1848dc1944b3a1ddc065be' })), !!((_a = this.actiontext) === null || _a === void 0 ? void 0 : _a.trim()) && (h("button", { key: '68da7a70a5dec9113c021c915594c2e8424c21be', class: "action-button", type: "button", onClick: this.handleActionButtonClick }, this.actiontext))), this.showclose && (h("button", { key: '342853024b8a9bfce814282471d8d8e9e9f6b522', class: "close-button", type: "button", onClick: this.handleCloseButtonClick }, h("z-icon", { key: 'ce20a4b279bc3cb3d4b0dd7bf4c61fe9b3837556', name: "multiply-circle", width: 16, height: 16 })))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "z-notification"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,7 +25,7 @@ export class ZOffcanvas {
|
|
|
25
25
|
this.open = false;
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '44382bb203dff02051742ab75321405ea88a40ce', class: { "skip-animation": this.skipLoadAnimation } }, h("div", { key: 'a3e8b0892f68a7123535e7a15f56909e7e2fc971', role: "presentation", class: "canvas-container", onTransitionEnd: () => this.handlePageOverflow() }, h("div", { key: '5ccd9e46853a37b08f1ba3f6e8350037777eb9d2', role: "presentation", class: "canvas-content" }, h("slot", { key: '033b592b1d74f97fc46e7f93ae7e1a88e44f328d', name: "canvasContent" }))), this.variant == OffCanvasVariant.OVERLAY && (h("div", { key: '30719eb0832c6dd4f8d49bae817514414a64f794', class: "canvas-background", "data-action": "canvasBackground", onClick: () => (this.open = false) }))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "z-offcanvas"; }
|
|
31
31
|
static get encapsulation() { return "scoped"; }
|
|
@@ -16,11 +16,11 @@ export class ZPanelElem {
|
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
const elemId = this.elemid ? this.elemid : "";
|
|
19
|
-
return (h("div", { key: '
|
|
19
|
+
return (h("div", { key: '7364ce8b1efc2b30e792693a93f41834a65dd7c6', class: "panel-elem-container" }, (this.imgurl || this.imgalt) && (h("div", { key: '815580b59284ea71764fd9f18b98be4ab69ff1e5', "aria-hidden": "true", class: "panel-elem-icon" }, h("img", { key: 'a736866758f35a8284310a5bc81d08f166aec78c', src: this.imgurl, alt: this.imgalt }))), h("div", { key: '1d154781e2bf59a9a6b1c8ddff324e035095c5ec', class: "panel-elem-link" }, h("a", { key: '3531d557c2145fa3fb96f13c2952d4c2c6e366b8', class: {
|
|
20
20
|
"z-link": true,
|
|
21
21
|
"z-link-disabled": this.isdisabled,
|
|
22
22
|
"z-link-icon": true,
|
|
23
|
-
}, id: elemId + "link_id", href: this.url, target: this.target }, h("z-icon", { key: '
|
|
23
|
+
}, id: elemId + "link_id", href: this.url, target: this.target }, h("z-icon", { key: 'dd6a4750589fe913eeb211025beebb3da7cfc8fd', height: 14, width: 14, name: this.linkicon }), this.linklabel)), this.descrSlotName && (h("div", { key: 'b2cbea114008c9f5c6a560c0e52f60ff9e6f7722', class: "panel-elem-desc" }, h("slot", { key: '73a350ea0ca8bc51e56a5a2879651883669a79b4', name: this.descrSlotName })))));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "z-panel-elem"; }
|
|
26
26
|
static get encapsulation() { return "scoped"; }
|
|
@@ -301,7 +301,7 @@ export class ZPopover {
|
|
|
301
301
|
this.onOpen();
|
|
302
302
|
}
|
|
303
303
|
render() {
|
|
304
|
-
return h("slot", { key: '
|
|
304
|
+
return h("slot", { key: '3c34ab8733a93885e6e2a9fd8b0f3607cafca402' });
|
|
305
305
|
}
|
|
306
306
|
static get is() { return "z-popover"; }
|
|
307
307
|
static get encapsulation() { return "shadow"; }
|
|
@@ -223,7 +223,7 @@ export class ZSearchbar {
|
|
|
223
223
|
return (h("z-list-element", { role: "option", tabindex: 0, clickable: true, id: `list-item-${this.htmlid}-show-all`, onClickItem: () => (this.currResultsCount = 0), color: "color-primary01" }, h("div", { class: "item-show-all" }, "Vedi tutti i risultati")));
|
|
224
224
|
}
|
|
225
225
|
render() {
|
|
226
|
-
return (h(Host, { key: '
|
|
226
|
+
return (h(Host, { key: 'af318a5b693c0048c368776744d9090bdebe6c8c', onFocus: () => (this.showResults = true), onClick: (e) => this.handleOutsideClick(e), class: { "has-submit": this.showSearchButton, "has-results": this.autocomplete } }, h("div", { key: 'aba6d0bd87ba308a8f664ca5f86e5d0b96c734af', class: "input-container" }, this.renderInput(), this.renderResults()), this.renderButton()));
|
|
227
227
|
}
|
|
228
228
|
static get is() { return "z-searchbar"; }
|
|
229
229
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,7 +18,7 @@ export class ZSectionTitle {
|
|
|
18
18
|
this.hasSecondaryTitle = !!this.host.querySelector("[slot=secondary-title]");
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '5718215a4b4b42735d8045c3de73998189f38bf7' }, h("slot", { key: '99e51ba27a27a3100ae7fc88df7537624f8682bb', name: "secondary-title" }), !this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.BEFORE && (h("z-divider", { key: 'd62ca69ea2ecdbb75ef8c034ca6beffc6041ede0', size: DividerSize.LARGE, color: "z-section-title--divider-color" })), h("slot", { key: 'cb8a5a51554a90e8749d664f3d6d19af67e5afeb', name: "primary-title" }), !this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.AFTER && (h("z-divider", { key: 'bdf9d80c19154f8f89947d277f6a7234986b605e', size: DividerSize.LARGE, color: "z-section-title--divider-color" }))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "z-section-title"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -314,7 +314,7 @@ export class ZSelect {
|
|
|
314
314
|
return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status, class: this.size }));
|
|
315
315
|
}
|
|
316
316
|
render() {
|
|
317
|
-
return (h("div", { key: '
|
|
317
|
+
return (h("div", { key: '7cff5f68badfbedf3c8f6e9a5d8bbdaa89ed8a98', class: "select-wrapper" }, this.renderInput(), this.renderSelectUl(), this.renderMessage()));
|
|
318
318
|
}
|
|
319
319
|
static get is() { return "z-select"; }
|
|
320
320
|
static get encapsulation() { return "scoped"; }
|
|
@@ -45,7 +45,7 @@ export class ZSkipToContent {
|
|
|
45
45
|
this.visible = false;
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '06ee6c9f26ddc014c08c34bb81ddd990aa7c0282', class: {
|
|
49
49
|
[this.variant]: true,
|
|
50
50
|
"skip-to-content-visible": this.visible,
|
|
51
51
|
} }, this.links.map((link, i) => {
|
|
@@ -4,7 +4,7 @@ import { Host, h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class ZStepper {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '5fbfa9cc1b0e6f672f054427828d56560059c160', role: "list" }, h("slot", { key: 'd2c5abd53c5c9e8569696aafb6101b7878e1a10c' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "z-stepper"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,7 +15,7 @@ export class ZStepperItem {
|
|
|
15
15
|
return Object.assign(Object.assign(Object.assign(Object.assign({}, href), role), current), tabindex);
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '0994d3d3a8e89f1a93f17cb71baff1c1581bf7e4', role: "listitem" }, h("button", Object.assign({ key: '14becf7e97de2bd909f61cc3aa09b64b45f7ab30', class: "stepper-item", disabled: this.disabled }, this.getAttributes()), h("div", { key: '69f3cd00d2eeaafa65037d939218b2665d34b62b', class: "indicator" }, this.checked ? h("z-icon", { name: "checkmark" }) : this.index), h("span", { key: '8d2ed47daa09ae26562bac42d262ba7c4c5320a4' }, h("slot", { key: '48004d92935fa78bd48df08a9eb3db11662a171b' })))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "z-stepper-item"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,9 +11,9 @@ export class ZTag {
|
|
|
11
11
|
this.expandable = undefined;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: 'dab9210f7c3cfc75d0c009f4bc8a1841bdbc371b', class: {
|
|
15
15
|
expandable: this.expandable && !!this.icon,
|
|
16
|
-
} }, this.icon && h("z-icon", { key: '
|
|
16
|
+
} }, this.icon && h("z-icon", { key: 'e7dc02062a4c525977b3734540dd1c2f4b5375a3', name: this.icon }), h("div", { key: '9b72b749cddf039f2c92345e9b02061c322c3e58' }, h("slot", { key: 'df6fe3eaea544ad012168bce4049d0d7fa239944' }))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "z-tag"; }
|
|
19
19
|
static get encapsulation() { return "scoped"; }
|
|
@@ -171,7 +171,7 @@ export class ZToastNotification {
|
|
|
171
171
|
} }, h("div", { id: "flex-container", ref: (el) => (this.container = el) }, this.renderText(), this.renderButton()), this.renderCloseIcon()));
|
|
172
172
|
}
|
|
173
173
|
render() {
|
|
174
|
-
return (h(Host, { key: '
|
|
174
|
+
return (h(Host, { key: '3553c94f59787f1fdbb0ea349578c61ebbda1c21', style: {
|
|
175
175
|
"--percentuale": `${this.percentage}%`,
|
|
176
176
|
}, class: this.transition ? this.transition : ToastNotificationTransition.SLIDE_IN_DOWN, onAnimationEnd: (e) => {
|
|
177
177
|
if (this.autoclose && e.animationName.includes("slidein")) {
|
|
@@ -36,7 +36,7 @@ export class ZToastNotificationList {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return h("slot", { key: '
|
|
39
|
+
return h("slot", { key: 'c358a615637656bb5b4cd475af919c495a278da5', name: "toasts" });
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "z-toast-notification-list"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,10 +15,10 @@ export class ZToggleButton {
|
|
|
15
15
|
this.toggleClick.emit(this.opened);
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h("button", { key: '
|
|
18
|
+
return (h("button", { key: 'a0335db670898e98b232857bd9f878f9f6bceaa0', tabindex: this.avoidclick ? "-1" : "0", class: {
|
|
19
19
|
"isopen": this.opened,
|
|
20
20
|
"avoid-clicks": this.avoidclick,
|
|
21
|
-
}, disabled: this.isdisabled, "aria-expanded": this.opened ? "true" : "false", "aria-label": this.ariaLabel, onClick: () => this.emitToggleClick() }, h("z-icon", { key: '
|
|
21
|
+
}, disabled: this.isdisabled, "aria-expanded": this.opened ? "true" : "false", "aria-label": this.ariaLabel, onClick: () => this.emitToggleClick() }, h("z-icon", { key: '353df156fc85eb6824152ec2a5578426263627b7', name: this.opened ? "chevron-down" : "chevron-up", width: 16, height: 16 }), this.label));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "z-toggle-button"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -22,14 +22,14 @@ export class ZToggleSwitch {
|
|
|
22
22
|
this.emitToggleClick();
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: 'cd90ad41b289f192e485c0cce90ae2a8057ddd7d' }, h("input", { key: '5cc5e59f8cc0cc0548b072e41149cf7dc31bbcd8', id: this.htmlid, type: "checkbox", checked: this.checked, disabled: this.disabled, onChange: this.handleClick.bind(this) }), h("label", { key: '9774cc39f7ebe6bd02c5ce0e05d1b53075f4e426', htmlFor: this.htmlid, class: {
|
|
26
26
|
[this.labelPosition]: true,
|
|
27
27
|
disabled: this.disabled,
|
|
28
|
-
} }, h("span", { key: '
|
|
28
|
+
} }, h("span", { key: '074941585b8a5862f04bd2d404ab74c86bcaa250' }, h("slot", { key: '7fe6486df9479e76a7783646aed3e620f7f1d0f2' })), h("span", { key: 'd4bf4b3febdab1bf8e88c12e1c7aa421b020997c', class: {
|
|
29
29
|
container: true,
|
|
30
30
|
disabled: this.disabled,
|
|
31
31
|
checked: this.checked,
|
|
32
|
-
} }, h("span", { key: '
|
|
32
|
+
} }, h("span", { key: 'c46c06ff10a35060945b9298a551cf66508a5450', class: "circle" }, this.checked && (h("z-icon", { key: '7ed667dc510d42e3e001ad8cb82b5c5f9d012583', width: 12, height: 12, name: "checkmark" })))))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "z-toggle-switch"; }
|
|
35
35
|
static get encapsulation() { return "scoped"; }
|
|
@@ -20,7 +20,7 @@ export class ZTooltip {
|
|
|
20
20
|
this.open = this.popoverEl.open;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h("z-popover", { key: '
|
|
23
|
+
return (h("z-popover", { key: '2df25a3fa481ccc045d4a49f464c06d9d9c3e555', ref: (el) => (this.popoverEl = el), bindTo: this.bindTo, open: this.open, position: this.position, closable: this.closable, center: true, showArrow: true }, h("slot", { key: '136991637393809eba3d6c6fad0f44209b8c8960' })));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "z-tooltip"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class ZVisuallyHidden {
|
|
3
3
|
render() {
|
|
4
|
-
return h("slot", { key: '
|
|
4
|
+
return h("slot", { key: 'a99984e228cda9c10f7f96987a24ea9e1d695951' });
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "z-visually-hidden"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -33,7 +33,7 @@ export class ZMyzCardComponent {
|
|
|
33
33
|
return elemClasses;
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h("div", { key: '
|
|
36
|
+
return (h("div", { key: '0513da0ab64e0db2c6f075c435ef3a9249501609', class: this.retrieveClass(), tabindex: "0" }, h("slot", { key: '3b208fff53e518e4e291e2aa3c0b70d939419690' })));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "z-myz-card"; }
|
|
39
39
|
static get encapsulation() { return "shadow"; }
|
|
@@ -46,7 +46,7 @@ export class ZMyzCardAlert {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h("div", { key: '
|
|
49
|
+
return (h("div", { key: 'e488b304fcdd145b3ce0ba375d36a997a646eec9', class: "alert-external-wrapper " + this.retrieveClass() }, h("z-alert", { key: '256f5d68375a9c8c187785cfdbd6272b8cc449f9', type: this.getAlertType() }, h("div", { key: '9f3d7e43b28f3fc92bf1e627475af9a9f0464799', class: "relative-container" }, h("z-icon", { key: '6c9e26abc686e0d6020d7c6398a8575e6e8ac543', name: this.iconname, width: 18, height: 18, class: this.retrieveClass() }), h("span", { key: 'b4b997286c4e5250c5b856f0d375ad49162c92df', class: "content-text" }, this.contenttext), this.actiontext && !!this.actiontext.trim().length && (h("span", { key: '18020fe9e8180577a168a25c0ba17464cedf70c0', role: "button", tabindex: "0", class: "content-action", onClick: (e) => {
|
|
50
50
|
this.handleActionButtonClick(e);
|
|
51
51
|
}, onKeyPress: (e) => {
|
|
52
52
|
this.handleSpaceKeyPress(e);
|
|
@@ -5,7 +5,7 @@ import { h } from "@stencil/core";
|
|
|
5
5
|
*/
|
|
6
6
|
export class ZMyzCardBody {
|
|
7
7
|
render() {
|
|
8
|
-
return (h("div", { key: '
|
|
8
|
+
return (h("div", { key: 'dccc73da3128968555dc65848994a4f11ee6cea4' }, h("slot", { key: 'bc8948b5bd03b6c49db50a8aa0d46b1078ca328e', name: "alert" }), h("slot", { key: '747327ca24dba0f35ec49d1f85600a5eada44c9e', name: "cover" })));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "z-myz-card-body"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|