@zanichelli/albe-web-components 18.2.0-RC1 → 18.2.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 +4 -0
- package/dist/cjs/{index-0cb5e57a.js → index-1c288846.js} +2 -2
- package/dist/cjs/{index-0cb5e57a.js.map → index-1c288846.js.map} +1 -1
- package/dist/cjs/index-4f18c0e2.js.map +1 -1
- package/dist/cjs/{index-41d3dc9e.js → index-50ec1f12.js} +2 -2
- package/dist/cjs/{index-41d3dc9e.js.map → index-50ec1f12.js.map} +1 -1
- package/dist/cjs/{index-48540995.js → index-5af9d3d1.js} +2 -2
- package/dist/cjs/{index-48540995.js.map → index-5af9d3d1.js.map} +1 -1
- package/dist/cjs/index-96af6326.js +4 -0
- package/dist/cjs/{index-1c3f7a64.js → index-afafb76c.js} +2 -2
- package/dist/cjs/{index-1c3f7a64.js.map → index-afafb76c.js.map} +1 -1
- package/dist/cjs/{index-24b23a97.js → index-be1dfa97.js} +4 -4
- package/dist/cjs/{index-24b23a97.js.map → index-be1dfa97.js.map} +1 -1
- package/dist/cjs/{index-f9fe3768.js → index-be650150.js} +2 -2
- package/dist/cjs/{index-f9fe3768.js.map → index-be650150.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-accordion.cjs.entry.js +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +7 -7
- package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-avatar.cjs.entry.js +2 -2
- package/dist/cjs/z-book-card.cjs.entry.js +1 -1
- package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
- package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +2 -2
- package/dist/cjs/z-combobox.cjs.entry.js +1 -1
- package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +4 -4
- package/dist/cjs/z-file-upload.cjs.entry.js +3 -2
- package/dist/cjs/z-file-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
- package/dist/cjs/z-info-box.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
- package/dist/cjs/z-logo.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
- package/dist/cjs/z-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +1 -1
- package/dist/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/cjs/z-select.cjs.entry.js +22 -15
- package/dist/cjs/z-select.cjs.entry.js.map +1 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +7 -7
- package/dist/cjs/z-tbody.cjs.entry.js +1 -1
- package/dist/cjs/z-td.cjs.entry.js +1 -1
- package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
- package/dist/cjs/z-th.cjs.entry.js +1 -1
- package/dist/cjs/z-thead.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/z-tr.cjs.entry.js +3 -3
- package/dist/cjs/z-tree-list.cjs.entry.js +118 -0
- package/dist/cjs/z-tree-list.cjs.entry.js.map +1 -0
- package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/collection/beans/index.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/book-card/z-book-card/styles.css +3 -3
- package/dist/collection/components/file-upload/z-file-upload/index.js +5 -3
- package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -1
- package/dist/collection/components/list/z-list-element/index.js +1 -1
- package/dist/collection/components/list/z-list-element/index.js.map +1 -1
- package/dist/collection/components/list/z-tree-list/index.js +199 -0
- package/dist/collection/components/list/z-tree-list/index.js.map +1 -0
- package/dist/collection/components/list/z-tree-list/index.stories.js +120 -0
- package/dist/collection/components/list/z-tree-list/index.stories.js.map +1 -0
- package/dist/collection/components/list/z-tree-list/styles.css +142 -0
- package/dist/collection/components/table/cells/z-td/index.js +1 -1
- package/dist/collection/components/table/cells/z-th/index.js +1 -1
- 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 +1 -1
- 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-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-section/index.js +1 -1
- package/dist/collection/components/z-modal/index.js +4 -4
- package/dist/collection/components/z-navigation-tabs/index.js +2 -2
- package/dist/collection/components/z-notification/index.js +1 -1
- package/dist/collection/components/z-offcanvas/index.js +1 -1
- package/dist/collection/components/z-panel-elem/index.js +2 -2
- package/dist/collection/components/z-popover/index.js +1 -1
- package/dist/collection/components/z-searchbar/index.js +1 -1
- package/dist/collection/components/z-section-title/index.js +1 -1
- package/dist/collection/components/z-select/index.js +22 -15
- package/dist/collection/components/z-select/index.js.map +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-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 +2 -0
- package/dist/components/index.js +1 -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/index14.js +1 -1
- package/dist/components/index14.js.map +1 -1
- package/dist/components/index16.js +4 -4
- 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.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 +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/index5.js +2 -2
- package/dist/components/index6.js +1 -1
- package/dist/components/index8.js +1 -1
- package/dist/components/z-accordion.js +1 -1
- package/dist/components/z-anchor-navigation.js +1 -1
- package/dist/components/z-app-header.js +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-book-card.js.map +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 +4 -2
- package/dist/components/z-file-upload.js.map +1 -1
- package/dist/components/z-info-box.js +1 -1
- package/dist/components/z-logo.js +1 -1
- package/dist/components/z-menu-section.js +1 -1
- package/dist/components/z-myz-card-alert.js +1 -1
- package/dist/components/z-myz-card-dictionary.js +1 -1
- package/dist/components/z-myz-card-footer-sections.js +1 -1
- package/dist/components/z-myz-card-footer.js +1 -1
- package/dist/components/z-myz-card-icon.js +1 -1
- package/dist/components/z-myz-card-info.js +1 -1
- package/dist/components/z-myz-card-list.js +1 -1
- package/dist/components/z-myz-list.js +1 -1
- package/dist/components/z-navigation-tabs.js +2 -2
- package/dist/components/z-notification.js +1 -1
- package/dist/components/z-otp.js +2 -2
- package/dist/components/z-panel-elem.js +2 -2
- package/dist/components/z-section-title.js +1 -1
- package/dist/components/z-select.js +22 -15
- package/dist/components/z-select.js.map +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 +1 -1
- package/dist/components/z-tfoot.js +1 -1
- package/dist/components/z-th.js +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-tree-list.d.ts +11 -0
- package/dist/components/z-tree-list.js +162 -0
- package/dist/components/z-tree-list.js.map +1 -0
- package/dist/components/z-visually-hidden.js +1 -1
- package/dist/esm/{index-7ff7476c.js → index-1294ef3d.js} +4 -4
- package/dist/esm/{index-7ff7476c.js.map → index-1294ef3d.js.map} +1 -1
- package/dist/esm/{index-f87879d9.js → index-2a83dc12.js} +2 -2
- package/dist/esm/{index-f87879d9.js.map → index-2a83dc12.js.map} +1 -1
- package/dist/esm/{index-8965837f.js → index-43637886.js} +2 -2
- package/dist/esm/{index-8965837f.js.map → index-43637886.js.map} +1 -1
- package/dist/esm/{index-dfd97928.js → index-9a0ea49b.js} +2 -2
- package/dist/esm/{index-dfd97928.js.map → index-9a0ea49b.js.map} +1 -1
- package/dist/esm/{index-0ebe53c2.js → index-b2c92bbb.js} +2 -2
- package/dist/esm/{index-0ebe53c2.js.map → index-b2c92bbb.js.map} +1 -1
- package/dist/esm/index-c8ceadeb.js +4 -0
- package/dist/esm/{index-f75609c5.js → index-ea1d61dc.js} +2 -2
- package/dist/esm/{index-f75609c5.js.map → index-ea1d61dc.js.map} +1 -1
- package/dist/esm/index-fe87283d.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-accordion.entry.js +1 -1
- package/dist/esm/z-alert.entry.js +1 -1
- package/dist/esm/z-anchor-navigation.entry.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +7 -7
- package/dist/esm/z-app-header_12.entry.js.map +1 -1
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +2 -2
- package/dist/esm/z-book-card.entry.js +1 -1
- package/dist/esm/z-book-card.entry.js.map +1 -1
- package/dist/esm/z-breadcrumb.entry.js +2 -2
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +2 -2
- package/dist/esm/z-combobox.entry.js +1 -1
- package/dist/esm/z-cover-hero.entry.js +2 -2
- package/dist/esm/z-dragdrop-area_2.entry.js +4 -4
- package/dist/esm/z-file-upload.entry.js +3 -2
- package/dist/esm/z-file-upload.entry.js.map +1 -1
- package/dist/esm/z-ghost-loading.entry.js +1 -1
- package/dist/esm/z-info-box.entry.js +1 -1
- package/dist/esm/z-info-reveal.entry.js +1 -1
- package/dist/esm/z-logo.entry.js +1 -1
- package/dist/esm/z-menu-section.entry.js +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +1 -1
- package/dist/esm/z-myz-card-list.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +4 -4
- package/dist/esm/z-myz-list-item.entry.js +1 -1
- package/dist/esm/z-myz-list.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +2 -2
- package/dist/esm/z-notification.entry.js +1 -1
- package/dist/esm/z-otp.entry.js +2 -2
- package/dist/esm/z-panel-elem.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +1 -1
- package/dist/esm/z-section-title.entry.js +1 -1
- package/dist/esm/z-select.entry.js +22 -15
- package/dist/esm/z-select.entry.js.map +1 -1
- package/dist/esm/z-skip-to-content.entry.js +1 -1
- package/dist/esm/z-stepper-item.entry.js +1 -1
- package/dist/esm/z-stepper.entry.js +1 -1
- package/dist/esm/z-table.entry.js +7 -7
- package/dist/esm/z-tbody.entry.js +1 -1
- package/dist/esm/z-td.entry.js +1 -1
- package/dist/esm/z-tfoot.entry.js +1 -1
- package/dist/esm/z-th.entry.js +1 -1
- package/dist/esm/z-thead.entry.js +1 -1
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +1 -1
- package/dist/esm/z-toggle-button.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +3 -3
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/esm/z-tr.entry.js +3 -3
- package/dist/esm/z-tree-list.entry.js +114 -0
- package/dist/esm/z-tree-list.entry.js.map +1 -0
- package/dist/esm/z-visually-hidden.entry.js +1 -1
- package/dist/types/beans/index.d.ts +8 -0
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +2 -1
- package/dist/types/components/list/z-tree-list/index.d.ts +27 -0
- package/dist/types/components/list/z-tree-list/index.stories.d.ts +25 -0
- package/dist/types/components.d.ts +58 -2
- package/dist/web-components-library/{p-838b298b.entry.js → p-07da09b0.entry.js} +2 -2
- package/dist/web-components-library/{p-7b13eeff.entry.js → p-1d78d37b.entry.js} +2 -2
- package/dist/web-components-library/{p-9bad1dbc.entry.js → p-1ee52b2e.entry.js} +2 -2
- package/{www/build/p-8fa23b47.entry.js → dist/web-components-library/p-2618e4de.entry.js} +2 -2
- package/dist/web-components-library/p-26f324ab.js +2 -0
- package/dist/web-components-library/p-2726182b.entry.js +2 -0
- package/dist/web-components-library/p-2726182b.entry.js.map +1 -0
- package/dist/web-components-library/p-29759f61.entry.js +2 -0
- package/{www/build/p-df97df54.entry.js → dist/web-components-library/p-2a657ab1.entry.js} +2 -2
- package/dist/web-components-library/p-2ac26cde.entry.js +2 -0
- package/dist/web-components-library/p-2e373eba.entry.js +2 -0
- package/{www/build/p-7ecc3acf.entry.js → dist/web-components-library/p-3abd3f25.entry.js} +2 -2
- package/dist/web-components-library/{p-1ece11f1.entry.js → p-3e1983eb.entry.js} +2 -2
- package/dist/web-components-library/{p-121f2960.entry.js → p-43aea424.entry.js} +2 -2
- package/dist/web-components-library/p-473ac922.entry.js +2 -0
- package/dist/web-components-library/{p-8fdf9453.entry.js.map → p-473ac922.entry.js.map} +1 -1
- package/dist/web-components-library/p-4900a14c.entry.js +2 -0
- package/{www/build/p-abd3b914.entry.js → dist/web-components-library/p-506d2cdb.entry.js} +2 -2
- package/{www/build/p-bae9cf07.entry.js → dist/web-components-library/p-542e0154.entry.js} +2 -2
- package/dist/web-components-library/{p-adb5caab.entry.js → p-6598aee0.entry.js} +2 -2
- package/{www/build/p-9fcc8e5d.entry.js → dist/web-components-library/p-663115e2.entry.js} +2 -2
- package/dist/web-components-library/p-66576512.entry.js +2 -0
- package/dist/web-components-library/p-66576512.entry.js.map +1 -0
- package/dist/web-components-library/{p-4de706ad.entry.js → p-6669b4c9.entry.js} +2 -2
- package/dist/web-components-library/p-6a6d30ae.entry.js +2 -0
- package/dist/web-components-library/p-6a6d30ae.entry.js.map +1 -0
- package/dist/web-components-library/{p-390bbfd4.entry.js → p-6b679226.entry.js} +2 -2
- package/dist/web-components-library/p-6e8d5142.js +2 -0
- package/dist/web-components-library/{p-bc408f39.js.map → p-6e8d5142.js.map} +1 -1
- package/{www/build/p-2467913e.entry.js → dist/web-components-library/p-6f761080.entry.js} +2 -2
- package/dist/web-components-library/p-7000e4f8.js +2 -0
- package/dist/web-components-library/{p-1c017b32.entry.js → p-72c07bbd.entry.js} +2 -2
- package/dist/web-components-library/{p-054da210.entry.js → p-79aab6de.entry.js} +2 -2
- package/dist/web-components-library/{p-054da210.entry.js.map → p-79aab6de.entry.js.map} +1 -1
- package/dist/web-components-library/{p-1cbc1b08.entry.js → p-7a33fe43.entry.js} +2 -2
- package/dist/web-components-library/p-88983b48.entry.js +2 -0
- package/{www/build/p-bc71a934.entry.js → dist/web-components-library/p-8ca5851b.entry.js} +2 -2
- package/dist/web-components-library/{p-e5ce98e0.entry.js → p-8ec302f8.entry.js} +2 -2
- package/dist/web-components-library/{p-ae1b5e23.entry.js → p-8f59d90d.entry.js} +2 -2
- package/dist/web-components-library/{p-28c972c6.entry.js → p-8fe13fca.entry.js} +2 -2
- package/{www/build/p-bd44674f.entry.js → dist/web-components-library/p-95e28308.entry.js} +2 -2
- package/dist/web-components-library/p-95e28308.entry.js.map +1 -0
- package/dist/web-components-library/{p-d9fdc804.entry.js → p-a1d45a8b.entry.js} +2 -2
- package/dist/web-components-library/p-a2217ed8.entry.js +2 -0
- package/dist/web-components-library/{p-0d9f1574.js → p-a2b1d98b.js} +2 -2
- package/dist/web-components-library/p-a9d05a92.entry.js +2 -0
- package/dist/web-components-library/p-ad821c05.entry.js +2 -0
- package/{www/build/p-8eb94125.entry.js → dist/web-components-library/p-b0d88afc.entry.js} +2 -2
- package/dist/web-components-library/{p-25be56d1.entry.js → p-b0f758e7.entry.js} +2 -2
- package/dist/web-components-library/{p-b94e0513.entry.js → p-b1561f18.entry.js} +2 -2
- package/dist/web-components-library/{p-5d7bbd82.entry.js → p-b16272ea.entry.js} +2 -2
- package/dist/web-components-library/{p-fad6ea09.entry.js → p-b240bd96.entry.js} +2 -2
- package/{www/build/p-d20df54b.entry.js → dist/web-components-library/p-b555681f.entry.js} +2 -2
- package/dist/web-components-library/{p-7f707293.entry.js → p-b69a3542.entry.js} +2 -2
- package/dist/web-components-library/{p-301b56f1.entry.js → p-c4878fa9.entry.js} +2 -2
- package/dist/web-components-library/{p-55fad9b1.entry.js → p-c8501bd3.entry.js} +2 -2
- package/dist/web-components-library/p-ca1a7347.entry.js +2 -0
- package/dist/web-components-library/{p-8c5dcab3.entry.js → p-d5e29462.entry.js} +2 -2
- package/{www/build/p-7314c74b.entry.js → dist/web-components-library/p-d60b9285.entry.js} +2 -2
- package/dist/web-components-library/{p-30677b5c.entry.js → p-d9592fa6.entry.js} +2 -2
- package/dist/web-components-library/p-dc46730d.entry.js +2 -0
- package/dist/web-components-library/p-dfcf9936.js.map +1 -1
- package/dist/web-components-library/{p-1c51153b.entry.js → p-e4627f9a.entry.js} +2 -2
- package/dist/web-components-library/{p-6655e19b.entry.js → p-e853ccde.entry.js} +2 -2
- package/dist/web-components-library/p-ee43894c.js +2 -0
- package/dist/web-components-library/{p-f9f98130.entry.js → p-ee7185cf.entry.js} +2 -2
- package/dist/web-components-library/{p-0cb113f9.js → p-fbe3bc33.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 +2 -2
- package/react/components.d.ts +1 -0
- package/react/components.js +2 -1
- package/react/components.js.map +1 -1
- package/www/build/{p-838b298b.entry.js → p-07da09b0.entry.js} +2 -2
- package/www/build/{p-7b13eeff.entry.js → p-1d78d37b.entry.js} +2 -2
- package/www/build/{p-9bad1dbc.entry.js → p-1ee52b2e.entry.js} +2 -2
- package/{dist/web-components-library/p-8fa23b47.entry.js → www/build/p-2618e4de.entry.js} +2 -2
- package/www/build/p-26f324ab.js +2 -0
- package/www/build/p-2726182b.entry.js +2 -0
- package/www/build/p-2726182b.entry.js.map +1 -0
- package/www/build/p-29759f61.entry.js +2 -0
- package/{dist/web-components-library/p-df97df54.entry.js → www/build/p-2a657ab1.entry.js} +2 -2
- package/www/build/p-2ac26cde.entry.js +2 -0
- package/www/build/p-2e373eba.entry.js +2 -0
- package/{dist/web-components-library/p-7ecc3acf.entry.js → www/build/p-3abd3f25.entry.js} +2 -2
- package/www/build/{p-1ece11f1.entry.js → p-3e1983eb.entry.js} +2 -2
- package/www/build/{p-121f2960.entry.js → p-43aea424.entry.js} +2 -2
- package/www/build/p-473ac922.entry.js +2 -0
- package/www/build/{p-8fdf9453.entry.js.map → p-473ac922.entry.js.map} +1 -1
- package/www/build/p-4900a14c.entry.js +2 -0
- package/{dist/web-components-library/p-abd3b914.entry.js → www/build/p-506d2cdb.entry.js} +2 -2
- package/{dist/web-components-library/p-bae9cf07.entry.js → www/build/p-542e0154.entry.js} +2 -2
- package/www/build/{p-adb5caab.entry.js → p-6598aee0.entry.js} +2 -2
- package/{dist/web-components-library/p-9fcc8e5d.entry.js → www/build/p-663115e2.entry.js} +2 -2
- package/www/build/p-66576512.entry.js +2 -0
- package/www/build/p-66576512.entry.js.map +1 -0
- package/www/build/{p-4de706ad.entry.js → p-6669b4c9.entry.js} +2 -2
- package/www/build/p-6a6d30ae.entry.js +2 -0
- package/www/build/p-6a6d30ae.entry.js.map +1 -0
- package/www/build/{p-390bbfd4.entry.js → p-6b679226.entry.js} +2 -2
- package/www/build/p-6e8d5142.js +2 -0
- package/www/build/{p-bc408f39.js.map → p-6e8d5142.js.map} +1 -1
- package/{dist/web-components-library/p-2467913e.entry.js → www/build/p-6f761080.entry.js} +2 -2
- package/www/build/p-7000e4f8.js +2 -0
- package/www/build/{p-1c017b32.entry.js → p-72c07bbd.entry.js} +2 -2
- package/www/build/{p-054da210.entry.js → p-79aab6de.entry.js} +2 -2
- package/www/build/{p-054da210.entry.js.map → p-79aab6de.entry.js.map} +1 -1
- package/www/build/{p-1cbc1b08.entry.js → p-7a33fe43.entry.js} +2 -2
- package/www/build/p-88983b48.entry.js +2 -0
- package/{dist/web-components-library/p-bc71a934.entry.js → www/build/p-8ca5851b.entry.js} +2 -2
- package/www/build/{p-e5ce98e0.entry.js → p-8ec302f8.entry.js} +2 -2
- package/www/build/{p-ae1b5e23.entry.js → p-8f59d90d.entry.js} +2 -2
- package/www/build/{p-28c972c6.entry.js → p-8fe13fca.entry.js} +2 -2
- package/{dist/web-components-library/p-bd44674f.entry.js → www/build/p-95e28308.entry.js} +2 -2
- package/www/build/p-95e28308.entry.js.map +1 -0
- package/www/build/{p-d9fdc804.entry.js → p-a1d45a8b.entry.js} +2 -2
- package/www/build/p-a2217ed8.entry.js +2 -0
- package/www/build/{p-0d9f1574.js → p-a2b1d98b.js} +2 -2
- package/www/build/p-a9d05a92.entry.js +2 -0
- package/www/build/p-ad821c05.entry.js +2 -0
- package/{dist/web-components-library/p-8eb94125.entry.js → www/build/p-b0d88afc.entry.js} +2 -2
- package/www/build/{p-25be56d1.entry.js → p-b0f758e7.entry.js} +2 -2
- package/www/build/{p-b94e0513.entry.js → p-b1561f18.entry.js} +2 -2
- package/www/build/{p-5d7bbd82.entry.js → p-b16272ea.entry.js} +2 -2
- package/www/build/{p-fad6ea09.entry.js → p-b240bd96.entry.js} +2 -2
- package/{dist/web-components-library/p-d20df54b.entry.js → www/build/p-b555681f.entry.js} +2 -2
- package/www/build/{p-7f707293.entry.js → p-b69a3542.entry.js} +2 -2
- package/www/build/{p-301b56f1.entry.js → p-c4878fa9.entry.js} +2 -2
- package/www/build/{p-55fad9b1.entry.js → p-c8501bd3.entry.js} +2 -2
- package/www/build/p-ca1a7347.entry.js +2 -0
- package/www/build/{p-8c5dcab3.entry.js → p-d5e29462.entry.js} +2 -2
- package/{dist/web-components-library/p-7314c74b.entry.js → www/build/p-d60b9285.entry.js} +2 -2
- package/www/build/{p-30677b5c.entry.js → p-d9592fa6.entry.js} +2 -2
- package/www/build/p-dc46730d.entry.js +2 -0
- package/www/build/p-dfcf9936.js.map +1 -1
- package/www/build/{p-1c51153b.entry.js → p-e4627f9a.entry.js} +2 -2
- package/www/build/{p-6655e19b.entry.js → p-e853ccde.entry.js} +2 -2
- package/www/build/p-ee43894c.js +2 -0
- package/www/build/{p-f9f98130.entry.js → p-ee7185cf.entry.js} +2 -2
- package/www/build/p-fb3cf8fc.js +2 -0
- package/www/build/{p-0cb113f9.js → p-fbe3bc33.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/web-components-library/p-1bbf185c.js +0 -2
- package/dist/web-components-library/p-3a42612f.entry.js +0 -2
- package/dist/web-components-library/p-431f5871.js +0 -2
- package/dist/web-components-library/p-5ed87dec.entry.js +0 -2
- package/dist/web-components-library/p-61a83529.entry.js +0 -2
- package/dist/web-components-library/p-7ce5ca87.entry.js +0 -2
- package/dist/web-components-library/p-8fdf9453.entry.js +0 -2
- package/dist/web-components-library/p-968727f8.entry.js +0 -2
- package/dist/web-components-library/p-968727f8.entry.js.map +0 -1
- package/dist/web-components-library/p-99a6c92f.entry.js +0 -2
- package/dist/web-components-library/p-99a6c92f.entry.js.map +0 -1
- package/dist/web-components-library/p-aaab7f44.entry.js +0 -2
- package/dist/web-components-library/p-abc08ea3.entry.js +0 -2
- package/dist/web-components-library/p-acee5500.entry.js +0 -2
- package/dist/web-components-library/p-bc408f39.js +0 -2
- package/dist/web-components-library/p-bd44674f.entry.js.map +0 -1
- package/dist/web-components-library/p-cfbef2c3.entry.js +0 -2
- package/dist/web-components-library/p-ec8f8ac8.entry.js +0 -2
- package/dist/web-components-library/p-f7f2beae.js +0 -2
- package/dist/web-components-library/p-f8d49a59.entry.js +0 -2
- package/www/build/p-1bbf185c.js +0 -2
- package/www/build/p-3a42612f.entry.js +0 -2
- package/www/build/p-431f5871.js +0 -2
- package/www/build/p-5ed87dec.entry.js +0 -2
- package/www/build/p-61a83529.entry.js +0 -2
- package/www/build/p-7ce5ca87.entry.js +0 -2
- package/www/build/p-8fdf9453.entry.js +0 -2
- package/www/build/p-968727f8.entry.js +0 -2
- package/www/build/p-968727f8.entry.js.map +0 -1
- package/www/build/p-99a6c92f.entry.js +0 -2
- package/www/build/p-99a6c92f.entry.js.map +0 -1
- package/www/build/p-aaab7f44.entry.js +0 -2
- package/www/build/p-abc08ea3.entry.js +0 -2
- package/www/build/p-acee5500.entry.js +0 -2
- package/www/build/p-b16b67df.js +0 -2
- package/www/build/p-bc408f39.js +0 -2
- package/www/build/p-bd44674f.entry.js.map +0 -1
- package/www/build/p-cfbef2c3.entry.js +0 -2
- package/www/build/p-ec8f8ac8.entry.js +0 -2
- package/www/build/p-f7f2beae.js +0 -2
- package/www/build/p-f8d49a59.entry.js +0 -2
- /package/dist/web-components-library/{p-838b298b.entry.js.map → p-07da09b0.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7b13eeff.entry.js.map → p-1d78d37b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9bad1dbc.entry.js.map → p-1ee52b2e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8fa23b47.entry.js.map → p-2618e4de.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f7f2beae.js.map → p-26f324ab.js.map} +0 -0
- /package/dist/web-components-library/{p-3a42612f.entry.js.map → p-29759f61.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-df97df54.entry.js.map → p-2a657ab1.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-61a83529.entry.js.map → p-2ac26cde.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-aaab7f44.entry.js.map → p-2e373eba.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7ecc3acf.entry.js.map → p-3abd3f25.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-1ece11f1.entry.js.map → p-3e1983eb.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-121f2960.entry.js.map → p-43aea424.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-abc08ea3.entry.js.map → p-4900a14c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-abd3b914.entry.js.map → p-506d2cdb.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-bae9cf07.entry.js.map → p-542e0154.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-adb5caab.entry.js.map → p-6598aee0.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9fcc8e5d.entry.js.map → p-663115e2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-4de706ad.entry.js.map → p-6669b4c9.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-390bbfd4.entry.js.map → p-6b679226.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2467913e.entry.js.map → p-6f761080.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-1bbf185c.js.map → p-7000e4f8.js.map} +0 -0
- /package/dist/web-components-library/{p-1c017b32.entry.js.map → p-72c07bbd.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-1cbc1b08.entry.js.map → p-7a33fe43.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-cfbef2c3.entry.js.map → p-88983b48.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-bc71a934.entry.js.map → p-8ca5851b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e5ce98e0.entry.js.map → p-8ec302f8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ae1b5e23.entry.js.map → p-8f59d90d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-28c972c6.entry.js.map → p-8fe13fca.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d9fdc804.entry.js.map → p-a1d45a8b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-5ed87dec.entry.js.map → p-a2217ed8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0d9f1574.js.map → p-a2b1d98b.js.map} +0 -0
- /package/dist/web-components-library/{p-7ce5ca87.entry.js.map → p-a9d05a92.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f8d49a59.entry.js.map → p-ad821c05.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8eb94125.entry.js.map → p-b0d88afc.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-25be56d1.entry.js.map → p-b0f758e7.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b94e0513.entry.js.map → p-b1561f18.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-5d7bbd82.entry.js.map → p-b16272ea.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fad6ea09.entry.js.map → p-b240bd96.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d20df54b.entry.js.map → p-b555681f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7f707293.entry.js.map → p-b69a3542.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-301b56f1.entry.js.map → p-c4878fa9.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-55fad9b1.entry.js.map → p-c8501bd3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-acee5500.entry.js.map → p-ca1a7347.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8c5dcab3.entry.js.map → p-d5e29462.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7314c74b.entry.js.map → p-d60b9285.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-30677b5c.entry.js.map → p-d9592fa6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ec8f8ac8.entry.js.map → p-dc46730d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-1c51153b.entry.js.map → p-e4627f9a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6655e19b.entry.js.map → p-e853ccde.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-431f5871.js.map → p-ee43894c.js.map} +0 -0
- /package/dist/web-components-library/{p-f9f98130.entry.js.map → p-ee7185cf.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0cb113f9.js.map → p-fbe3bc33.js.map} +0 -0
- /package/www/build/{p-838b298b.entry.js.map → p-07da09b0.entry.js.map} +0 -0
- /package/www/build/{p-7b13eeff.entry.js.map → p-1d78d37b.entry.js.map} +0 -0
- /package/www/build/{p-9bad1dbc.entry.js.map → p-1ee52b2e.entry.js.map} +0 -0
- /package/www/build/{p-8fa23b47.entry.js.map → p-2618e4de.entry.js.map} +0 -0
- /package/www/build/{p-f7f2beae.js.map → p-26f324ab.js.map} +0 -0
- /package/www/build/{p-3a42612f.entry.js.map → p-29759f61.entry.js.map} +0 -0
- /package/www/build/{p-df97df54.entry.js.map → p-2a657ab1.entry.js.map} +0 -0
- /package/www/build/{p-61a83529.entry.js.map → p-2ac26cde.entry.js.map} +0 -0
- /package/www/build/{p-aaab7f44.entry.js.map → p-2e373eba.entry.js.map} +0 -0
- /package/www/build/{p-7ecc3acf.entry.js.map → p-3abd3f25.entry.js.map} +0 -0
- /package/www/build/{p-1ece11f1.entry.js.map → p-3e1983eb.entry.js.map} +0 -0
- /package/www/build/{p-121f2960.entry.js.map → p-43aea424.entry.js.map} +0 -0
- /package/www/build/{p-abc08ea3.entry.js.map → p-4900a14c.entry.js.map} +0 -0
- /package/www/build/{p-abd3b914.entry.js.map → p-506d2cdb.entry.js.map} +0 -0
- /package/www/build/{p-bae9cf07.entry.js.map → p-542e0154.entry.js.map} +0 -0
- /package/www/build/{p-adb5caab.entry.js.map → p-6598aee0.entry.js.map} +0 -0
- /package/www/build/{p-9fcc8e5d.entry.js.map → p-663115e2.entry.js.map} +0 -0
- /package/www/build/{p-4de706ad.entry.js.map → p-6669b4c9.entry.js.map} +0 -0
- /package/www/build/{p-390bbfd4.entry.js.map → p-6b679226.entry.js.map} +0 -0
- /package/www/build/{p-2467913e.entry.js.map → p-6f761080.entry.js.map} +0 -0
- /package/www/build/{p-1bbf185c.js.map → p-7000e4f8.js.map} +0 -0
- /package/www/build/{p-1c017b32.entry.js.map → p-72c07bbd.entry.js.map} +0 -0
- /package/www/build/{p-1cbc1b08.entry.js.map → p-7a33fe43.entry.js.map} +0 -0
- /package/www/build/{p-cfbef2c3.entry.js.map → p-88983b48.entry.js.map} +0 -0
- /package/www/build/{p-bc71a934.entry.js.map → p-8ca5851b.entry.js.map} +0 -0
- /package/www/build/{p-e5ce98e0.entry.js.map → p-8ec302f8.entry.js.map} +0 -0
- /package/www/build/{p-ae1b5e23.entry.js.map → p-8f59d90d.entry.js.map} +0 -0
- /package/www/build/{p-28c972c6.entry.js.map → p-8fe13fca.entry.js.map} +0 -0
- /package/www/build/{p-d9fdc804.entry.js.map → p-a1d45a8b.entry.js.map} +0 -0
- /package/www/build/{p-5ed87dec.entry.js.map → p-a2217ed8.entry.js.map} +0 -0
- /package/www/build/{p-0d9f1574.js.map → p-a2b1d98b.js.map} +0 -0
- /package/www/build/{p-7ce5ca87.entry.js.map → p-a9d05a92.entry.js.map} +0 -0
- /package/www/build/{p-f8d49a59.entry.js.map → p-ad821c05.entry.js.map} +0 -0
- /package/www/build/{p-8eb94125.entry.js.map → p-b0d88afc.entry.js.map} +0 -0
- /package/www/build/{p-25be56d1.entry.js.map → p-b0f758e7.entry.js.map} +0 -0
- /package/www/build/{p-b94e0513.entry.js.map → p-b1561f18.entry.js.map} +0 -0
- /package/www/build/{p-5d7bbd82.entry.js.map → p-b16272ea.entry.js.map} +0 -0
- /package/www/build/{p-fad6ea09.entry.js.map → p-b240bd96.entry.js.map} +0 -0
- /package/www/build/{p-d20df54b.entry.js.map → p-b555681f.entry.js.map} +0 -0
- /package/www/build/{p-7f707293.entry.js.map → p-b69a3542.entry.js.map} +0 -0
- /package/www/build/{p-301b56f1.entry.js.map → p-c4878fa9.entry.js.map} +0 -0
- /package/www/build/{p-55fad9b1.entry.js.map → p-c8501bd3.entry.js.map} +0 -0
- /package/www/build/{p-acee5500.entry.js.map → p-ca1a7347.entry.js.map} +0 -0
- /package/www/build/{p-8c5dcab3.entry.js.map → p-d5e29462.entry.js.map} +0 -0
- /package/www/build/{p-7314c74b.entry.js.map → p-d60b9285.entry.js.map} +0 -0
- /package/www/build/{p-30677b5c.entry.js.map → p-d9592fa6.entry.js.map} +0 -0
- /package/www/build/{p-ec8f8ac8.entry.js.map → p-dc46730d.entry.js.map} +0 -0
- /package/www/build/{p-1c51153b.entry.js.map → p-e4627f9a.entry.js.map} +0 -0
- /package/www/build/{p-6655e19b.entry.js.map → p-e853ccde.entry.js.map} +0 -0
- /package/www/build/{p-431f5871.js.map → p-ee43894c.js.map} +0 -0
- /package/www/build/{p-f9f98130.entry.js.map → p-ee7185cf.entry.js.map} +0 -0
- /package/www/build/{p-0cb113f9.js.map → p-fbe3bc33.js.map} +0 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { KeyboardCode } from "../../../beans";
|
|
3
|
+
export class ZTreeList {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.parsedItems = [];
|
|
6
|
+
this.items = [];
|
|
7
|
+
this.htmlAriaLabelledby = undefined;
|
|
8
|
+
this.htmlSectionTitle = undefined;
|
|
9
|
+
}
|
|
10
|
+
watchItems() {
|
|
11
|
+
this.parsedItems = typeof this.items === "string" ? JSON.parse(this.items) : this.items;
|
|
12
|
+
}
|
|
13
|
+
componentWillLoad() {
|
|
14
|
+
this.watchItems();
|
|
15
|
+
}
|
|
16
|
+
handleClick(item) {
|
|
17
|
+
this.treeItemClicked.emit({ id: item.id, name: item.name, url: item.url });
|
|
18
|
+
}
|
|
19
|
+
getFocusableElements() {
|
|
20
|
+
return Array.from(this.host.shadowRoot.querySelectorAll('a[tabindex="0"]'));
|
|
21
|
+
}
|
|
22
|
+
getAncestor(element, levels) {
|
|
23
|
+
let ancestor = element;
|
|
24
|
+
for (let i = 0; i < levels; i++) {
|
|
25
|
+
ancestor = ancestor === null || ancestor === void 0 ? void 0 : ancestor.parentElement;
|
|
26
|
+
if (!ancestor) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return ancestor;
|
|
31
|
+
}
|
|
32
|
+
handleArrowNav(event) {
|
|
33
|
+
if (event.code === KeyboardCode.TAB) {
|
|
34
|
+
event.preventDefault();
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const focusableElements = this.getFocusableElements();
|
|
38
|
+
const currentIndex = focusableElements.indexOf(event.target);
|
|
39
|
+
if (currentIndex === -1) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (event.code === KeyboardCode.ARROW_DOWN || event.code === KeyboardCode.ARROW_UP) {
|
|
43
|
+
event.preventDefault();
|
|
44
|
+
const nextIndex = currentIndex + (event.code === KeyboardCode.ARROW_DOWN ? 1 : -1);
|
|
45
|
+
if (nextIndex < 0 || nextIndex >= focusableElements.length) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
focusableElements[nextIndex].focus();
|
|
49
|
+
}
|
|
50
|
+
if (event.code === KeyboardCode.ARROW_LEFT) {
|
|
51
|
+
event.preventDefault();
|
|
52
|
+
const ancestor = this.getAncestor(focusableElements[currentIndex], 4);
|
|
53
|
+
if (!ancestor ||
|
|
54
|
+
!ancestor.children[0] ||
|
|
55
|
+
(ancestor.children[0].tagName.toLowerCase() !== "a" && ancestor.getAttribute("tabindex") === null)) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
ancestor.children[0].focus();
|
|
59
|
+
}
|
|
60
|
+
if (event.code === KeyboardCode.ARROW_RIGHT) {
|
|
61
|
+
event.preventDefault();
|
|
62
|
+
const parentElm = event.target.closest("z-list-element");
|
|
63
|
+
if (!parentElm) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const childrenContainer = parentElm.querySelector("z-list");
|
|
67
|
+
if (!childrenContainer) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const firstChild = childrenContainer.querySelector('a[tabindex="0"]');
|
|
71
|
+
if (!firstChild) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
firstChild.focus();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
renderTreeList(item, key, level = 1) {
|
|
78
|
+
var _a, _b;
|
|
79
|
+
this.htmlTag = item.url ? "a" : "span";
|
|
80
|
+
const treeListContent = (h("z-list-element", { id: key, class: !item.icon ? "no-icon-elm" : "", clickable: Boolean(item.url), hasTreeItems: true, role: "none", "aria-hidden": undefined }, h(this.htmlTag, { class: {
|
|
81
|
+
"list-element": true,
|
|
82
|
+
"z-link": Boolean(item.url),
|
|
83
|
+
"link-clickable": Boolean(item.url),
|
|
84
|
+
}, tabIndex: item.url ? 0 : -1, onClick: () => this.handleClick(item), onKeyUp: (event) => {
|
|
85
|
+
if (event.code === KeyboardCode.ENTER || event.code === KeyboardCode.SPACE) {
|
|
86
|
+
this.handleClick(item);
|
|
87
|
+
}
|
|
88
|
+
}, onKeyDown: (event) => this.handleArrowNav(event), role: item.url ? "treeitem" : undefined, "aria-hidden": item.url ? undefined : "true", "aria-expanded": ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) > 0 && true, "aria-level": level, "aria-label": item.name, href: item.url }, h("span", { class: "item ellipsis" }, item.icon && (h("z-icon", { width: 16, height: 16, fill: item.url ? "color-primary01" : "color-default-icon", class: "item-icon", name: item.icon })), h("span", { class: {
|
|
89
|
+
"item-label": true,
|
|
90
|
+
"no-icon-label": !item.icon,
|
|
91
|
+
"bold-item": item.bold,
|
|
92
|
+
}, title: item.name }, item.name))), ((_b = item.children) === null || _b === void 0 ? void 0 : _b.length) > 0 && (h("z-list", { role: "group" }, h("div", { class: "children-node" }, item.children.map((child, key) => this.renderTreeList(child, `${key}`, level + 1)))))));
|
|
93
|
+
return treeListContent;
|
|
94
|
+
}
|
|
95
|
+
render() {
|
|
96
|
+
const hasClickableItems = this.parsedItems.some((item) => !!item.url);
|
|
97
|
+
return (h(Host, { key: 'a69d54dfd302656adc09278ac77cde23a7c1e69c', class: "tree-list", role: hasClickableItems ? "navigation" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-labelledby": this.htmlAriaLabelledby }, h("div", { key: '780851098b592574ee55839e4a28d030d9bfa5b7', tabIndex: -1, role: hasClickableItems ? "tree" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-label": this.htmlSectionTitle }, this.parsedItems.map((item, key) => this.renderTreeList(item, `${key}`)))));
|
|
98
|
+
}
|
|
99
|
+
static get is() { return "z-tree-list"; }
|
|
100
|
+
static get encapsulation() { return "shadow"; }
|
|
101
|
+
static get originalStyleUrls() {
|
|
102
|
+
return {
|
|
103
|
+
"$": ["styles.css"]
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
static get styleUrls() {
|
|
107
|
+
return {
|
|
108
|
+
"$": ["styles.css"]
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
static get properties() {
|
|
112
|
+
return {
|
|
113
|
+
"items": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"mutable": false,
|
|
116
|
+
"complexType": {
|
|
117
|
+
"original": "TreeListItem[] | string",
|
|
118
|
+
"resolved": "TreeListItem[] | string",
|
|
119
|
+
"references": {
|
|
120
|
+
"TreeListItem": {
|
|
121
|
+
"location": "import",
|
|
122
|
+
"path": "../../../beans",
|
|
123
|
+
"id": "src/beans/index.tsx::TreeListItem"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": false,
|
|
128
|
+
"optional": false,
|
|
129
|
+
"docs": {
|
|
130
|
+
"tags": [],
|
|
131
|
+
"text": "Items to render, if they have the url property they will be rendered as clickable links"
|
|
132
|
+
},
|
|
133
|
+
"attribute": "items",
|
|
134
|
+
"reflect": false,
|
|
135
|
+
"defaultValue": "[]"
|
|
136
|
+
},
|
|
137
|
+
"htmlAriaLabelledby": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"mutable": false,
|
|
140
|
+
"complexType": {
|
|
141
|
+
"original": "string",
|
|
142
|
+
"resolved": "string",
|
|
143
|
+
"references": {}
|
|
144
|
+
},
|
|
145
|
+
"required": false,
|
|
146
|
+
"optional": false,
|
|
147
|
+
"docs": {
|
|
148
|
+
"tags": [],
|
|
149
|
+
"text": "Used for aria-labelledby attribute, sets name in \"navigation\""
|
|
150
|
+
},
|
|
151
|
+
"attribute": "html-aria-labelledby",
|
|
152
|
+
"reflect": true
|
|
153
|
+
},
|
|
154
|
+
"htmlSectionTitle": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"mutable": false,
|
|
157
|
+
"complexType": {
|
|
158
|
+
"original": "string",
|
|
159
|
+
"resolved": "string",
|
|
160
|
+
"references": {}
|
|
161
|
+
},
|
|
162
|
+
"required": false,
|
|
163
|
+
"optional": false,
|
|
164
|
+
"docs": {
|
|
165
|
+
"tags": [],
|
|
166
|
+
"text": "Used for aria-label attribute, sets name in \"tree\""
|
|
167
|
+
},
|
|
168
|
+
"attribute": "html-section-title",
|
|
169
|
+
"reflect": true
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
static get events() {
|
|
174
|
+
return [{
|
|
175
|
+
"method": "treeItemClicked",
|
|
176
|
+
"name": "treeItemClicked",
|
|
177
|
+
"bubbles": true,
|
|
178
|
+
"cancelable": true,
|
|
179
|
+
"composed": true,
|
|
180
|
+
"docs": {
|
|
181
|
+
"tags": [],
|
|
182
|
+
"text": "Emitted on item click, it return the id, name and url of the clicked item"
|
|
183
|
+
},
|
|
184
|
+
"complexType": {
|
|
185
|
+
"original": "{id: string; name: string; url: string}",
|
|
186
|
+
"resolved": "{ id: string; name: string; url: string; }",
|
|
187
|
+
"references": {}
|
|
188
|
+
}
|
|
189
|
+
}];
|
|
190
|
+
}
|
|
191
|
+
static get elementRef() { return "host"; }
|
|
192
|
+
static get watchers() {
|
|
193
|
+
return [{
|
|
194
|
+
"propName": "items",
|
|
195
|
+
"methodName": "watchItems"
|
|
196
|
+
}];
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/list/z-tree-list/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAC,YAAY,EAAe,MAAM,gBAAgB,CAAC;AAO1D,MAAM,OAAO,SAAS;;QAmBZ,gBAAW,GAAmB,EAAE,CAAC;qBAdR,EAAE;;;;IAmBnC,UAAU;QACR,IAAI,CAAC,WAAW,GAAG,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;IAC1F,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,UAAU,EAAE,CAAC;IACpB,CAAC;IAEO,WAAW,CAAC,IAAkB;QACpC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAC,CAAC,CAAC;IAC3E,CAAC;IAEO,oBAAoB;QAC1B,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAC9E,CAAC;IAEO,WAAW,CAAC,OAAoB,EAAE,MAAc;QACtD,IAAI,QAAQ,GAAuB,OAAO,CAAC;Q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CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,iBAC5B,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,gBACvC,IAAI,CAAC,gBAAgB,IAEhC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,EAAE,CAAC,CAAC,CACrE,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, Event, EventEmitter, Host, Prop, Watch, h} from \"@stencil/core\";\nimport {KeyboardCode, TreeListItem} from \"../../../beans\";\n\n@Component({\n tag: \"z-tree-list\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTreeList {\n @Element() host: HTMLZTreeListElement;\n\n /** Items to render, if they have the url property they will be rendered as clickable links */\n @Prop()\n items: TreeListItem[] | string = [];\n\n /** Used for aria-labelledby attribute, sets name in \"navigation\" */\n @Prop({reflect: true})\n htmlAriaLabelledby: string;\n\n /** Used for aria-label attribute, sets name in \"tree\" */\n @Prop({reflect: true})\n htmlSectionTitle: string;\n\n /** Emitted on item click, it return the id, name and url of the clicked item */\n @Event()\n treeItemClicked: EventEmitter<{id: string; name: string; url: string}>;\n\n private parsedItems: TreeListItem[] = [];\n\n private htmlTag: string;\n\n @Watch(\"items\")\n watchItems(): void {\n this.parsedItems = typeof this.items === \"string\" ? JSON.parse(this.items) : this.items;\n }\n\n componentWillLoad(): void {\n this.watchItems();\n }\n\n private handleClick(item: TreeListItem): void {\n this.treeItemClicked.emit({id: item.id, name: item.name, url: item.url});\n }\n\n private getFocusableElements(): HTMLElement[] {\n return Array.from(this.host.shadowRoot.querySelectorAll('a[tabindex=\"0\"]'));\n }\n\n private getAncestor(element: HTMLElement, levels: number): HTMLElement | null {\n let ancestor: HTMLElement | null = element;\n\n for (let i = 0; i < levels; i++) {\n ancestor = ancestor?.parentElement;\n if (!ancestor) {\n return;\n }\n }\n\n return ancestor;\n }\n\n private handleArrowNav(event: KeyboardEvent): void {\n if (event.code === KeyboardCode.TAB) {\n event.preventDefault();\n\n return;\n }\n\n const focusableElements = this.getFocusableElements();\n const currentIndex = focusableElements.indexOf(event.target as HTMLElement);\n\n if (currentIndex === -1) {\n return;\n }\n\n if (event.code === KeyboardCode.ARROW_DOWN || event.code === KeyboardCode.ARROW_UP) {\n event.preventDefault();\n\n const nextIndex = currentIndex + (event.code === KeyboardCode.ARROW_DOWN ? 1 : -1);\n if (nextIndex < 0 || nextIndex >= focusableElements.length) {\n return;\n }\n\n focusableElements[nextIndex].focus();\n }\n\n if (event.code === KeyboardCode.ARROW_LEFT) {\n event.preventDefault();\n const ancestor = this.getAncestor(focusableElements[currentIndex], 4);\n\n if (\n !ancestor ||\n !ancestor.children[0] ||\n (ancestor.children[0].tagName.toLowerCase() !== \"a\" && ancestor.getAttribute(\"tabindex\") === null)\n ) {\n return;\n }\n\n (ancestor.children[0] as HTMLElement).focus();\n }\n\n if (event.code === KeyboardCode.ARROW_RIGHT) {\n event.preventDefault();\n\n const parentElm = (event.target as HTMLElement).closest(\"z-list-element\") as HTMLElement;\n\n if (!parentElm) {\n return;\n }\n\n const childrenContainer = parentElm.querySelector(\"z-list\") as HTMLElement;\n\n if (!childrenContainer) {\n return;\n }\n\n const firstChild = childrenContainer.querySelector('a[tabindex=\"0\"]') as HTMLElement;\n\n if (!firstChild) {\n return;\n }\n\n firstChild.focus();\n }\n }\n\n private renderTreeList(item: TreeListItem, key: string, level = 1): HTMLZListElementElement {\n this.htmlTag = item.url ? \"a\" : \"span\";\n\n const treeListContent = (\n <z-list-element\n id={key}\n class={!item.icon ? \"no-icon-elm\" : \"\"}\n clickable={Boolean(item.url)}\n hasTreeItems={true}\n role=\"none\"\n aria-hidden={undefined}\n >\n <this.htmlTag\n class={{\n \"list-element\": true,\n \"z-link\": Boolean(item.url),\n \"link-clickable\": Boolean(item.url),\n }}\n tabIndex={item.url ? 0 : -1}\n onClick={() => this.handleClick(item)}\n onKeyUp={(event: KeyboardEvent) => {\n if (event.code === KeyboardCode.ENTER || event.code === KeyboardCode.SPACE) {\n this.handleClick(item);\n }\n }}\n onKeyDown={(event: KeyboardEvent) => this.handleArrowNav(event)}\n role={item.url ? \"treeitem\" : undefined}\n aria-hidden={item.url ? undefined : \"true\"}\n aria-expanded={item.children?.length > 0 && true}\n aria-level={level}\n aria-label={item.name}\n href={item.url}\n >\n <span class=\"item ellipsis\">\n {item.icon && (\n <z-icon\n width={16}\n height={16}\n fill={item.url ? \"color-primary01\" : \"color-default-icon\"}\n class=\"item-icon\"\n name={item.icon}\n />\n )}\n <span\n class={{\n \"item-label\": true,\n \"no-icon-label\": !item.icon,\n \"bold-item\": item.bold,\n }}\n title={item.name}\n >\n {item.name}\n </span>\n </span>\n </this.htmlTag>\n {item.children?.length > 0 && (\n <z-list role=\"group\">\n <div class=\"children-node\">\n {item.children.map((child, key) => this.renderTreeList(child, `${key}`, level + 1))}\n </div>\n </z-list>\n )}\n </z-list-element>\n );\n\n return treeListContent;\n }\n\n render(): HTMLZTreeListElement {\n const hasClickableItems = this.parsedItems.some((item) => !!item.url);\n\n return (\n <Host\n class=\"tree-list\"\n role={hasClickableItems ? \"navigation\" : \"none\"}\n aria-hidden={hasClickableItems ? undefined : \"true\"}\n aria-labelledby={this.htmlAriaLabelledby}\n >\n <div\n tabIndex={-1}\n role={hasClickableItems ? \"tree\" : \"none\"}\n aria-hidden={hasClickableItems ? undefined : \"true\"}\n aria-label={this.htmlSectionTitle}\n >\n {this.parsedItems.map((item, key) => this.renderTreeList(item, `${key}`))}\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import "./index";
|
|
3
|
+
const sampleItems = [
|
|
4
|
+
{
|
|
5
|
+
name: "Parent 1",
|
|
6
|
+
icon: "folder",
|
|
7
|
+
children: [
|
|
8
|
+
{
|
|
9
|
+
name: "Child 1.1",
|
|
10
|
+
icon: "book",
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
name: "Child 1.2",
|
|
14
|
+
icon: "book",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: "Parent 2",
|
|
20
|
+
icon: "folder",
|
|
21
|
+
children: [
|
|
22
|
+
{
|
|
23
|
+
name: "Child 2.1",
|
|
24
|
+
icon: "book",
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
const clickableItems = [
|
|
30
|
+
{
|
|
31
|
+
name: "Parent 1",
|
|
32
|
+
icon: "folder",
|
|
33
|
+
url: "#",
|
|
34
|
+
children: [
|
|
35
|
+
{
|
|
36
|
+
name: "Child 1.1",
|
|
37
|
+
icon: "book",
|
|
38
|
+
url: "#",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "Child 1.2",
|
|
42
|
+
icon: "book",
|
|
43
|
+
url: "#",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "Parent 2",
|
|
49
|
+
icon: "folder",
|
|
50
|
+
url: "#",
|
|
51
|
+
children: [
|
|
52
|
+
{
|
|
53
|
+
name: "Child 2.1",
|
|
54
|
+
icon: "book",
|
|
55
|
+
url: "#",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
];
|
|
60
|
+
const boldItems = [
|
|
61
|
+
{
|
|
62
|
+
name: "Parent 1",
|
|
63
|
+
icon: "folder",
|
|
64
|
+
bold: true,
|
|
65
|
+
children: [
|
|
66
|
+
{
|
|
67
|
+
name: "Child 1.1",
|
|
68
|
+
icon: "book",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: "Child 1.2",
|
|
72
|
+
icon: "book",
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "Parent 2",
|
|
78
|
+
icon: "folder",
|
|
79
|
+
bold: true,
|
|
80
|
+
children: [
|
|
81
|
+
{
|
|
82
|
+
name: "Child 2.1",
|
|
83
|
+
icon: "book",
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
];
|
|
88
|
+
const StoryMeta = {
|
|
89
|
+
title: "ZList/ZTreeList",
|
|
90
|
+
component: "z-tree-list",
|
|
91
|
+
argTypes: {
|
|
92
|
+
items: { control: "object" },
|
|
93
|
+
},
|
|
94
|
+
args: {
|
|
95
|
+
items: sampleItems,
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
export default StoryMeta;
|
|
99
|
+
const Template = (args) => {
|
|
100
|
+
return html `<z-tree-list items=${JSON.stringify(args.items)}></z-tree-list>`;
|
|
101
|
+
};
|
|
102
|
+
export const Base = {
|
|
103
|
+
args: {
|
|
104
|
+
items: sampleItems,
|
|
105
|
+
},
|
|
106
|
+
render: Template,
|
|
107
|
+
};
|
|
108
|
+
export const Bold = {
|
|
109
|
+
args: {
|
|
110
|
+
items: boldItems,
|
|
111
|
+
},
|
|
112
|
+
render: Template,
|
|
113
|
+
};
|
|
114
|
+
export const Clickable = {
|
|
115
|
+
args: {
|
|
116
|
+
items: clickableItems,
|
|
117
|
+
},
|
|
118
|
+
render: Template,
|
|
119
|
+
};
|
|
120
|
+
//# sourceMappingURL=index.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../../src/components/list/z-tree-list/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,IAAI,EAAC,MAAM,KAAK,CAAC;AACzC,OAAO,SAAS,CAAC;AAEjB,MAAM,WAAW,GAAG;IAClB;QACE,IAAI,EA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ACF;CACF,CAAC;AAEF,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,aAAa;IACxB,QAAQ,EAAE;QACR,KAAK,EAAE,EAAC,OAAO,EAAE,QAAQ,EAAC;KAC3B;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,WAAW;KACnB;CACa,CAAC;AAEjB,eAAe,SAAS,CAAC;AAEzB,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAkB,EAAE;IACxC,OAAO,IAAI,CAAA,sBAAsB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC;AAC/E,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAa;IAC5B,IAAI,EAAE;QACJ,KAAK,EAAE,WAAW;KACnB;IACD,MAAM,EAAE,QAAQ;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAa;IAC5B,IAAI,EAAE;QACJ,KAAK,EAAE,SAAS;KACjB;IACD,MAAM,EAAE,QAAQ;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAa;IACjC,IAAI,EAAE;QACJ,KAAK,EAAE,cAAc;KACtB;IACD,MAAM,EAAE,QAAQ;CACjB,CAAC","sourcesContent":["import {Meta, StoryObj} from \"@storybook/web-components\";\nimport {TemplateResult, html} from \"lit\";\nimport \"./index\";\n\nconst sampleItems = [\n {\n name: \"Parent 1\",\n icon: \"folder\",\n children: [\n {\n name: \"Child 1.1\",\n icon: \"book\",\n },\n {\n name: \"Child 1.2\",\n icon: \"book\",\n },\n ],\n },\n {\n name: \"Parent 2\",\n icon: \"folder\",\n children: [\n {\n name: \"Child 2.1\",\n icon: \"book\",\n },\n ],\n },\n];\n\nconst clickableItems = [\n {\n name: \"Parent 1\",\n icon: \"folder\",\n url: \"#\",\n children: [\n {\n name: \"Child 1.1\",\n icon: \"book\",\n url: \"#\",\n },\n {\n name: \"Child 1.2\",\n icon: \"book\",\n url: \"#\",\n },\n ],\n },\n {\n name: \"Parent 2\",\n icon: \"folder\",\n url: \"#\",\n children: [\n {\n name: \"Child 2.1\",\n icon: \"book\",\n url: \"#\",\n },\n ],\n },\n];\n\nconst boldItems = [\n {\n name: \"Parent 1\",\n icon: \"folder\",\n bold: true,\n children: [\n {\n name: \"Child 1.1\",\n icon: \"book\",\n },\n {\n name: \"Child 1.2\",\n icon: \"book\",\n },\n ],\n },\n {\n name: \"Parent 2\",\n icon: \"folder\",\n bold: true,\n children: [\n {\n name: \"Child 2.1\",\n icon: \"book\",\n },\n ],\n },\n];\n\nconst StoryMeta = {\n title: \"ZList/ZTreeList\",\n component: \"z-tree-list\",\n argTypes: {\n items: {control: \"object\"},\n },\n args: {\n items: sampleItems,\n },\n} satisfies Meta;\n\nexport default StoryMeta;\n\nconst Template = (args): TemplateResult => {\n return html`<z-tree-list items=${JSON.stringify(args.items)}></z-tree-list>`;\n};\n\nexport const Base: StoryObj = {\n args: {\n items: sampleItems,\n },\n render: Template,\n};\n\nexport const Bold: StoryObj = {\n args: {\n items: boldItems,\n },\n render: Template,\n};\n\nexport const Clickable: StoryObj = {\n args: {\n items: clickableItems,\n },\n render: Template,\n};\n"]}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
font-family: var(--font-family-sans);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
z-list-element {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: block;
|
|
8
|
+
padding-top: var(--space-unit);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
z-list-element::before,
|
|
12
|
+
z-list-element::after {
|
|
13
|
+
position: absolute;
|
|
14
|
+
z-index: 100;
|
|
15
|
+
top: 0.125rem;
|
|
16
|
+
left: -0.5rem;
|
|
17
|
+
content: "";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
z-list z-list-element::before {
|
|
21
|
+
width: var(--space-unit);
|
|
22
|
+
height: calc(var(--space-unit) * 2);
|
|
23
|
+
border-bottom: var(--border-size-small) solid var(--color-disabled01-icon);
|
|
24
|
+
border-left: var(--border-size-small) solid var(--color-disabled01-icon);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
z-list z-list-element::after {
|
|
28
|
+
width: var(--space-unit);
|
|
29
|
+
height: 100%;
|
|
30
|
+
border-left: var(--border-size-small) solid var(--color-disabled01-icon);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
z-list z-list-element:last-child::after,
|
|
34
|
+
z-list > z-list-element::before,
|
|
35
|
+
z-list > z-list-element::after,
|
|
36
|
+
z-list > z-list-group > z-list-element::before,
|
|
37
|
+
z-list > z-list-group > z-list-element::after {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
z-list > div.children-node {
|
|
42
|
+
padding-left: calc(var(--space-unit) * 2);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
z-list-element > .list-element {
|
|
46
|
+
z-index: 100;
|
|
47
|
+
display: flex;
|
|
48
|
+
justify-content: space-between;
|
|
49
|
+
padding: 0;
|
|
50
|
+
color: var(--color-default-text);
|
|
51
|
+
font-size: var(--font-size-2);
|
|
52
|
+
font-style: normal;
|
|
53
|
+
font-weight: var(--font-rg);
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
z-list-element > .list-element.link-clickable {
|
|
58
|
+
color: var(--color-primary01);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
z-list-element > .list-element.link-clickable:hover {
|
|
62
|
+
text-decoration: underline;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
z-list-element > .list-element .item.ellipsis {
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
z-list-element .list-element::after {
|
|
70
|
+
position: absolute;
|
|
71
|
+
top: 0;
|
|
72
|
+
right: -0.0625rem;
|
|
73
|
+
display: block;
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: calc(var(--space-unit) * 5);
|
|
76
|
+
content: "";
|
|
77
|
+
transform: translateX(-100%);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.item-label {
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
flex-grow: 1;
|
|
83
|
+
font-size: var(--font-size-2);
|
|
84
|
+
font-style: normal;
|
|
85
|
+
font-weight: var(--font-rg);
|
|
86
|
+
letter-spacing: 0.0032rem;
|
|
87
|
+
line-height: 1.25rem;
|
|
88
|
+
text-overflow: ellipsis;
|
|
89
|
+
white-space: nowrap;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.item-label.bold-item {
|
|
93
|
+
font-weight: var(--font-sb);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.item.ellipsis {
|
|
97
|
+
display: flex;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
max-width: 100%;
|
|
100
|
+
text-overflow: ellipsis;
|
|
101
|
+
white-space: nowrap;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.children-node > z-list-element {
|
|
105
|
+
padding: 0;
|
|
106
|
+
padding-top: 0.125;
|
|
107
|
+
padding-left: calc(var(--space-unit) * 1.25);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.item-icon {
|
|
111
|
+
margin-right: var(--space-unit);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.no-icon-label {
|
|
115
|
+
padding-left: var(--space-unit);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.children-node > z-list-element.no-icon-elm {
|
|
119
|
+
padding-left: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
z-list-element > .list-element:focus:focus-visible {
|
|
123
|
+
position: relative;
|
|
124
|
+
z-index: 200;
|
|
125
|
+
box-shadow: var(--shadow-focus-primary);
|
|
126
|
+
outline: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@media (max-width: 767px) {
|
|
130
|
+
z-list-element::before,
|
|
131
|
+
z-list-element::after {
|
|
132
|
+
top: 0.1875rem;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
z-list z-list-element::before {
|
|
136
|
+
height: calc(var(--space-unit) * 2.5);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.children-node > z-list-element {
|
|
140
|
+
padding-top: var(--space-unit);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -29,7 +29,7 @@ export class ZTd {
|
|
|
29
29
|
this.updateColspan();
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '9c7d03779f5c51ed26cd794d62f6fe489afa557c', role: "cell", "menu-open": this.isMenuOpen }, h("div", { key: '71494ed002d042d686248cc9382e6b8f98ec4f18', class: "cell--content" }, h("slot", { key: 'd4d89e6814b00e5e120468727205cff474201d00' }), this.showMenu && (h("div", { key: '60a3e28f42528ea07f9fed652f645397f949d197', class: "cell--menu-container prevent-expand" }, h("z-button", { key: '5bc9cfaa9f5215eb4068a6243c80131a1ea8b5c3', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: this.onMenuButtonClick.bind(this) }), h("z-popover", { key: 'f9d6370971330f8fe989a59c5adeaecfa9d66180', class: "cell-popover", ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: '7e14e87932afb69dc68ffa04a874981770368c5e', name: "contextual-menu" })))))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "z-td"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -50,7 +50,7 @@ export class ZTh {
|
|
|
50
50
|
this.updateColspan();
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: 'e8bf215c5bdf5c0486d0de3768919d54a94b8b46', role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection, sortable: this.showSorting }, h("div", { key: 'e7dfc68ddaeac9f1f763eb62e2717ea5e166df16', class: "cell--content" }, h("slot", { key: '96edba7522e8e43bcfecea9d305ffc9840548020' }), this.showSorting && (h("button", { key: '81cef37216c2c823b1027df224ddb905d3c9d412', class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, h("z-icon", { key: 'b00db383bf202b9f774781551a6e59329fed10b2', name: this.sortDirection === SortDirection.DESC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (h("div", { key: '2762feca4feeff61aa673d2a3535f91c9ee7db03', class: "cell--menu-container" }, h("z-button", { key: 'e91a00179db0075255b57d5f946e3c321883faf6', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: () => (this.popoverEl.open = !this.popoverEl.open) }), h("z-popover", { key: 'c632eb1071f2533aa86251e8e345eda845512693', ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: 'bc3aa447b61972c3299352d49f27c9a060a2ce4d', name: "contextual-menu" })))))));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "z-th"; }
|
|
56
56
|
static get encapsulation() { return "shadow"; }
|
|
@@ -36,7 +36,7 @@ export class ZTable {
|
|
|
36
36
|
(_a = this.expandableMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '18f6152b1942c333fb95a9f7e7a23715bf27675d', expandable: this.expandable }, h("div", { key: 'fc7084c01d72828d9d2d8a565a1498a111504992', class: "table", role: "table" }, h("slot", { key: '78d5bf7370f5497868f2277e29d9ad8191123c5e' }))));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "z-table"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ import { Host, h } from "@stencil/core";
|
|
|
5
5
|
*/
|
|
6
6
|
export class ZTbody {
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'b489d32d81a796eafef0fa82f9bb24c53db9e7f7', role: "rowgroup" }, h("slot", { key: '89b11f845de05e0a40dc0180fa45a23c2fd281c7' })));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "z-tbody"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -8,7 +8,7 @@ export class ZTfoot {
|
|
|
8
8
|
this.sticky = false;
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: '441a3e0656da274193c4a12681b9e9d641690982', role: "rowgroup" }, h("slot", { key: '5e80207cbf1238b2141fcd657cb10fc18be7bccb' })));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "z-tfoot"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -8,7 +8,7 @@ export class ZThead {
|
|
|
8
8
|
this.sticky = false;
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: '96a3a467d89c4de659693e31c46f8aee89497140', role: "rowgroup" }, h("slot", { key: 'd1af4ab3b7b484f5de8b16a9d4a74e93ae65ee60' })));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "z-thead"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -43,7 +43,7 @@ export class ZTr {
|
|
|
43
43
|
this.updateColumns();
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: '5ce42271810a5e186701cef65ba6d0e4b7f044fe', role: "row", onClick: this.onRowClick.bind(this), expanded: this.expanded }, h("div", { key: 'e699c444b5d3f21e5468e895a1b4f39829077cc9', class: "z-tr--expand-button-container" }, this.expandable && (h("button", { key: '9f4dee6f1fd647c40fe3612ed52ccff4f8231778', "aria-expanded": this.expanded ? "true" : "false", "aria-label": this.expanded ? "Comprimi riga" : "Espandi riga", "aria-controls": this.expandableContentId, type: "button" }, h("z-icon", { key: '572c95ff115f9c00c07a2e84130020e2f03031c5', name: this.expanded ? "minus-circled" : "plus-circled" })))), h("slot", { key: '97c0be024dde1cf6e218ddaaef53a2b4ca723d37', onSlotchange: this.updateColumns.bind(this) })));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "z-tr"; }
|
|
49
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -47,7 +47,7 @@ export class ZAccordion {
|
|
|
47
47
|
this.toggled.emit(this.open);
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h("details", { key: '
|
|
50
|
+
return (h("details", { key: 'f80c216aa80312c7e7d0d1a2e6455e111d056c03', ref: (elm) => (this.detailsElm = elm), onToggle: this.onDetailsToggle.bind(this), open: this.open }, h("summary", { key: '3076d9672b211e3cec6911aa32daa90a66097f6f', tabIndex: this.isDisabled ? -1 : null, part: "summary" }, this.icon && (h("z-icon", { key: '3f371f4256ef04736a5c76d82f3a33510ea0f6fe', class: "z-accordion-label-icon", name: this.icon })), h("span", { key: '8199a59843cbb1886b66136f2a24c31f785599d9', class: "z-accordion-label" }, this.label), h("span", { key: '0dbc1cfadcb621ded4c5cd3221eb71896947d312', class: "z-accordion-tags" }, h("slot", { key: '505459b0e6445e2b66123d3e2e44d8ddeb9c40cb', name: "tag" })), h("z-icon", { key: 'b9f917868715376dbd71f94f0604616070940daa', class: "z-accordion-chevron", name: this.open ? "chevron-up" : "chevron-down" })), !this.isDisabled && (h("div", { key: '9e0682e6b49dadc028e720cfb6565d87e082d15a', class: "z-accordion-content", part: "content" }, h("slot", { key: 'd09024cbcf07bd1a54f1095a96a6519cebfc91eb' })))));
|
|
51
51
|
}
|
|
52
52
|
static get is() { return "z-accordion"; }
|
|
53
53
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,7 +49,7 @@ export class ZAnchorNavigation {
|
|
|
49
49
|
window.removeEventListener("hashchange", this.setCurrent);
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: '9822a919e14a9643ce66da7d4e24c8cc3e2f62af', collapsed: this.collapsed }, h("z-button", { key: '3996cbb3c1e449c1bd28b7e31b0a4de1b0863b7f', class: "toggle", variant: ButtonVariant.SECONDARY, icon: this.collapsed ? "chevron-up" : "chevron-down", onClick: this.toggleCollapsed.bind(this) }, "salta a"), h("nav", { key: '569d34c11dc979a00e89f75fb3ad3f830ff64982', ref: (el) => (this.nav = el) }, h("slot", { key: 'a23248eaf941da66c5160e335eb1e6acb286fe80' }))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "z-anchor-navigation"; }
|
|
55
55
|
static get originalStyleUrls() {
|
|
@@ -256,7 +256,7 @@ export class ZAppHeader {
|
|
|
256
256
|
}
|
|
257
257
|
render() {
|
|
258
258
|
const hasTopSubtitle = this.hasSlot("top-subtitle");
|
|
259
|
-
return (h(Host, { key: '
|
|
259
|
+
return (h(Host, { key: '451b6acd7b53a5f3cae55dc7c0004b22ade0aa41', "menu-length": this.menuLength }, h("div", { key: 'e97dc023c06d7c1eada472e98e744f47f5633b36', class: { "heading-panel": true, "has-menubar": this.menuLength > 0 && !this.enableOffcanvas }, ref: (el) => (this.container = el) }, h("div", { key: '1aa75f7514bafc871755fa69995dfb459f6380a1', class: "heading-container" }, ((!this.enableSearch && this.isMobile) || !this.isMobile) && (h("div", { key: '0d6db048a85956f68e906658d6302003cb9b2c48', class: "top-subtitle" }, h("slot", { key: '5cb024fd28e76d7152a7e6c77f983ecbfdfbb415', name: "top-subtitle" }))), h("div", { key: '595a01015699c9457b6358fbade05c511b41e601', class: "heading-title" }, this.renderMenuButton(), !hasTopSubtitle && !this._stuck && this.renderProductLogos(), h("slot", { key: '5ddfea601bbbed4fa9f8471d609f9eaf64ad1311', name: "title" }), this.enableSearch && !this.isMobile && this.renderSeachbar()), this.enableSearch && this.isMobile && this.renderSeachbar()), h("nav", { key: '7971c0a2e1d014a62675fbddb2e712b19c6dc79f', class: "menu-container", "aria-label": this.title || undefined }, this.canShowMenu && (h("div", { key: 'ffd0f44061f20897bba3ae34a3d3e26bde993206', role: "menubar", "aria-label": this.title || undefined }, h("slot", { key: '2ddbfb789b028464ae5583c6f592f1be629bbb73', name: "menu", onSlotchange: this.collectMenuElements }))))), this.renderOffcanvas(), this._stuck && this.renderStuck()));
|
|
260
260
|
}
|
|
261
261
|
static get is() { return "z-app-header"; }
|
|
262
262
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class ZAriaAlert {
|
|
|
5
5
|
this.mode = ZAriaAlertMode.POLITE;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'b96543cd05e1193c3a29f08cd69955c1d1c1ea16', "aria-live": this.mode, "aria-atomic": "true", "aria-relevant": "additions" }, h("slot", { key: '60b6386226385a2b10d51723b7b8715215f6ebbf' })));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "z-aria-alert"; }
|
|
11
11
|
static get properties() {
|
|
@@ -24,10 +24,10 @@ export class ZAvatar {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: 'e0add69dac51838abc394ce3f3b631ab07d15435', class: { [this.size]: true, [`body-${this.getTextSize()}-sb`]: true }, style: {
|
|
28
28
|
color: `var(--${this.textColor})`,
|
|
29
29
|
backgroundColor: `var(--${this.backgroundColor})`,
|
|
30
|
-
} }, this.text && !this.image && h("span", { key: '
|
|
30
|
+
} }, this.text && !this.image && h("span", { key: '4ee1d5f0c7f25ee0491d9c05ed5990a4fff368fd' }, this.text.substring(0, 2)), this.image && (h("img", { key: '9e49a43d942830fecee2f60a6521d3b908455893', src: this.image, onError: () => (this.image = "") }))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "z-avatar"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|