@zanichelli/albe-web-components 16.4.1 → 17.0.0-RC1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -2
- package/dist/cjs/{index-22bdf239.js → index-33b64381.js} +3 -3
- package/dist/cjs/{index-22bdf239.js.map → index-33b64381.js.map} +1 -1
- package/dist/cjs/{index-b26fbd76.js → index-5fe3e314.js} +2 -2
- package/dist/cjs/{index-b26fbd76.js.map → index-5fe3e314.js.map} +1 -1
- package/dist/cjs/{index-01778132.js → index-675adf8b.js} +2 -2
- package/dist/cjs/{index-01778132.js.map → index-675adf8b.js.map} +1 -1
- package/dist/cjs/{index-6726b7d2.js → index-8662ab0e.js} +5 -5
- package/dist/cjs/{index-6726b7d2.js.map → index-8662ab0e.js.map} +1 -1
- package/dist/cjs/index-96af6326.js +12 -4
- package/dist/cjs/{index-97f9a3a0.js → index-acf58aff.js} +3 -3
- package/dist/cjs/{index-97f9a3a0.js.map → index-acf58aff.js.map} +1 -1
- package/dist/cjs/{index-ef486baa.js → index-cfab5bb3.js} +2 -2
- package/dist/cjs/{index-ef486baa.js.map → index-cfab5bb3.js.map} +1 -1
- package/dist/cjs/{index-daad5eae.js → index-f5ebcaa2.js} +14 -4
- package/dist/cjs/index-f5ebcaa2.js.map +1 -0
- package/dist/cjs/index.cjs.js +14 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-4a30b263.js → utils-c95c97b8.js} +2 -2
- package/dist/cjs/{utils-4a30b263.js.map → utils-c95c97b8.js.map} +1 -1
- package/dist/cjs/{utils-24df887f.js → utils-d08d4b80.js} +2 -2
- package/dist/cjs/{utils-24df887f.js.map → utils-d08d4b80.js.map} +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-accordion.cjs.entry.js +2 -2
- package/dist/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +2 -2
- package/dist/cjs/z-app-header-deprecated.cjs.entry.js +2 -2
- package/dist/cjs/z-app-header_12.cjs.entry.js +15 -25
- package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
- package/dist/cjs/z-aria-alert.cjs.entry.js +2 -2
- package/dist/cjs/z-avatar.cjs.entry.js +3 -3
- package/dist/cjs/z-book-card-app.cjs.entry.js +41 -0
- package/dist/cjs/z-book-card-app.cjs.entry.js.map +1 -0
- package/dist/cjs/z-book-card-deprecated.cjs.entry.js +138 -0
- package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +1 -0
- package/dist/cjs/z-book-card.cjs.entry.js +98 -94
- package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
- package/dist/cjs/z-breadcrumb.cjs.entry.js +4 -4
- package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-card.cjs.entry.js +1 -1
- package/dist/cjs/z-carousel.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +3 -3
- package/dist/cjs/z-combobox.cjs.entry.js +3 -3
- package/dist/cjs/z-cover-hero.cjs.entry.js +3 -3
- package/dist/cjs/z-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +13 -7
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -1
- package/dist/cjs/z-file-upload.cjs.entry.js +3 -3
- package/dist/cjs/z-file.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/z-logo.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-section.cjs.entry.js +2 -2
- package/dist/cjs/z-menu.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +3 -3
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +5 -5
- package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
- package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +3 -3
- package/dist/cjs/z-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +3 -3
- package/dist/cjs/z-pagination.cjs.entry.js +1 -1
- package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +2 -2
- package/dist/cjs/z-range-picker.cjs.entry.js +5 -5
- package/dist/cjs/z-section-title.cjs.entry.js +2 -2
- package/dist/cjs/z-select.cjs.entry.js +3 -3
- package/dist/cjs/z-skip-to-content.cjs.entry.js +3 -3
- package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
- 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 +9 -9
- package/dist/cjs/z-tbody.cjs.entry.js +1 -1
- package/dist/cjs/z-td.cjs.entry.js +2 -2
- package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
- package/dist/cjs/z-th.cjs.entry.js +2 -2
- package/dist/cjs/z-thead.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
- package/dist/cjs/z-toast-notification.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-switch.cjs.entry.js +5 -5
- package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/z-tr.cjs.entry.js +5 -5
- package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/collection/beans/index.js +13 -3
- package/dist/collection/beans/index.js.map +1 -1
- package/dist/collection/collection-manifest.json +5 -3
- package/dist/collection/components/book-card/z-book-card/index.js +498 -0
- package/dist/collection/components/book-card/z-book-card/index.js.map +1 -0
- package/dist/collection/components/book-card/z-book-card/index.stories.js +149 -0
- package/dist/collection/components/book-card/z-book-card/index.stories.js.map +1 -0
- package/dist/collection/components/book-card/z-book-card/styles.css +201 -0
- package/dist/collection/components/book-card/z-book-card-app/index.js +124 -0
- package/dist/collection/components/book-card/z-book-card-app/index.js.map +1 -0
- package/dist/collection/components/book-card/z-book-card-app/index.stories.js +29 -0
- package/dist/collection/components/book-card/z-book-card-app/index.stories.js.map +1 -0
- package/dist/collection/components/book-card/z-book-card-app/styles.css +56 -0
- package/dist/collection/components/css-components/z-link/styles.css +174 -0
- 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/z-app-header-deprecated/index.js +1 -1
- package/dist/collection/components/{z-book-card → deprecated/z-book-card-deprecated}/index.js +16 -16
- package/dist/collection/components/deprecated/z-book-card-deprecated/index.js.map +1 -0
- package/dist/collection/components/{z-book-card → deprecated/z-book-card-deprecated}/index.stories.js +24 -24
- package/dist/collection/components/deprecated/z-book-card-deprecated/index.stories.js.map +1 -0
- package/dist/collection/components/deprecated/z-menu-deprecated/index.js +1 -1
- package/dist/collection/components/deprecated/z-menu-section-deprecated/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/file-upload/z-file-upload/index.js +1 -1
- package/dist/collection/components/list/z-list/index.js +1 -1
- package/dist/collection/components/list/z-list-element/index.js +1 -1
- package/dist/collection/components/list/z-list-group/index.js +2 -2
- package/dist/collection/components/table/cells/z-td/index.js +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-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 +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 +10 -4
- package/dist/collection/components/z-modal/index.js.map +1 -1
- package/dist/collection/components/z-navigation-tabs/index.js +2 -2
- package/dist/collection/components/z-notification/index.js +1 -1
- package/dist/collection/components/z-offcanvas/index.js +1 -1
- package/dist/collection/components/z-panel-elem/index.js +2 -2
- package/dist/collection/components/z-popover/index.js +1 -1
- package/dist/collection/components/z-searchbar/index.js +1 -1
- package/dist/collection/components/z-section-title/index.js +1 -1
- package/dist/collection/components/z-select/index.js +1 -1
- package/dist/collection/components/z-skip-to-content/index.js +1 -1
- package/dist/collection/components/z-stepper/index.js +1 -1
- package/dist/collection/components/z-stepper-item/index.js +1 -1
- package/dist/collection/components/z-tag/index.js +2 -2
- package/dist/collection/components/z-toast-notification/index.js +1 -1
- package/dist/collection/components/z-toast-notification-list/index.js +1 -1
- package/dist/collection/components/z-toggle-button/index.js +2 -2
- package/dist/collection/components/z-toggle-switch/index.js +3 -3
- package/dist/collection/components/z-tooltip/index.js +1 -1
- package/dist/collection/components/z-visually-hidden/index.js +1 -1
- package/dist/collection/constants/iconset.js +0 -10
- package/dist/collection/constants/iconset.js.map +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/collection/tokens/typography.css +681 -0
- package/dist/components/iconset.js +0 -10
- package/dist/components/iconset.js.map +1 -1
- package/dist/components/index.d.ts +5 -1
- package/dist/components/index.js +3 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/index10.js +58 -308
- package/dist/components/index10.js.map +1 -1
- package/dist/components/index11.js +314 -36
- package/dist/components/index11.js.map +1 -1
- package/dist/components/index12.js +38 -27
- package/dist/components/index12.js.map +1 -1
- package/dist/components/index13.js +23 -146
- package/dist/components/index13.js.map +1 -1
- package/dist/components/index14.js +141 -36
- package/dist/components/index14.js.map +1 -1
- package/dist/components/index15.js +39 -989
- package/dist/components/index15.js.map +1 -1
- package/dist/components/index16.js +1000 -38
- package/dist/components/index16.js.map +1 -1
- package/dist/components/index17.js +42 -10
- package/dist/components/index17.js.map +1 -1
- package/dist/components/index18.js +10 -22
- package/dist/components/index18.js.map +1 -1
- package/dist/components/index19.js +16 -33
- package/dist/components/index19.js.map +1 -1
- package/dist/components/index2.js +14 -4
- package/dist/components/index2.js.map +1 -1
- package/dist/components/index20.js +39 -43
- package/dist/components/index20.js.map +1 -1
- package/dist/components/index21.js +44 -81
- package/dist/components/index21.js.map +1 -1
- package/dist/components/index22.js +63 -301
- package/dist/components/index22.js.map +1 -1
- package/dist/components/index23.js +286 -347
- package/dist/components/index23.js.map +1 -1
- package/dist/components/index24.js +376 -19
- package/dist/components/index24.js.map +1 -1
- package/dist/components/index25.js +45 -0
- package/dist/components/index25.js.map +1 -0
- package/dist/components/index3.js +1 -1
- package/dist/components/index5.js +2 -2
- package/dist/components/index6.js +1 -1
- package/dist/components/index7.js +2 -2
- package/dist/components/index8.js +1 -1
- package/dist/components/index9.js +1 -1
- package/dist/components/z-accordion.js +2 -2
- package/dist/components/z-anchor-navigation.js +1 -1
- package/dist/components/z-app-header-deprecated.js +9 -9
- package/dist/components/z-app-header.js +9 -9
- package/dist/components/z-aria-alert.js +1 -1
- package/dist/components/z-avatar.js +2 -2
- package/dist/components/z-book-card-app.d.ts +11 -0
- package/dist/components/z-book-card-app.js +73 -0
- package/dist/components/z-book-card-app.js.map +1 -0
- package/dist/components/z-book-card-deprecated.d.ts +11 -0
- package/dist/components/z-book-card-deprecated.js +175 -0
- package/dist/components/z-book-card-deprecated.js.map +1 -0
- package/dist/components/z-book-card.js +128 -106
- package/dist/components/z-book-card.js.map +1 -1
- package/dist/components/z-breadcrumb.js +6 -6
- package/dist/components/z-button-sort.js +1 -1
- package/dist/components/z-combobox.js +6 -6
- package/dist/components/z-cover-hero.js +2 -2
- package/dist/components/z-date-picker.js +3 -3
- package/dist/components/z-file-upload.js +2 -2
- package/dist/components/z-file.js +2 -2
- package/dist/components/z-info-box.js +1 -1
- package/dist/components/z-info-reveal.js +1 -88
- package/dist/components/z-info-reveal.js.map +1 -1
- package/dist/components/z-input-message.js +1 -1
- package/dist/components/z-input.js +1 -1
- package/dist/components/z-list-element.js +1 -1
- package/dist/components/z-list-group.js +1 -1
- package/dist/components/z-list.js +1 -1
- package/dist/components/z-logo.js +1 -1
- package/dist/components/z-menu-deprecated.js +1 -1
- package/dist/components/z-menu-section-deprecated.js +1 -1
- package/dist/components/z-menu-section.js +1 -1
- package/dist/components/z-modal.js +1 -1
- package/dist/components/z-myz-card-alert.js +1 -1
- package/dist/components/z-myz-card-body.js +1 -1
- package/dist/components/z-myz-card-cover.js +1 -1
- package/dist/components/z-myz-card-dictionary.js +5 -5
- 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-header.js +1 -1
- package/dist/components/z-myz-card-icon.js +1 -1
- package/dist/components/z-myz-card-info.js +2 -2
- package/dist/components/z-myz-card-list.js +1 -1
- package/dist/components/z-myz-card.js +1 -1
- package/dist/components/z-myz-list-item.js +1 -1
- package/dist/components/z-myz-list.js +2 -2
- package/dist/components/z-navigation-tabs.js +2 -2
- package/dist/components/z-notification.js +1 -1
- package/dist/components/z-offcanvas.js +1 -1
- package/dist/components/z-otp.js +3 -3
- package/dist/components/z-pagination.js +2 -2
- package/dist/components/z-panel-elem.js +2 -2
- package/dist/components/z-popover.js +1 -1
- package/dist/components/z-range-picker.js +5 -5
- package/dist/components/z-searchbar.js +1 -1
- package/dist/components/z-section-title.js +1 -1
- package/dist/components/z-select.js +7 -7
- 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-tag.js +1 -1
- package/dist/components/z-tbody.js +1 -1
- package/dist/components/z-td.js +2 -2
- package/dist/components/z-tfoot.js +1 -1
- package/dist/components/z-th.js +2 -2
- 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 +2 -2
- package/dist/components/z-tr.js +1 -1
- package/dist/components/z-visually-hidden.js +1 -1
- package/dist/esm/{index-7b64c875.js → index-350c25c9.js} +5 -5
- package/dist/esm/{index-7b64c875.js.map → index-350c25c9.js.map} +1 -1
- package/dist/esm/{index-09ff70db.js → index-3f261ba1.js} +2 -2
- package/dist/esm/{index-09ff70db.js.map → index-3f261ba1.js.map} +1 -1
- package/dist/esm/{index-fe4fc8da.js → index-53b72ad2.js} +2 -2
- package/dist/esm/{index-fe4fc8da.js.map → index-53b72ad2.js.map} +1 -1
- package/dist/esm/{index-8e5c830a.js → index-608103c2.js} +2 -2
- package/dist/esm/{index-8e5c830a.js.map → index-608103c2.js.map} +1 -1
- package/dist/esm/{index-681cc2b7.js → index-a93175b6.js} +3 -3
- package/dist/esm/{index-681cc2b7.js.map → index-a93175b6.js.map} +1 -1
- package/dist/esm/index-c8ceadeb.js +12 -4
- package/dist/esm/{index-19b24f63.js → index-cdaab374.js} +3 -3
- package/dist/esm/{index-19b24f63.js.map → index-cdaab374.js.map} +1 -1
- package/dist/esm/{index-a63060e9.js → index-ee40e66b.js} +15 -5
- package/dist/esm/index-ee40e66b.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-5e595d4f.js → utils-a31c16d9.js} +2 -2
- package/dist/esm/{utils-5e595d4f.js.map → utils-a31c16d9.js.map} +1 -1
- package/dist/esm/{utils-305762b5.js → utils-ed82ce58.js} +2 -2
- package/dist/esm/{utils-305762b5.js.map → utils-ed82ce58.js.map} +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-accordion.entry.js +2 -2
- package/dist/esm/z-alert.entry.js +1 -1
- package/dist/esm/z-anchor-navigation.entry.js +2 -2
- package/dist/esm/z-app-header-deprecated.entry.js +2 -2
- package/dist/esm/z-app-header_12.entry.js +15 -25
- package/dist/esm/z-app-header_12.entry.js.map +1 -1
- package/dist/esm/z-aria-alert.entry.js +2 -2
- package/dist/esm/z-avatar.entry.js +3 -3
- package/dist/esm/z-book-card-app.entry.js +37 -0
- package/dist/esm/z-book-card-app.entry.js.map +1 -0
- package/dist/esm/z-book-card-deprecated.entry.js +134 -0
- package/dist/esm/z-book-card-deprecated.entry.js.map +1 -0
- package/dist/esm/z-book-card.entry.js +99 -95
- package/dist/esm/z-book-card.entry.js.map +1 -1
- package/dist/esm/z-breadcrumb.entry.js +4 -4
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-card.entry.js +1 -1
- package/dist/esm/z-carousel.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +3 -3
- package/dist/esm/z-combobox.entry.js +3 -3
- package/dist/esm/z-cover-hero.entry.js +3 -3
- package/dist/esm/z-date-picker.entry.js +3 -3
- package/dist/esm/z-dragdrop-area_2.entry.js +13 -7
- package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -1
- package/dist/esm/z-file-upload.entry.js +3 -3
- package/dist/esm/z-file.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/z-logo.entry.js +1 -1
- package/dist/esm/z-menu-deprecated.entry.js +1 -1
- package/dist/esm/z-menu-section-deprecated.entry.js +1 -1
- package/dist/esm/z-menu-section.entry.js +2 -2
- package/dist/esm/z-menu.entry.js +2 -2
- package/dist/esm/z-myz-card-alert.entry.js +2 -2
- package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
- package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +2 -2
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +3 -3
- package/dist/esm/z-myz-card-list.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +5 -5
- package/dist/esm/z-myz-list-item.entry.js +3 -3
- package/dist/esm/z-myz-list.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +3 -3
- package/dist/esm/z-notification.entry.js +1 -1
- package/dist/esm/z-otp.entry.js +3 -3
- package/dist/esm/z-pagination.entry.js +1 -1
- package/dist/esm/z-panel-elem.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +2 -2
- package/dist/esm/z-range-picker.entry.js +5 -5
- package/dist/esm/z-section-title.entry.js +2 -2
- package/dist/esm/z-select.entry.js +3 -3
- package/dist/esm/z-skip-to-content.entry.js +3 -3
- package/dist/esm/z-slideshow.entry.js +2 -2
- 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 +9 -9
- package/dist/esm/z-tbody.entry.js +1 -1
- package/dist/esm/z-td.entry.js +2 -2
- package/dist/esm/z-tfoot.entry.js +1 -1
- package/dist/esm/z-th.entry.js +2 -2
- package/dist/esm/z-thead.entry.js +1 -1
- package/dist/esm/z-toast-notification-list.entry.js +2 -2
- package/dist/esm/z-toast-notification.entry.js +2 -2
- package/dist/esm/z-toggle-button.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +5 -5
- package/dist/esm/z-tooltip.entry.js +2 -2
- package/dist/esm/z-tr.entry.js +5 -5
- package/dist/esm/z-visually-hidden.entry.js +1 -1
- package/dist/types/beans/index.d.ts +16 -0
- package/dist/types/components/book-card/z-book-card/index.d.ts +68 -0
- package/dist/types/components/book-card/z-book-card/index.stories.d.ts +77 -0
- package/dist/types/components/book-card/z-book-card-app/index.d.ts +25 -0
- package/dist/types/components/book-card/z-book-card-app/index.stories.d.ts +22 -0
- package/dist/types/components/{z-book-card → deprecated/z-book-card-deprecated}/index.d.ts +6 -6
- package/dist/types/components/{z-book-card → deprecated/z-book-card-deprecated}/index.stories.d.ts +9 -9
- package/dist/types/components/z-modal/index.d.ts +1 -0
- package/dist/types/components.d.ts +234 -14
- package/dist/types/constants/iconset.d.ts +0 -20
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/index.esm.js.map +1 -1
- package/dist/web-components-library/p-01b73978.entry.js +2 -0
- package/dist/web-components-library/{p-9a48e70b.entry.js → p-03fff274.entry.js} +2 -2
- package/dist/web-components-library/{p-ab45ba6d.js → p-05f6053f.js} +2 -2
- package/{www/build/p-0778e75d.entry.js → dist/web-components-library/p-0623cb0c.entry.js} +2 -2
- package/dist/web-components-library/{p-910fd48c.entry.js → p-09f6f502.entry.js} +2 -2
- package/dist/web-components-library/p-0cd10649.entry.js +2 -0
- package/dist/web-components-library/{p-90908f36.js → p-10607a39.js} +2 -2
- package/{www/build/p-63488a2b.entry.js → dist/web-components-library/p-11977cf4.entry.js} +2 -2
- package/{www/build/p-b7af7fa4.entry.js → dist/web-components-library/p-14cb6906.entry.js} +2 -2
- package/dist/web-components-library/p-15cb27a5.entry.js +2 -0
- package/{www/build/p-a9805b32.entry.js → dist/web-components-library/p-1630e240.entry.js} +2 -2
- package/dist/web-components-library/{p-e0a0bfb2.entry.js → p-1c243d34.entry.js} +2 -2
- package/dist/web-components-library/{p-140b5d8f.entry.js → p-201742d8.entry.js} +2 -2
- package/dist/web-components-library/p-2dd5e7f6.entry.js +2 -0
- package/dist/web-components-library/{p-13366542.js → p-2eddce0d.js} +2 -2
- package/dist/web-components-library/{p-0b100bd7.entry.js → p-2fbfd156.entry.js} +2 -2
- package/dist/web-components-library/{p-6ed39f10.entry.js → p-36935fa0.entry.js} +2 -2
- package/dist/web-components-library/{p-8b24d801.entry.js → p-38e8c15d.entry.js} +2 -2
- package/dist/web-components-library/p-3aa8d377.js +2 -0
- package/dist/web-components-library/p-4bf0a07d.entry.js +2 -0
- package/{www/build/p-48b2e967.entry.js → dist/web-components-library/p-5226fa9e.entry.js} +2 -2
- package/dist/web-components-library/p-554f3de2.entry.js +2 -0
- package/dist/web-components-library/{p-ceb4403d.entry.js → p-563e86c0.entry.js} +2 -2
- package/{www/build/p-e38df1a4.entry.js → dist/web-components-library/p-56f76e8b.entry.js} +3 -3
- package/dist/web-components-library/{p-f7ef289b.entry.js → p-57a479e2.entry.js} +2 -2
- package/dist/web-components-library/{p-be2405e2.entry.js → p-5b677d6c.entry.js} +2 -2
- package/{www/build/p-3618e227.entry.js → dist/web-components-library/p-5f220178.entry.js} +2 -2
- package/dist/web-components-library/{p-273f3c53.entry.js → p-6a5429eb.entry.js} +2 -2
- package/dist/web-components-library/{p-6e92df75.entry.js → p-6af64b62.entry.js} +2 -2
- package/dist/web-components-library/{p-03cd1ead.entry.js → p-6c24917e.entry.js} +2 -2
- package/dist/web-components-library/p-7073453b.entry.js +2 -0
- package/dist/web-components-library/p-7073453b.entry.js.map +1 -0
- package/dist/web-components-library/{p-350f84c5.entry.js → p-72463e1e.entry.js} +2 -2
- package/dist/web-components-library/{p-eb3985d0.entry.js → p-7af2be0f.entry.js} +2 -2
- package/dist/web-components-library/p-7b2938cf.js +2 -0
- package/dist/web-components-library/{p-0c489c4b.entry.js → p-7c4d7591.entry.js} +2 -2
- package/dist/web-components-library/p-88ce9c5e.entry.js +2 -0
- package/dist/web-components-library/{p-228db53f.entry.js → p-8aa0f4d0.entry.js} +2 -2
- package/dist/web-components-library/{p-db340bc6.entry.js → p-8abbecc6.entry.js} +2 -2
- package/{www/build/p-b1039f3d.entry.js → dist/web-components-library/p-8afbf9c1.entry.js} +2 -2
- package/dist/web-components-library/p-8cbc8d17.entry.js +2 -0
- package/dist/web-components-library/p-8cbc8d17.entry.js.map +1 -0
- package/{www/build/p-c62825e1.js → dist/web-components-library/p-8ed50cbe.js} +2 -2
- package/{www/build/p-d847bfcd.entry.js → dist/web-components-library/p-8f9ee669.entry.js} +2 -2
- package/dist/web-components-library/p-94ac3a8e.js +2 -0
- package/{www/build/p-b222df41.entry.js → dist/web-components-library/p-a0512ae0.entry.js} +2 -2
- package/{www/build/p-a4aaffd3.entry.js → dist/web-components-library/p-a1d6f996.entry.js} +2 -2
- package/dist/web-components-library/p-a23151fa.entry.js +2 -0
- package/dist/web-components-library/{p-ec740313.entry.js.map → p-a23151fa.entry.js.map} +1 -1
- package/{www/build/p-03e85eac.entry.js → dist/web-components-library/p-a75e11fd.entry.js} +2 -2
- package/{www/build/p-417ed850.entry.js → dist/web-components-library/p-a95bf077.entry.js} +3 -3
- package/dist/web-components-library/{p-f3037ac9.entry.js → p-aad8da85.entry.js} +2 -2
- package/dist/web-components-library/p-ac953072.entry.js +2 -0
- package/dist/web-components-library/p-ad2d1d63.entry.js +2 -0
- package/dist/web-components-library/p-b34993de.js +2 -0
- package/dist/web-components-library/p-b34993de.js.map +1 -0
- package/dist/web-components-library/{p-c451b4d7.entry.js → p-b3bb1d8e.entry.js} +2 -2
- package/dist/web-components-library/p-b6ef8bc3.entry.js +2 -0
- package/dist/web-components-library/p-b6ef8bc3.entry.js.map +1 -0
- package/dist/web-components-library/{p-ecae1a7a.entry.js → p-b7c2d03b.entry.js} +2 -2
- package/dist/web-components-library/p-b82f7ecc.entry.js +2 -0
- package/dist/web-components-library/p-b8a14060.entry.js +2 -0
- package/dist/web-components-library/p-b8a14060.entry.js.map +1 -0
- package/dist/web-components-library/p-ba289415.entry.js +2 -0
- package/dist/web-components-library/{p-eb5a148f.entry.js → p-be082561.entry.js} +2 -2
- package/{www/build/p-985e61f5.entry.js → dist/web-components-library/p-bfd756c2.entry.js} +2 -2
- package/dist/web-components-library/p-bfd756c2.entry.js.map +1 -0
- package/dist/web-components-library/{p-456f984f.js → p-cab91789.js} +2 -2
- package/dist/web-components-library/{p-b6ea478b.entry.js → p-cb7f0092.entry.js} +2 -2
- package/dist/web-components-library/{p-571f1e1d.entry.js → p-cda77971.entry.js} +2 -2
- package/{www/build/p-51f5e5e6.entry.js → dist/web-components-library/p-cf0f4b17.entry.js} +2 -2
- package/dist/web-components-library/p-df10fbaa.entry.js +2 -0
- package/dist/web-components-library/{p-d13520c2.entry.js → p-e0c8a601.entry.js} +2 -2
- package/dist/web-components-library/{p-7c20b8f6.entry.js → p-e83dc145.entry.js} +2 -2
- package/{www/build/p-db04ba75.entry.js → dist/web-components-library/p-ea74101f.entry.js} +2 -2
- package/{www/build/p-b3272516.entry.js → dist/web-components-library/p-ed091723.entry.js} +2 -2
- package/dist/web-components-library/p-eda4a138.entry.js +2 -0
- package/dist/web-components-library/{p-ef8a7250.entry.js → p-f160f987.entry.js} +2 -2
- package/dist/web-components-library/{p-38d5e74f.entry.js → p-f3cecece.entry.js} +2 -2
- package/dist/web-components-library/{p-09552f18.entry.js → p-f64c0f65.entry.js} +2 -2
- package/{www/build/p-47137e39.entry.js → dist/web-components-library/p-f90de798.entry.js} +2 -2
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/dist/web-components-library/web-components-library.esm.js.map +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +2 -0
- package/react/components.js +4 -2
- package/react/components.js.map +1 -1
- package/www/build/index.esm.js +1 -1
- package/www/build/index.esm.js.map +1 -1
- package/www/build/p-01b73978.entry.js +2 -0
- package/www/build/{p-9a48e70b.entry.js → p-03fff274.entry.js} +2 -2
- package/www/build/{p-ab45ba6d.js → p-05f6053f.js} +2 -2
- package/{dist/web-components-library/p-0778e75d.entry.js → www/build/p-0623cb0c.entry.js} +2 -2
- package/www/build/{p-910fd48c.entry.js → p-09f6f502.entry.js} +2 -2
- package/www/build/p-0cd10649.entry.js +2 -0
- package/www/build/{p-90908f36.js → p-10607a39.js} +2 -2
- package/{dist/web-components-library/p-63488a2b.entry.js → www/build/p-11977cf4.entry.js} +2 -2
- package/{dist/web-components-library/p-b7af7fa4.entry.js → www/build/p-14cb6906.entry.js} +2 -2
- package/www/build/p-15cb27a5.entry.js +2 -0
- package/{dist/web-components-library/p-a9805b32.entry.js → www/build/p-1630e240.entry.js} +2 -2
- package/www/build/p-19e60f95.js +2 -0
- package/www/build/{p-e0a0bfb2.entry.js → p-1c243d34.entry.js} +2 -2
- package/www/build/{p-140b5d8f.entry.js → p-201742d8.entry.js} +2 -2
- package/www/build/p-2dd5e7f6.entry.js +2 -0
- package/www/build/{p-13366542.js → p-2eddce0d.js} +2 -2
- package/www/build/{p-0b100bd7.entry.js → p-2fbfd156.entry.js} +2 -2
- package/www/build/{p-6ed39f10.entry.js → p-36935fa0.entry.js} +2 -2
- package/www/build/{p-8b24d801.entry.js → p-38e8c15d.entry.js} +2 -2
- package/www/build/p-3aa8d377.js +2 -0
- package/www/build/p-4bf0a07d.entry.js +2 -0
- package/{dist/web-components-library/p-48b2e967.entry.js → www/build/p-5226fa9e.entry.js} +2 -2
- package/www/build/p-554f3de2.entry.js +2 -0
- package/www/build/{p-ceb4403d.entry.js → p-563e86c0.entry.js} +2 -2
- package/{dist/web-components-library/p-e38df1a4.entry.js → www/build/p-56f76e8b.entry.js} +3 -3
- package/www/build/{p-f7ef289b.entry.js → p-57a479e2.entry.js} +2 -2
- package/www/build/{p-be2405e2.entry.js → p-5b677d6c.entry.js} +2 -2
- package/{dist/web-components-library/p-3618e227.entry.js → www/build/p-5f220178.entry.js} +2 -2
- package/www/build/{p-273f3c53.entry.js → p-6a5429eb.entry.js} +2 -2
- package/www/build/{p-6e92df75.entry.js → p-6af64b62.entry.js} +2 -2
- package/www/build/{p-03cd1ead.entry.js → p-6c24917e.entry.js} +2 -2
- package/www/build/p-7073453b.entry.js +2 -0
- package/www/build/p-7073453b.entry.js.map +1 -0
- package/www/build/{p-350f84c5.entry.js → p-72463e1e.entry.js} +2 -2
- package/www/build/{p-eb3985d0.entry.js → p-7af2be0f.entry.js} +2 -2
- package/www/build/p-7b2938cf.js +2 -0
- package/www/build/{p-0c489c4b.entry.js → p-7c4d7591.entry.js} +2 -2
- package/www/build/p-88ce9c5e.entry.js +2 -0
- package/www/build/{p-228db53f.entry.js → p-8aa0f4d0.entry.js} +2 -2
- package/www/build/{p-db340bc6.entry.js → p-8abbecc6.entry.js} +2 -2
- package/{dist/web-components-library/p-b1039f3d.entry.js → www/build/p-8afbf9c1.entry.js} +2 -2
- package/www/build/p-8cbc8d17.entry.js +2 -0
- package/www/build/p-8cbc8d17.entry.js.map +1 -0
- package/{dist/web-components-library/p-c62825e1.js → www/build/p-8ed50cbe.js} +2 -2
- package/{dist/web-components-library/p-d847bfcd.entry.js → www/build/p-8f9ee669.entry.js} +2 -2
- package/www/build/p-94ac3a8e.js +2 -0
- package/{dist/web-components-library/p-b222df41.entry.js → www/build/p-a0512ae0.entry.js} +2 -2
- package/{dist/web-components-library/p-a4aaffd3.entry.js → www/build/p-a1d6f996.entry.js} +2 -2
- package/www/build/p-a23151fa.entry.js +2 -0
- package/www/build/{p-ec740313.entry.js.map → p-a23151fa.entry.js.map} +1 -1
- package/{dist/web-components-library/p-03e85eac.entry.js → www/build/p-a75e11fd.entry.js} +2 -2
- package/{dist/web-components-library/p-417ed850.entry.js → www/build/p-a95bf077.entry.js} +3 -3
- package/www/build/{p-f3037ac9.entry.js → p-aad8da85.entry.js} +2 -2
- package/www/build/p-ac953072.entry.js +2 -0
- package/www/build/p-ad2d1d63.entry.js +2 -0
- package/www/build/p-b34993de.js +2 -0
- package/www/build/p-b34993de.js.map +1 -0
- package/www/build/{p-c451b4d7.entry.js → p-b3bb1d8e.entry.js} +2 -2
- package/www/build/p-b6ef8bc3.entry.js +2 -0
- package/www/build/p-b6ef8bc3.entry.js.map +1 -0
- package/www/build/{p-ecae1a7a.entry.js → p-b7c2d03b.entry.js} +2 -2
- package/www/build/p-b82f7ecc.entry.js +2 -0
- package/www/build/p-b8a14060.entry.js +2 -0
- package/www/build/p-b8a14060.entry.js.map +1 -0
- package/www/build/p-ba289415.entry.js +2 -0
- package/www/build/{p-eb5a148f.entry.js → p-be082561.entry.js} +2 -2
- package/{dist/web-components-library/p-985e61f5.entry.js → www/build/p-bfd756c2.entry.js} +2 -2
- package/www/build/p-bfd756c2.entry.js.map +1 -0
- package/www/build/{p-456f984f.js → p-cab91789.js} +2 -2
- package/www/build/{p-b6ea478b.entry.js → p-cb7f0092.entry.js} +2 -2
- package/www/build/{p-571f1e1d.entry.js → p-cda77971.entry.js} +2 -2
- package/{dist/web-components-library/p-51f5e5e6.entry.js → www/build/p-cf0f4b17.entry.js} +2 -2
- package/www/build/p-df10fbaa.entry.js +2 -0
- package/www/build/{p-d13520c2.entry.js → p-e0c8a601.entry.js} +2 -2
- package/www/build/{p-7c20b8f6.entry.js → p-e83dc145.entry.js} +2 -2
- package/{dist/web-components-library/p-db04ba75.entry.js → www/build/p-ea74101f.entry.js} +2 -2
- package/{dist/web-components-library/p-b3272516.entry.js → www/build/p-ed091723.entry.js} +2 -2
- package/www/build/p-eda4a138.entry.js +2 -0
- package/www/build/{p-ef8a7250.entry.js → p-f160f987.entry.js} +2 -2
- package/www/build/{p-38d5e74f.entry.js → p-f3cecece.entry.js} +2 -2
- package/www/build/{p-09552f18.entry.js → p-f64c0f65.entry.js} +2 -2
- package/{dist/web-components-library/p-47137e39.entry.js → www/build/p-f90de798.entry.js} +2 -2
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.esm.js.map +1 -1
- package/www/index.html +1 -1
- package/www/pages/book-cards.html +75 -573
- package/dist/cjs/index-daad5eae.js.map +0 -1
- package/dist/collection/components/z-book-card/index.js.map +0 -1
- package/dist/collection/components/z-book-card/index.stories.js.map +0 -1
- package/dist/esm/index-a63060e9.js.map +0 -1
- package/dist/web-components-library/p-06b8521b.entry.js +0 -2
- package/dist/web-components-library/p-11df2c0a.entry.js +0 -2
- package/dist/web-components-library/p-11df2c0a.entry.js.map +0 -1
- package/dist/web-components-library/p-16719dff.entry.js +0 -2
- package/dist/web-components-library/p-17d2d60b.entry.js +0 -2
- package/dist/web-components-library/p-1c24255c.js +0 -2
- package/dist/web-components-library/p-1c24255c.js.map +0 -1
- package/dist/web-components-library/p-291319ed.entry.js +0 -2
- package/dist/web-components-library/p-32d603b8.js +0 -2
- package/dist/web-components-library/p-3d97dedf.entry.js +0 -2
- package/dist/web-components-library/p-6297dfaa.entry.js +0 -2
- package/dist/web-components-library/p-6b759395.entry.js +0 -2
- package/dist/web-components-library/p-6b791915.entry.js +0 -2
- package/dist/web-components-library/p-8855aef4.js +0 -2
- package/dist/web-components-library/p-8d443cac.entry.js +0 -2
- package/dist/web-components-library/p-985e61f5.entry.js.map +0 -1
- package/dist/web-components-library/p-9c36d574.entry.js +0 -2
- package/dist/web-components-library/p-a167bdd5.js +0 -2
- package/dist/web-components-library/p-af7e5773.entry.js +0 -2
- package/dist/web-components-library/p-b20bfb34.entry.js +0 -2
- package/dist/web-components-library/p-b20bfb34.entry.js.map +0 -1
- package/dist/web-components-library/p-ec740313.entry.js +0 -2
- package/dist/web-components-library/p-fb2eb3c0.entry.js +0 -2
- package/dist/web-components-library/p-febc4982.entry.js +0 -2
- package/www/build/p-06b8521b.entry.js +0 -2
- package/www/build/p-11df2c0a.entry.js +0 -2
- package/www/build/p-11df2c0a.entry.js.map +0 -1
- package/www/build/p-16719dff.entry.js +0 -2
- package/www/build/p-17d2d60b.entry.js +0 -2
- package/www/build/p-1c24255c.js +0 -2
- package/www/build/p-1c24255c.js.map +0 -1
- package/www/build/p-1fcf4111.js +0 -2
- package/www/build/p-291319ed.entry.js +0 -2
- package/www/build/p-32d603b8.js +0 -2
- package/www/build/p-3d97dedf.entry.js +0 -2
- package/www/build/p-6297dfaa.entry.js +0 -2
- package/www/build/p-6b759395.entry.js +0 -2
- package/www/build/p-6b791915.entry.js +0 -2
- package/www/build/p-8855aef4.js +0 -2
- package/www/build/p-8d443cac.entry.js +0 -2
- package/www/build/p-985e61f5.entry.js.map +0 -1
- package/www/build/p-9c36d574.entry.js +0 -2
- package/www/build/p-a167bdd5.js +0 -2
- package/www/build/p-af7e5773.entry.js +0 -2
- package/www/build/p-b20bfb34.entry.js +0 -2
- package/www/build/p-b20bfb34.entry.js.map +0 -1
- package/www/build/p-ec740313.entry.js +0 -2
- package/www/build/p-fb2eb3c0.entry.js +0 -2
- package/www/build/p-febc4982.entry.js +0 -2
- /package/dist/collection/components/{z-book-card → deprecated/z-book-card-deprecated}/styles.css +0 -0
- /package/dist/web-components-library/{p-06b8521b.entry.js.map → p-01b73978.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9a48e70b.entry.js.map → p-03fff274.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ab45ba6d.js.map → p-05f6053f.js.map} +0 -0
- /package/dist/web-components-library/{p-0778e75d.entry.js.map → p-0623cb0c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-910fd48c.entry.js.map → p-09f6f502.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-291319ed.entry.js.map → p-0cd10649.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-90908f36.js.map → p-10607a39.js.map} +0 -0
- /package/dist/web-components-library/{p-63488a2b.entry.js.map → p-11977cf4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b7af7fa4.entry.js.map → p-14cb6906.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-16719dff.entry.js.map → p-15cb27a5.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a9805b32.entry.js.map → p-1630e240.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e0a0bfb2.entry.js.map → p-1c243d34.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-140b5d8f.entry.js.map → p-201742d8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-17d2d60b.entry.js.map → p-2dd5e7f6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-13366542.js.map → p-2eddce0d.js.map} +0 -0
- /package/dist/web-components-library/{p-0b100bd7.entry.js.map → p-2fbfd156.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6ed39f10.entry.js.map → p-36935fa0.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8b24d801.entry.js.map → p-38e8c15d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-32d603b8.js.map → p-3aa8d377.js.map} +0 -0
- /package/dist/web-components-library/{p-6297dfaa.entry.js.map → p-4bf0a07d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-48b2e967.entry.js.map → p-5226fa9e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6b759395.entry.js.map → p-554f3de2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ceb4403d.entry.js.map → p-563e86c0.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e38df1a4.entry.js.map → p-56f76e8b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f7ef289b.entry.js.map → p-57a479e2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-be2405e2.entry.js.map → p-5b677d6c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-3618e227.entry.js.map → p-5f220178.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-273f3c53.entry.js.map → p-6a5429eb.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6e92df75.entry.js.map → p-6af64b62.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-03cd1ead.entry.js.map → p-6c24917e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-350f84c5.entry.js.map → p-72463e1e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-eb3985d0.entry.js.map → p-7af2be0f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8855aef4.js.map → p-7b2938cf.js.map} +0 -0
- /package/dist/web-components-library/{p-0c489c4b.entry.js.map → p-7c4d7591.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6b791915.entry.js.map → p-88ce9c5e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-228db53f.entry.js.map → p-8aa0f4d0.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-db340bc6.entry.js.map → p-8abbecc6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b1039f3d.entry.js.map → p-8afbf9c1.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c62825e1.js.map → p-8ed50cbe.js.map} +0 -0
- /package/dist/web-components-library/{p-d847bfcd.entry.js.map → p-8f9ee669.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a167bdd5.js.map → p-94ac3a8e.js.map} +0 -0
- /package/dist/web-components-library/{p-b222df41.entry.js.map → p-a0512ae0.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a4aaffd3.entry.js.map → p-a1d6f996.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-03e85eac.entry.js.map → p-a75e11fd.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-417ed850.entry.js.map → p-a95bf077.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f3037ac9.entry.js.map → p-aad8da85.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9c36d574.entry.js.map → p-ac953072.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8d443cac.entry.js.map → p-ad2d1d63.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c451b4d7.entry.js.map → p-b3bb1d8e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ecae1a7a.entry.js.map → p-b7c2d03b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-3d97dedf.entry.js.map → p-b82f7ecc.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-febc4982.entry.js.map → p-ba289415.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-eb5a148f.entry.js.map → p-be082561.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-456f984f.js.map → p-cab91789.js.map} +0 -0
- /package/dist/web-components-library/{p-b6ea478b.entry.js.map → p-cb7f0092.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-571f1e1d.entry.js.map → p-cda77971.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-51f5e5e6.entry.js.map → p-cf0f4b17.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fb2eb3c0.entry.js.map → p-df10fbaa.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d13520c2.entry.js.map → p-e0c8a601.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7c20b8f6.entry.js.map → p-e83dc145.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-db04ba75.entry.js.map → p-ea74101f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b3272516.entry.js.map → p-ed091723.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-af7e5773.entry.js.map → p-eda4a138.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ef8a7250.entry.js.map → p-f160f987.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-38d5e74f.entry.js.map → p-f3cecece.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-09552f18.entry.js.map → p-f64c0f65.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-47137e39.entry.js.map → p-f90de798.entry.js.map} +0 -0
- /package/www/build/{p-06b8521b.entry.js.map → p-01b73978.entry.js.map} +0 -0
- /package/www/build/{p-9a48e70b.entry.js.map → p-03fff274.entry.js.map} +0 -0
- /package/www/build/{p-ab45ba6d.js.map → p-05f6053f.js.map} +0 -0
- /package/www/build/{p-0778e75d.entry.js.map → p-0623cb0c.entry.js.map} +0 -0
- /package/www/build/{p-910fd48c.entry.js.map → p-09f6f502.entry.js.map} +0 -0
- /package/www/build/{p-291319ed.entry.js.map → p-0cd10649.entry.js.map} +0 -0
- /package/www/build/{p-90908f36.js.map → p-10607a39.js.map} +0 -0
- /package/www/build/{p-63488a2b.entry.js.map → p-11977cf4.entry.js.map} +0 -0
- /package/www/build/{p-b7af7fa4.entry.js.map → p-14cb6906.entry.js.map} +0 -0
- /package/www/build/{p-16719dff.entry.js.map → p-15cb27a5.entry.js.map} +0 -0
- /package/www/build/{p-a9805b32.entry.js.map → p-1630e240.entry.js.map} +0 -0
- /package/www/build/{p-e0a0bfb2.entry.js.map → p-1c243d34.entry.js.map} +0 -0
- /package/www/build/{p-140b5d8f.entry.js.map → p-201742d8.entry.js.map} +0 -0
- /package/www/build/{p-17d2d60b.entry.js.map → p-2dd5e7f6.entry.js.map} +0 -0
- /package/www/build/{p-13366542.js.map → p-2eddce0d.js.map} +0 -0
- /package/www/build/{p-0b100bd7.entry.js.map → p-2fbfd156.entry.js.map} +0 -0
- /package/www/build/{p-6ed39f10.entry.js.map → p-36935fa0.entry.js.map} +0 -0
- /package/www/build/{p-8b24d801.entry.js.map → p-38e8c15d.entry.js.map} +0 -0
- /package/www/build/{p-32d603b8.js.map → p-3aa8d377.js.map} +0 -0
- /package/www/build/{p-6297dfaa.entry.js.map → p-4bf0a07d.entry.js.map} +0 -0
- /package/www/build/{p-48b2e967.entry.js.map → p-5226fa9e.entry.js.map} +0 -0
- /package/www/build/{p-6b759395.entry.js.map → p-554f3de2.entry.js.map} +0 -0
- /package/www/build/{p-ceb4403d.entry.js.map → p-563e86c0.entry.js.map} +0 -0
- /package/www/build/{p-e38df1a4.entry.js.map → p-56f76e8b.entry.js.map} +0 -0
- /package/www/build/{p-f7ef289b.entry.js.map → p-57a479e2.entry.js.map} +0 -0
- /package/www/build/{p-be2405e2.entry.js.map → p-5b677d6c.entry.js.map} +0 -0
- /package/www/build/{p-3618e227.entry.js.map → p-5f220178.entry.js.map} +0 -0
- /package/www/build/{p-273f3c53.entry.js.map → p-6a5429eb.entry.js.map} +0 -0
- /package/www/build/{p-6e92df75.entry.js.map → p-6af64b62.entry.js.map} +0 -0
- /package/www/build/{p-03cd1ead.entry.js.map → p-6c24917e.entry.js.map} +0 -0
- /package/www/build/{p-350f84c5.entry.js.map → p-72463e1e.entry.js.map} +0 -0
- /package/www/build/{p-eb3985d0.entry.js.map → p-7af2be0f.entry.js.map} +0 -0
- /package/www/build/{p-8855aef4.js.map → p-7b2938cf.js.map} +0 -0
- /package/www/build/{p-0c489c4b.entry.js.map → p-7c4d7591.entry.js.map} +0 -0
- /package/www/build/{p-6b791915.entry.js.map → p-88ce9c5e.entry.js.map} +0 -0
- /package/www/build/{p-228db53f.entry.js.map → p-8aa0f4d0.entry.js.map} +0 -0
- /package/www/build/{p-db340bc6.entry.js.map → p-8abbecc6.entry.js.map} +0 -0
- /package/www/build/{p-b1039f3d.entry.js.map → p-8afbf9c1.entry.js.map} +0 -0
- /package/www/build/{p-c62825e1.js.map → p-8ed50cbe.js.map} +0 -0
- /package/www/build/{p-d847bfcd.entry.js.map → p-8f9ee669.entry.js.map} +0 -0
- /package/www/build/{p-a167bdd5.js.map → p-94ac3a8e.js.map} +0 -0
- /package/www/build/{p-b222df41.entry.js.map → p-a0512ae0.entry.js.map} +0 -0
- /package/www/build/{p-a4aaffd3.entry.js.map → p-a1d6f996.entry.js.map} +0 -0
- /package/www/build/{p-03e85eac.entry.js.map → p-a75e11fd.entry.js.map} +0 -0
- /package/www/build/{p-417ed850.entry.js.map → p-a95bf077.entry.js.map} +0 -0
- /package/www/build/{p-f3037ac9.entry.js.map → p-aad8da85.entry.js.map} +0 -0
- /package/www/build/{p-9c36d574.entry.js.map → p-ac953072.entry.js.map} +0 -0
- /package/www/build/{p-8d443cac.entry.js.map → p-ad2d1d63.entry.js.map} +0 -0
- /package/www/build/{p-c451b4d7.entry.js.map → p-b3bb1d8e.entry.js.map} +0 -0
- /package/www/build/{p-ecae1a7a.entry.js.map → p-b7c2d03b.entry.js.map} +0 -0
- /package/www/build/{p-3d97dedf.entry.js.map → p-b82f7ecc.entry.js.map} +0 -0
- /package/www/build/{p-febc4982.entry.js.map → p-ba289415.entry.js.map} +0 -0
- /package/www/build/{p-eb5a148f.entry.js.map → p-be082561.entry.js.map} +0 -0
- /package/www/build/{p-456f984f.js.map → p-cab91789.js.map} +0 -0
- /package/www/build/{p-b6ea478b.entry.js.map → p-cb7f0092.entry.js.map} +0 -0
- /package/www/build/{p-571f1e1d.entry.js.map → p-cda77971.entry.js.map} +0 -0
- /package/www/build/{p-51f5e5e6.entry.js.map → p-cf0f4b17.entry.js.map} +0 -0
- /package/www/build/{p-fb2eb3c0.entry.js.map → p-df10fbaa.entry.js.map} +0 -0
- /package/www/build/{p-d13520c2.entry.js.map → p-e0c8a601.entry.js.map} +0 -0
- /package/www/build/{p-7c20b8f6.entry.js.map → p-e83dc145.entry.js.map} +0 -0
- /package/www/build/{p-db04ba75.entry.js.map → p-ea74101f.entry.js.map} +0 -0
- /package/www/build/{p-b3272516.entry.js.map → p-ed091723.entry.js.map} +0 -0
- /package/www/build/{p-af7e5773.entry.js.map → p-eda4a138.entry.js.map} +0 -0
- /package/www/build/{p-ef8a7250.entry.js.map → p-f160f987.entry.js.map} +0 -0
- /package/www/build/{p-38d5e74f.entry.js.map → p-f3cecece.entry.js.map} +0 -0
- /package/www/build/{p-09552f18.entry.js.map → p-f64c0f65.entry.js.map} +0 -0
- /package/www/build/{p-47137e39.entry.js.map → p-f90de798.entry.js.map} +0 -0
|
@@ -13,8 +13,12 @@ export { ZAriaAlert as ZAriaAlert } from '../types/components/z-aria-alert/index
|
|
|
13
13
|
export { defineCustomElement as defineCustomElementZAriaAlert } from './z-aria-alert';
|
|
14
14
|
export { ZAvatar as ZAvatar } from '../types/components/z-avatar/index';
|
|
15
15
|
export { defineCustomElement as defineCustomElementZAvatar } from './z-avatar';
|
|
16
|
-
export { ZBookCard as ZBookCard } from '../types/components/z-book-card/index';
|
|
16
|
+
export { ZBookCard as ZBookCard } from '../types/components/book-card/z-book-card/index';
|
|
17
17
|
export { defineCustomElement as defineCustomElementZBookCard } from './z-book-card';
|
|
18
|
+
export { ZBookCardApp as ZBookCardApp } from '../types/components/book-card/z-book-card-app/index';
|
|
19
|
+
export { defineCustomElement as defineCustomElementZBookCardApp } from './z-book-card-app';
|
|
20
|
+
export { ZBookCardDeprecated as ZBookCardDeprecated } from '../types/components/deprecated/z-book-card-deprecated/index';
|
|
21
|
+
export { defineCustomElement as defineCustomElementZBookCardDeprecated } from './z-book-card-deprecated';
|
|
18
22
|
export { ZBreadcrumb as ZBreadcrumb } from '../types/components/z-breadcrumb/index';
|
|
19
23
|
export { defineCustomElement as defineCustomElementZBreadcrumb } from './z-breadcrumb';
|
|
20
24
|
export { ZButton as ZButton } from '../types/components/z-button/index';
|
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as colorFromId } from './utils.js';
|
|
3
|
-
export {
|
|
3
|
+
export { $ as AccordionVariant, o as AlertType, A as AvatarSize, Y as BookCardDeprecatedVariant, _ as BookCardTagStatus, X as BookCardVariant, V as BreadcrumbHomepageVariant, U as BreadcrumbPathStyle, d as ButtonSize, c as ButtonType, B as ButtonVariant, C as CardVariant, Q as CarouselArrowsPosition, R as CarouselProgressMode, e as ControlSize, M as CoverHeroContentPosition, J as CoverHeroVariant, p as Device, h as DividerOrientation, D as DividerSize, j as ExpandableListButtonAlign, E as ExpandableListStyle, H as InfoRevealPosition, f as InputStatus, I as InputType, g as KeyboardCode, K as KeyboardKeyCode, k as LabelPosition, L as LicenseType, l as ListDividerType, i as ListSize, m as ListType, b as NavigationTabsKeyboardEvents, N as NavigationTabsOrientation, a as NavigationTabsSize, n as NotificationType, O as OffCanvasVariant, P as PopoverPosition, S as SortDirection, T as ThemeVariant, q as ToastNotification, s as ToastNotificationPosition, r as ToastNotificationTransition, u as TransitionDirection, W as VisibilityCondition, t as ZAriaAlertMode, w as ZChipType, y as ZDatePickerMode, z as ZDatePickerModeValue, F as ZDatePickerPosition, v as ZFileUploadType, G as ZRangePickerMode, x as ZSectionTitleDividerPosition, Z as ZTableRowExpandedType } from './index2.js';
|
|
4
4
|
export { ZAccordion, defineCustomElement as defineCustomElementZAccordion } from './z-accordion.js';
|
|
5
5
|
export { ZAlert, defineCustomElement as defineCustomElementZAlert } from './z-alert.js';
|
|
6
6
|
export { ZAnchorNavigation, defineCustomElement as defineCustomElementZAnchorNavigation } from './z-anchor-navigation.js';
|
|
@@ -9,6 +9,8 @@ export { ZAppHeaderDeprecated, defineCustomElement as defineCustomElementZAppHea
|
|
|
9
9
|
export { ZAriaAlert, defineCustomElement as defineCustomElementZAriaAlert } from './z-aria-alert.js';
|
|
10
10
|
export { ZAvatar, defineCustomElement as defineCustomElementZAvatar } from './z-avatar.js';
|
|
11
11
|
export { ZBookCard, defineCustomElement as defineCustomElementZBookCard } from './z-book-card.js';
|
|
12
|
+
export { ZBookCardApp, defineCustomElement as defineCustomElementZBookCardApp } from './z-book-card-app.js';
|
|
13
|
+
export { ZBookCardDeprecated, defineCustomElement as defineCustomElementZBookCardDeprecated } from './z-book-card-deprecated.js';
|
|
12
14
|
export { ZBreadcrumb, defineCustomElement as defineCustomElementZBreadcrumb } from './z-breadcrumb.js';
|
|
13
15
|
export { ZButton, defineCustomElement as defineCustomElementZButton } from './z-button.js';
|
|
14
16
|
export { ZButtonSort, defineCustomElement as defineCustomElementZButtonSort } from './z-button-sort.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index.js","mappings":"
|
|
1
|
+
{"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEM,KAAK,GAAG;IACZ,WAAW;;;;;","names":[],"sources":["src/index.ts"],"sourcesContent":["import {colorFromId} from \"./utils/utils\";\n\nconst UTILS = {\n colorFromId,\n};\n\nexport * from \"./beans\";\nexport * from \"./components\";\nexport {UTILS as Utils};\n"],"version":3}
|
|
@@ -1,335 +1,85 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { d as defineCustomElement$2 } from './index9.js';
|
|
5
|
-
import { d as defineCustomElement$1 } from './index11.js';
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { H as InfoRevealPosition, e as ControlSize } from './index2.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './index9.js';
|
|
6
4
|
|
|
7
|
-
const stylesCss = ".sc-z-input-h{display:inline-block;width:inherit}input.sc-z-input::-ms-clear,input.sc-z-input::-ms-reveal{display:none}.sc-z-input-h input.sc-z-input::-ms-clear,.sc-z-input-h input.sc-z-input::-ms-reveal{display:none}input.sc-z-input,textarea.sc-z-input,.textarea-wrapper.sc-z-input{box-sizing:border-box;border:var(--border-size-small) solid var(--gray700);background:var(--color-input-field01);border-radius:var(--border-radius-small);color:var(--gray900);fill:var(--gray900);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg);outline:none}[size=\"small\"].sc-z-input-h input.sc-z-input,[size=\"small\"].sc-z-input-h textarea.sc-z-input,[size=\"small\"].sc-z-input-h .textarea-wrapper.sc-z-input,[size=\"x-small\"].sc-z-input-h input.sc-z-input,[size=\"x-small\"].sc-z-input-h textarea.sc-z-input,[size=\"x-small\"].sc-z-input-h .textarea-wrapper.sc-z-input{font-size:var(--font-size-2)}.cursor-select.sc-z-input-h input.sc-z-input{cursor:pointer}.sc-z-input-h:not(.active-select) input.sc-z-input:focus:focus-visible,.sc-z-input-h:not([readonly=\"true\"]) .textarea-wrapper.sc-z-input:focus-within{box-shadow:var(--shadow-focus-primary)}input.sc-z-input:focus:focus-visible,textarea.sc-z-input:focus:focus-visible{color:var(--color-input-field02)}.active-select.sc-z-input-h input.sc-z-input{border:var(--border-size-small) solid var(--color-primary01)}.cursor-select.sc-z-input-h input.sc-z-input:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}.sc-z-input-h input[readonly].sc-z-input:focus:focus-visible{box-shadow:none}.filled.sc-z-input{border-color:var(--color-surface05)}.input-success.sc-z-input{border-color:var(--color-success01);background:var(--color-success-inverse);fill:var(--color-success01)}.input-error.sc-z-input{border-color:var(--color-error01);background:var(--color-error-inverse);fill:var(--color-error01)}.input-warning.sc-z-input{border-color:var(--color-warning01);background:var(--color-warning-inverse);fill:var(--color-warning01)}input.sc-z-input:not([readonly]):hover,.textarea-wrapper.sc-z-input:hover{outline:var(--border-size-medium) solid var(--gray700);outline-offset:-2px}.sc-z-input-h:not(.active-select) input[readonly].sc-z-input,.readonly.sc-z-input{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) .textarea-wrapper.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) z-icon.sc-z-input{border-color:var(--color-disabled01);box-shadow:none;color:var(--color-disabled03);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input:hover{border-width:var(--border-size-small)}input.sc-z-input::placeholder,textarea.sc-z-input::placeholder{color:var(--color-text05)}.sc-z-input::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input::placeholder{color:var(--color-text05)}label.input-label.sc-z-input{display:block;padding-bottom:var(--space-unit);color:var(--color-default-text);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);text-align:left;text-transform:uppercase}[disabled].sc-z-input-h:not([disabled=\"false\"]) label.input-label.sc-z-input{color:var(--color-disabled03)}.text-wrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1;fill:var(--gray900)}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);box-sizing:border-box;padding:0 calc(var(--space-unit) * 1.5);margin:0}[size=\"small\"].sc-z-input-h .text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:calc(var(--space-unit) * 4.5)}[size=\"x-small\"].sc-z-input-h .text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:calc(var(--space-unit) * 4)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.sc-z-input,.text-wrapper.sc-z-input>div.sc-z-input>input.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 5.25)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 8)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input{position:absolute;z-index:2;top:50%;right:calc(var(--space-unit) * 1.5);display:flex;pointer-events:none;transform:translateY(-50%)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input{padding:0;border:0;background:none;color:inherit;font:inherit;pointer-events:initial}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input+button.icon-button.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.hidden.sc-z-input{display:none}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.reset-icon.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.toggle-password-icon.sc-z-input{cursor:pointer}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.small.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.x-small.sc-z-input{--z-icon-width:16px;--z-icon-height:16px}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input:focus{box-shadow:var(--shadow-focus-primary);outline:none !important}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset;-webkit-text-fill-color:currentcolor}.textarea-wrapper.sc-z-input{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input{width:100%;min-height:132px;padding:0;border:none;margin:0;resize:none}.radio-wrapper.sc-z-input,.checkbox-wrapper.sc-z-input{position:relative;display:inline-flex;flex-direction:row;align-items:center;color:var(--color-default-text);fill:var(--color-primary01);font-family:var(--font-family-sans)}.radio-wrapper.sc-z-input:hover,.checkbox-wrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:currentcolor}.radio-wrapper.sc-z-input>input.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input{position:absolute;z-index:-1;opacity:0;pointer-events:none}.radio-wrapper.sc-z-input .radio-label.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{display:inline-flex;align-items:center;margin:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1;text-transform:inherit}.radio-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkbox-label.sc-z-input{cursor:pointer}.radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{cursor:pointer;fill:inherit}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{--z-icon-width:16px;--z-icon-height:16px}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{font-size:var(--font-size-2)}[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{--z-icon-width:14px;--z-icon-height:14px}[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{font-size:var(--font-size-1)}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input{flex-direction:row}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input{flex-direction:row-reverse}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:calc(var(--space-unit) * 0.5)}.radio-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radio-label.sc-z-input>z-icon.sc-z-input{border-radius:50%}.checkbox-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkbox-label.sc-z-input>z-icon.sc-z-input{border-radius:var(--border-radius-small)}.radio-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkbox-label.sc-z-input>z-icon.sc-z-input{box-shadow:var(--shadow-focus-primary)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input{color:var(--color-disabled03)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input>z-icon.sc-z-input{cursor:default;fill:var(--color-disabled01)}";
|
|
8
|
-
const
|
|
5
|
+
const stylesCss = ":host{--z-info-reveal-panel-width:384px;--trigger-size:44px;position:relative}:host *{box-sizing:border-box}button{--trigger-icon-size:calc(var(--trigger-size) / 2);display:flex;align-items:center;justify-content:center;padding:0;border:none;background-color:transparent;cursor:pointer;font-family:inherit;letter-spacing:inherit}button:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.z-info-reveal-trigger{min-width:var(--trigger-size);height:var(--trigger-size);padding:calc((var(--trigger-size) - var(--trigger-icon-size)) / 2);background-color:var(--color-surface05);border-radius:var(--border-radius);color:var(--color-text-inverse);column-gap:var(--space-unit);font-weight:var(--font-sb);line-height:1rem}:host([size=\"big\"]) .z-info-reveal-trigger{font-size:var(--font-size-2)}:host([size=\"small\"]) .z-info-reveal-trigger{--trigger-size:36px;font-size:var(--font-size-2)}:host([size=\"x-small\"]) .z-info-reveal-trigger{--trigger-size:32px;padding:var(--space-unit);font-size:var(--font-size-1)}:host>.z-info-reveal-trigger z-icon{--z-icon-width:var(--trigger-icon-size);--z-icon-height:var(--trigger-icon-size);display:flex;fill:var(--color-inverse-icon)}:host([size=\"small\"])>.z-info-reveal-trigger z-icon{--trigger-icon-size:18px}:host([size=\"x-small\"])>.z-info-reveal-trigger z-icon{--trigger-icon-size:16px}.z-info-reveal-panel{position:absolute;display:flex;width:var(--z-info-reveal-panel-width);height:fit-content;align-items:flex-start;padding:calc(var(--space-unit) * 1.5);background-color:var(--color-surface05);border-radius:var(--border-radius);box-shadow:var(--shadow-4);color:var(--color-text-inverse);column-gap:var(--space-unit)}.z-info-reveal-panel[hidden]{display:none}:host([position=\"top_left\"]) .z-info-reveal-panel,:host([position=\"top_right\"]) .z-info-reveal-panel{top:0}:host([position=\"bottom_left\"]) .z-info-reveal-panel,:host([position=\"bottom_right\"]) .z-info-reveal-panel{bottom:0}:host([position=\"top_right\"]) .z-info-reveal-panel,:host([position=\"bottom_right\"]) .z-info-reveal-panel{right:0}:host([position=\"top_left\"]) .z-info-reveal-panel,:host([position=\"bottom_left\"]) .z-info-reveal-panel{left:0}.z-info-reveal-panel .z-info-reveal-close{margin-left:auto}.z-info-reveal-panel z-icon{fill:var(--color-inverse-icon)}@media (max-width: 767px){.z-info-reveal-panel{position:fixed;top:auto !important;bottom:auto !important;left:var(--grid-margin) !important;width:calc(100% - (var(--grid-margin) * 2)) !important;max-width:none !important;margin-top:calc(var(--trigger-size) * -1)}}";
|
|
6
|
+
const ZInfoRevealStyle0 = stylesCss;
|
|
9
7
|
|
|
10
|
-
const
|
|
8
|
+
const ZInfoReveal = /*@__PURE__*/ proxyCustomElement(class ZInfoReveal extends HTMLElement {
|
|
11
9
|
constructor() {
|
|
12
10
|
super();
|
|
13
11
|
this.__registerHost();
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.inputCheck = createEvent(this, "inputCheck", 7);
|
|
18
|
-
this.inputFocus = createEvent(this, "inputFocus", 7);
|
|
19
|
-
this.inputBlur = createEvent(this, "inputBlur", 7);
|
|
20
|
-
this.typingtimeout = 300;
|
|
21
|
-
this.htmlid = `id-${randomId()}`;
|
|
22
|
-
this.type = undefined;
|
|
23
|
-
this.name = undefined;
|
|
12
|
+
this.__attachShadow();
|
|
13
|
+
this.icon = "informationsource";
|
|
14
|
+
this.position = InfoRevealPosition.BOTTOM_RIGHT;
|
|
24
15
|
this.label = undefined;
|
|
25
|
-
this.ariaLabel = "";
|
|
26
|
-
this.ariaExpanded = "";
|
|
27
|
-
this.ariaControls = undefined;
|
|
28
|
-
this.ariaAutocomplete = undefined;
|
|
29
|
-
this.ariaActivedescendant = undefined;
|
|
30
|
-
this.value = undefined;
|
|
31
|
-
this.disabled = false;
|
|
32
|
-
this.readonly = false;
|
|
33
|
-
this.required = false;
|
|
34
|
-
this.checked = false;
|
|
35
|
-
this.placeholder = undefined;
|
|
36
|
-
this.htmltitle = undefined;
|
|
37
|
-
this.status = undefined;
|
|
38
|
-
this.message = true;
|
|
39
|
-
this.labelPosition = LabelPosition.RIGHT;
|
|
40
|
-
this.autocomplete = undefined;
|
|
41
|
-
this.role = "";
|
|
42
|
-
this.hasclearicon = true;
|
|
43
|
-
this.icon = undefined;
|
|
44
|
-
this.min = undefined;
|
|
45
|
-
this.minlength = undefined;
|
|
46
|
-
this.max = undefined;
|
|
47
|
-
this.maxlength = undefined;
|
|
48
|
-
this.step = undefined;
|
|
49
|
-
this.pattern = undefined;
|
|
16
|
+
this.ariaLabel = "Apri pannello informazioni";
|
|
50
17
|
this.size = ControlSize.BIG;
|
|
51
|
-
this.
|
|
52
|
-
this.passwordHidden = true;
|
|
18
|
+
this.open = false;
|
|
53
19
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
this.checked = false;
|
|
60
|
-
}
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
/** get checked status */
|
|
65
|
-
async isChecked() {
|
|
66
|
-
switch (this.type) {
|
|
67
|
-
case InputType.CHECKBOX:
|
|
68
|
-
case InputType.RADIO:
|
|
69
|
-
return this.checked;
|
|
70
|
-
default:
|
|
71
|
-
console.warn("`isChecked` method is only available for type `checkbox` and `radio`");
|
|
72
|
-
return false;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
emitInputChange(value) {
|
|
76
|
-
if (!this.isTyping) {
|
|
77
|
-
this.emitStartTyping();
|
|
78
|
-
}
|
|
79
|
-
let validity;
|
|
80
|
-
if (this.type === InputType.TEXTAREA) {
|
|
81
|
-
validity = this.getValidity("textarea");
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
validity = this.getValidity("input");
|
|
85
|
-
}
|
|
86
|
-
this.value = value;
|
|
87
|
-
this.inputChange.emit({ value, validity });
|
|
88
|
-
clearTimeout(this.timer);
|
|
89
|
-
this.timer = setTimeout(() => {
|
|
90
|
-
this.emitStopTyping(this.value, validity);
|
|
91
|
-
}, this.typingtimeout);
|
|
92
|
-
}
|
|
93
|
-
emitStartTyping() {
|
|
94
|
-
this.isTyping = true;
|
|
95
|
-
this.startTyping.emit();
|
|
96
|
-
}
|
|
97
|
-
emitStopTyping(value, validity) {
|
|
98
|
-
this.isTyping = false;
|
|
99
|
-
this.stopTyping.emit({
|
|
100
|
-
value: value,
|
|
101
|
-
validity: validity,
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
emitInputCheck(checked) {
|
|
105
|
-
this.inputCheck.emit({
|
|
106
|
-
id: this.htmlid,
|
|
107
|
-
checked: checked,
|
|
108
|
-
type: this.type,
|
|
109
|
-
name: this.name,
|
|
110
|
-
value: this.value,
|
|
111
|
-
validity: this.getValidity("input"),
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
emitInputFocus() {
|
|
115
|
-
this.inputFocus.emit({ id: this.htmlid });
|
|
116
|
-
}
|
|
117
|
-
emitInputBlur() {
|
|
118
|
-
this.inputBlur.emit({ id: this.htmlid });
|
|
119
|
-
}
|
|
120
|
-
getValidity(type) {
|
|
121
|
-
const input = this.hostElement.querySelector(type);
|
|
122
|
-
return input.validity;
|
|
123
|
-
}
|
|
124
|
-
/* START text/password/email/number */
|
|
125
|
-
getTextAttributes() {
|
|
126
|
-
return {
|
|
127
|
-
id: this.htmlid,
|
|
128
|
-
name: this.name,
|
|
129
|
-
placeholder: this.placeholder,
|
|
130
|
-
value: this.value,
|
|
131
|
-
disabled: this.disabled,
|
|
132
|
-
readonly: this.readonly,
|
|
133
|
-
required: this.required,
|
|
134
|
-
title: this.htmltitle,
|
|
135
|
-
minlength: this.minlength,
|
|
136
|
-
maxlength: this.maxlength,
|
|
137
|
-
class: {
|
|
138
|
-
[`input-${this.status}`]: !!this.status,
|
|
139
|
-
filled: !!this.value,
|
|
140
|
-
},
|
|
141
|
-
autocomplete: this.autocomplete,
|
|
142
|
-
onInput: (e) => this.emitInputChange(e.target.value),
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
getNumberAttributes(type) {
|
|
146
|
-
if (type != InputType.NUMBER) {
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
return {
|
|
150
|
-
min: this.min,
|
|
151
|
-
max: this.max,
|
|
152
|
-
step: this.step,
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
getPatternAttribute(type) {
|
|
156
|
-
if (type != InputType.PASSWORD &&
|
|
157
|
-
type != InputType.TEXT &&
|
|
158
|
-
type != InputType.TEL &&
|
|
159
|
-
type != InputType.SEARCH &&
|
|
160
|
-
type != InputType.URL &&
|
|
161
|
-
type != InputType.EMAIL) {
|
|
162
|
-
return;
|
|
163
|
-
}
|
|
164
|
-
return {
|
|
165
|
-
pattern: this.pattern,
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
getRoleAttribute() {
|
|
169
|
-
return this.role ? { role: this.role } : {};
|
|
170
|
-
}
|
|
171
|
-
getAriaAttrubutes() {
|
|
172
|
-
const expanded = this.ariaExpanded ? { "aria-expanded": this.ariaExpanded } : {};
|
|
173
|
-
const controls = this.ariaControls ? { "aria-controls": this.ariaControls } : {};
|
|
174
|
-
const autocomplete = this.ariaAutocomplete ? { "aria-autocomplete": this.ariaAutocomplete } : {};
|
|
175
|
-
const activedescendant = this.ariaActivedescendant ? { "aria-activedescendant": this.ariaActivedescendant } : {};
|
|
176
|
-
return Object.assign(Object.assign(Object.assign(Object.assign({}, expanded), controls), autocomplete), activedescendant);
|
|
177
|
-
}
|
|
178
|
-
getFocusBlurAttributes() {
|
|
179
|
-
return {
|
|
180
|
-
onFocus: () => this.emitInputFocus(),
|
|
181
|
-
onBlur: () => this.emitInputBlur(),
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
renderInputText(type = InputType.TEXT) {
|
|
185
|
-
const ariaLabel = this.ariaLabel ? { "aria-label": this.ariaLabel } : {};
|
|
186
|
-
const attr = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.getTextAttributes()), this.getNumberAttributes(type)), this.getPatternAttribute(type)), ariaLabel), this.getRoleAttribute()), this.getAriaAttrubutes()), this.getFocusBlurAttributes());
|
|
187
|
-
if (this.icon || type === InputType.PASSWORD) {
|
|
188
|
-
Object.assign(attr.class, { "has-icon": true });
|
|
189
|
-
}
|
|
190
|
-
if (this.hasclearicon && type != InputType.NUMBER) {
|
|
191
|
-
Object.assign(attr.class, { "has-clear-icon": true });
|
|
192
|
-
}
|
|
193
|
-
return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type === InputType.PASSWORD && !this.passwordHidden ? InputType.TEXT : type }, attr, { ref: (el) => (this.inputRef = el) })), this.renderIcons()), this.renderMessage()));
|
|
194
|
-
}
|
|
195
|
-
renderLabel() {
|
|
196
|
-
if (!this.label) {
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
return (h("label", { class: "input-label body-5-sb", id: `${this.htmlid}_label`, htmlFor: this.htmlid }, this.label));
|
|
200
|
-
}
|
|
201
|
-
renderIcons() {
|
|
202
|
-
return (h("span", { class: "icons-wrapper" }, this.renderResetIcon(), this.renderIcon()));
|
|
203
|
-
}
|
|
204
|
-
renderIcon() {
|
|
205
|
-
if (this.type === InputType.PASSWORD) {
|
|
206
|
-
return this.renderShowHidePassword();
|
|
207
|
-
}
|
|
208
|
-
if (!this.icon) {
|
|
20
|
+
/**
|
|
21
|
+
* Adjust the position of the info panel to prevent exiting the viewport.
|
|
22
|
+
*/
|
|
23
|
+
adjustPanelPosition() {
|
|
24
|
+
if (!this.open || !this.panel) {
|
|
209
25
|
return;
|
|
210
26
|
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
27
|
+
const rect = this.host.getBoundingClientRect();
|
|
28
|
+
const gridMargin = parseInt(getComputedStyle(document.documentElement).getPropertyValue("--grid-margin"), 10);
|
|
29
|
+
const pageWidth = document.documentElement.offsetWidth;
|
|
30
|
+
// Available space for the info panel to grow towards the edge of the page, based on the `position` prop.
|
|
31
|
+
const availableSpace = Math.round((this.position.includes("left") ? pageWidth - rect.left : rect.right) - gridMargin);
|
|
32
|
+
this.panel.style.maxWidth = `${availableSpace}px`;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Toggle the open state of the info panel.
|
|
36
|
+
*/
|
|
37
|
+
togglePanel() {
|
|
38
|
+
this.open = !this.open;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Close the info panel.
|
|
42
|
+
*/
|
|
43
|
+
closePanel() {
|
|
44
|
+
this.open = false;
|
|
45
|
+
}
|
|
46
|
+
handleEscapeKey(event) {
|
|
47
|
+
if (event.key === "Escape" && this.open) {
|
|
48
|
+
this.closePanel();
|
|
229
49
|
}
|
|
230
|
-
return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status, class: this.size }));
|
|
231
|
-
}
|
|
232
|
-
/* END text/password/email/number */
|
|
233
|
-
/* START textarea */
|
|
234
|
-
renderTextarea() {
|
|
235
|
-
const attributes = this.getTextAttributes();
|
|
236
|
-
const ariaLabel = this.ariaLabel ? { "aria-label": this.ariaLabel } : {};
|
|
237
|
-
return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", { class: Object.assign(Object.assign({}, attributes.class), { "textarea-wrapper": true, "readonly": attributes.readonly }) }, h("textarea", Object.assign({}, attributes, ariaLabel, this.getRoleAttribute()))), this.renderMessage()));
|
|
238
|
-
}
|
|
239
|
-
/* END textarea */
|
|
240
|
-
handleCheck(ev) {
|
|
241
|
-
this.checked = ev.target.checked;
|
|
242
|
-
this.emitInputCheck(this.checked);
|
|
243
50
|
}
|
|
244
|
-
/* START checkbox */
|
|
245
|
-
renderCheckbox() {
|
|
246
|
-
return (h("div", { class: "checkbox-wrapper" }, h("input", Object.assign({ id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }, this.getRoleAttribute(), this.getFocusBlurAttributes())), h("label", { htmlFor: this.htmlid, class: {
|
|
247
|
-
"checkbox-label": true,
|
|
248
|
-
"after": this.labelPosition === LabelPosition.RIGHT,
|
|
249
|
-
"before": this.labelPosition === LabelPosition.LEFT,
|
|
250
|
-
} }, h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true", class: this.size }), this.label && h("span", { innerHTML: this.label }))));
|
|
251
|
-
}
|
|
252
|
-
/* END checkbox */
|
|
253
|
-
/* START radio */
|
|
254
|
-
renderRadio() {
|
|
255
|
-
return (h("div", { class: "radio-wrapper" }, h("input", Object.assign({ id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }, this.getRoleAttribute(), this.getFocusBlurAttributes())), h("label", { htmlFor: this.htmlid, class: {
|
|
256
|
-
"radio-label": true,
|
|
257
|
-
"after": this.labelPosition === LabelPosition.RIGHT,
|
|
258
|
-
"before": this.labelPosition === LabelPosition.LEFT,
|
|
259
|
-
} }, h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true", class: this.size }), this.label && h("span", { innerHTML: this.label }))));
|
|
260
|
-
}
|
|
261
|
-
/* END radio */
|
|
262
51
|
render() {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
default:
|
|
275
|
-
input = this.renderInputText(this.type);
|
|
276
|
-
}
|
|
277
|
-
return h(Host, { key: 'f59312821e115fe3cc9d55b867ddc9976f484639' }, input);
|
|
278
|
-
}
|
|
279
|
-
get hostElement() { return this; }
|
|
280
|
-
static get style() { return ZInputStyle0; }
|
|
281
|
-
}, [2, "z-input", {
|
|
282
|
-
"htmlid": [1],
|
|
283
|
-
"type": [1],
|
|
284
|
-
"name": [1],
|
|
52
|
+
return (h(Host, { key: 'bcb05d866c119c9f686911ebfd5d6b30fc1072d4', open: this.open }, h("button", { key: '503e35952223d6daa164bba815f94fb33880c310', class: "z-info-reveal-trigger", type: "button", onClick: this.togglePanel.bind(this), "aria-label": !this.label ? this.ariaLabel : undefined, "aria-expanded": this.open ? "true" : "false", "aria-controls": "z-info-reveal-panel" }, this.icon && h("z-icon", { key: '1debca6ca34d6b9aede20b049b770a0d051f6e71', name: this.icon }), this.label && h("span", { key: '5a6ea3fa133179716e87af19b3e734a24dda8989', class: "z-info-reveal-label" }, this.label)), h("div", { key: '0ddfd54fe95e877d15cf88b525ef6f80bf042ce2', class: "z-info-reveal-panel", id: "z-info-reveal-panel", ref: (el) => (this.panel = el), hidden: !this.open }, h("slot", { key: '309ce5208cf50f612b2b267e572d7461e65dffbe' }), h("button", { key: 'fbbfaffbe9b050db008338b8369d3b945fc887b3', class: "z-info-reveal-close", type: "button", onClick: this.closePanel.bind(this), "aria-label": "Chiudi pannello informazioni" }, h("z-icon", { key: 'b704c1f4df7271d8bb293517701953a00d1f8b5e', name: "multiply" })))));
|
|
53
|
+
}
|
|
54
|
+
get host() { return this; }
|
|
55
|
+
static get watchers() { return {
|
|
56
|
+
"position": ["adjustPanelPosition"],
|
|
57
|
+
"open": ["adjustPanelPosition"]
|
|
58
|
+
}; }
|
|
59
|
+
static get style() { return ZInfoRevealStyle0; }
|
|
60
|
+
}, [1, "z-info-reveal", {
|
|
61
|
+
"icon": [1],
|
|
62
|
+
"position": [513],
|
|
285
63
|
"label": [1],
|
|
286
64
|
"ariaLabel": [1, "aria-label"],
|
|
287
|
-
"ariaExpanded": [1, "aria-expanded"],
|
|
288
|
-
"ariaControls": [1, "aria-controls"],
|
|
289
|
-
"ariaAutocomplete": [1, "aria-autocomplete"],
|
|
290
|
-
"ariaActivedescendant": [1, "aria-activedescendant"],
|
|
291
|
-
"value": [1025],
|
|
292
|
-
"disabled": [516],
|
|
293
|
-
"readonly": [4],
|
|
294
|
-
"required": [4],
|
|
295
|
-
"checked": [1028],
|
|
296
|
-
"placeholder": [1],
|
|
297
|
-
"htmltitle": [1],
|
|
298
|
-
"status": [1],
|
|
299
|
-
"message": [8],
|
|
300
|
-
"labelPosition": [1, "label-position"],
|
|
301
|
-
"autocomplete": [1],
|
|
302
|
-
"role": [1],
|
|
303
|
-
"hasclearicon": [4],
|
|
304
|
-
"icon": [1],
|
|
305
|
-
"min": [2],
|
|
306
|
-
"minlength": [2],
|
|
307
|
-
"max": [2],
|
|
308
|
-
"maxlength": [2],
|
|
309
|
-
"step": [2],
|
|
310
|
-
"pattern": [1],
|
|
311
65
|
"size": [513],
|
|
312
|
-
"
|
|
313
|
-
|
|
314
|
-
"
|
|
315
|
-
|
|
66
|
+
"open": [32]
|
|
67
|
+
}, [[9, "resize", "adjustPanelPosition"], [10, "keydown", "handleEscapeKey"]], {
|
|
68
|
+
"position": ["adjustPanelPosition"],
|
|
69
|
+
"open": ["adjustPanelPosition"]
|
|
70
|
+
}]);
|
|
316
71
|
function defineCustomElement() {
|
|
317
72
|
if (typeof customElements === "undefined") {
|
|
318
73
|
return;
|
|
319
74
|
}
|
|
320
|
-
const components = ["z-
|
|
75
|
+
const components = ["z-info-reveal", "z-icon"];
|
|
321
76
|
components.forEach(tagName => { switch (tagName) {
|
|
322
|
-
case "z-
|
|
77
|
+
case "z-info-reveal":
|
|
323
78
|
if (!customElements.get(tagName)) {
|
|
324
|
-
customElements.define(tagName,
|
|
79
|
+
customElements.define(tagName, ZInfoReveal);
|
|
325
80
|
}
|
|
326
81
|
break;
|
|
327
82
|
case "z-icon":
|
|
328
|
-
if (!customElements.get(tagName)) {
|
|
329
|
-
defineCustomElement$2();
|
|
330
|
-
}
|
|
331
|
-
break;
|
|
332
|
-
case "z-input-message":
|
|
333
83
|
if (!customElements.get(tagName)) {
|
|
334
84
|
defineCustomElement$1();
|
|
335
85
|
}
|
|
@@ -337,6 +87,6 @@ function defineCustomElement() {
|
|
|
337
87
|
} });
|
|
338
88
|
}
|
|
339
89
|
|
|
340
|
-
export {
|
|
90
|
+
export { ZInfoReveal as Z, defineCustomElement as d };
|
|
341
91
|
|
|
342
92
|
//# sourceMappingURL=index10.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index10.js","mappings":";;;;;;AAAA,MAAM,SAAS,GAAG,wuVAAwuV,CAAC;AAC3vV,qBAAe,SAAS;;MCUX,MAAM;;;;;;;;;;QAmIT,kBAAa,GAAG,GAAG,CAAC;sBA9HnB,MAAM,QAAQ,EAAE,EAAE;;;;yBAgBf,EAAE;4BAIC,EAAE;;;;;wBAoBI,KAAK;wBAIL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AG,cAAc,iBAChD,MAAM,EAClB,KAAK,EAAE,IAAI,CAAC,IAAI,GAChB,EACD,IAAI,CAAC,KAAK,IAAI,YAAM,SAAS,EAAE,IAAI,CAAC,KAAK,GAAI,CACxC,CACJ,EACN;KACH;;IAGD,MAAM;QACJ,IAAI,KAAK,CAAC;QACV,QAAQ,IAAI,CAAC,IAAI;YACf,KAAK,SAAS,CAAC,QAAQ;gBACrB,KAAK,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;gBAC9B,MAAM;YACR,KAAK,SAAS,CAAC,QAAQ;gBACrB,KAAK,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;gBAC9B,MAAM;YACR,KAAK,SAAS,CAAC,KAAK;gBAClB,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;gBAC3B,MAAM;YACR;gBACE,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC3C;QAED,OAAO,EAAC,IAAI,uDAAE,KAAK,CAAQ,CAAC;KAC7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/z-input/styles.css?tag=z-input&encapsulation=scoped","src/components/z-input/index.tsx"],"sourcesContent":["@import \"styles-general.css\";\n@import \"styles-text.css\";\n@import \"styles-textarea.css\";\n@import \"styles-checkbox-radio.css\";\n","import {Component, Element, Event, EventEmitter, Listen, Method, Prop, State, h} from \"@stencil/core\";\nimport {Host, JSXBase} from \"@stencil/core/internal\";\nimport {ControlSize, InputStatus, InputType, LabelPosition} from \"../../beans\";\nimport {boolean, randomId} from \"../../utils/utils\";\n\n@Component({\n tag: \"z-input\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZInput {\n @Element() hostElement: HTMLZInputElement;\n\n /** the id of the input element */\n @Prop()\n htmlid = `id-${randomId()}`;\n\n /** input types */\n @Prop()\n type: InputType;\n\n /** the input name */\n @Prop()\n name?: string;\n\n /** the input label */\n @Prop()\n label?: string;\n\n /** the input aria-label */\n @Prop()\n ariaLabel = \"\";\n\n /** the input aria-expaded: available for text, password, number, email */\n @Prop()\n ariaExpanded = \"\";\n\n /** the input aria-controls (optional): available for text, password, number, email */\n @Prop()\n ariaControls?: string;\n\n /** the input aria-autocomplete (optional): available for text, password, number, email */\n @Prop()\n ariaAutocomplete?: string;\n\n /** the input aria-activedescendant (optional): available for text, password, number, email */\n @Prop()\n ariaActivedescendant?: string;\n\n /** the input value */\n @Prop({mutable: true})\n value?: string;\n\n /** the input is disabled */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /** the input is readonly */\n @Prop()\n readonly?: boolean = false;\n\n /** the input is required (optional): available for text, password, number, email, textarea, checkbox */\n @Prop()\n required?: boolean = false;\n\n /** checked: available for checkbox, radio */\n @Prop({mutable: true})\n checked?: boolean = false;\n\n /** the input placeholder (optional) */\n @Prop()\n placeholder?: string;\n\n /** the input html title (optional) */\n @Prop()\n htmltitle?: string;\n\n /** the input status (optional): available for text, password, number, email, textarea */\n @Prop()\n status?: InputStatus;\n\n /** input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed */\n @Prop()\n message?: string | boolean = true;\n\n /** the input label position: available for checkbox, radio */\n @Prop()\n labelPosition?: LabelPosition = LabelPosition.RIGHT;\n\n /** the input has autocomplete option (optional): available for text, password, number, email */\n @Prop()\n autocomplete?: string;\n\n /** the input role */\n @Prop()\n role = \"\";\n\n /** render clear icon when typing (optional): available for text */\n @Prop()\n hasclearicon?: boolean = true;\n\n /** render icon (optional): available for text */\n @Prop()\n icon?: string;\n\n /** min number value (optional): available for number */\n @Prop()\n min?: number;\n\n /** Min length value (optional): available for text */\n @Prop()\n minlength?: number;\n\n /** max number value (optional): available for number */\n @Prop()\n max?: number;\n\n /** Max length value (optional): available for text */\n @Prop()\n maxlength?: number;\n\n /** step number value (optional): available for number */\n @Prop()\n step?: number;\n\n /** pattern value (optional): available for tel, text, search, url, email, password*/\n @Prop()\n pattern?: string;\n\n /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */\n @Prop({reflect: true})\n size?: ControlSize = ControlSize.BIG;\n\n @State()\n isTyping = false;\n\n @State()\n passwordHidden = true;\n\n private timer;\n\n private typingtimeout = 300;\n\n private inputRef: HTMLInputElement;\n\n @Listen(\"inputCheck\", {target: \"document\"})\n inputCheckListener(e: CustomEvent): void {\n const data = e.detail;\n switch (this.type) {\n case InputType.RADIO:\n if (data.type === InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {\n this.checked = false;\n }\n break;\n }\n }\n\n /** get checked status */\n @Method()\n async isChecked(): Promise<boolean> {\n switch (this.type) {\n case InputType.CHECKBOX:\n case InputType.RADIO:\n return this.checked;\n default:\n console.warn(\"`isChecked` method is only available for type `checkbox` and `radio`\");\n\n return false;\n }\n }\n\n /** Emitted on input value change, returns value, validity */\n @Event()\n inputChange: EventEmitter;\n\n private emitInputChange(value: string): void {\n if (!this.isTyping) {\n this.emitStartTyping();\n }\n\n let validity: ValidityState;\n if (this.type === InputType.TEXTAREA) {\n validity = this.getValidity(\"textarea\");\n } else {\n validity = this.getValidity(\"input\");\n }\n this.value = value;\n this.inputChange.emit({value, validity});\n\n clearTimeout(this.timer);\n this.timer = setTimeout(() => {\n this.emitStopTyping(this.value, validity);\n }, this.typingtimeout);\n }\n\n /** Emitted when user starts typing */\n @Event()\n startTyping: EventEmitter;\n\n private emitStartTyping(): void {\n this.isTyping = true;\n this.startTyping.emit();\n }\n\n /** Emitted when user stops typing, returns value, validity */\n @Event()\n stopTyping: EventEmitter;\n\n private emitStopTyping(value: string, validity: ValidityState): void {\n this.isTyping = false;\n this.stopTyping.emit({\n value: value,\n validity: validity,\n });\n }\n\n /** Emitted on checkbox check/uncheck, returns id, checked, type, name, value, validity */\n @Event()\n inputCheck: EventEmitter;\n\n private emitInputCheck(checked: boolean): void {\n this.inputCheck.emit({\n id: this.htmlid,\n checked: checked,\n type: this.type,\n name: this.name,\n value: this.value,\n validity: this.getValidity(\"input\"),\n });\n }\n\n /** Emitted on input focus */\n @Event()\n inputFocus: EventEmitter;\n\n private emitInputFocus(): void {\n this.inputFocus.emit({id: this.htmlid});\n }\n\n /** Emitted on input blur */\n @Event()\n inputBlur: EventEmitter;\n\n private emitInputBlur(): void {\n this.inputBlur.emit({id: this.htmlid});\n }\n\n private getValidity(type: string): ValidityState {\n const input = this.hostElement.querySelector(type) as HTMLInputElement;\n\n return input.validity;\n }\n\n /* START text/password/email/number */\n\n private getTextAttributes(): JSXBase.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {\n return {\n id: this.htmlid,\n name: this.name,\n placeholder: this.placeholder,\n value: this.value,\n disabled: this.disabled,\n readonly: this.readonly,\n required: this.required,\n title: this.htmltitle,\n minlength: this.minlength,\n maxlength: this.maxlength,\n class: {\n [`input-${this.status}`]: !!this.status,\n filled: !!this.value,\n },\n autocomplete: this.autocomplete,\n onInput: (e: InputEvent) => this.emitInputChange((e.target as HTMLInputElement).value),\n };\n }\n\n private getNumberAttributes(type: InputType): JSXBase.InputHTMLAttributes<HTMLInputElement> {\n if (type != InputType.NUMBER) {\n return;\n }\n\n return {\n min: this.min,\n max: this.max,\n step: this.step,\n };\n }\n\n private getPatternAttribute(type: InputType): JSXBase.InputHTMLAttributes<HTMLInputElement> {\n if (\n type != InputType.PASSWORD &&\n type != InputType.TEXT &&\n type != InputType.TEL &&\n type != InputType.SEARCH &&\n type != InputType.URL &&\n type != InputType.EMAIL\n ) {\n return;\n }\n\n return {\n pattern: this.pattern,\n };\n }\n\n private getRoleAttribute(): JSXBase.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {\n return this.role ? {role: this.role} : {};\n }\n\n private getAriaAttrubutes(): Record<string, unknown> {\n const expanded = this.ariaExpanded ? {\"aria-expanded\": this.ariaExpanded} : {};\n const controls = this.ariaControls ? {\"aria-controls\": this.ariaControls} : {};\n const autocomplete = this.ariaAutocomplete ? {\"aria-autocomplete\": this.ariaAutocomplete} : {};\n const activedescendant = this.ariaActivedescendant ? {\"aria-activedescendant\": this.ariaActivedescendant} : {};\n\n return {\n ...expanded,\n ...controls,\n ...autocomplete,\n ...activedescendant,\n };\n }\n\n private getFocusBlurAttributes(): JSXBase.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {\n return {\n onFocus: () => this.emitInputFocus(),\n onBlur: () => this.emitInputBlur(),\n };\n }\n\n private renderInputText(type: InputType = InputType.TEXT): HTMLDivElement {\n const ariaLabel = this.ariaLabel ? {\"aria-label\": this.ariaLabel} : {};\n const attr = {\n ...this.getTextAttributes(),\n ...this.getNumberAttributes(type),\n ...this.getPatternAttribute(type),\n ...ariaLabel,\n ...this.getRoleAttribute(),\n ...this.getAriaAttrubutes(),\n ...this.getFocusBlurAttributes(),\n };\n if (this.icon || type === InputType.PASSWORD) {\n Object.assign(attr.class, {\"has-icon\": true});\n }\n if (this.hasclearicon && type != InputType.NUMBER) {\n Object.assign(attr.class, {\"has-clear-icon\": true});\n }\n\n return (\n <div class=\"text-wrapper\">\n {this.renderLabel()}\n <div>\n <input\n type={type === InputType.PASSWORD && !this.passwordHidden ? InputType.TEXT : type}\n {...attr}\n ref={(el) => (this.inputRef = el)}\n />\n {this.renderIcons()}\n </div>\n {this.renderMessage()}\n </div>\n );\n }\n\n private renderLabel(): HTMLLabelElement {\n if (!this.label) {\n return;\n }\n\n return (\n <label\n class=\"input-label body-5-sb\"\n id={`${this.htmlid}_label`}\n htmlFor={this.htmlid}\n >\n {this.label}\n </label>\n );\n }\n\n private renderIcons(): HTMLSpanElement {\n return (\n <span class=\"icons-wrapper\">\n {this.renderResetIcon()}\n {this.renderIcon()}\n </span>\n );\n }\n\n private renderIcon(): HTMLButtonElement {\n if (this.type === InputType.PASSWORD) {\n return this.renderShowHidePassword();\n }\n\n if (!this.icon) {\n return;\n }\n\n return (\n <button\n type=\"button\"\n class=\"icon-button input-icon\"\n tabIndex={-1}\n aria-hidden=\"true\"\n >\n <z-icon\n name={this.icon}\n class={this.size}\n />\n </button>\n );\n }\n\n private renderResetIcon(): HTMLButtonElement {\n let hidden = false;\n if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == InputType.NUMBER) {\n hidden = true;\n }\n\n return (\n <button\n type=\"button\"\n class={`icon-button reset-icon ${hidden ? \"hidden\" : \"\"}`}\n aria-label=\"cancella il contenuto dell'input\"\n onClick={() => {\n this.inputRef.value = \"\";\n this.emitInputChange(\"\");\n }}\n >\n <z-icon\n name=\"multiply\"\n class={this.size}\n />\n </button>\n );\n }\n\n private renderShowHidePassword(): HTMLButtonElement {\n return (\n <button\n type=\"button\"\n class=\"icon-button toggle-password-icon\"\n disabled={this.disabled}\n aria-label={this.passwordHidden ? \"mostra password\" : \"nascondi password\"}\n onClick={() => (this.passwordHidden = !this.passwordHidden)}\n >\n <z-icon\n name={this.passwordHidden ? \"view-filled\" : \"view-off-filled\"}\n class={this.size}\n />\n </button>\n );\n }\n\n private renderMessage(): HTMLZInputMessageElement {\n if (boolean(this.message) === false) {\n return;\n }\n\n return (\n <z-input-message\n message={boolean(this.message) === true ? undefined : (this.message as string)}\n status={this.status}\n class={this.size}\n />\n );\n }\n\n /* END text/password/email/number */\n\n /* START textarea */\n\n private renderTextarea(): HTMLDivElement {\n const attributes = this.getTextAttributes();\n const ariaLabel = this.ariaLabel ? {\"aria-label\": this.ariaLabel} : {};\n\n return (\n <div class=\"text-wrapper\">\n {this.renderLabel()}\n <div\n class={{\n ...(attributes.class as Record<string, boolean>),\n \"textarea-wrapper\": true,\n \"readonly\": attributes.readonly as boolean,\n }}\n >\n <textarea\n {...attributes}\n {...ariaLabel}\n {...this.getRoleAttribute()}\n ></textarea>\n </div>\n {this.renderMessage()}\n </div>\n );\n }\n\n /* END textarea */\n\n private handleCheck(ev: Event): void {\n this.checked = (ev.target as HTMLInputElement).checked;\n this.emitInputCheck(this.checked);\n }\n\n /* START checkbox */\n private renderCheckbox(): HTMLDivElement {\n return (\n <div class=\"checkbox-wrapper\">\n <input\n id={this.htmlid}\n type=\"checkbox\"\n name={this.name}\n checked={this.checked}\n disabled={this.disabled}\n readonly={this.readonly}\n required={this.required}\n onChange={this.handleCheck.bind(this)}\n value={this.value}\n {...this.getRoleAttribute()}\n {...this.getFocusBlurAttributes()}\n />\n\n <label\n htmlFor={this.htmlid}\n class={{\n \"checkbox-label\": true,\n \"after\": this.labelPosition === LabelPosition.RIGHT,\n \"before\": this.labelPosition === LabelPosition.LEFT,\n }}\n >\n <z-icon\n name={this.checked ? \"checkbox-checked\" : \"checkbox\"}\n aria-hidden=\"true\"\n class={this.size}\n />\n {this.label && <span innerHTML={this.label}></span>}\n </label>\n </div>\n );\n }\n\n /* END checkbox */\n\n /* START radio */\n private renderRadio(): HTMLDivElement {\n return (\n <div class=\"radio-wrapper\">\n <input\n id={this.htmlid}\n type=\"radio\"\n name={this.name}\n checked={this.checked}\n disabled={this.disabled}\n readonly={this.readonly}\n onChange={this.handleCheck.bind(this)}\n value={this.value}\n {...this.getRoleAttribute()}\n {...this.getFocusBlurAttributes()}\n />\n\n <label\n htmlFor={this.htmlid}\n class={{\n \"radio-label\": true,\n \"after\": this.labelPosition === LabelPosition.RIGHT,\n \"before\": this.labelPosition === LabelPosition.LEFT,\n }}\n >\n <z-icon\n name={this.checked ? \"radio-button-checked\" : \"radio-button\"}\n aria-hidden=\"true\"\n class={this.size}\n />\n {this.label && <span innerHTML={this.label} />}\n </label>\n </div>\n );\n }\n /* END radio */\n\n render(): HTMLInputElement | HTMLDivElement {\n let input;\n switch (this.type) {\n case InputType.TEXTAREA:\n input = this.renderTextarea();\n break;\n case InputType.CHECKBOX:\n input = this.renderCheckbox();\n break;\n case InputType.RADIO:\n input = this.renderRadio();\n break;\n default:\n input = this.renderInputText(this.type);\n }\n\n return <Host>{input}</Host>;\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"index10.js","mappings":";;;;AAAA,MAAM,SAAS,GAAG,4gFAA4gF,CAAC;AAC/hF,0BAAe,SAAS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C,IAAI,CAAC,IAAI,CAAC,gBACxB,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,GAAG,SAAS,mBACrC,IAAI,CAAC,IAAI,GAAG,MAAM,GAAG,OAAO,mBAC7B,qBAAqB,IAElC,IAAI,CAAC,IAAI,IAAI,+DAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI,EACxC,IAAI,CAAC,KAAK,IAAI,6DAAM,KAAK,EAAC,qBAAqB,IAAE,IAAI,CAAC,KAAK,CAAQ,CAC7D,EACT,4DACE,KAAK,EAAC,qBAAqB,EAC3B,EAAE,EAAC,qBAAqB,EACxB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,EAC9B,MAAM,EAAE,CAAC,IAAI,CAAC,IAAI,IAElB,8DAAa,EACb,+DACE,KAAK,EAAC,qBAAqB,EAC3B,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBACxB,8BAA8B,IAEzC,+DAAQ,IAAI,EAAC,UAAU,GAAG,CACnB,CACL,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/z-info-reveal/styles.css?tag=z-info-reveal&encapsulation=shadow","src/components/z-info-reveal/index.tsx"],"sourcesContent":[":host {\n --z-info-reveal-panel-width: 384px; /* defaults half the size of the mobile breakpoint */\n --trigger-size: 44px;\n\n position: relative;\n}\n\n:host * {\n box-sizing: border-box;\n}\n\nbutton {\n --trigger-icon-size: calc(var(--trigger-size) / 2);\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n background-color: transparent;\n cursor: pointer;\n font-family: inherit;\n letter-spacing: inherit;\n}\n\nbutton:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.z-info-reveal-trigger {\n min-width: var(--trigger-size);\n height: var(--trigger-size);\n padding: calc((var(--trigger-size) - var(--trigger-icon-size)) / 2);\n background-color: var(--color-surface05);\n border-radius: var(--border-radius);\n color: var(--color-text-inverse);\n column-gap: var(--space-unit);\n font-weight: var(--font-sb);\n line-height: 1rem;\n}\n\n:host([size=\"big\"]) .z-info-reveal-trigger {\n font-size: var(--font-size-2);\n}\n\n:host([size=\"small\"]) .z-info-reveal-trigger {\n --trigger-size: 36px;\n\n font-size: var(--font-size-2);\n}\n\n:host([size=\"x-small\"]) .z-info-reveal-trigger {\n --trigger-size: 32px;\n\n padding: var(--space-unit);\n font-size: var(--font-size-1);\n}\n\n:host > .z-info-reveal-trigger z-icon {\n --z-icon-width: var(--trigger-icon-size);\n --z-icon-height: var(--trigger-icon-size);\n\n display: flex;\n fill: var(--color-inverse-icon);\n}\n\n:host([size=\"small\"]) > .z-info-reveal-trigger z-icon {\n --trigger-icon-size: 18px;\n}\n\n:host([size=\"x-small\"]) > .z-info-reveal-trigger z-icon {\n --trigger-icon-size: 16px;\n}\n\n.z-info-reveal-panel {\n position: absolute;\n display: flex;\n width: var(--z-info-reveal-panel-width);\n height: fit-content;\n align-items: flex-start;\n padding: calc(var(--space-unit) * 1.5);\n background-color: var(--color-surface05);\n border-radius: var(--border-radius);\n box-shadow: var(--shadow-4);\n color: var(--color-text-inverse);\n column-gap: var(--space-unit);\n}\n\n.z-info-reveal-panel[hidden] {\n display: none;\n}\n\n:host([position=\"top_left\"]) .z-info-reveal-panel,\n:host([position=\"top_right\"]) .z-info-reveal-panel {\n top: 0;\n}\n\n:host([position=\"bottom_left\"]) .z-info-reveal-panel,\n:host([position=\"bottom_right\"]) .z-info-reveal-panel {\n bottom: 0;\n}\n\n:host([position=\"top_right\"]) .z-info-reveal-panel,\n:host([position=\"bottom_right\"]) .z-info-reveal-panel {\n right: 0;\n}\n\n:host([position=\"top_left\"]) .z-info-reveal-panel,\n:host([position=\"bottom_left\"]) .z-info-reveal-panel {\n left: 0;\n}\n\n.z-info-reveal-panel .z-info-reveal-close {\n margin-left: auto;\n}\n\n.z-info-reveal-panel z-icon {\n fill: var(--color-inverse-icon);\n}\n\n@media (max-width: 767px) {\n .z-info-reveal-panel {\n position: fixed;\n top: auto !important;\n bottom: auto !important;\n left: var(--grid-margin) !important;\n width: calc(100% - (var(--grid-margin) * 2)) !important;\n max-width: none !important;\n margin-top: calc(var(--trigger-size) * -1);\n }\n}\n","import {Component, Element, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ControlSize, InfoRevealPosition} from \"../../beans\";\n\n/**\n * Info reveal component.\n *\n * @slot - content of the info panel.\n * @cssprop --z-info-reveal-panel-width - Width of the info panel.\n */\n@Component({\n tag: \"z-info-reveal\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZInfoReveal {\n /** Name of the icon for the trigger button */\n @Prop()\n icon? = \"informationsource\";\n\n /**\n * The position of the z-info-reveal in the page. This helps to correctly place the info panel.\n * The panel will grow in the opposite direction of the position.\n * For example, with the default position `BOTTOM_RIGHT`, the panel will grow vertically upwards and horizontally to the left.\n */\n @Prop({reflect: true})\n position?: InfoRevealPosition = InfoRevealPosition.BOTTOM_RIGHT;\n\n /** Label of the trigger button. */\n @Prop()\n label?: string;\n\n /** Aria label of the trigger button. It will be only used when `label` prop is empty. */\n @Prop()\n ariaLabel = \"Apri pannello informazioni\";\n\n /** Size of the trigger button */\n @Prop({reflect: true})\n size?: ControlSize = ControlSize.BIG;\n\n /** Whether the info panel is open. */\n @State()\n open = false;\n\n @Element() host: HTMLZInfoRevealElement;\n\n private panel: HTMLDivElement;\n\n /**\n * Adjust the position of the info panel to prevent exiting the viewport.\n */\n @Watch(\"position\")\n @Watch(\"open\")\n @Listen(\"resize\", {target: \"window\", passive: true})\n adjustPanelPosition(): void {\n if (!this.open || !this.panel) {\n return;\n }\n\n const rect = this.host.getBoundingClientRect();\n const gridMargin = parseInt(getComputedStyle(document.documentElement).getPropertyValue(\"--grid-margin\"), 10);\n const pageWidth = document.documentElement.offsetWidth;\n // Available space for the info panel to grow towards the edge of the page, based on the `position` prop.\n const availableSpace = Math.round(\n (this.position.includes(\"left\") ? pageWidth - rect.left : rect.right) - gridMargin\n );\n this.panel.style.maxWidth = `${availableSpace}px`;\n }\n\n /**\n * Toggle the open state of the info panel.\n */\n private togglePanel(): void {\n this.open = !this.open;\n }\n\n /**\n * Close the info panel.\n */\n private closePanel(): void {\n this.open = false;\n }\n\n @Listen(\"keydown\", {target: \"window\", capture: true})\n handleEscapeKey(event: KeyboardEvent): void {\n if (event.key === \"Escape\" && this.open) {\n this.closePanel();\n }\n }\n\n render(): HTMLZInfoRevealElement {\n return (\n <Host open={this.open}>\n <button\n class=\"z-info-reveal-trigger\"\n type=\"button\"\n onClick={this.togglePanel.bind(this)}\n aria-label={!this.label ? this.ariaLabel : undefined}\n aria-expanded={this.open ? \"true\" : \"false\"}\n aria-controls=\"z-info-reveal-panel\"\n >\n {this.icon && <z-icon name={this.icon} />}\n {this.label && <span class=\"z-info-reveal-label\">{this.label}</span>}\n </button>\n <div\n class=\"z-info-reveal-panel\"\n id=\"z-info-reveal-panel\"\n ref={(el) => (this.panel = el)}\n hidden={!this.open}\n >\n <slot></slot>\n <button\n class=\"z-info-reveal-close\"\n type=\"button\"\n onClick={this.closePanel.bind(this)}\n aria-label=\"Chiudi pannello informazioni\"\n >\n <z-icon name=\"multiply\" />\n </button>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|