@zanichelli/albe-web-components 20.0.2-RC → 20.0.3
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 +45 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-accordion.cjs.entry.js +1 -1
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +36 -19
- 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-app.cjs.entry.js +1 -1
- package/dist/cjs/z-book-card.cjs.entry.js +7 -7
- package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
- package/dist/cjs/z-book-cover.cjs.entry.js +1 -1
- package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +2 -2
- package/dist/cjs/z-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-combobox.cjs.entry.js +3 -3
- package/dist/cjs/z-combobox.cjs.entry.js.map +1 -1
- package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
- package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +6 -6
- package/dist/cjs/z-file.cjs.entry.js +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-input-range.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-navigation-tabs.cjs.entry.js +2 -2
- package/dist/cjs/z-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-popover.cjs.entry.js +1 -1
- package/dist/cjs/z-range-picker.cjs.entry.js +3 -3
- package/dist/cjs/z-select.cjs.entry.js +5 -1
- 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 +7 -5
- package/dist/cjs/z-stepper-item.cjs.entry.js.map +1 -1
- package/dist/cjs/z-stepper.cjs.entry.js +2 -2
- package/dist/cjs/z-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/z-table.cjs.entry.js +1 -1
- package/dist/cjs/z-tbody.cjs.entry.js +1 -1
- package/dist/cjs/z-td.cjs.entry.js +1 -1
- package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
- package/dist/cjs/z-th.cjs.entry.js +1 -1
- package/dist/cjs/z-thead.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +3 -3
- package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/z-tool.cjs.entry.js +2 -2
- package/dist/cjs/z-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/z-tr.cjs.entry.js +1 -1
- package/dist/cjs/z-tree-list.cjs.entry.js +1 -1
- package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/book-card/z-book-card/index.js +6 -6
- package/dist/collection/components/book-card/z-book-card/index.js.map +1 -1
- package/dist/collection/components/book-card/z-book-card/styles.css +30 -6
- package/dist/collection/components/book-card/z-book-card-app/index.js +1 -1
- package/dist/collection/components/date-picker/z-date-picker/index.js +1 -1
- package/dist/collection/components/date-picker/z-range-picker/index.js +3 -3
- package/dist/collection/components/deprecated/table/cells/z-td/index.js +1 -1
- package/dist/collection/components/deprecated/table/cells/z-th/index.js +1 -1
- package/dist/collection/components/deprecated/table/z-table/index.js +1 -1
- package/dist/collection/components/deprecated/table/z-tbody/index.js +1 -1
- package/dist/collection/components/deprecated/table/z-tfoot/index.js +1 -1
- package/dist/collection/components/deprecated/table/z-thead/index.js +1 -1
- package/dist/collection/components/deprecated/table/z-tr/index.js +1 -1
- 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/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/list/z-tree-list/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 +13 -2
- package/dist/collection/components/z-app-header/index.js.map +1 -1
- package/dist/collection/components/z-app-header/styles.css +32 -17
- 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-cover/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-color-picker/index.js +1 -1
- package/dist/collection/components/z-combobox/index.js +2 -2
- package/dist/collection/components/z-combobox/index.js.map +1 -1
- package/dist/collection/components/z-combobox/styles.css +0 -8
- 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-icon/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 +7 -1
- package/dist/collection/components/z-input/index.js.map +1 -1
- package/dist/collection/components/z-input/styles-general.css +3 -1
- package/dist/collection/components/z-input-message/index.js +1 -1
- package/dist/collection/components/z-input-range/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 +2 -2
- package/dist/collection/components/z-popover/index.js +1 -1
- package/dist/collection/components/z-searchbar/index.js +3 -3
- package/dist/collection/components/z-select/index.js +5 -1
- 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/index.js.map +1 -1
- package/dist/collection/components/z-stepper/styles.css +7 -8
- package/dist/collection/components/z-stepper-item/index.js +25 -4
- package/dist/collection/components/z-stepper-item/index.js.map +1 -1
- package/dist/collection/components/z-stepper-item/styles.css +89 -71
- package/dist/collection/components/z-tag/index.js +2 -2
- package/dist/collection/components/z-toast-notification/index.js +3 -3
- package/dist/collection/components/z-toast-notification-list/index.js +1 -1
- package/dist/collection/components/z-toggle-switch/index.js +3 -3
- package/dist/collection/components/z-tool/index.js +2 -2
- package/dist/collection/components/z-toolbar/index.js +1 -1
- package/dist/collection/components/z-tooltip/index.js +1 -1
- package/dist/collection/components/z-visually-hidden/index.js +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 +1 -1
- package/dist/components/index15.js +1 -1
- package/dist/components/index16.js +1 -1
- package/dist/components/index17.js +1 -1
- package/dist/components/index18.js +1 -1
- package/dist/components/index19.js +1 -1
- package/dist/components/index20.js +1 -1
- package/dist/components/index21.js +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/index5.js +1 -1
- package/dist/components/index6.js +1 -1
- package/dist/components/index6.js.map +1 -1
- package/dist/components/index7.js +1 -1
- package/dist/components/index8.js +1 -1
- package/dist/components/index9.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-app-header.js.map +1 -1
- package/dist/components/z-aria-alert.js +1 -1
- package/dist/components/z-avatar.js +1 -1
- package/dist/components/z-book-card-app.js +1 -1
- 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 +1 -1
- package/dist/components/z-button-sort.js +1 -1
- package/dist/components/z-color-picker.js +1 -1
- package/dist/components/z-combobox.js +1 -1
- package/dist/components/z-combobox.js.map +1 -1
- package/dist/components/z-cover-hero.js +1 -1
- package/dist/components/z-date-picker.js +1 -1
- package/dist/components/z-file.js +1 -1
- package/dist/components/z-info-box.js +1 -1
- package/dist/components/z-input-range.js +1 -1
- package/dist/components/z-logo.js +1 -1
- package/dist/components/z-menu-section.js +1 -1
- package/dist/components/z-navigation-tabs.js +1 -1
- package/dist/components/z-notification.js +1 -1
- package/dist/components/z-range-picker.js +1 -1
- package/dist/components/z-select.js +1 -1
- 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-item.js.map +1 -1
- package/dist/components/z-stepper.js +1 -1
- package/dist/components/z-stepper.js.map +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 +3 -3
- package/dist/components/z-toggle-switch.js +1 -1
- package/dist/components/z-tool.js +1 -1
- package/dist/components/z-toolbar.js +1 -1
- package/dist/components/z-tr.js +1 -1
- package/dist/components/z-tree-list.js +1 -1
- package/dist/components/z-visually-hidden.js +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-anchor-navigation.entry.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +36 -19
- 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-app.entry.js +1 -1
- package/dist/esm/z-book-card.entry.js +7 -7
- package/dist/esm/z-book-card.entry.js.map +1 -1
- package/dist/esm/z-book-cover.entry.js +1 -1
- package/dist/esm/z-breadcrumb.entry.js +2 -2
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +2 -2
- package/dist/esm/z-color-picker.entry.js +1 -1
- package/dist/esm/z-combobox.entry.js +3 -3
- package/dist/esm/z-combobox.entry.js.map +1 -1
- package/dist/esm/z-cover-hero.entry.js +2 -2
- package/dist/esm/z-date-picker.entry.js +1 -1
- package/dist/esm/z-dragdrop-area_2.entry.js +6 -6
- package/dist/esm/z-file.entry.js +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-input-range.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-navigation-tabs.entry.js +2 -2
- package/dist/esm/z-notification.entry.js +1 -1
- package/dist/esm/z-popover.entry.js +1 -1
- package/dist/esm/z-range-picker.entry.js +3 -3
- package/dist/esm/z-select.entry.js +5 -1
- 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 +7 -5
- package/dist/esm/z-stepper-item.entry.js.map +1 -1
- package/dist/esm/z-stepper.entry.js +2 -2
- package/dist/esm/z-stepper.entry.js.map +1 -1
- package/dist/esm/z-table.entry.js +1 -1
- package/dist/esm/z-tbody.entry.js +1 -1
- package/dist/esm/z-td.entry.js +1 -1
- package/dist/esm/z-tfoot.entry.js +1 -1
- package/dist/esm/z-th.entry.js +1 -1
- package/dist/esm/z-thead.entry.js +1 -1
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +3 -3
- package/dist/esm/z-toggle-switch.entry.js +3 -3
- package/dist/esm/z-tool.entry.js +2 -2
- package/dist/esm/z-toolbar.entry.js +1 -1
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/esm/z-tr.entry.js +1 -1
- package/dist/esm/z-tree-list.entry.js +1 -1
- package/dist/esm/z-visually-hidden.entry.js +1 -1
- package/dist/types/components/book-card/z-book-card/index.d.ts +0 -1
- package/dist/types/components/z-app-header/index.d.ts +2 -0
- package/dist/types/components/z-input/index.d.ts +1 -0
- package/dist/types/components/z-stepper/index.d.ts +1 -1
- package/dist/types/components/z-stepper-item/index.d.ts +4 -0
- package/dist/types/components.d.ts +9 -0
- package/dist/web-components-library/{p-c983da75.entry.js → p-04b6a9f8.entry.js} +2 -2
- package/dist/web-components-library/{p-08384d53.entry.js → p-09ac8cb2.entry.js} +2 -2
- package/dist/web-components-library/{p-e1d1445c.entry.js → p-10ffee06.entry.js} +2 -2
- package/dist/web-components-library/{p-eea18ea6.entry.js → p-13bc7433.entry.js} +2 -2
- package/dist/web-components-library/{p-fdafba48.entry.js → p-16423e69.entry.js} +2 -2
- package/{www/build/p-633d18e9.entry.js → dist/web-components-library/p-1702efd5.entry.js} +2 -2
- package/dist/web-components-library/p-1702efd5.entry.js.map +1 -0
- package/{www/build/p-886382a7.entry.js → dist/web-components-library/p-1fedbf42.entry.js} +2 -2
- package/{www/build/p-deed5153.entry.js → dist/web-components-library/p-248ff73f.entry.js} +2 -2
- package/{www/build/p-e2cdf19c.entry.js → dist/web-components-library/p-2f8bd98f.entry.js} +2 -2
- package/dist/web-components-library/{p-81c949eb.entry.js → p-320b05fc.entry.js} +2 -2
- package/dist/web-components-library/p-3e78dc0d.entry.js +2 -0
- package/dist/web-components-library/p-3e78dc0d.entry.js.map +1 -0
- package/dist/web-components-library/{p-0fb73edd.entry.js → p-41a3f231.entry.js} +2 -2
- package/{www/build/p-41966ee6.entry.js → dist/web-components-library/p-4362efeb.entry.js} +2 -2
- package/dist/web-components-library/p-484f3064.entry.js +2 -0
- package/dist/web-components-library/p-484f3064.entry.js.map +1 -0
- package/dist/web-components-library/{p-87be3ccc.entry.js → p-4bc9e06a.entry.js} +2 -2
- package/dist/web-components-library/{p-2780f6d9.entry.js → p-4c054dc5.entry.js} +2 -2
- package/dist/web-components-library/{p-d4e212cc.entry.js → p-4d6ea6b1.entry.js} +2 -2
- package/{www/build/p-06a196fb.entry.js → dist/web-components-library/p-57ba851d.entry.js} +2 -2
- package/dist/web-components-library/{p-350ea24f.entry.js → p-5ecdc465.entry.js} +2 -2
- package/dist/web-components-library/{p-95af0156.entry.js → p-6005c944.entry.js} +2 -2
- package/{www/build/p-a4f5e7e9.entry.js → dist/web-components-library/p-61b49075.entry.js} +2 -2
- package/dist/web-components-library/{p-2e4db422.entry.js → p-67a2f55e.entry.js} +2 -2
- package/dist/web-components-library/p-6ce99251.entry.js +2 -0
- package/dist/web-components-library/p-6ce99251.entry.js.map +1 -0
- package/dist/web-components-library/p-885472aa.entry.js +2 -0
- package/{www/build/p-ce98069e.entry.js.map → dist/web-components-library/p-885472aa.entry.js.map} +1 -1
- package/dist/web-components-library/{p-55c3310f.entry.js → p-9dc4d290.entry.js} +2 -2
- package/dist/web-components-library/p-a1f060c0.entry.js +2 -0
- package/dist/web-components-library/{p-e160889a.entry.js.map → p-a1f060c0.entry.js.map} +1 -1
- package/dist/web-components-library/p-a30b5538.entry.js +2 -0
- package/dist/web-components-library/p-a30b5538.entry.js.map +1 -0
- package/dist/web-components-library/{p-3574a17e.entry.js → p-a5e15158.entry.js} +2 -2
- package/dist/web-components-library/{p-42cfc136.entry.js → p-acd3b237.entry.js} +2 -2
- package/dist/web-components-library/p-ae51be93.entry.js +2 -0
- package/dist/web-components-library/{p-2a74e691.entry.js → p-b3d0d75c.entry.js} +2 -2
- package/dist/web-components-library/{p-5ae84959.entry.js → p-b5d18aae.entry.js} +2 -2
- package/dist/web-components-library/{p-2eaf4b9b.entry.js → p-bd1876f7.entry.js} +2 -2
- package/dist/web-components-library/{p-059963b6.entry.js → p-bd663d9d.entry.js} +2 -2
- package/dist/web-components-library/p-c00b8b6d.entry.js +2 -0
- package/dist/web-components-library/p-c00b8b6d.entry.js.map +1 -0
- package/dist/web-components-library/{p-ee5ff565.entry.js → p-ca2d01fd.entry.js} +2 -2
- package/dist/web-components-library/{p-47d4000c.entry.js → p-d4ad8db2.entry.js} +2 -2
- package/{www/build/p-d4eb997c.entry.js → dist/web-components-library/p-d70ab97a.entry.js} +2 -2
- package/dist/web-components-library/{p-668b9254.entry.js → p-d76c3418.entry.js} +2 -2
- package/dist/web-components-library/{p-bdd9c781.entry.js → p-de682f93.entry.js} +2 -2
- package/{www/build/p-6af7c34f.entry.js → dist/web-components-library/p-ea462d53.entry.js} +2 -2
- package/{www/build/p-c15267bc.entry.js → dist/web-components-library/p-eb2deba7.entry.js} +2 -2
- package/dist/web-components-library/{p-baa35a6e.entry.js → p-f074b98b.entry.js} +2 -2
- package/dist/web-components-library/{p-ea96790b.entry.js → p-f95adaa5.entry.js} +3 -3
- package/dist/web-components-library/{p-e972b9c2.entry.js → p-fa11fd2d.entry.js} +2 -2
- package/dist/web-components-library/{p-1b562386.entry.js → p-ffe7860b.entry.js} +2 -2
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +2 -3
- package/www/build/{p-c983da75.entry.js → p-04b6a9f8.entry.js} +2 -2
- package/www/build/{p-08384d53.entry.js → p-09ac8cb2.entry.js} +2 -2
- package/www/build/{p-e1d1445c.entry.js → p-10ffee06.entry.js} +2 -2
- package/www/build/{p-eea18ea6.entry.js → p-13bc7433.entry.js} +2 -2
- package/www/build/{p-fdafba48.entry.js → p-16423e69.entry.js} +2 -2
- package/{dist/web-components-library/p-633d18e9.entry.js → www/build/p-1702efd5.entry.js} +2 -2
- package/www/build/p-1702efd5.entry.js.map +1 -0
- package/{dist/web-components-library/p-886382a7.entry.js → www/build/p-1fedbf42.entry.js} +2 -2
- package/{dist/web-components-library/p-deed5153.entry.js → www/build/p-248ff73f.entry.js} +2 -2
- package/{dist/web-components-library/p-e2cdf19c.entry.js → www/build/p-2f8bd98f.entry.js} +2 -2
- package/www/build/{p-81c949eb.entry.js → p-320b05fc.entry.js} +2 -2
- package/www/build/p-3e78dc0d.entry.js +2 -0
- package/www/build/p-3e78dc0d.entry.js.map +1 -0
- package/www/build/{p-0fb73edd.entry.js → p-41a3f231.entry.js} +2 -2
- package/{dist/web-components-library/p-41966ee6.entry.js → www/build/p-4362efeb.entry.js} +2 -2
- package/www/build/p-484f3064.entry.js +2 -0
- package/www/build/p-484f3064.entry.js.map +1 -0
- package/www/build/{p-87be3ccc.entry.js → p-4bc9e06a.entry.js} +2 -2
- package/www/build/{p-2780f6d9.entry.js → p-4c054dc5.entry.js} +2 -2
- package/www/build/{p-d4e212cc.entry.js → p-4d6ea6b1.entry.js} +2 -2
- package/www/build/{p-9a93e186.js → p-55885a66.js} +1 -1
- package/{dist/web-components-library/p-06a196fb.entry.js → www/build/p-57ba851d.entry.js} +2 -2
- package/www/build/{p-350ea24f.entry.js → p-5ecdc465.entry.js} +2 -2
- package/www/build/{p-95af0156.entry.js → p-6005c944.entry.js} +2 -2
- package/{dist/web-components-library/p-a4f5e7e9.entry.js → www/build/p-61b49075.entry.js} +2 -2
- package/www/build/{p-2e4db422.entry.js → p-67a2f55e.entry.js} +2 -2
- package/www/build/p-6ce99251.entry.js +2 -0
- package/www/build/p-6ce99251.entry.js.map +1 -0
- package/www/build/p-885472aa.entry.js +2 -0
- package/{dist/web-components-library/p-ce98069e.entry.js.map → www/build/p-885472aa.entry.js.map} +1 -1
- package/www/build/{p-55c3310f.entry.js → p-9dc4d290.entry.js} +2 -2
- package/www/build/p-a1f060c0.entry.js +2 -0
- package/www/build/{p-e160889a.entry.js.map → p-a1f060c0.entry.js.map} +1 -1
- package/www/build/p-a30b5538.entry.js +2 -0
- package/www/build/p-a30b5538.entry.js.map +1 -0
- package/www/build/{p-3574a17e.entry.js → p-a5e15158.entry.js} +2 -2
- package/www/build/{p-42cfc136.entry.js → p-acd3b237.entry.js} +2 -2
- package/www/build/p-ae51be93.entry.js +2 -0
- package/www/build/{p-2a74e691.entry.js → p-b3d0d75c.entry.js} +2 -2
- package/www/build/{p-5ae84959.entry.js → p-b5d18aae.entry.js} +2 -2
- package/www/build/{p-2eaf4b9b.entry.js → p-bd1876f7.entry.js} +2 -2
- package/www/build/{p-059963b6.entry.js → p-bd663d9d.entry.js} +2 -2
- package/www/build/p-c00b8b6d.entry.js +2 -0
- package/www/build/p-c00b8b6d.entry.js.map +1 -0
- package/www/build/{p-ee5ff565.entry.js → p-ca2d01fd.entry.js} +2 -2
- package/www/build/{p-47d4000c.entry.js → p-d4ad8db2.entry.js} +2 -2
- package/{dist/web-components-library/p-d4eb997c.entry.js → www/build/p-d70ab97a.entry.js} +2 -2
- package/www/build/{p-668b9254.entry.js → p-d76c3418.entry.js} +2 -2
- package/www/build/{p-bdd9c781.entry.js → p-de682f93.entry.js} +2 -2
- package/{dist/web-components-library/p-6af7c34f.entry.js → www/build/p-ea462d53.entry.js} +2 -2
- package/{dist/web-components-library/p-c15267bc.entry.js → www/build/p-eb2deba7.entry.js} +2 -2
- package/www/build/{p-baa35a6e.entry.js → p-f074b98b.entry.js} +2 -2
- package/www/build/{p-ea96790b.entry.js → p-f95adaa5.entry.js} +3 -3
- package/www/build/{p-e972b9c2.entry.js → p-fa11fd2d.entry.js} +2 -2
- package/www/build/{p-1b562386.entry.js → p-ffe7860b.entry.js} +2 -2
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/www/pages/stepper/stepper-1.html +127 -0
- package/www/pages/stepper/stepper-2.html +128 -0
- package/www/pages/stepper/stepper-3.html +153 -0
- package/dist/web-components-library/p-12305e05.entry.js +0 -2
- package/dist/web-components-library/p-12305e05.entry.js.map +0 -1
- package/dist/web-components-library/p-1fad41b2.entry.js +0 -2
- package/dist/web-components-library/p-1fad41b2.entry.js.map +0 -1
- package/dist/web-components-library/p-55693913.entry.js +0 -2
- package/dist/web-components-library/p-55693913.entry.js.map +0 -1
- package/dist/web-components-library/p-633d18e9.entry.js.map +0 -1
- package/dist/web-components-library/p-781d96de.entry.js +0 -2
- package/dist/web-components-library/p-781d96de.entry.js.map +0 -1
- package/dist/web-components-library/p-bc8eec12.entry.js +0 -2
- package/dist/web-components-library/p-ce98069e.entry.js +0 -2
- package/dist/web-components-library/p-e160889a.entry.js +0 -2
- package/dist/web-components-library/p-f7e11eab.entry.js +0 -2
- package/dist/web-components-library/p-f7e11eab.entry.js.map +0 -1
- package/www/build/p-12305e05.entry.js +0 -2
- package/www/build/p-12305e05.entry.js.map +0 -1
- package/www/build/p-1fad41b2.entry.js +0 -2
- package/www/build/p-1fad41b2.entry.js.map +0 -1
- package/www/build/p-55693913.entry.js +0 -2
- package/www/build/p-55693913.entry.js.map +0 -1
- package/www/build/p-633d18e9.entry.js.map +0 -1
- package/www/build/p-781d96de.entry.js +0 -2
- package/www/build/p-781d96de.entry.js.map +0 -1
- package/www/build/p-bc8eec12.entry.js +0 -2
- package/www/build/p-ce98069e.entry.js +0 -2
- package/www/build/p-e160889a.entry.js +0 -2
- package/www/build/p-f7e11eab.entry.js +0 -2
- package/www/build/p-f7e11eab.entry.js.map +0 -1
- /package/dist/web-components-library/{p-c983da75.entry.js.map → p-04b6a9f8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-08384d53.entry.js.map → p-09ac8cb2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e1d1445c.entry.js.map → p-10ffee06.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-eea18ea6.entry.js.map → p-13bc7433.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fdafba48.entry.js.map → p-16423e69.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-886382a7.entry.js.map → p-1fedbf42.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-deed5153.entry.js.map → p-248ff73f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e2cdf19c.entry.js.map → p-2f8bd98f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-81c949eb.entry.js.map → p-320b05fc.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0fb73edd.entry.js.map → p-41a3f231.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-41966ee6.entry.js.map → p-4362efeb.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-87be3ccc.entry.js.map → p-4bc9e06a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2780f6d9.entry.js.map → p-4c054dc5.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d4e212cc.entry.js.map → p-4d6ea6b1.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-06a196fb.entry.js.map → p-57ba851d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-350ea24f.entry.js.map → p-5ecdc465.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-95af0156.entry.js.map → p-6005c944.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a4f5e7e9.entry.js.map → p-61b49075.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2e4db422.entry.js.map → p-67a2f55e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-55c3310f.entry.js.map → p-9dc4d290.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-3574a17e.entry.js.map → p-a5e15158.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-42cfc136.entry.js.map → p-acd3b237.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-bc8eec12.entry.js.map → p-ae51be93.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2a74e691.entry.js.map → p-b3d0d75c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-5ae84959.entry.js.map → p-b5d18aae.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2eaf4b9b.entry.js.map → p-bd1876f7.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-059963b6.entry.js.map → p-bd663d9d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ee5ff565.entry.js.map → p-ca2d01fd.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-47d4000c.entry.js.map → p-d4ad8db2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d4eb997c.entry.js.map → p-d70ab97a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-668b9254.entry.js.map → p-d76c3418.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-bdd9c781.entry.js.map → p-de682f93.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6af7c34f.entry.js.map → p-ea462d53.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c15267bc.entry.js.map → p-eb2deba7.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-baa35a6e.entry.js.map → p-f074b98b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ea96790b.entry.js.map → p-f95adaa5.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e972b9c2.entry.js.map → p-fa11fd2d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-1b562386.entry.js.map → p-ffe7860b.entry.js.map} +0 -0
- /package/www/build/{p-c983da75.entry.js.map → p-04b6a9f8.entry.js.map} +0 -0
- /package/www/build/{p-08384d53.entry.js.map → p-09ac8cb2.entry.js.map} +0 -0
- /package/www/build/{p-e1d1445c.entry.js.map → p-10ffee06.entry.js.map} +0 -0
- /package/www/build/{p-eea18ea6.entry.js.map → p-13bc7433.entry.js.map} +0 -0
- /package/www/build/{p-fdafba48.entry.js.map → p-16423e69.entry.js.map} +0 -0
- /package/www/build/{p-886382a7.entry.js.map → p-1fedbf42.entry.js.map} +0 -0
- /package/www/build/{p-deed5153.entry.js.map → p-248ff73f.entry.js.map} +0 -0
- /package/www/build/{p-e2cdf19c.entry.js.map → p-2f8bd98f.entry.js.map} +0 -0
- /package/www/build/{p-81c949eb.entry.js.map → p-320b05fc.entry.js.map} +0 -0
- /package/www/build/{p-0fb73edd.entry.js.map → p-41a3f231.entry.js.map} +0 -0
- /package/www/build/{p-41966ee6.entry.js.map → p-4362efeb.entry.js.map} +0 -0
- /package/www/build/{p-87be3ccc.entry.js.map → p-4bc9e06a.entry.js.map} +0 -0
- /package/www/build/{p-2780f6d9.entry.js.map → p-4c054dc5.entry.js.map} +0 -0
- /package/www/build/{p-d4e212cc.entry.js.map → p-4d6ea6b1.entry.js.map} +0 -0
- /package/www/build/{p-06a196fb.entry.js.map → p-57ba851d.entry.js.map} +0 -0
- /package/www/build/{p-350ea24f.entry.js.map → p-5ecdc465.entry.js.map} +0 -0
- /package/www/build/{p-95af0156.entry.js.map → p-6005c944.entry.js.map} +0 -0
- /package/www/build/{p-a4f5e7e9.entry.js.map → p-61b49075.entry.js.map} +0 -0
- /package/www/build/{p-2e4db422.entry.js.map → p-67a2f55e.entry.js.map} +0 -0
- /package/www/build/{p-55c3310f.entry.js.map → p-9dc4d290.entry.js.map} +0 -0
- /package/www/build/{p-3574a17e.entry.js.map → p-a5e15158.entry.js.map} +0 -0
- /package/www/build/{p-42cfc136.entry.js.map → p-acd3b237.entry.js.map} +0 -0
- /package/www/build/{p-bc8eec12.entry.js.map → p-ae51be93.entry.js.map} +0 -0
- /package/www/build/{p-2a74e691.entry.js.map → p-b3d0d75c.entry.js.map} +0 -0
- /package/www/build/{p-5ae84959.entry.js.map → p-b5d18aae.entry.js.map} +0 -0
- /package/www/build/{p-2eaf4b9b.entry.js.map → p-bd1876f7.entry.js.map} +0 -0
- /package/www/build/{p-059963b6.entry.js.map → p-bd663d9d.entry.js.map} +0 -0
- /package/www/build/{p-ee5ff565.entry.js.map → p-ca2d01fd.entry.js.map} +0 -0
- /package/www/build/{p-47d4000c.entry.js.map → p-d4ad8db2.entry.js.map} +0 -0
- /package/www/build/{p-d4eb997c.entry.js.map → p-d70ab97a.entry.js.map} +0 -0
- /package/www/build/{p-668b9254.entry.js.map → p-d76c3418.entry.js.map} +0 -0
- /package/www/build/{p-bdd9c781.entry.js.map → p-de682f93.entry.js.map} +0 -0
- /package/www/build/{p-6af7c34f.entry.js.map → p-ea462d53.entry.js.map} +0 -0
- /package/www/build/{p-c15267bc.entry.js.map → p-eb2deba7.entry.js.map} +0 -0
- /package/www/build/{p-baa35a6e.entry.js.map → p-f074b98b.entry.js.map} +0 -0
- /package/www/build/{p-ea96790b.entry.js.map → p-f95adaa5.entry.js.map} +0 -0
- /package/www/build/{p-e972b9c2.entry.js.map → p-fa11fd2d.entry.js.map} +0 -0
- /package/www/build/{p-1b562386.entry.js.map → p-ffe7860b.entry.js.map} +0 -0
|
@@ -70,7 +70,7 @@ const ZTr = class {
|
|
|
70
70
|
this.updateColumns();
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
|
-
return (index.h(index.Host, { key: '
|
|
73
|
+
return (index.h(index.Host, { key: '80423ab104796d4bc50e3dbeafd26a417a41594e', role: "row", tabIndex: this.expandable ? 0 : undefined, expanded: this.expanded, onClick: this.onRowClick.bind(this), onKeyDown: this.onKeyDown.bind(this) }, index.h("div", { key: 'd0ec5fa359865b1eb486d21a478f82b61a10bf18', class: "z-tr--focus-overlay", "aria-hidden": "true" }), index.h("div", { key: 'e1f4114f91e1ff59c0ff4b4880b74bceb1702cba', class: "z-tr--expand-button-container" }, this.expandable && (index.h("button", { key: 'bef3c43e06a20de50f2aacf88b6c80fc4822403a', tabIndex: -1, "aria-expanded": this.expanded ? "true" : "false", "aria-label": this.expanded ? "Comprimi riga" : "Espandi riga", "aria-controls": this.expandableContentId, type: "button" }, index.h("z-icon", { key: '803c8640aacbd34ba3de287f519d934cb9d974ca', name: this.expanded ? "minus-circled" : "plus-circled" })))), index.h("slot", { key: 'bf8e10753f600ad984a06a710d19680e52507ab2', onSlotchange: this.updateColumns.bind(this) })));
|
|
74
74
|
}
|
|
75
75
|
get host() { return index.getElement(this); }
|
|
76
76
|
static get watchers() { return {
|
|
@@ -100,7 +100,7 @@ const ZTreeList = class {
|
|
|
100
100
|
}
|
|
101
101
|
render() {
|
|
102
102
|
const hasClickableItems = this.parsedItems.some((item) => !!item.url);
|
|
103
|
-
return (index.h(index.Host, { key: '
|
|
103
|
+
return (index.h(index.Host, { key: '8bc473fe54ef8e0cea9e2deeb85cc798a9201482', class: "tree-list", role: hasClickableItems ? "navigation" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-labelledby": this.htmlAriaLabelledby }, index.h("div", { key: 'da18ff5c34d384aa37ef1edbdb242a3f572f471b', tabIndex: -1, role: hasClickableItems ? "tree" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-label": this.htmlSectionTitle }, this.parsedItems.map((item, key) => this.renderTreeList(item, `${key}`)))));
|
|
104
104
|
}
|
|
105
105
|
get host() { return index.getElement(this); }
|
|
106
106
|
static get watchers() { return {
|
|
@@ -9,7 +9,7 @@ const ZVisuallyHidden = class {
|
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return index.h("slot", { key: '
|
|
12
|
+
return index.h("slot", { key: 'e5b7767ebb02bdbed941d12f89f1be1ca715eb8c' });
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
ZVisuallyHidden.style = stylesCss();
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"components/z-searchbar/index.js",
|
|
55
55
|
"components/z-select/index.js",
|
|
56
56
|
"components/z-skip-to-content/index.js",
|
|
57
|
-
"components/z-stepper/index.js",
|
|
58
57
|
"components/z-stepper-item/index.js",
|
|
58
|
+
"components/z-stepper/index.js",
|
|
59
59
|
"components/z-tag/index.js",
|
|
60
60
|
"components/z-toast-notification/index.js",
|
|
61
61
|
"components/z-toast-notification-list/index.js",
|
|
@@ -53,14 +53,17 @@ export class ZBookCard {
|
|
|
53
53
|
if (!this.authors) {
|
|
54
54
|
return null;
|
|
55
55
|
}
|
|
56
|
-
return (h("div", { class: "
|
|
56
|
+
return (h("div", { class: "authors ellipsis body-4", "aria-description": "autori" }, this.authors));
|
|
57
57
|
}
|
|
58
58
|
renderOperaTitle() {
|
|
59
59
|
const title = this.titleHtmlTag
|
|
60
60
|
? `<${this.titleHtmlTag}>${this.operaTitle}</${this.titleHtmlTag}>`
|
|
61
61
|
: this.operaTitle;
|
|
62
62
|
const operaTitle = (h("div", { class: "opera-title ellipsis body-2-sb", innerHTML: title }));
|
|
63
|
-
|
|
63
|
+
if (this.ebookUrl) {
|
|
64
|
+
return (h("a", { class: "z-link", href: this.ebookUrl, onClick: () => this.emitTitleClick(), target: this.linkTarget }, operaTitle));
|
|
65
|
+
}
|
|
66
|
+
return operaTitle;
|
|
64
67
|
}
|
|
65
68
|
renderVolumeTitle() {
|
|
66
69
|
if (!this.volumeTitle) {
|
|
@@ -80,11 +83,8 @@ export class ZBookCard {
|
|
|
80
83
|
}
|
|
81
84
|
return (h("div", { class: "ebook" }, h("div", { class: "app-name" }, h("img", { class: "ebook-logo", "aria-hidden": "true" }), h("div", { class: "body-4-sb" }, "laZ Ebook")), h("z-button", { size: ControlSize.X_SMALL, href: this.ebookUrl, target: this.linkTarget, onClick: () => this.emitEbookClick(), htmlRole: "link", "aria-description": `leggi l'ebook ${this.operaTitle} su laZ Ebook` }, "leggi ebook")));
|
|
82
85
|
}
|
|
83
|
-
renderCtaSlot() {
|
|
84
|
-
return h("slot", { name: "cta" });
|
|
85
|
-
}
|
|
86
86
|
render() {
|
|
87
|
-
return (h(Host, { key: '
|
|
87
|
+
return (h(Host, { key: '391178b85e493465cb9804798e86d521d084b332' }, h("div", { key: '8b02be97182892375849f06bdb7c9f236cd4f948', class: "main-content" }, this.renderCover(), h("div", { key: 'c6e17c02fa0a0c734bfce5b46213e9a71bd94a32', class: "card-info" }, h("div", { key: 'ac5928ab7e841711079005c3d5493307794a7d78', class: "top" }, h("div", { key: '13eb36fef124a2ceb844750428a40158ce6fa99f' }, this.renderYear(), this.renderAuthors(), this.renderOperaTitle(), this.renderVolumeTitle(), this.renderIsbn(), h("div", { key: 'a5b6258a4b4b971866da61a3e89990fc1d3398ae', class: "cta-slot" }, h("slot", { key: 'ded0f03e6260f0214b22d1b0772ab68c6619e427', name: "cta" }))), h("slot", { key: '6993d539bbc14fecf710c39ad64300cc0f670c7d', name: "tags" }), h("slot", { key: 'cb8f5042550f977610ecd0a6163f659f6c59adb8', name: "data" })), h("slot", { key: '61e08af7dc7ef3599dc29cb19365bf1aab1f220d', name: "ebook" }, this.renderEbook()))), h("slot", { key: '4c096d7f0c06812981cd2405b984f0a76f457d74', name: "apps" })));
|
|
88
88
|
}
|
|
89
89
|
static get is() { return "z-book-card"; }
|
|
90
90
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/book-card/z-book-card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACzG,OAAO,EAAC,eAAe,EAAE,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE5D;;;;;;;GAOG;AAMH,MAAM,OAAO,SAAS;IALtB;QAQE,wCAAwC;QAExC,YAAO,GAAoB,eAAe,CAAC,QAAQ,CAAC;QAsBpD,4BAA4B;QAE5B,cAAS,GAAG,EAAE,CAAC;QAUf,2FAA2F;QAE3F,eAAU,GAAG,QAAQ,CAAC;QAMtB;;;;WAIG;QAEH,sBAAiB,GAAG,KAAK,CAAC;KA0M3B;IAxLS,cAAc;QACpB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;IAEO,cAAc;QACpB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;IAEO,cAAc;QACpB,IAAI,CAAC,UAAU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ACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Element, Event, EventEmitter, Host, Prop, h} from \"@stencil/core\";\nimport {BookCardVariant, ControlSize} from \"../../../beans\";\n\n/**\n * @slot cta - Top right cta (e.g. bookmark icon)\n * @slot ebook - As default, it shows laZ ebook link\n * @slot tags - Tags section, default empty\n * @slot data - External link and pill, default empty\n * @slot apps - List of card-related apps, default empty\n * @slot coverOverlay - Content to be displayed in the `z-book-cover` component slot\n */\n@Component({\n tag: \"z-book-card\",\n styleUrls: [\"styles.css\", \"../../../tokens/typography.css\", \"../../css-components/z-link/styles.css\"],\n shadow: true,\n})\nexport class ZBookCard implements ComponentInterface {\n @Element() hostElement: HTMLZBookCardElement;\n\n /** Card variant: landscape, portrait */\n @Prop({reflect: true})\n variant: BookCardVariant = BookCardVariant.PORTRAIT;\n\n /** Cover URL */\n @Prop()\n cover: string;\n\n /** Opera title (card title) */\n @Prop()\n operaTitle: string;\n\n /** [optional] Volume title (card subvolume) */\n @Prop()\n volumeTitle?: string;\n\n /** [optional] Authors */\n @Prop()\n authors?: string;\n\n /** [optional] Main ISBN */\n @Prop()\n isbn?: string;\n\n /** [optional] ISBN label */\n @Prop()\n isbnLabel = \"\";\n\n /** [optional] year */\n @Prop()\n year?: string;\n\n /** [optional] Link to the ebook resource. Creates a link also around the cover and title. */\n @Prop()\n ebookUrl?: string;\n\n /** [optional] Value for the `target` attribute of the links created by `ebookUrl` prop. */\n @Prop()\n linkTarget = \"_blank\";\n\n /** [optional] Fallback cover URL. */\n @Prop()\n fallbackCover?: string;\n\n /**\n * Whether to show a stack of covers to represent multiple books.\n * Only takes effect when `variant` is `portrait`: in `landscape` it is silently ignored and no\n * cover stack is rendered, regardless of its value.\n */\n @Prop()\n hasMultipleCovers = false;\n\n /** [optional] Set a specific heading level as html tag for the title. */\n @Prop()\n titleHtmlTag?: string;\n\n /** click on ebook link */\n @Event()\n ebookClick: EventEmitter;\n\n /** click on cover link */\n @Event()\n coverClick: EventEmitter;\n\n /** click on title link */\n @Event()\n titleClick: EventEmitter;\n\n private emitEbookClick(): void {\n this.ebookClick.emit();\n }\n\n private emitCoverClick(): void {\n this.coverClick.emit();\n }\n\n private emitTitleClick(): void {\n this.titleClick.emit();\n }\n\n private renderCover(): HTMLDivElement {\n const CoverTag = this.ebookUrl ? \"a\" : \"div\";\n const coverAttrs = this.ebookUrl\n ? {\n href: this.ebookUrl,\n onClick: () => this.emitCoverClick(),\n target: this.linkTarget,\n }\n : {};\n\n return (\n <CoverTag\n class=\"cover\"\n {...coverAttrs}\n >\n <z-book-cover\n cover={this.cover}\n fallbackCover={this.fallbackCover}\n multiple={this.hasMultipleCovers && this.variant === BookCardVariant.PORTRAIT}\n >\n <slot\n name=\"coverOverlay\"\n slot=\"coverOverlay\"\n ></slot>\n </z-book-cover>\n </CoverTag>\n );\n }\n\n private renderYear(): null | HTMLDivElement {\n if (!this.year) {\n return null;\n }\n\n return (\n <div\n class=\"year ellipsis body-4\"\n aria-description=\"anno\"\n >\n {this.year}\n </div>\n );\n }\n\n private renderAuthors(): null | HTMLDivElement {\n if (!this.authors) {\n return null;\n }\n\n return (\n <div class=\"cta-wrapper\">\n <div\n class=\"authors ellipsis body-4\"\n aria-description=\"autori\"\n >\n {this.authors}\n </div>\n {this.variant === BookCardVariant.LANDSCAPE ? this.renderCtaSlot() : null}\n </div>\n );\n }\n\n private renderOperaTitle(): HTMLDivElement {\n const title = this.titleHtmlTag\n ? `<${this.titleHtmlTag}>${this.operaTitle}</${this.titleHtmlTag}>`\n : this.operaTitle;\n\n const operaTitle = (\n <div\n class=\"opera-title ellipsis body-2-sb\"\n innerHTML={title}\n />\n );\n\n return (\n <div class=\"cta-wrapper\">\n {this.ebookUrl ? (\n <a\n class=\"z-link\"\n href={this.ebookUrl}\n onClick={() => this.emitTitleClick()}\n target={this.linkTarget}\n >\n {operaTitle}\n </a>\n ) : (\n operaTitle\n )}\n {this.variant === BookCardVariant.PORTRAIT ? this.renderCtaSlot() : null}\n </div>\n );\n }\n\n private renderVolumeTitle(): null | HTMLDivElement {\n if (!this.volumeTitle) {\n return null;\n }\n\n return <div class=\"volume-title ellipsis body-4\">{this.volumeTitle}</div>;\n }\n\n private renderIsbn(): null | HTMLDivElement {\n if (!this.isbn) {\n return null;\n }\n\n return (\n <div\n class=\"isbn ellipsis body-4-sb\"\n aria-description={`isbn ${this.isbnLabel}`}\n >\n {this.isbn} {this.isbnLabel ? <span class=\"body-4\">{this.isbnLabel}</span> : null}\n </div>\n );\n }\n\n private renderEbook(): null | HTMLDivElement {\n if (!this.ebookUrl) {\n return null;\n }\n\n return (\n <div class=\"ebook\">\n <div class=\"app-name\">\n <img\n class=\"ebook-logo\"\n aria-hidden=\"true\"\n />\n <div class=\"body-4-sb\">laZ Ebook</div>\n </div>\n <z-button\n size={ControlSize.X_SMALL}\n href={this.ebookUrl}\n target={this.linkTarget}\n onClick={() => this.emitEbookClick()}\n htmlRole=\"link\"\n aria-description={`leggi l'ebook ${this.operaTitle} su laZ Ebook`}\n >\n leggi ebook\n </z-button>\n </div>\n );\n }\n\n private renderCtaSlot(): HTMLSlotElement {\n return <slot name=\"cta\"></slot>;\n }\n\n render(): HTMLZBookCardElement {\n return (\n <Host>\n <div class=\"main-content\">\n {this.renderCover()}\n <div class=\"card-info\">\n <div class=\"top\">\n <div>\n {this.renderYear()}\n {this.renderAuthors()}\n {this.renderOperaTitle()}\n {this.renderVolumeTitle()}\n {this.renderIsbn()}\n </div>\n <slot name=\"tags\"></slot>\n <slot name=\"data\"></slot>\n </div>\n <slot name=\"ebook\">{this.renderEbook()}</slot>\n </div>\n </div>\n <slot name=\"apps\"></slot>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/book-card/z-book-card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACzG,OAAO,EAAC,eAAe,EAAE,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE5D;;;;;;;GAOG;AAMH,MAAM,OAAO,SAAS;IALtB;QAQE,wCAAwC;QAExC,YAAO,GAAoB,eAAe,CAAC,QAAQ,CAAC;QAsBpD,4BAA4B;QAE5B,cAAS,GAAG,EAAE,CAAC;QAUf,2FAA2F;QAE3F,eAAU,GAAG,QAAQ,CAAC;QAMtB;;;;WAIG;QAEH,sBAAiB,GAAG,KAAK,CAAC;KAmM3B;IAjLS,cAAc;QACpB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;IAEO,cAAc;QACpB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;IAEO,cAAc;QACpB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;IAEO,WAAW;QACjB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;QAC7C,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ;YAC9B,CAAC,CAAC;gBACE,IAAI,EAAE,IAAI,CAAC,QAAQ;gBACnB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE;gBACpC,MAAM,EAAE,IAAI,CAAC,U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,4DAAK,KAAK,EAAC,cAAc;gBACtB,IAAI,CAAC,WAAW,EAAE;gBACnB,4DAAK,KAAK,EAAC,WAAW;oBACpB,4DAAK,KAAK,EAAC,KAAK;wBACd;4BACG,IAAI,CAAC,UAAU,EAAE;4BACjB,IAAI,CAAC,aAAa,EAAE;4BACpB,IAAI,CAAC,gBAAgB,EAAE;4BACvB,IAAI,CAAC,iBAAiB,EAAE;4BACxB,IAAI,CAAC,UAAU,EAAE;4BAClB,4DAAK,KAAK,EAAC,UAAU;gCACnB,6DAAM,IAAI,EAAC,KAAK,GAAQ,CACpB,CACF;wBACN,6DAAM,IAAI,EAAC,MAAM,GAAQ;wBACzB,6DAAM,IAAI,EAAC,MAAM,GAAQ,CACrB;oBACN,6DAAM,IAAI,EAAC,OAAO,IAAE,IAAI,CAAC,WAAW,EAAE,CAAQ,CAC1C,CACF;YACN,6DAAM,IAAI,EAAC,MAAM,GAAQ,CACpB,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Element, Event, EventEmitter, Host, Prop, h} from \"@stencil/core\";\nimport {BookCardVariant, ControlSize} from \"../../../beans\";\n\n/**\n * @slot cta - Top right cta (e.g. bookmark icon)\n * @slot ebook - As default, it shows laZ ebook link\n * @slot tags - Tags section, default empty\n * @slot data - External link and pill, default empty\n * @slot apps - List of card-related apps, default empty\n * @slot coverOverlay - Content to be displayed in the `z-book-cover` component slot\n */\n@Component({\n tag: \"z-book-card\",\n styleUrls: [\"styles.css\", \"../../../tokens/typography.css\", \"../../css-components/z-link/styles.css\"],\n shadow: true,\n})\nexport class ZBookCard implements ComponentInterface {\n @Element() hostElement: HTMLZBookCardElement;\n\n /** Card variant: landscape, portrait */\n @Prop({reflect: true})\n variant: BookCardVariant = BookCardVariant.PORTRAIT;\n\n /** Cover URL */\n @Prop()\n cover: string;\n\n /** Opera title (card title) */\n @Prop()\n operaTitle: string;\n\n /** [optional] Volume title (card subvolume) */\n @Prop()\n volumeTitle?: string;\n\n /** [optional] Authors */\n @Prop()\n authors?: string;\n\n /** [optional] Main ISBN */\n @Prop()\n isbn?: string;\n\n /** [optional] ISBN label */\n @Prop()\n isbnLabel = \"\";\n\n /** [optional] year */\n @Prop()\n year?: string;\n\n /** [optional] Link to the ebook resource. Creates a link also around the cover and title. */\n @Prop()\n ebookUrl?: string;\n\n /** [optional] Value for the `target` attribute of the links created by `ebookUrl` prop. */\n @Prop()\n linkTarget = \"_blank\";\n\n /** [optional] Fallback cover URL. */\n @Prop()\n fallbackCover?: string;\n\n /**\n * Whether to show a stack of covers to represent multiple books.\n * Only takes effect when `variant` is `portrait`: in `landscape` it is silently ignored and no\n * cover stack is rendered, regardless of its value.\n */\n @Prop()\n hasMultipleCovers = false;\n\n /** [optional] Set a specific heading level as html tag for the title. */\n @Prop()\n titleHtmlTag?: string;\n\n /** click on ebook link */\n @Event()\n ebookClick: EventEmitter;\n\n /** click on cover link */\n @Event()\n coverClick: EventEmitter;\n\n /** click on title link */\n @Event()\n titleClick: EventEmitter;\n\n private emitEbookClick(): void {\n this.ebookClick.emit();\n }\n\n private emitCoverClick(): void {\n this.coverClick.emit();\n }\n\n private emitTitleClick(): void {\n this.titleClick.emit();\n }\n\n private renderCover(): HTMLDivElement {\n const CoverTag = this.ebookUrl ? \"a\" : \"div\";\n const coverAttrs = this.ebookUrl\n ? {\n href: this.ebookUrl,\n onClick: () => this.emitCoverClick(),\n target: this.linkTarget,\n }\n : {};\n\n return (\n <CoverTag\n class=\"cover\"\n {...coverAttrs}\n >\n <z-book-cover\n cover={this.cover}\n fallbackCover={this.fallbackCover}\n multiple={this.hasMultipleCovers && this.variant === BookCardVariant.PORTRAIT}\n >\n <slot\n name=\"coverOverlay\"\n slot=\"coverOverlay\"\n ></slot>\n </z-book-cover>\n </CoverTag>\n );\n }\n\n private renderYear(): null | HTMLDivElement {\n if (!this.year) {\n return null;\n }\n\n return (\n <div\n class=\"year ellipsis body-4\"\n aria-description=\"anno\"\n >\n {this.year}\n </div>\n );\n }\n\n private renderAuthors(): null | HTMLDivElement {\n if (!this.authors) {\n return null;\n }\n\n return (\n <div\n class=\"authors ellipsis body-4\"\n aria-description=\"autori\"\n >\n {this.authors}\n </div>\n );\n }\n\n private renderOperaTitle(): HTMLDivElement {\n const title = this.titleHtmlTag\n ? `<${this.titleHtmlTag}>${this.operaTitle}</${this.titleHtmlTag}>`\n : this.operaTitle;\n\n const operaTitle = (\n <div\n class=\"opera-title ellipsis body-2-sb\"\n innerHTML={title}\n />\n );\n\n if (this.ebookUrl) {\n return (\n <a\n class=\"z-link\"\n href={this.ebookUrl}\n onClick={() => this.emitTitleClick()}\n target={this.linkTarget}\n >\n {operaTitle}\n </a>\n );\n }\n\n return operaTitle;\n }\n\n private renderVolumeTitle(): null | HTMLDivElement {\n if (!this.volumeTitle) {\n return null;\n }\n\n return <div class=\"volume-title ellipsis body-4\">{this.volumeTitle}</div>;\n }\n\n private renderIsbn(): null | HTMLDivElement {\n if (!this.isbn) {\n return null;\n }\n\n return (\n <div\n class=\"isbn ellipsis body-4-sb\"\n aria-description={`isbn ${this.isbnLabel}`}\n >\n {this.isbn} {this.isbnLabel ? <span class=\"body-4\">{this.isbnLabel}</span> : null}\n </div>\n );\n }\n\n private renderEbook(): null | HTMLDivElement {\n if (!this.ebookUrl) {\n return null;\n }\n\n return (\n <div class=\"ebook\">\n <div class=\"app-name\">\n <img\n class=\"ebook-logo\"\n aria-hidden=\"true\"\n />\n <div class=\"body-4-sb\">laZ Ebook</div>\n </div>\n <z-button\n size={ControlSize.X_SMALL}\n href={this.ebookUrl}\n target={this.linkTarget}\n onClick={() => this.emitEbookClick()}\n htmlRole=\"link\"\n aria-description={`leggi l'ebook ${this.operaTitle} su laZ Ebook`}\n >\n leggi ebook\n </z-button>\n </div>\n );\n }\n\n render(): HTMLZBookCardElement {\n return (\n <Host>\n <div class=\"main-content\">\n {this.renderCover()}\n <div class=\"card-info\">\n <div class=\"top\">\n <div>\n {this.renderYear()}\n {this.renderAuthors()}\n {this.renderOperaTitle()}\n {this.renderVolumeTitle()}\n {this.renderIsbn()}\n <div class=\"cta-slot\">\n <slot name=\"cta\"></slot>\n </div>\n </div>\n <slot name=\"tags\"></slot>\n <slot name=\"data\"></slot>\n </div>\n <slot name=\"ebook\">{this.renderEbook()}</slot>\n </div>\n </div>\n <slot name=\"apps\"></slot>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -126,12 +126,6 @@
|
|
|
126
126
|
all: unset;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
.main-content .cta-wrapper {
|
|
130
|
-
display: flex;
|
|
131
|
-
justify-content: space-between;
|
|
132
|
-
gap: calc(var(--space-unit) / 2);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
129
|
.main-content .card-info .top .link-chip-wrapper {
|
|
136
130
|
display: flex;
|
|
137
131
|
justify-content: space-between;
|
|
@@ -158,6 +152,25 @@
|
|
|
158
152
|
content: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 fill=%22none%22 aria-hidden=%22true%22%3E%3Cg clip-path=%22url(%23clip0_11996_224)%22%3E%3Cpath d=%22M14.6644 0.469604H5.00141C2.33305 0.469604 0.169922 2.63274 0.169922 5.3011V14.9641C0.169922 17.6324 2.33305 19.7956 5.00141 19.7956H14.6644C17.3328 19.7956 19.4959 17.6324 19.4959 14.9641V5.3011C19.4959 2.63274 17.3328 0.469604 14.6644 0.469604Z%22 fill=%22%23E2011A%22/%3E%3Cpath d=%22M15.9523 13.3536H12.7313C11.6861 13.3536 10.6683 13.6934 9.83241 14.3199C8.99657 13.6934 7.97873 13.3536 6.93352 13.3536H3.71252V5.30115H6.93352C7.97873 5.30115 8.99657 5.64096 9.83241 6.26745C10.6683 5.64096 11.6861 5.30115 12.7313 5.30115H15.9523V13.3536Z%22 fill=%22white%22/%3E%3Cpath d=%22M15.9523 14.3201H3.71252V14.9643H15.9523V14.3201Z%22 fill=%22black%22/%3E%3Cpath d=%22M8.22229 10.732V8.24543C8.22229 7.97165 8.51057 7.79449 8.75375 7.91689L11.2404 9.16019C11.5109 9.29548 11.5109 9.682 11.2404 9.81728L8.75375 11.0606C8.50896 11.183 8.22229 11.0058 8.22229 10.732Z%22 fill=%22black%22/%3E%3Cpath d=%22M4.35704 7.87826C5.42438 7.87826 6.28963 7.013 6.28963 5.94566C6.28963 4.87831 5.42438 4.01306 4.35704 4.01306C3.28969 4.01306 2.42444 4.87831 2.42444 5.94566C2.42444 7.013 3.28969 7.87826 4.35704 7.87826Z%22 fill=%22black%22/%3E%3Cpath d=%22M5.6454 5.62354H3.0686V6.26773H5.6454V5.62354Z%22 fill=%22white%22/%3E%3Cpath d=%22M4.67917 4.65723H4.03497V7.23402H4.67917V4.65723Z%22 fill=%22white%22/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id=%22clip0_11996_224%22%3E%3Crect width=%2219.326%22 height=%2219.326%22 fill=%22white%22 transform=%22translate(0.169922 0.469604)%22/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
|
|
159
153
|
}
|
|
160
154
|
|
|
155
|
+
/* The CTA slot comes after all book metadata in the DOM so screen readers announce
|
|
156
|
+
author, title, volume and ISBN before the action, while the grid keeps the CTA in
|
|
157
|
+
its visual position: top-right for landscape, beside the title for portrait. */
|
|
158
|
+
.main-content .card-info .top > div {
|
|
159
|
+
display: grid;
|
|
160
|
+
column-gap: calc(var(--space-unit) / 2);
|
|
161
|
+
grid-template-columns: 1fr auto;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.main-content .card-info .top > div > * {
|
|
165
|
+
grid-column: 1;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.main-content .card-info .top > div > .cta-slot {
|
|
169
|
+
align-self: start;
|
|
170
|
+
grid-column: 2;
|
|
171
|
+
grid-row: 1;
|
|
172
|
+
}
|
|
173
|
+
|
|
161
174
|
:host([variant="landscape"]) {
|
|
162
175
|
width: 635px;
|
|
163
176
|
min-height: max(332px, 20.75rem);
|
|
@@ -180,6 +193,17 @@
|
|
|
180
193
|
gap: calc(var(--space-unit) / 2);
|
|
181
194
|
}
|
|
182
195
|
|
|
196
|
+
/* In portrait the CTA sits beside the title, whose grid row shifts down when the
|
|
197
|
+
optional year and authors rows are rendered before it. */
|
|
198
|
+
:host([variant="portrait"]) .main-content .card-info .top > div > .year ~ .cta-slot,
|
|
199
|
+
:host([variant="portrait"]) .main-content .card-info .top > div > .authors ~ .cta-slot {
|
|
200
|
+
grid-row: 2;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
:host([variant="portrait"]) .main-content .card-info .top > div > .year ~ .authors ~ .cta-slot {
|
|
204
|
+
grid-row: 3;
|
|
205
|
+
}
|
|
206
|
+
|
|
183
207
|
@media (max-width: 767px) {
|
|
184
208
|
:host([variant="portrait"]) {
|
|
185
209
|
width: 100%;
|
|
@@ -20,7 +20,7 @@ export class ZBookCardApp {
|
|
|
20
20
|
return null;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h("div", { key: '
|
|
23
|
+
return (h("div", { key: 'df6e36ce560d19caa7909a140c155626ba3b075c' }, h("a", { key: '43a40f7e69352ce0599ade0fb2385876c6d67fb8', class: "app z-link", href: this.link, "aria-label": `vai a ${this.laz ? "laz" : ""} ${this.name}`, onClick: () => this.emitAppClick(), target: "_blank" }, this.logo && (h("img", { key: '42ecf20e3054786b1de8eb89fae35f9a0381a6cd', src: this.logo, alt: "" })), h("div", { key: '880f4dbfa603f437da2f6d8ff6c6f2c4651d5e35', class: "name body-4-sb" }, this.renderLaz(), this.name)), this.info && (h("z-info-reveal", { key: '1ba30f89e8b53ca4c58d91e2d717d2bf0c17a897', icon: "info", size: ControlSize.X_SMALL, position: InfoRevealPosition.TOP_RIGHT, class: "info body-5" }, h("div", { key: '8934cd2b015dc745028a388a60508120a0beeb7a' }, this.info))), h("a", { key: '4a1c5b0f3c595ae28a22fde9556965d287ea1f9c', class: "z-link z-link-icon", href: this.link, "aria-label": `vai a ${this.laz ? "laz" : ""} ${this.name}`, onClick: () => this.emitAppClick(), target: "_blank" }, h("z-icon", { key: 'ca0eb78d1f7cb4a07cce7d8aa3a3c46dde19e00b', name: "chevron-right", fill: "color-primary01-icon" }))));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "z-book-card-app"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -170,7 +170,7 @@ export class ZDatePicker {
|
|
|
170
170
|
} })));
|
|
171
171
|
}
|
|
172
172
|
render() {
|
|
173
|
-
return (h("div", { key: '
|
|
173
|
+
return (h("div", { key: '9f272154dbb8e08907d661ec99ba232a8903818f', class: {
|
|
174
174
|
"flatpickr-toggle-container": true,
|
|
175
175
|
[this.flatpickrPosition]: true,
|
|
176
176
|
[this.mode]: true,
|
|
@@ -337,14 +337,14 @@ export class ZRangePicker {
|
|
|
337
337
|
onStopTyping: this.onStopTyping.bind(this),
|
|
338
338
|
value: "",
|
|
339
339
|
};
|
|
340
|
-
return (h("div", { key: '
|
|
340
|
+
return (h("div", { key: 'fa7241109320cb88fa79df02971637766dba8e49', class: {
|
|
341
341
|
["range-pickers-container"]: true,
|
|
342
342
|
[this.mode]: true,
|
|
343
343
|
[this.activeInput]: true,
|
|
344
344
|
[this.flatpickrPosition]: true,
|
|
345
|
-
} }, h("div", { key: '
|
|
345
|
+
} }, h("div", { key: '3d8d7990ea5da6a605383a66ad70e29f5cc7dda2', class: `${this.rangePickerId}-1-wrapper` }, h("div", { key: 'd2a16543b850c6d8ad83c229157cf86e006192bd', class: `${this.rangePickerId}-1-container` }, h("z-input", Object.assign({ key: '9b130929755ff282cecc69a1809965c06e374de3' }, zInputProps, { placeholder: this.firstPickerPlaceholder, readonly: this.firstPickerReadOnly, "data-input": "data-input", class: `start-input ${this.rangePickerId}-1`, ariaLabel: this.firstAriaLabel, label: this.firstLabel, status: this.firstInputError && InputStatus.ERROR, onStartTyping: () => {
|
|
346
346
|
this.firstInputError = false;
|
|
347
|
-
} })))), h("div", { key: '
|
|
347
|
+
} })))), h("div", { key: 'cc4aba8fccc21bf025d45df37c50952efb69406e', class: `${this.rangePickerId}-2-wrapper` }, h("div", { key: '2536ab861e8322ee43f0a94b7cb2a7fb45069249', class: `${this.rangePickerId}-2-container` }, h("z-input", Object.assign({ key: 'c9d5df59beb159efd5036d1e4f65f4791ff78809' }, zInputProps, { placeholder: this.lastPickerPlaceholder, readonly: this.lastPickerReadOnly, "data-input": "data-input", class: `end-input ${this.rangePickerId}-2`, ariaLabel: this.secondAriaLabel, label: this.secondLabel, status: this.lastInputError && InputStatus.ERROR, onStartTyping: () => {
|
|
348
348
|
this.lastInputError = false;
|
|
349
349
|
} }))))));
|
|
350
350
|
}
|
|
@@ -42,7 +42,7 @@ export class ZTd {
|
|
|
42
42
|
this.updateColspan();
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '6f49c2168c28a2acd1eb77401b6664a909770330', role: "cell", "menu-open": this.isMenuOpen }, h("div", { key: 'dca80731605efa309f88f6c4e5b3e05fc1b6f2d8', class: "cell--content" }, h("slot", { key: '980d81d5d5296f41f535488dcad732e5d5eb58ce' }), this.showMenu && (h("div", { key: 'f58e65a67d7a897be2bcbec22b50b8efb4d82995', class: "cell--menu-container prevent-expand" }, h("z-button", { key: '3d701ae5ba5af6372fad70bc0582a46ac48b75c2', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: this.onMenuButtonClick.bind(this) }), h("z-popover", { key: '5d5f94967a72ffdb7384c071d965e90abfb8ea0b', class: "cell-popover", ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: 'fef55973f37e93062c6e3229fdbdd5311d0f2920', name: "contextual-menu" })))))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "z-td"; }
|
|
48
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -70,7 +70,7 @@ export class ZTh {
|
|
|
70
70
|
this.updateColspan();
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
|
-
return (h(Host, { key: '
|
|
73
|
+
return (h(Host, { key: 'db3a788009481e7bf625db4787850ddfc9b65203', role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection, sortable: this.showSorting }, h("div", { key: 'b9e3d66c8b74bd054257deccf64575bad12166b4', class: "cell--content" }, h("slot", { key: 'b9297277121a0798491644ca9e7fd86e99766975' }), this.showSorting && (h("button", { key: 'e2fa7f525d8138c95540ce5216e7d0df9fecdfd4', class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, h("z-icon", { key: '3c8b5d576386da794abdbc4ea48e9d9bab2ad1c9', name: this.sortDirection === SortDirection.DESC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (h("div", { key: '38a8b3f1cd7dd75c90953179c8527484f2c17fc7', class: "cell--menu-container" }, h("z-button", { key: 'f5ce6e168efba6c456a6fedad8a0103e37130d13', 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: 'c989b847fa08f6b9f7a87a645c52a1163191b406', ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: 'aac102b6bbc90923ce404a1b6499cf58c7277a00', name: "contextual-menu" })))))));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "z-th"; }
|
|
76
76
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41,7 +41,7 @@ export class ZTable {
|
|
|
41
41
|
(_a = this.expandableMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: '2accba3d35c252853a9b19b15528855070165077', expandable: this.expandable }, h("div", { key: 'bdd3382b246e669c8600d116cda8a6ebc11f530d', class: "table", role: "table" }, h("slot", { key: 'c3cbdb04a91f0cd4301d8ba73578878864e0c3a1' }))));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "z-table"; }
|
|
47
47
|
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: '9cae384882eb06e5e0ec93393ac6849e22da48c5', role: "rowgroup" }, h("slot", { key: '64c4e7e784638e3f7319783429b29f1e2a38b584' })));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "z-tbody"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,7 +11,7 @@ export class ZTfoot {
|
|
|
11
11
|
this.sticky = false;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '760c32f2385aff5e84785bc1415b5cf29fd063da', role: "rowgroup", tabIndex: -1 }, h("slot", { key: 'c36cf634b18c1216cfc6f31abe07b53600305737' })));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "z-tfoot"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,7 +15,7 @@ export class ZThead {
|
|
|
15
15
|
this.isFocusable = false;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'daa59cf6627acea2cbd48f1b56910a22146f90f3', role: "rowgroup", tabIndex: this.isFocusable ? 0 : -1 }, h("slot", { key: 'ba7897a89465398dff471d7eb9d7a0d276599269' })));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "z-thead"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -65,7 +65,7 @@ export class ZTr {
|
|
|
65
65
|
this.updateColumns();
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: '80423ab104796d4bc50e3dbeafd26a417a41594e', role: "row", tabIndex: this.expandable ? 0 : undefined, expanded: this.expanded, onClick: this.onRowClick.bind(this), onKeyDown: this.onKeyDown.bind(this) }, h("div", { key: 'd0ec5fa359865b1eb486d21a478f82b61a10bf18', class: "z-tr--focus-overlay", "aria-hidden": "true" }), h("div", { key: 'e1f4114f91e1ff59c0ff4b4880b74bceb1702cba', class: "z-tr--expand-button-container" }, this.expandable && (h("button", { key: 'bef3c43e06a20de50f2aacf88b6c80fc4822403a', tabIndex: -1, "aria-expanded": this.expanded ? "true" : "false", "aria-label": this.expanded ? "Comprimi riga" : "Espandi riga", "aria-controls": this.expandableContentId, type: "button" }, h("z-icon", { key: '803c8640aacbd34ba3de287f519d934cb9d974ca', name: this.expanded ? "minus-circled" : "plus-circled" })))), h("slot", { key: 'bf8e10753f600ad984a06a710d19680e52507ab2', onSlotchange: this.updateColumns.bind(this) })));
|
|
69
69
|
}
|
|
70
70
|
static get is() { return "z-tr"; }
|
|
71
71
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,12 +12,12 @@ export class ZDragdropArea {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '82abca2596010f327e84e26f467f97335530bf6a', class: { dragover: this.dragging }, onDragOver: (e) => {
|
|
16
16
|
e.preventDefault();
|
|
17
17
|
this.dragging = true;
|
|
18
18
|
}, onDragLeave: () => {
|
|
19
19
|
this.dragging = false;
|
|
20
|
-
}, onDrop: this.onDrop.bind(this) }, h("div", { key: '
|
|
20
|
+
}, onDrop: this.onDrop.bind(this) }, h("div", { key: '4cbbe1e986341df2960c366019a0d952fdcf011f', class: "dragover-container" }, h("z-button", { key: 'e5dfdbc943876a9f618083594d1f4f148a084052' }, this.dragAndDropLabel)), h("slot", { key: '87b3bbaa60996d169f7e220da1c3306de5237357' })));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "z-dragdrop-area"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -30,7 +30,7 @@ export class ZFile {
|
|
|
30
30
|
return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: '0ea8fc72fc1e2bb96439e4a3d3074f140fafbdca' }, this.allowPopover && (h("z-popover", { key: '3c1408c93d61d6afaf69ef5b10294beaea3a572f', open: this.popoverVisible, position: PopoverPosition.AUTO, bindTo: this.chip }, h("span", { key: '8a13796d5fdd792fa8da51b81363fd4c11072edd', class: "body-5 tooltip-content" }, this.ellipsis.innerText))), h("z-chip", { key: '76a5d9cdc0932dbf9269e83d6f94950f5a459397', ref: (el) => (this.chip = el), id: `chip-${this.fileNumber}`, interactiveIcon: "multiply-circled", type: ZChipType.DEFAULT }, h("span", { key: '75a118f774dbca2867629be4b437e18c1ebad1ba', ref: (el) => (this.ellipsis = el), tabIndex: -1 }, this.fileName))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "z-file"; }
|
|
36
36
|
static get encapsulation() { return "scoped"; }
|
|
@@ -26,7 +26,7 @@ export class ZList {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '98a78ca75d510f3a1d804bbb2e2fc33d815b74b1', role: this.htmlRole }, h("slot", { key: '6bfc24a0ed5dfc13cffc47eb20ad4475ba598c20' })));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "z-list"; }
|
|
32
32
|
static get encapsulation() { return "shadow"; }
|
|
@@ -153,7 +153,7 @@ export class ZListElement {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
|
-
return (h(Host, { key: '
|
|
156
|
+
return (h(Host, { key: '6309a4608286747636c1bc81a1783e31224b0ce7', "aria-expanded": this.expandable ? this.showInnerContent : null, onClick: this.handleClick, onFocus: () => this.ariaDescendantFocus.emit(this.listElementId), onKeyDown: this.handleKeyDown, clickable: this.clickable && !this.disabled, tabIndex: this.hasTreeItems ? undefined : this.htmlTabindex, role: this.hasTreeItems ? "none" : this.htmlRole }, h("div", { key: '362e834bcc4b561e9a90c74bb41a3dcd3bf4c3ad', class: this.hasTreeItems ? "tree-element-container" : "container", style: !this.disabled && { color: `var(--${this.color})` }, tabindex: "-1", id: `z-list-element-id-${this.listElementId}`, part: "list-item-container" }, h("div", { key: '9b4bc30d2200b4eb3c9da3030acef0222c690734', class: "z-list-element-container" }, this.renderExpandableButton(), this.renderContent()), this.renderExpandedContent()), this.dividerType === ListDividerType.ELEMENT && (h("z-divider", { key: '09a6e380faaefce03873bc1976bec917c60fd9b9', class: { "z-tree-list-divider": this.hasTreeItems }, color: this.dividerColor, size: this.dividerSize }))));
|
|
157
157
|
}
|
|
158
158
|
static get is() { return "z-list-element"; }
|
|
159
159
|
static get encapsulation() { return "shadow"; }
|
|
@@ -45,11 +45,11 @@ export class ZListGroup {
|
|
|
45
45
|
this.hasHeader = !!this.host.querySelector('[slot="header-title"]');
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '2c550cf5604ca7c80621970c7b9046b81aee0826', role: this.htmlRole }, h("div", { key: '7042a6519c28bfa39a1914ddadb811a1e8469fcf', class: {
|
|
49
49
|
"z-list-group-header-container": true,
|
|
50
50
|
"has-header": this.hasHeader && !this.hasTreeItems,
|
|
51
51
|
"grouped-tree-list-header": this.hasTreeItems,
|
|
52
|
-
} }, h("slot", { key: '
|
|
52
|
+
} }, h("slot", { key: 'fe5be90d287663bcdf69a6763012d9a364a7ff50', name: "header-title" }), this.dividerType === ListDividerType.HEADER && (h("z-divider", { key: '0717918b0003188cfef8e35de12ba54f79b43bc3', color: this.dividerColor, size: this.dividerSize }))), h("slot", { key: 'd4362b569458fad45835fae90d29f294baea0f75' })));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "z-list-group"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -93,7 +93,7 @@ export class ZTreeList {
|
|
|
93
93
|
}
|
|
94
94
|
render() {
|
|
95
95
|
const hasClickableItems = this.parsedItems.some((item) => !!item.url);
|
|
96
|
-
return (h(Host, { key: '
|
|
96
|
+
return (h(Host, { key: '8bc473fe54ef8e0cea9e2deeb85cc798a9201482', class: "tree-list", role: hasClickableItems ? "navigation" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-labelledby": this.htmlAriaLabelledby }, h("div", { key: 'da18ff5c34d384aa37ef1edbdb242a3f572f471b', tabIndex: -1, role: hasClickableItems ? "tree" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-label": this.htmlSectionTitle }, this.parsedItems.map((item, key) => this.renderTreeList(item, `${key}`)))));
|
|
97
97
|
}
|
|
98
98
|
static get is() { return "z-tree-list"; }
|
|
99
99
|
static get encapsulation() { return "shadow"; }
|
|
@@ -63,7 +63,7 @@ export class ZAccordion {
|
|
|
63
63
|
this.checkSlottedTags();
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
|
-
return (h("details", { key: '
|
|
66
|
+
return (h("details", { key: '343e80da7b2d5d3e0a8928eac232c7fe74978c70', ref: (elm) => (this.detailsElm = elm), onToggle: this.onDetailsToggle.bind(this), open: this.open }, h("summary", { key: '405a4cbf6bc51db034ee78af9441f4e5b4702441', tabIndex: this.isDisabled ? -1 : null, part: "summary" }, this.icon && (h("z-icon", { key: '65cc760624c249b2bb1edb3a717f055c0c1580c8', class: "z-accordion-label-icon", name: this.icon })), h("span", { key: '0f6e2bbf5a34de3b926896b5ab3a876c436a8b8b', class: "z-accordion-label" }, this.label), this.hasSlottedTags && (h("span", { key: '54e5c4cad8217cbe41c4869af2b6ae7f973ec8ba', class: "z-accordion-tags" }, h("slot", { key: '8460e87ed7cc4fc77149b024be0d74b7f744e042', name: "tag", onSlotchange: () => this.checkSlottedTags() }))), h("z-icon", { key: '472e3ade3c1931ebc8ccf08c2be93d4159580c82', class: "z-accordion-chevron", name: this.open ? "chevron-up" : "chevron-down" })), !this.isDisabled && (h("div", { key: '9324498fbfc6c99841580e9f504c3a825438849b', class: "z-accordion-content", part: "content" }, h("slot", { key: 'c276b70da9ea8692479b3eda272aa0cd36edafec' })))));
|
|
67
67
|
}
|
|
68
68
|
static get is() { return "z-accordion"; }
|
|
69
69
|
static get encapsulation() { return "shadow"; }
|
|
@@ -71,7 +71,7 @@ export class ZAnchorNavigation {
|
|
|
71
71
|
window.removeEventListener("hashchange", this.setCurrent);
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
74
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: '011b87db007cf01c52321e35439e10331efbc792', collapsed: this.collapsed, class: "z-scrollbar" }, h("z-button", { key: '29af3c3ba5b6706aebb7ac269a4004a98d3f0dd9', class: "toggle", size: ControlSize.SMALL, variant: ButtonVariant.SECONDARY, icon: this.collapsed ? "chevron-up" : "chevron-down", onClick: this.toggleCollapsed.bind(this) }, this.collapsedLabel), h("nav", { key: 'a6f0dd31673d81f822cd65ad024434f58a1e1fa3', ref: (el) => (this.nav = el) }, h("slot", { key: '8488115014b8e3d1a81930c9dedf8dce1d08975e' }))));
|
|
75
75
|
}
|
|
76
76
|
static get is() { return "z-anchor-navigation"; }
|
|
77
77
|
static get originalStyleUrls() {
|
|
@@ -192,7 +192,12 @@ export class ZAppHeader {
|
|
|
192
192
|
if (this.searchPageUrl && (this.isMobile || this.isTablet)) {
|
|
193
193
|
return (h("z-button", { class: "search-page-button", variant: ButtonVariant.SECONDARY, href: this.searchPageUrl, icon: "search", size: ControlSize.X_SMALL }));
|
|
194
194
|
}
|
|
195
|
-
return (h("z-searchbar", {
|
|
195
|
+
return (h("z-searchbar", { value: this.searchString, placeholder: this.searchPlaceholder, htmlAriaLabel: this.searchLabel, showSearchButton: true, searchButtonIconOnly: this.isMobile || this.isTablet, searchButtonLabel: this.isMobile || this.isTablet ? undefined : this.searchButtonLabel, size: ControlSize.X_SMALL, variant: ButtonVariant.SECONDARY, preventSubmit: this.searchString.length < 3, onSearchTyping: (e) => (this.searchString = e.detail) }));
|
|
196
|
+
}
|
|
197
|
+
renderSearchLabel() {
|
|
198
|
+
if (this.searchLabel && !this.isMobile && !this.isTablet && !this.enableOffcanvas) {
|
|
199
|
+
return h("label", { class: "z-label" }, this.searchLabel);
|
|
200
|
+
}
|
|
196
201
|
}
|
|
197
202
|
renderProductLogos() {
|
|
198
203
|
return (h(Fragment, null, this.enableZLogo && (h("span", { class: "z-logo" }, h("img", { alt: "Logo Zanichelli" }))), this.hostElement.querySelector("[slot='product-logo']") && (h("span", { class: "product-logo" }, h("slot", { name: "product-logo" })))));
|
|
@@ -272,9 +277,15 @@ export class ZAppHeader {
|
|
|
272
277
|
var _a;
|
|
273
278
|
(_a = this.menuResizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
274
279
|
}
|
|
280
|
+
renderTopSubtitle() {
|
|
281
|
+
if (!this.hasSlot("top-subtitle") || (this.enableSearch && this.isMobile)) {
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
return (h("div", { class: { "top-subtitle": true, "has-product-logo": this.hasSlot("product-logo") } }, h("slot", { name: "top-subtitle" })));
|
|
285
|
+
}
|
|
275
286
|
render() {
|
|
276
287
|
const hasTopSubtitle = this.hasSlot("top-subtitle");
|
|
277
|
-
return (h(Host, { key: '
|
|
288
|
+
return (h(Host, { key: 'b2b9e7ca77504392b37f3d77b1266df7818cb0cf', "menu-length": this.menuLength }, h("div", { key: '9e6b112e27f30445a34f1adbe4287ab226421de0', class: { "heading-panel": true, "has-menubar": this.menuLength > 0 && !this.enableOffcanvas }, ref: (el) => (this.container = el) }, h("div", { key: '44c38afdf95c506ba2d1241b88f86fe9ed2113b7', class: { "heading-container": true, "has-top-subtitle": hasTopSubtitle } }, h("div", { key: 'c061f870b799b52b089be972709793ab471a3d98', class: "heading-block" }, h("div", { key: '77b4f385458a41751e6d2363d9c07aa19e3888fc', class: "heading-title" }, h("slot", { key: 'eff35b8f35ee97e91dbcc24acc87a28f0b3268d9', name: "menu-button" }, this.renderMenuButton()), !this._stuck && this.renderProductLogos(), h("div", { key: '9db36b58de99fe7e08d50e81c6483705108f2975', class: "title-container" }, !this.isMobile && this.renderTopSubtitle(), h("slot", { key: 'c6b537b48e4486a1ddc5f5dae27639f91d71ac0b', name: "title" })), h("div", { key: '416324b5ea6f9a6a3f27212d02710a70953ff0d7', class: "search-slot" }, this.renderSearchLabel(), this.enableSearch && !this.isMobile && this.renderSeachbar())), this.isMobile && this.renderTopSubtitle()), this.enableSearch && this.isMobile && this.renderSeachbar()), h("nav", { key: 'c7019897ca741018b24fa29bb9bd2e01c20f3de5', class: "menu-container", "aria-label": this.title || undefined }, this.canShowMenu && (h("div", { key: '77c54b43e038bc4f79d213934303801be87ff0ff', role: "menubar", "aria-label": this.title || undefined }, h("slot", { key: 'bde1fc4c59b536c7cee2acd2177c8f8f3615ffe0', name: "menu", onSlotchange: this.collectMenuElements }))))), this.renderOffcanvas(), this._stuck && this.renderStuck()));
|
|
278
289
|
}
|
|
279
290
|
static get is() { return "z-app-header"; }
|
|
280
291
|
static get encapsulation() { return "shadow"; }
|