@zanichelli/albe-web-components 17.0.0 → 17.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/{index-a42ab7c9.js → index-2a9a328d.js} +2 -2
- package/dist/cjs/{index-a42ab7c9.js.map → index-2a9a328d.js.map} +1 -1
- package/dist/cjs/{index-4b1d6599.js → index-4e2d222e.js} +2 -2
- package/dist/cjs/{index-4b1d6599.js.map → index-4e2d222e.js.map} +1 -1
- package/dist/cjs/{index-816614ee.js → index-7191c0cc.js} +2 -2
- package/dist/cjs/{index-816614ee.js.map → index-7191c0cc.js.map} +1 -1
- package/dist/cjs/{index-3b95f98f.js → index-a6593d82.js} +2 -2
- package/dist/cjs/{index-3b95f98f.js.map → index-a6593d82.js.map} +1 -1
- package/dist/cjs/{index-e2718c94.js → index-aa56c709.js} +4 -4
- package/dist/cjs/{index-e2718c94.js.map → index-aa56c709.js.map} +1 -1
- package/dist/cjs/{index-141d598e.js → index-b2f35532.js} +2 -2
- package/dist/cjs/{index-141d598e.js.map → index-b2f35532.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-accordion.cjs.entry.js +2 -2
- package/dist/cjs/z-accordion.cjs.entry.js.map +1 -1
- 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-anchor-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/z-app-header-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +13 -13
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-avatar.cjs.entry.js +2 -2
- package/dist/cjs/z-book-card-app.cjs.entry.js +1 -1
- package/dist/cjs/z-book-card-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-book-card.cjs.entry.js +2 -2
- package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +2 -2
- package/dist/cjs/z-combobox.cjs.entry.js +1 -1
- package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
- package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +16 -20
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -1
- package/dist/cjs/z-file-upload.cjs.entry.js +77 -101
- package/dist/cjs/z-file-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/z-file.cjs.entry.js +1 -1
- package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
- package/dist/cjs/z-info-box.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
- package/dist/cjs/z-logo.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-deprecated.cjs.entry.js +2 -2
- package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +1 -1
- package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +2 -2
- package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +1 -1
- package/dist/cjs/z-menu-section.cjs.entry.js +2 -2
- package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -1
- package/dist/cjs/z-menu.cjs.entry.js +1 -1
- package/dist/cjs/z-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-info.cjs.entry.js.map +1 -1
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +3 -3
- package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/z-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +1 -1
- package/dist/cjs/z-range-picker.cjs.entry.js +3 -3
- package/dist/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/cjs/z-select.cjs.entry.js +1 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +7 -7
- package/dist/cjs/z-tbody.cjs.entry.js +1 -1
- package/dist/cjs/z-td.cjs.entry.js +1 -1
- package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
- package/dist/cjs/z-th.cjs.entry.js +1 -1
- package/dist/cjs/z-thead.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/z-tr.cjs.entry.js +3 -3
- package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/book-card/z-book-card/index.js +2 -2
- package/dist/collection/components/book-card/z-book-card-app/index.js +1 -1
- package/dist/collection/components/date-picker/z-date-picker/index.js +1 -1
- package/dist/collection/components/date-picker/z-range-picker/index.js +3 -3
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +1 -1
- package/dist/collection/components/deprecated/z-book-card-deprecated/index.js +1 -1
- package/dist/collection/components/deprecated/z-menu-deprecated/index.js +1 -1
- package/dist/collection/components/deprecated/z-menu-deprecated/styles.css +2 -2
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +1 -1
- package/dist/collection/components/deprecated/z-menu-section-deprecated/styles.css +3 -3
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js +17 -16
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js.map +1 -1
- package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +55 -29
- package/dist/collection/components/file-upload/z-file/index.js +1 -1
- package/dist/collection/components/file-upload/z-file-upload/index.js +146 -107
- package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -1
- package/dist/collection/components/file-upload/z-file-upload/index.stories.js +11 -13
- package/dist/collection/components/file-upload/z-file-upload/index.stories.js.map +1 -1
- package/dist/collection/components/file-upload/z-file-upload/styles.css +18 -52
- 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-accordion/styles.css +6 -1
- package/dist/collection/components/z-anchor-navigation/index.js +1 -1
- package/dist/collection/components/z-anchor-navigation/styles.css +4 -2
- 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/styles.css +3 -3
- package/dist/collection/components/z-menu-section/index.js +1 -1
- package/dist/collection/components/z-menu-section/styles.css +3 -3
- package/dist/collection/components/z-modal/index.js +4 -4
- package/dist/collection/components/z-navigation-tabs/index.js +2 -2
- package/dist/collection/components/z-navigation-tabs/styles.css +2 -2
- package/dist/collection/components/z-notification/index.js +1 -1
- package/dist/collection/components/z-offcanvas/index.js +1 -1
- package/dist/collection/components/z-panel-elem/index.js +2 -2
- package/dist/collection/components/z-popover/index.js +1 -1
- package/dist/collection/components/z-searchbar/index.js +1 -1
- package/dist/collection/components/z-section-title/index.js +1 -1
- package/dist/collection/components/z-select/index.js +1 -1
- package/dist/collection/components/z-skip-to-content/index.js +1 -1
- package/dist/collection/components/z-stepper/index.js +1 -1
- package/dist/collection/components/z-stepper-item/index.js +1 -1
- package/dist/collection/components/z-tag/index.js +2 -2
- package/dist/collection/components/z-toast-notification/index.js +1 -1
- package/dist/collection/components/z-toast-notification-list/index.js +1 -1
- package/dist/collection/components/z-toggle-button/index.js +2 -2
- package/dist/collection/components/z-toggle-switch/index.js +3 -3
- package/dist/collection/components/z-tooltip/index.js +1 -1
- package/dist/collection/components/z-visually-hidden/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
- package/dist/components/index10.js +1 -1
- package/dist/components/index11.js +1 -1
- package/dist/components/index12.js +1 -1
- package/dist/components/index13.js +1 -1
- package/dist/components/index14.js +1 -1
- package/dist/components/index15.js +2 -2
- package/dist/components/index16.js +4 -4
- package/dist/components/index17.js +1 -1
- package/dist/components/index18.js +1 -1
- package/dist/components/index19.js +1 -1
- package/dist/components/index20.js +1 -1
- package/dist/components/index21.js +1 -1
- package/dist/components/index22.js +1 -1
- package/dist/components/index23.js +1 -1
- package/dist/components/index24.js +1 -1
- package/dist/components/index25.js +2 -2
- package/dist/components/index3.js +1 -1
- package/dist/components/index5.js +2 -2
- package/dist/components/index6.js +1 -1
- package/dist/components/index7.js +28 -19
- package/dist/components/index7.js.map +1 -1
- 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-accordion.js.map +1 -1
- package/dist/components/z-anchor-navigation.js +2 -2
- package/dist/components/z-anchor-navigation.js.map +1 -1
- package/dist/components/z-app-header-deprecated.js +1 -1
- package/dist/components/z-app-header.js +1 -1
- package/dist/components/z-aria-alert.js +1 -1
- package/dist/components/z-avatar.js +2 -2
- package/dist/components/z-book-card-app.js +1 -1
- package/dist/components/z-book-card-deprecated.js +1 -1
- package/dist/components/z-book-card.js +2 -2
- package/dist/components/z-breadcrumb.js +2 -2
- package/dist/components/z-button-sort.js +1 -1
- package/dist/components/z-combobox.js +1 -1
- package/dist/components/z-cover-hero.js +2 -2
- package/dist/components/z-date-picker.js +1 -1
- package/dist/components/z-file-upload.js +85 -112
- package/dist/components/z-file-upload.js.map +1 -1
- package/dist/components/z-file.js +1 -1
- package/dist/components/z-info-box.js +1 -1
- package/dist/components/z-logo.js +1 -1
- package/dist/components/z-menu-deprecated.js +2 -2
- package/dist/components/z-menu-deprecated.js.map +1 -1
- package/dist/components/z-menu-section-deprecated.js +2 -2
- package/dist/components/z-menu-section-deprecated.js.map +1 -1
- package/dist/components/z-menu-section.js +2 -2
- package/dist/components/z-menu-section.js.map +1 -1
- package/dist/components/z-menu.js +1 -1
- package/dist/components/z-menu.js.map +1 -1
- package/dist/components/z-myz-card-alert.js +1 -1
- package/dist/components/z-myz-card-dictionary.js +1 -1
- package/dist/components/z-myz-card-footer-sections.js +1 -1
- package/dist/components/z-myz-card-footer.js +1 -1
- package/dist/components/z-myz-card-icon.js +1 -1
- package/dist/components/z-myz-card-info.js +2 -2
- package/dist/components/z-myz-card-info.js.map +1 -1
- package/dist/components/z-myz-card-list.js +1 -1
- package/dist/components/z-myz-list.js +1 -1
- package/dist/components/z-navigation-tabs.js +3 -3
- package/dist/components/z-navigation-tabs.js.map +1 -1
- package/dist/components/z-notification.js +1 -1
- package/dist/components/z-otp.js +2 -2
- package/dist/components/z-panel-elem.js +2 -2
- package/dist/components/z-range-picker.js +3 -3
- package/dist/components/z-section-title.js +1 -1
- package/dist/components/z-select.js +1 -1
- package/dist/components/z-skip-to-content.js +1 -1
- package/dist/components/z-stepper-item.js +1 -1
- package/dist/components/z-stepper.js +1 -1
- package/dist/components/z-table.js +1 -1
- package/dist/components/z-tbody.js +1 -1
- package/dist/components/z-td.js +1 -1
- package/dist/components/z-tfoot.js +1 -1
- package/dist/components/z-th.js +1 -1
- package/dist/components/z-thead.js +1 -1
- package/dist/components/z-toast-notification-list.js +1 -1
- package/dist/components/z-toast-notification.js +1 -1
- package/dist/components/z-toggle-button.js +2 -2
- package/dist/components/z-toggle-switch.js +3 -3
- package/dist/components/z-tooltip.js +1 -1
- package/dist/components/z-tr.js +1 -1
- package/dist/components/z-visually-hidden.js +1 -1
- package/dist/esm/{index-daf6dc52.js → index-04335eea.js} +2 -2
- package/dist/esm/{index-daf6dc52.js.map → index-04335eea.js.map} +1 -1
- package/dist/esm/{index-bcd128c9.js → index-5dff449e.js} +2 -2
- package/dist/esm/{index-bcd128c9.js.map → index-5dff449e.js.map} +1 -1
- package/dist/esm/{index-bf3d3447.js → index-735d4f23.js} +2 -2
- package/dist/esm/{index-bf3d3447.js.map → index-735d4f23.js.map} +1 -1
- package/dist/esm/{index-03fd6621.js → index-8df19678.js} +4 -4
- package/dist/esm/{index-03fd6621.js.map → index-8df19678.js.map} +1 -1
- package/dist/esm/{index-2e00cecb.js → index-90f624c1.js} +2 -2
- package/dist/esm/{index-2e00cecb.js.map → index-90f624c1.js.map} +1 -1
- package/dist/esm/{index-358dea59.js → index-9adfcd0d.js} +2 -2
- package/dist/esm/{index-358dea59.js.map → index-9adfcd0d.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-accordion.entry.js +2 -2
- package/dist/esm/z-accordion.entry.js.map +1 -1
- package/dist/esm/z-alert.entry.js +1 -1
- package/dist/esm/z-anchor-navigation.entry.js +2 -2
- package/dist/esm/z-anchor-navigation.entry.js.map +1 -1
- package/dist/esm/z-app-header-deprecated.entry.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +13 -13
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +2 -2
- package/dist/esm/z-book-card-app.entry.js +1 -1
- package/dist/esm/z-book-card-deprecated.entry.js +1 -1
- package/dist/esm/z-book-card.entry.js +2 -2
- package/dist/esm/z-breadcrumb.entry.js +2 -2
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +2 -2
- package/dist/esm/z-combobox.entry.js +1 -1
- package/dist/esm/z-cover-hero.entry.js +2 -2
- package/dist/esm/z-date-picker.entry.js +1 -1
- package/dist/esm/z-dragdrop-area_2.entry.js +17 -21
- package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -1
- package/dist/esm/z-file-upload.entry.js +78 -102
- package/dist/esm/z-file-upload.entry.js.map +1 -1
- package/dist/esm/z-file.entry.js +1 -1
- package/dist/esm/z-ghost-loading.entry.js +1 -1
- package/dist/esm/z-info-box.entry.js +1 -1
- package/dist/esm/z-info-reveal.entry.js +1 -1
- package/dist/esm/z-logo.entry.js +1 -1
- package/dist/esm/z-menu-deprecated.entry.js +2 -2
- package/dist/esm/z-menu-deprecated.entry.js.map +1 -1
- package/dist/esm/z-menu-section-deprecated.entry.js +2 -2
- package/dist/esm/z-menu-section-deprecated.entry.js.map +1 -1
- package/dist/esm/z-menu-section.entry.js +2 -2
- package/dist/esm/z-menu-section.entry.js.map +1 -1
- package/dist/esm/z-menu.entry.js +1 -1
- package/dist/esm/z-menu.entry.js.map +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +2 -2
- package/dist/esm/z-myz-card-info.entry.js.map +1 -1
- package/dist/esm/z-myz-card-list.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +4 -4
- package/dist/esm/z-myz-list-item.entry.js +1 -1
- package/dist/esm/z-myz-list.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +3 -3
- package/dist/esm/z-navigation-tabs.entry.js.map +1 -1
- package/dist/esm/z-notification.entry.js +1 -1
- package/dist/esm/z-otp.entry.js +2 -2
- package/dist/esm/z-panel-elem.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +1 -1
- package/dist/esm/z-range-picker.entry.js +3 -3
- package/dist/esm/z-section-title.entry.js +1 -1
- package/dist/esm/z-select.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +1 -1
- package/dist/esm/z-stepper-item.entry.js +1 -1
- package/dist/esm/z-stepper.entry.js +1 -1
- package/dist/esm/z-table.entry.js +7 -7
- package/dist/esm/z-tbody.entry.js +1 -1
- package/dist/esm/z-td.entry.js +1 -1
- package/dist/esm/z-tfoot.entry.js +1 -1
- package/dist/esm/z-th.entry.js +1 -1
- package/dist/esm/z-thead.entry.js +1 -1
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +1 -1
- package/dist/esm/z-toggle-button.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +3 -3
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/esm/z-tr.entry.js +3 -3
- package/dist/esm/z-visually-hidden.entry.js +1 -1
- package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +4 -4
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +39 -25
- package/dist/types/components/file-upload/z-file-upload/index.stories.d.ts +1 -0
- package/dist/types/components.d.ts +27 -4
- package/{www/build/p-a707640a.entry.js → dist/web-components-library/p-015621c8.entry.js} +2 -2
- package/dist/web-components-library/p-035807e3.entry.js +2 -0
- package/{www/build/p-cd55204b.js → dist/web-components-library/p-037c59b3.js} +2 -2
- package/dist/web-components-library/{p-479b13ae.entry.js → p-0565f1b2.entry.js} +2 -2
- package/dist/web-components-library/p-08d8f935.entry.js +2 -0
- package/{www/build/p-95795174.entry.js → dist/web-components-library/p-0df6b405.entry.js} +2 -2
- package/dist/web-components-library/p-11216ee8.entry.js +2 -0
- package/{www/build/p-5ccbdfbe.entry.js.map → dist/web-components-library/p-11216ee8.entry.js.map} +1 -1
- package/dist/web-components-library/p-115fab3e.entry.js +2 -0
- package/dist/web-components-library/p-115fab3e.entry.js.map +1 -0
- package/dist/web-components-library/{p-914e20e9.entry.js → p-11629dd3.entry.js} +2 -2
- package/dist/web-components-library/{p-90d54c40.js → p-123739cb.js} +2 -2
- package/{www/build/p-7c6dad4b.js → dist/web-components-library/p-14e61df6.js} +2 -2
- package/dist/web-components-library/{p-2e48ff6b.entry.js → p-18d63f0c.entry.js} +2 -2
- package/{www/build/p-8b627bff.entry.js → dist/web-components-library/p-20b628e7.entry.js} +2 -2
- package/dist/web-components-library/{p-cc87d814.entry.js → p-22d56699.entry.js} +2 -2
- package/dist/web-components-library/p-2798c0b2.entry.js +2 -0
- package/dist/web-components-library/{p-83cd8d7c.entry.js → p-2a0d8ebe.entry.js} +2 -2
- package/dist/web-components-library/p-2aeb2a94.entry.js +2 -0
- package/dist/web-components-library/{p-34d82be5.entry.js → p-2c450113.entry.js} +2 -2
- package/dist/web-components-library/{p-c57bb632.entry.js → p-2dcf53b3.entry.js} +2 -2
- package/dist/web-components-library/p-30170218.entry.js +2 -0
- package/dist/web-components-library/{p-e9149664.entry.js → p-34f4f441.entry.js} +2 -2
- package/dist/web-components-library/{p-73d089fe.entry.js → p-384baa02.entry.js} +2 -2
- package/dist/web-components-library/{p-46ce378d.entry.js → p-395b261e.entry.js} +2 -2
- package/dist/web-components-library/p-3bf02cab.entry.js +2 -0
- package/dist/web-components-library/p-3bf02cab.entry.js.map +1 -0
- package/dist/web-components-library/{p-4a058a26.entry.js → p-42559870.entry.js} +2 -2
- package/dist/web-components-library/{p-92da97fb.entry.js → p-4374d3f3.entry.js} +2 -2
- package/dist/web-components-library/{p-ec4d7f60.js → p-4c462e7f.js} +2 -2
- package/dist/web-components-library/{p-c0588dbe.entry.js → p-4fedcbc2.entry.js} +2 -2
- package/{www/build/p-7db32c12.entry.js → dist/web-components-library/p-50bf57b4.entry.js} +2 -2
- package/{www/build/p-8f47b574.entry.js → dist/web-components-library/p-52be7378.entry.js} +2 -2
- package/{www/build/p-9e183204.entry.js → dist/web-components-library/p-54a70792.entry.js} +2 -2
- package/{www/build/p-c9913f1e.entry.js → dist/web-components-library/p-5f04d9eb.entry.js} +2 -2
- package/dist/web-components-library/p-605f6780.entry.js +2 -0
- package/dist/web-components-library/p-605f6780.entry.js.map +1 -0
- package/dist/web-components-library/{p-7d844bac.entry.js → p-60a9cb8b.entry.js} +2 -2
- package/{www/build/p-ddae9016.entry.js → dist/web-components-library/p-6230c432.entry.js} +2 -2
- package/dist/web-components-library/p-6e1ba2f0.entry.js +2 -0
- package/dist/web-components-library/{p-3ce0d28c.entry.js → p-7095262b.entry.js} +2 -2
- package/dist/web-components-library/{p-af4b759a.entry.js → p-72dae90b.entry.js} +2 -2
- package/dist/web-components-library/p-73d686e0.entry.js +2 -0
- package/dist/web-components-library/p-73d686e0.entry.js.map +1 -0
- package/dist/web-components-library/p-75808b47.entry.js +2 -0
- package/dist/web-components-library/p-75808b47.entry.js.map +1 -0
- package/dist/web-components-library/{p-0d1dbe04.entry.js → p-8c952964.entry.js} +2 -2
- package/dist/web-components-library/{p-18fbbf63.entry.js → p-9187ce36.entry.js} +2 -2
- package/dist/web-components-library/{p-08691c77.entry.js → p-9218da42.entry.js} +2 -2
- package/dist/web-components-library/{p-2cc8c5a5.entry.js → p-972098a5.entry.js} +2 -2
- package/dist/web-components-library/{p-ecaca2df.entry.js → p-9f0a3d88.entry.js} +2 -2
- package/dist/web-components-library/p-a90027c2.entry.js +2 -0
- package/dist/web-components-library/p-a90027c2.entry.js.map +1 -0
- package/dist/web-components-library/p-aa0b3e7a.entry.js +2 -0
- package/dist/web-components-library/p-aa0b3e7a.entry.js.map +1 -0
- package/{www/build/p-65c59027.entry.js → dist/web-components-library/p-aa42f01d.entry.js} +2 -2
- package/dist/web-components-library/p-ad825740.entry.js +2 -0
- package/dist/web-components-library/{p-76d8d404.entry.js → p-b309bd71.entry.js} +2 -2
- package/dist/web-components-library/p-b38be247.entry.js +2 -0
- package/{www/build/p-ac03a6cc.entry.js → dist/web-components-library/p-bbd492d3.entry.js} +2 -2
- package/dist/web-components-library/p-c13ef624.js +2 -0
- package/dist/web-components-library/p-c2af9a71.entry.js +2 -0
- package/dist/web-components-library/p-c2af9a71.entry.js.map +1 -0
- package/dist/web-components-library/p-c7df6a63.entry.js +2 -0
- package/dist/web-components-library/p-c7df6a63.entry.js.map +1 -0
- package/dist/web-components-library/{p-0eab0213.entry.js → p-caccf490.entry.js} +2 -2
- package/dist/web-components-library/p-cb8aec27.entry.js +2 -0
- package/dist/web-components-library/p-cc8186a9.entry.js +2 -0
- package/{www/build/p-d972d6aa.entry.js.map → dist/web-components-library/p-cc8186a9.entry.js.map} +1 -1
- package/dist/web-components-library/p-d65aba93.entry.js +2 -0
- package/dist/web-components-library/{p-386e385c.entry.js.map → p-d65aba93.entry.js.map} +1 -1
- package/dist/web-components-library/p-db0a5f51.entry.js +2 -0
- package/dist/web-components-library/p-db0a5f51.entry.js.map +1 -0
- package/dist/web-components-library/p-deb86b5c.entry.js +2 -0
- package/dist/web-components-library/{p-efe1de34.entry.js → p-ea36d666.entry.js} +2 -2
- package/dist/web-components-library/{p-9078dfd7.entry.js → p-f06bd257.entry.js} +2 -2
- package/dist/web-components-library/{p-2f486acc.entry.js → p-f075ec62.entry.js} +2 -2
- package/dist/web-components-library/{p-27a59513.entry.js → p-f8915e2e.entry.js} +2 -2
- package/dist/web-components-library/{p-068b15fc.entry.js → p-fb06a5d8.entry.js} +2 -2
- package/dist/web-components-library/p-feb84d36.js +2 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/dist/web-components-library/web-components-library.esm.js.map +1 -1
- package/package.json +1 -1
- package/{dist/web-components-library/p-a707640a.entry.js → www/build/p-015621c8.entry.js} +2 -2
- package/www/build/p-035807e3.entry.js +2 -0
- package/{dist/web-components-library/p-cd55204b.js → www/build/p-037c59b3.js} +2 -2
- package/www/build/{p-479b13ae.entry.js → p-0565f1b2.entry.js} +2 -2
- package/www/build/p-08d8f935.entry.js +2 -0
- package/{dist/web-components-library/p-95795174.entry.js → www/build/p-0df6b405.entry.js} +2 -2
- package/www/build/p-11216ee8.entry.js +2 -0
- package/{dist/web-components-library/p-5ccbdfbe.entry.js.map → www/build/p-11216ee8.entry.js.map} +1 -1
- package/www/build/p-115fab3e.entry.js +2 -0
- package/www/build/p-115fab3e.entry.js.map +1 -0
- package/www/build/{p-914e20e9.entry.js → p-11629dd3.entry.js} +2 -2
- package/www/build/{p-90d54c40.js → p-123739cb.js} +2 -2
- package/{dist/web-components-library/p-7c6dad4b.js → www/build/p-14e61df6.js} +2 -2
- package/www/build/{p-2e48ff6b.entry.js → p-18d63f0c.entry.js} +2 -2
- package/{dist/web-components-library/p-8b627bff.entry.js → www/build/p-20b628e7.entry.js} +2 -2
- package/www/build/{p-cc87d814.entry.js → p-22d56699.entry.js} +2 -2
- package/www/build/p-2798c0b2.entry.js +2 -0
- package/www/build/{p-83cd8d7c.entry.js → p-2a0d8ebe.entry.js} +2 -2
- package/www/build/p-2aeb2a94.entry.js +2 -0
- package/www/build/{p-34d82be5.entry.js → p-2c450113.entry.js} +2 -2
- package/www/build/{p-c57bb632.entry.js → p-2dcf53b3.entry.js} +2 -2
- package/www/build/p-30170218.entry.js +2 -0
- package/www/build/{p-e9149664.entry.js → p-34f4f441.entry.js} +2 -2
- package/www/build/{p-73d089fe.entry.js → p-384baa02.entry.js} +2 -2
- package/www/build/{p-46ce378d.entry.js → p-395b261e.entry.js} +2 -2
- package/www/build/p-3bf02cab.entry.js +2 -0
- package/www/build/p-3bf02cab.entry.js.map +1 -0
- package/www/build/{p-4a058a26.entry.js → p-42559870.entry.js} +2 -2
- package/www/build/{p-92da97fb.entry.js → p-4374d3f3.entry.js} +2 -2
- package/www/build/p-45f04bb4.js +2 -0
- package/www/build/{p-ec4d7f60.js → p-4c462e7f.js} +2 -2
- package/www/build/{p-c0588dbe.entry.js → p-4fedcbc2.entry.js} +2 -2
- package/{dist/web-components-library/p-7db32c12.entry.js → www/build/p-50bf57b4.entry.js} +2 -2
- package/{dist/web-components-library/p-8f47b574.entry.js → www/build/p-52be7378.entry.js} +2 -2
- package/{dist/web-components-library/p-9e183204.entry.js → www/build/p-54a70792.entry.js} +2 -2
- package/{dist/web-components-library/p-c9913f1e.entry.js → www/build/p-5f04d9eb.entry.js} +2 -2
- package/www/build/p-605f6780.entry.js +2 -0
- package/www/build/p-605f6780.entry.js.map +1 -0
- package/www/build/{p-7d844bac.entry.js → p-60a9cb8b.entry.js} +2 -2
- package/{dist/web-components-library/p-ddae9016.entry.js → www/build/p-6230c432.entry.js} +2 -2
- package/www/build/p-6e1ba2f0.entry.js +2 -0
- package/www/build/{p-3ce0d28c.entry.js → p-7095262b.entry.js} +2 -2
- package/www/build/{p-af4b759a.entry.js → p-72dae90b.entry.js} +2 -2
- package/www/build/p-73d686e0.entry.js +2 -0
- package/www/build/p-73d686e0.entry.js.map +1 -0
- package/www/build/p-75808b47.entry.js +2 -0
- package/www/build/p-75808b47.entry.js.map +1 -0
- package/www/build/{p-0d1dbe04.entry.js → p-8c952964.entry.js} +2 -2
- package/www/build/{p-18fbbf63.entry.js → p-9187ce36.entry.js} +2 -2
- package/www/build/{p-08691c77.entry.js → p-9218da42.entry.js} +2 -2
- package/www/build/{p-2cc8c5a5.entry.js → p-972098a5.entry.js} +2 -2
- package/www/build/{p-ecaca2df.entry.js → p-9f0a3d88.entry.js} +2 -2
- package/www/build/p-a90027c2.entry.js +2 -0
- package/www/build/p-a90027c2.entry.js.map +1 -0
- package/www/build/p-aa0b3e7a.entry.js +2 -0
- package/www/build/p-aa0b3e7a.entry.js.map +1 -0
- package/{dist/web-components-library/p-65c59027.entry.js → www/build/p-aa42f01d.entry.js} +2 -2
- package/www/build/p-ad825740.entry.js +2 -0
- package/www/build/{p-76d8d404.entry.js → p-b309bd71.entry.js} +2 -2
- package/www/build/p-b38be247.entry.js +2 -0
- package/{dist/web-components-library/p-ac03a6cc.entry.js → www/build/p-bbd492d3.entry.js} +2 -2
- package/www/build/p-c13ef624.js +2 -0
- package/www/build/p-c2af9a71.entry.js +2 -0
- package/www/build/p-c2af9a71.entry.js.map +1 -0
- package/www/build/p-c7df6a63.entry.js +2 -0
- package/www/build/p-c7df6a63.entry.js.map +1 -0
- package/www/build/{p-0eab0213.entry.js → p-caccf490.entry.js} +2 -2
- package/www/build/p-cb8aec27.entry.js +2 -0
- package/www/build/p-cc8186a9.entry.js +2 -0
- package/{dist/web-components-library/p-d972d6aa.entry.js.map → www/build/p-cc8186a9.entry.js.map} +1 -1
- package/www/build/p-d65aba93.entry.js +2 -0
- package/www/build/{p-386e385c.entry.js.map → p-d65aba93.entry.js.map} +1 -1
- package/www/build/p-db0a5f51.entry.js +2 -0
- package/www/build/p-db0a5f51.entry.js.map +1 -0
- package/www/build/p-deb86b5c.entry.js +2 -0
- package/www/build/{p-efe1de34.entry.js → p-ea36d666.entry.js} +2 -2
- package/www/build/{p-9078dfd7.entry.js → p-f06bd257.entry.js} +2 -2
- package/www/build/{p-2f486acc.entry.js → p-f075ec62.entry.js} +2 -2
- package/www/build/{p-27a59513.entry.js → p-f8915e2e.entry.js} +2 -2
- package/www/build/{p-068b15fc.entry.js → p-fb06a5d8.entry.js} +2 -2
- package/www/build/p-feb84d36.js +2 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.esm.js.map +1 -1
- package/www/index.html +1 -1
- package/dist/web-components-library/p-2c6519dc.entry.js +0 -2
- package/dist/web-components-library/p-2dbbc58f.entry.js +0 -2
- package/dist/web-components-library/p-2dbbc58f.entry.js.map +0 -1
- package/dist/web-components-library/p-2f3732d9.entry.js +0 -2
- package/dist/web-components-library/p-382e2939.entry.js +0 -2
- package/dist/web-components-library/p-386e385c.entry.js +0 -2
- package/dist/web-components-library/p-3f8725c1.entry.js +0 -2
- package/dist/web-components-library/p-40280990.entry.js +0 -2
- package/dist/web-components-library/p-4629a66a.entry.js +0 -2
- package/dist/web-components-library/p-4629a66a.entry.js.map +0 -1
- package/dist/web-components-library/p-563e86c0.entry.js +0 -2
- package/dist/web-components-library/p-563e86c0.entry.js.map +0 -1
- package/dist/web-components-library/p-5ccbdfbe.entry.js +0 -2
- package/dist/web-components-library/p-612da2d0.entry.js +0 -2
- package/dist/web-components-library/p-612da2d0.entry.js.map +0 -1
- package/dist/web-components-library/p-65f993a4.entry.js +0 -2
- package/dist/web-components-library/p-6f69c2b6.js +0 -2
- package/dist/web-components-library/p-72618fde.entry.js +0 -2
- package/dist/web-components-library/p-72618fde.entry.js.map +0 -1
- package/dist/web-components-library/p-8d79971b.entry.js +0 -2
- package/dist/web-components-library/p-8d79971b.entry.js.map +0 -1
- package/dist/web-components-library/p-93069a90.entry.js +0 -2
- package/dist/web-components-library/p-a7bcb93d.entry.js +0 -2
- package/dist/web-components-library/p-a7bcb93d.entry.js.map +0 -1
- package/dist/web-components-library/p-add2b5e8.entry.js +0 -2
- package/dist/web-components-library/p-b896dcf7.entry.js +0 -2
- package/dist/web-components-library/p-cc6406ab.entry.js +0 -2
- package/dist/web-components-library/p-d34a177a.entry.js +0 -2
- package/dist/web-components-library/p-d34a177a.entry.js.map +0 -1
- package/dist/web-components-library/p-d972d6aa.entry.js +0 -2
- package/dist/web-components-library/p-e4e0d271.entry.js +0 -2
- package/dist/web-components-library/p-e4e0d271.entry.js.map +0 -1
- package/dist/web-components-library/p-f400cf1b.js +0 -2
- package/dist/web-components-library/p-f413c03c.entry.js +0 -2
- package/dist/web-components-library/p-f413c03c.entry.js.map +0 -1
- package/www/build/p-2c6519dc.entry.js +0 -2
- package/www/build/p-2dbbc58f.entry.js +0 -2
- package/www/build/p-2dbbc58f.entry.js.map +0 -1
- package/www/build/p-2f3732d9.entry.js +0 -2
- package/www/build/p-382e2939.entry.js +0 -2
- package/www/build/p-386e385c.entry.js +0 -2
- package/www/build/p-3f8725c1.entry.js +0 -2
- package/www/build/p-40280990.entry.js +0 -2
- package/www/build/p-4629a66a.entry.js +0 -2
- package/www/build/p-4629a66a.entry.js.map +0 -1
- package/www/build/p-563e86c0.entry.js +0 -2
- package/www/build/p-563e86c0.entry.js.map +0 -1
- package/www/build/p-5ccbdfbe.entry.js +0 -2
- package/www/build/p-612da2d0.entry.js +0 -2
- package/www/build/p-612da2d0.entry.js.map +0 -1
- package/www/build/p-65f993a4.entry.js +0 -2
- package/www/build/p-6f69c2b6.js +0 -2
- package/www/build/p-72618fde.entry.js +0 -2
- package/www/build/p-72618fde.entry.js.map +0 -1
- package/www/build/p-8d79971b.entry.js +0 -2
- package/www/build/p-8d79971b.entry.js.map +0 -1
- package/www/build/p-93069a90.entry.js +0 -2
- package/www/build/p-a7bcb93d.entry.js +0 -2
- package/www/build/p-a7bcb93d.entry.js.map +0 -1
- package/www/build/p-add2b5e8.entry.js +0 -2
- package/www/build/p-b896dcf7.entry.js +0 -2
- package/www/build/p-c9e50d51.js +0 -2
- package/www/build/p-cc6406ab.entry.js +0 -2
- package/www/build/p-d34a177a.entry.js +0 -2
- package/www/build/p-d34a177a.entry.js.map +0 -1
- package/www/build/p-d972d6aa.entry.js +0 -2
- package/www/build/p-e4e0d271.entry.js +0 -2
- package/www/build/p-e4e0d271.entry.js.map +0 -1
- package/www/build/p-f400cf1b.js +0 -2
- package/www/build/p-f413c03c.entry.js +0 -2
- package/www/build/p-f413c03c.entry.js.map +0 -1
- /package/dist/web-components-library/{p-a707640a.entry.js.map → p-015621c8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-93069a90.entry.js.map → p-035807e3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-cd55204b.js.map → p-037c59b3.js.map} +0 -0
- /package/dist/web-components-library/{p-479b13ae.entry.js.map → p-0565f1b2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-65f993a4.entry.js.map → p-08d8f935.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-95795174.entry.js.map → p-0df6b405.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-914e20e9.entry.js.map → p-11629dd3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-90d54c40.js.map → p-123739cb.js.map} +0 -0
- /package/dist/web-components-library/{p-7c6dad4b.js.map → p-14e61df6.js.map} +0 -0
- /package/dist/web-components-library/{p-2e48ff6b.entry.js.map → p-18d63f0c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8b627bff.entry.js.map → p-20b628e7.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-cc87d814.entry.js.map → p-22d56699.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2c6519dc.entry.js.map → p-2798c0b2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-83cd8d7c.entry.js.map → p-2a0d8ebe.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2f3732d9.entry.js.map → p-2aeb2a94.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-34d82be5.entry.js.map → p-2c450113.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c57bb632.entry.js.map → p-2dcf53b3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-40280990.entry.js.map → p-30170218.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e9149664.entry.js.map → p-34f4f441.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-73d089fe.entry.js.map → p-384baa02.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-46ce378d.entry.js.map → p-395b261e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-4a058a26.entry.js.map → p-42559870.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-92da97fb.entry.js.map → p-4374d3f3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ec4d7f60.js.map → p-4c462e7f.js.map} +0 -0
- /package/dist/web-components-library/{p-c0588dbe.entry.js.map → p-4fedcbc2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7db32c12.entry.js.map → p-50bf57b4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8f47b574.entry.js.map → p-52be7378.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9e183204.entry.js.map → p-54a70792.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c9913f1e.entry.js.map → p-5f04d9eb.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7d844bac.entry.js.map → p-60a9cb8b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ddae9016.entry.js.map → p-6230c432.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-382e2939.entry.js.map → p-6e1ba2f0.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-3ce0d28c.entry.js.map → p-7095262b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-af4b759a.entry.js.map → p-72dae90b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0d1dbe04.entry.js.map → p-8c952964.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-18fbbf63.entry.js.map → p-9187ce36.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-08691c77.entry.js.map → p-9218da42.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2cc8c5a5.entry.js.map → p-972098a5.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ecaca2df.entry.js.map → p-9f0a3d88.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-65c59027.entry.js.map → p-aa42f01d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-add2b5e8.entry.js.map → p-ad825740.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-76d8d404.entry.js.map → p-b309bd71.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b896dcf7.entry.js.map → p-b38be247.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ac03a6cc.entry.js.map → p-bbd492d3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6f69c2b6.js.map → p-c13ef624.js.map} +0 -0
- /package/dist/web-components-library/{p-0eab0213.entry.js.map → p-caccf490.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-3f8725c1.entry.js.map → p-cb8aec27.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-cc6406ab.entry.js.map → p-deb86b5c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-efe1de34.entry.js.map → p-ea36d666.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9078dfd7.entry.js.map → p-f06bd257.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2f486acc.entry.js.map → p-f075ec62.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-27a59513.entry.js.map → p-f8915e2e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-068b15fc.entry.js.map → p-fb06a5d8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f400cf1b.js.map → p-feb84d36.js.map} +0 -0
- /package/www/build/{p-a707640a.entry.js.map → p-015621c8.entry.js.map} +0 -0
- /package/www/build/{p-93069a90.entry.js.map → p-035807e3.entry.js.map} +0 -0
- /package/www/build/{p-cd55204b.js.map → p-037c59b3.js.map} +0 -0
- /package/www/build/{p-479b13ae.entry.js.map → p-0565f1b2.entry.js.map} +0 -0
- /package/www/build/{p-65f993a4.entry.js.map → p-08d8f935.entry.js.map} +0 -0
- /package/www/build/{p-95795174.entry.js.map → p-0df6b405.entry.js.map} +0 -0
- /package/www/build/{p-914e20e9.entry.js.map → p-11629dd3.entry.js.map} +0 -0
- /package/www/build/{p-90d54c40.js.map → p-123739cb.js.map} +0 -0
- /package/www/build/{p-7c6dad4b.js.map → p-14e61df6.js.map} +0 -0
- /package/www/build/{p-2e48ff6b.entry.js.map → p-18d63f0c.entry.js.map} +0 -0
- /package/www/build/{p-8b627bff.entry.js.map → p-20b628e7.entry.js.map} +0 -0
- /package/www/build/{p-cc87d814.entry.js.map → p-22d56699.entry.js.map} +0 -0
- /package/www/build/{p-2c6519dc.entry.js.map → p-2798c0b2.entry.js.map} +0 -0
- /package/www/build/{p-83cd8d7c.entry.js.map → p-2a0d8ebe.entry.js.map} +0 -0
- /package/www/build/{p-2f3732d9.entry.js.map → p-2aeb2a94.entry.js.map} +0 -0
- /package/www/build/{p-34d82be5.entry.js.map → p-2c450113.entry.js.map} +0 -0
- /package/www/build/{p-c57bb632.entry.js.map → p-2dcf53b3.entry.js.map} +0 -0
- /package/www/build/{p-40280990.entry.js.map → p-30170218.entry.js.map} +0 -0
- /package/www/build/{p-e9149664.entry.js.map → p-34f4f441.entry.js.map} +0 -0
- /package/www/build/{p-73d089fe.entry.js.map → p-384baa02.entry.js.map} +0 -0
- /package/www/build/{p-46ce378d.entry.js.map → p-395b261e.entry.js.map} +0 -0
- /package/www/build/{p-4a058a26.entry.js.map → p-42559870.entry.js.map} +0 -0
- /package/www/build/{p-92da97fb.entry.js.map → p-4374d3f3.entry.js.map} +0 -0
- /package/www/build/{p-ec4d7f60.js.map → p-4c462e7f.js.map} +0 -0
- /package/www/build/{p-c0588dbe.entry.js.map → p-4fedcbc2.entry.js.map} +0 -0
- /package/www/build/{p-7db32c12.entry.js.map → p-50bf57b4.entry.js.map} +0 -0
- /package/www/build/{p-8f47b574.entry.js.map → p-52be7378.entry.js.map} +0 -0
- /package/www/build/{p-9e183204.entry.js.map → p-54a70792.entry.js.map} +0 -0
- /package/www/build/{p-c9913f1e.entry.js.map → p-5f04d9eb.entry.js.map} +0 -0
- /package/www/build/{p-7d844bac.entry.js.map → p-60a9cb8b.entry.js.map} +0 -0
- /package/www/build/{p-ddae9016.entry.js.map → p-6230c432.entry.js.map} +0 -0
- /package/www/build/{p-382e2939.entry.js.map → p-6e1ba2f0.entry.js.map} +0 -0
- /package/www/build/{p-3ce0d28c.entry.js.map → p-7095262b.entry.js.map} +0 -0
- /package/www/build/{p-af4b759a.entry.js.map → p-72dae90b.entry.js.map} +0 -0
- /package/www/build/{p-0d1dbe04.entry.js.map → p-8c952964.entry.js.map} +0 -0
- /package/www/build/{p-18fbbf63.entry.js.map → p-9187ce36.entry.js.map} +0 -0
- /package/www/build/{p-08691c77.entry.js.map → p-9218da42.entry.js.map} +0 -0
- /package/www/build/{p-2cc8c5a5.entry.js.map → p-972098a5.entry.js.map} +0 -0
- /package/www/build/{p-ecaca2df.entry.js.map → p-9f0a3d88.entry.js.map} +0 -0
- /package/www/build/{p-65c59027.entry.js.map → p-aa42f01d.entry.js.map} +0 -0
- /package/www/build/{p-add2b5e8.entry.js.map → p-ad825740.entry.js.map} +0 -0
- /package/www/build/{p-76d8d404.entry.js.map → p-b309bd71.entry.js.map} +0 -0
- /package/www/build/{p-b896dcf7.entry.js.map → p-b38be247.entry.js.map} +0 -0
- /package/www/build/{p-ac03a6cc.entry.js.map → p-bbd492d3.entry.js.map} +0 -0
- /package/www/build/{p-6f69c2b6.js.map → p-c13ef624.js.map} +0 -0
- /package/www/build/{p-0eab0213.entry.js.map → p-caccf490.entry.js.map} +0 -0
- /package/www/build/{p-3f8725c1.entry.js.map → p-cb8aec27.entry.js.map} +0 -0
- /package/www/build/{p-cc6406ab.entry.js.map → p-deb86b5c.entry.js.map} +0 -0
- /package/www/build/{p-efe1de34.entry.js.map → p-ea36d666.entry.js.map} +0 -0
- /package/www/build/{p-9078dfd7.entry.js.map → p-f06bd257.entry.js.map} +0 -0
- /package/www/build/{p-2f486acc.entry.js.map → p-f075ec62.entry.js.map} +0 -0
- /package/www/build/{p-27a59513.entry.js.map → p-f8915e2e.entry.js.map} +0 -0
- /package/www/build/{p-068b15fc.entry.js.map → p-fb06a5d8.entry.js.map} +0 -0
- /package/www/build/{p-f400cf1b.js.map → p-feb84d36.js.map} +0 -0
|
@@ -123,7 +123,7 @@ const ZBookCardDeprecated$1 = /*@__PURE__*/ proxyCustomElement(class ZBookCardDe
|
|
|
123
123
|
return (h("div", { class: "action-container" }, h("slot", { name: "footer-cta" })));
|
|
124
124
|
}
|
|
125
125
|
render() {
|
|
126
|
-
return (h("article", { key: '
|
|
126
|
+
return (h("article", { key: 'a2248d9206aec07d317dddb8cb8d6061eccc7a53', class: {
|
|
127
127
|
[this.variant]: true,
|
|
128
128
|
borderless: !!this.borderless,
|
|
129
129
|
} }, this.renderCard()));
|
|
@@ -113,9 +113,9 @@ const ZBookCard$1 = /*@__PURE__*/ proxyCustomElement(class ZBookCard extends HTM
|
|
|
113
113
|
}, "aria-hidden": "true" })));
|
|
114
114
|
}
|
|
115
115
|
render() {
|
|
116
|
-
return (h("article", { key: '
|
|
116
|
+
return (h("article", { key: 'a2b8d8a72f3868b6e846e552aa6b48012334b15b', class: {
|
|
117
117
|
[this.variant]: true,
|
|
118
|
-
} }, h("div", { key: '
|
|
118
|
+
} }, h("div", { key: '24c08d9d84dc669395b1c255f6730a7a9d536886', class: "main-content" }, this.renderCover(), h("div", { key: '91389d7afb5971377c098cf8fb2dee3c870e870c', class: "card-info" }, h("div", { key: '3802460d92d4324c032ec3de0b978ce346b46827', class: "book-data" }, h("div", { key: 'e901801f93e778721b5def9c2cea89e4ae86a500', class: "authors-title-cta-section" }, h("div", { key: '44367ab6d0cdbe447133018b5dc3a6b77c6a6a51', class: "authors body-4", "aria-description": "autori" }, this.authors), this.renderOperaTitle(), h("slot", { key: '50b0ac7e8dfbc13601e9e89077b8f42345af6633', name: "cta" })), h("div", { key: '8a537e6ceb34a39ff9b0c2402e0d0a8ca09fda36', class: "isbn-tags-link-section" }, h("div", { key: '8fe9ab44fe6023b1c4239a0df7af05b93d9e6684', class: "isbn-tags-section" }, h("div", { key: '718d0984d6b8b856e784ba910327a91b160b915e', class: "volume-title body-4" }, this.volumeTitle), h("div", { key: 'db66e0b7d648cae395ed29eb010d568a181f5544', class: "isbn body-4-sb", "aria-description": `isbn ${this.isbnLabel}` }, this.isbn, " ", this.renderIsbnLabel()), h("div", { key: '70aeccbe9e186547b4b750a99e5509c2efa927d4', class: "tags" }, this.renderTags())), h("div", { key: '6764f5d95bf2ebf570087bb625bbda046578549a', class: "link-section" }, h("div", { key: '07bca683d50d1c8982b1904f856b37acbb2a94bd', class: "catalog-link" }, this.catalogUrl && (h("a", { key: '01bc30aa009c61f2a0e337683273a0dc1bcf86e6', href: this.catalogUrl, target: "_blank", class: "z-link z-link-icon body-4-sb", onClick: () => this.emitCatalogClick() }, "Scheda catalogo", h("z-icon", { key: '575ac4f528c9f6ecdd9a0f99b6b451fd6c75030c', name: "arrow-quad-north-east", height: 16, width: 16, fill: "color-primary01-icon" })))), this.adoption && h("div", { key: '5f381db04e1398792697415abdb25f57bc448899', class: "adoption-tag body-5-sb" }, "adottato")))), h("div", { key: '515817df1083eed2331f7fb5a51224f1ae5e0b64', class: "ebook-container" }, h("slot", { key: 'c684f825978bf2eab57d248cbc8a272db93c18b7', name: "ebook" }, this.ebookUrl && (h("div", { key: '0fb20bf6c1f9bf7a5d64d7cc8a8e143e467612fa', class: "ebook" }, h("div", { key: '53586381ba841fc773fff4918032968950d390e9' }, h("div", { key: '377fa3bbfa6c215cf1f341bf83ba2524253ba2e6', class: "app-name" }, h("img", { key: 'f78e924f246524c9a6d676d72b49d336c0c56ede', class: "ebook-logo", "aria-hidden": "true" }), h("div", { key: '3790c83efb86debff6283fbb75b5b56ee6875e68', class: "body-4-sb" }, h("span", { key: 'd080a30fcc3249e2532305e9470e53dc8f77ce2b', class: "laz" }, "laZ"), " Ebook")), this.variant === BookCardVariant.LANDSCAPE && (h("div", { key: '081ec1e670240b675be096c5274e9d80995c760a', class: "body-5" }, "Anche nella versione libro liquido con", " ", h("button", { key: 'a89d47b79ebb44549a64dcda3dd8798b7420b241', class: "body-5-sb immersive-reader z-link", onClick: () => this.emitImmersiveReaderClick(), tabIndex: 0 }, "strumento di lettura immersiva")))), h("z-button", { key: 'd3be56ff617467506e86f6a4b471fea124c009e1', size: ControlSize.X_SMALL, href: this.ebookUrl, target: "_blank", onClick: () => this.emitEbookClick(), role: "link", "aria-description": `leggi l'ebook ${this.operaTitle} su laZ Ebook` }, "leggi ebook"))))))), h("slot", { key: 'fda1bd7c66a38d1ac63fa37c2601975a8c780819', name: "apps" })));
|
|
119
119
|
}
|
|
120
120
|
get hostElement() { return this; }
|
|
121
121
|
static get watchers() { return {
|
|
@@ -207,10 +207,10 @@ const ZBreadcrumb$1 = /*@__PURE__*/ proxyCustomElement(class ZBreadcrumb extends
|
|
|
207
207
|
];
|
|
208
208
|
}
|
|
209
209
|
render() {
|
|
210
|
-
return (h(Host, { key: '
|
|
210
|
+
return (h(Host, { key: '3d0996a611fe483de9a015c3ac5b25b06d5e302c', style: { "--line-clamp-popover": `${this.overflowMenuItemRows}` } }, h("nav", { key: '8c45a561fcdebb6c7685010dc7105b6c756025e1', ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
|
|
211
211
|
semibold: this.pathStyle === BreadcrumbPathStyle.SEMIBOLD,
|
|
212
212
|
underlined: this.pathStyle === BreadcrumbPathStyle.UNDERLINED,
|
|
213
|
-
} }, h("ol", { key: '
|
|
213
|
+
} }, h("ol", { key: '5cbdbcb8a14a471ae6dbad1d5d7eeb4ca3c8482b' }, this.viewPortWidth === Device.MOBILE ? this.renderMobileItems() : this.renderItems()))));
|
|
214
214
|
}
|
|
215
215
|
get hostElement() { return this; }
|
|
216
216
|
static get watchers() { return {
|
|
@@ -45,7 +45,7 @@ const ZButtonSort$1 = /*@__PURE__*/ proxyCustomElement(class ZButtonSort extends
|
|
|
45
45
|
return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h("button", { key: '
|
|
48
|
+
return (h("button", { key: '6f2fdeea8f8d8c233d6b06ce6a77a550ca003c43', title: this.setButtonTitle(), id: this.buttonid, class: { selected: this.isselected }, onClick: () => this.emitButtonSortClick() }, h("span", { key: '2b73a9480490742c954d9f9319a035092e857313', ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), h("span", { key: 'ffabdef711dfc8489d816c34fd7c52254ac8c89f', class: "counter" }, this.counter && ` (${this.counter})`), h("span", { key: '7086a8caa5146d54b93affa0d901dbb60248d64b', class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), h("z-icon", { key: '17d0cce1ca76cc916bf8ff2af67570b755d5a12d', name: "caret-up-down", width: 16, height: 16 })));
|
|
49
49
|
}
|
|
50
50
|
static get style() { return ZButtonSortStyle0; }
|
|
51
51
|
}, [1, "z-button-sort", {
|
|
@@ -266,7 +266,7 @@ const ZCombobox$1 = /*@__PURE__*/ proxyCustomElement(class ZCombobox extends HTM
|
|
|
266
266
|
return (h("div", { class: "check-all-wrapper" }, h("z-input", { type: InputType.CHECKBOX, checked: allChecked, htmlid: checkAllId, class: this.getCheckboxClass(), label: allChecked ? this.uncheckalltext : this.checkalltext, disabled: this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length, size: this.size === ControlSize.X_SMALL ? ControlSize.SMALL : this.size, role: "option", "aria-selected": allChecked ? "true" : "false", onKeyDown: (e) => this.handleSelectArrowsNavigation(e, checkAllId), onInputCheck: (e) => this.checkAll(e.detail.checked), onInputFocus: (e) => this.handleCheckboxFocus(e.detail.id) })));
|
|
267
267
|
}
|
|
268
268
|
render() {
|
|
269
|
-
return (h("div", { key: '
|
|
269
|
+
return (h("div", { key: '69b13355a675561cb0748a743e7509f8b944615e', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
|
|
270
270
|
}
|
|
271
271
|
get element() { return this; }
|
|
272
272
|
static get watchers() { return {
|
|
@@ -31,9 +31,9 @@ const ZCoverHero$1 = /*@__PURE__*/ proxyCustomElement(class ZCoverHero extends H
|
|
|
31
31
|
return (h("div", { class: "content-container" }, h("slot", { name: "content" })));
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '15c2c9a401700c3503e74f74637c2cbf3b474805' }, this.variant === CoverHeroVariant.STACKED &&
|
|
35
35
|
this.contentPosition === CoverHeroContentPosition.TOP &&
|
|
36
|
-
this.renderContent(), h("div", { key: '
|
|
36
|
+
this.renderContent(), h("div", { key: '269c88ee41679ea7730c202f4ca927a1868c5506', class: "main-container" }, h("div", { key: '67b039d0ba87fdb8a3520035104d9c6263ca5dc1', class: "cover-container" }, h("slot", { key: '3c330cafa143f57e9b4d6615d966c4d62cedd9c8', name: "cover" })), h("slot", { key: 'c092503e4d24f52535182e570edb67428d7a8aa9', name: "info-reveal" }), this.variant === CoverHeroVariant.OVERLAY && this.renderContent()), this.variant === CoverHeroVariant.STACKED &&
|
|
37
37
|
this.contentPosition === CoverHeroContentPosition.BOTTOM &&
|
|
38
38
|
this.renderContent()));
|
|
39
39
|
}
|
|
@@ -465,7 +465,7 @@ const ZDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class ZDatePicker extends
|
|
|
465
465
|
} })));
|
|
466
466
|
}
|
|
467
467
|
render() {
|
|
468
|
-
return (h("div", { key: '
|
|
468
|
+
return (h("div", { key: '5008fbf943acb8f5ad3575646938266579d59e90', class: {
|
|
469
469
|
"flatpickr-toggle-container": true,
|
|
470
470
|
[this.flatpickrPosition]: true,
|
|
471
471
|
[this.mode]: true,
|
|
@@ -1,33 +1,25 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { v as ZFileUploadType
|
|
3
|
-
import {
|
|
4
|
-
import { d as defineCustomElement$6 } from './index4.js';
|
|
5
|
-
import { d as defineCustomElement$5 } from './index6.js';
|
|
2
|
+
import { v as ZFileUploadType } from './index2.js';
|
|
3
|
+
import { d as defineCustomElement$5 } from './index4.js';
|
|
6
4
|
import { d as defineCustomElement$4 } from './index7.js';
|
|
7
5
|
import { d as defineCustomElement$3 } from './index9.js';
|
|
8
6
|
import { d as defineCustomElement$2 } from './index16.js';
|
|
9
7
|
|
|
10
|
-
const stylesCss = ":
|
|
8
|
+
const stylesCss = ".sc-z-file-upload-h{display:flex;flex-direction:column;align-items:flex-start;color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.sc-z-file-upload-h .modal-wrapper.sc-z-file-upload{display:flex;flex-direction:column;justify-content:center;padding:calc(var(--space-unit) * 2);row-gap:calc(var(--space-unit) * 2)}.sc-z-file-upload-h .modal-wrapper.sc-z-file-upload>.files-wrapper.sc-z-file-upload{display:flex;flex-direction:column;margin:calc(var(--space-unit) * 4);gap:var(--space-unit)}.sc-z-file-upload-h .text-container.sc-z-file-upload{display:flex;flex-direction:column;margin:auto;text-align:center}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link.sc-z-file-upload{color:var(--color-text-link-blue);cursor:pointer;text-decoration:underline}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link.sc-z-file-upload:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none !important}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link-text.sc-z-file-upload{margin-bottom:var(--space-unit)}.sc-z-file-upload-h input[type=\"file\"].sc-z-file-upload{display:none}.sc-z-file-upload-h #title.sc-z-file-upload+#description.sc-z-file-upload{margin-top:var(--space-unit)}.sc-z-file-upload-h>*.sc-z-file-upload+z-button.sc-z-file-upload,.sc-z-file-upload-h>.files-container.sc-z-file-upload+*.sc-z-file-upload,.sc-z-file-upload-h>.files-container.sc-z-file-upload:not(:first-child){margin-top:calc(var(--space-unit) * 3)}.sc-z-file-upload-h>.files-container.hidden.sc-z-file-upload{display:none}.sc-z-file-upload-h>.files-container.sc-z-file-upload>.uploaded-files-label.sc-z-file-upload{margin-bottom:calc(var(--space-unit) * 2)}.sc-z-file-upload-h>.files-container.sc-z-file-upload>.files-wrapper.sc-z-file-upload{display:flex;flex-wrap:wrap;column-gap:calc(var(--space-unit) * 2);row-gap:calc(var(--space-unit) * 2)}@media (min-width: 768px){.sc-z-file-upload-h>.container.sc-z-file-upload>z-button.sc-z-file-upload{align-self:flex-start}.sc-z-file-upload-h .modal-wrapper.sc-z-file-upload{padding:calc(var(--space-unit) * 3)}}@media (min-width: 1152px){.sc-z-file-upload-h .modal-wrapper.sc-z-file-upload{padding:calc(var(--space-unit) * 4)}}";
|
|
11
9
|
const ZFileUploadStyle0 = stylesCss;
|
|
12
10
|
|
|
13
11
|
const ZFileUpload$1 = /*@__PURE__*/ proxyCustomElement(class ZFileUpload extends HTMLElement {
|
|
14
12
|
constructor() {
|
|
15
13
|
super();
|
|
16
14
|
this.__registerHost();
|
|
17
|
-
this.__attachShadow();
|
|
18
15
|
this.fileInput = createEvent(this, "fileInput", 7);
|
|
19
|
-
this.
|
|
20
|
-
type: "file",
|
|
21
|
-
id: "file-elem",
|
|
22
|
-
multiple: true,
|
|
23
|
-
};
|
|
16
|
+
this.fileError = createEvent(this, "fileError", 7);
|
|
24
17
|
this.type = ZFileUploadType.DEFAULT;
|
|
25
18
|
this.buttonVariant = undefined;
|
|
26
19
|
this.acceptedFormat = undefined;
|
|
27
20
|
this.fileMaxSize = undefined;
|
|
28
21
|
this.mainTitle = undefined;
|
|
29
22
|
this.description = undefined;
|
|
30
|
-
this.files = [];
|
|
31
23
|
this.uploadBtnLabel = "allega";
|
|
32
24
|
this.dragAndDropLabel = "Rilascia i file in questa area per allegarli.";
|
|
33
25
|
this.allowedFilesMessage = undefined;
|
|
@@ -37,100 +29,88 @@ const ZFileUpload$1 = /*@__PURE__*/ proxyCustomElement(class ZFileUpload extends
|
|
|
37
29
|
this.errorModalMessage = undefined;
|
|
38
30
|
this.uploadedFilesLabel = "File appena caricati";
|
|
39
31
|
this.hasFileSection = true;
|
|
40
|
-
this.
|
|
32
|
+
this.inputName = "z-file-upload";
|
|
33
|
+
this.showErrors = true;
|
|
34
|
+
this._type = this.type;
|
|
35
|
+
this.files = [];
|
|
36
|
+
this.invalidFiles = new Map();
|
|
41
37
|
}
|
|
42
|
-
/** Listen removeFile event sent from z-file component */
|
|
43
|
-
|
|
44
|
-
this.
|
|
38
|
+
/** Listen `removeFile` event sent from z-file component */
|
|
39
|
+
onFileRemoved(e) {
|
|
40
|
+
this.removeFile(e.detail);
|
|
45
41
|
}
|
|
46
42
|
/** Listen fileDropped event sent from z-dragdrop-area component */
|
|
47
43
|
fileDroppedListener(e) {
|
|
48
44
|
this.input.files = e.detail;
|
|
49
|
-
this.
|
|
50
|
-
}
|
|
51
|
-
componentDidUpdate() {
|
|
52
|
-
this.handleAccessibility();
|
|
53
|
-
this.invalidFiles.size && this.errorModal.focus();
|
|
54
|
-
}
|
|
55
|
-
componentWillLoad() {
|
|
56
|
-
this.invalidFiles = new Map();
|
|
57
|
-
}
|
|
58
|
-
fileInputHandler() {
|
|
59
|
-
if (this.input.files.length) {
|
|
60
|
-
this.invalidFiles = this.checkFiles(Array.from(this.input.files));
|
|
61
|
-
}
|
|
45
|
+
this.checkFilesValidity(this.input.files);
|
|
62
46
|
}
|
|
63
|
-
/**
|
|
47
|
+
/** Get the list of uploaded files */
|
|
64
48
|
async getFiles() {
|
|
65
49
|
return this.files;
|
|
66
50
|
}
|
|
67
|
-
/**
|
|
51
|
+
/** Remove a previously uploaded file */
|
|
68
52
|
async removeFile(fileName) {
|
|
69
|
-
this.removeFileHandler(fileName);
|
|
70
|
-
}
|
|
71
|
-
removeFileHandler(fileName) {
|
|
72
53
|
const files = this.files;
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
files.splice(index, 1);
|
|
78
|
-
this.files = [...files];
|
|
79
|
-
}
|
|
54
|
+
const index = files.findIndex((file) => file.name === fileName);
|
|
55
|
+
if (index >= 0) {
|
|
56
|
+
files.splice(index, 1);
|
|
57
|
+
this.files = [...files];
|
|
80
58
|
}
|
|
81
59
|
}
|
|
82
|
-
|
|
83
|
-
if (
|
|
84
|
-
return
|
|
85
|
-
}
|
|
86
|
-
return this.type;
|
|
87
|
-
}
|
|
88
|
-
handleAccessibility() {
|
|
89
|
-
const lastFile = this.el.querySelector("z-file:last-child z-chip button");
|
|
90
|
-
if (this.files.length > 0 && lastFile) {
|
|
91
|
-
lastFile.focus();
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
this.getType() === ZFileUploadType.DEFAULT
|
|
95
|
-
? this.button.querySelector("button").focus()
|
|
96
|
-
: this.uploadLink.focus();
|
|
60
|
+
checkFilesValidity(files) {
|
|
61
|
+
if (!files.length) {
|
|
62
|
+
return;
|
|
97
63
|
}
|
|
98
|
-
|
|
99
|
-
checkFiles(files) {
|
|
100
|
-
const errors = new Map();
|
|
101
|
-
const sizeErrorString = `supera il limite di ${this.fileMaxSize}MB`;
|
|
102
|
-
const formatErrorString = " ha un formato non supportato";
|
|
103
|
-
files.forEach((file) => {
|
|
64
|
+
Array.from(files).forEach((file) => {
|
|
104
65
|
const fileSize = file.size / 1024 / 1024;
|
|
105
66
|
const fileFormatOk = this.acceptedFormat
|
|
106
67
|
.split(",")
|
|
107
68
|
.some((ext) => file.name.toLowerCase().endsWith(ext.trim()));
|
|
108
69
|
const fileSizeOk = fileSize <= this.fileMaxSize;
|
|
109
|
-
if (fileSizeOk && fileFormatOk) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
this.input.value = "";
|
|
114
|
-
}
|
|
70
|
+
if (fileSizeOk && fileFormatOk && !this.files.find((f) => f.name === file.name)) {
|
|
71
|
+
this.files = [...this.files, file];
|
|
72
|
+
this.fileInput.emit(file);
|
|
73
|
+
this.input.value = "";
|
|
115
74
|
return;
|
|
116
75
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
76
|
+
const sizeError = `Il file ${file.name} supera il limite di ${this.fileMaxSize}MB`;
|
|
77
|
+
const formatError = `Il file ${file.name} ha un formato non supportato`;
|
|
78
|
+
const errors = [
|
|
79
|
+
!fileSizeOk && { cause: "size", message: sizeError },
|
|
80
|
+
!fileFormatOk && { cause: "format", message: formatError },
|
|
81
|
+
].filter(Boolean);
|
|
82
|
+
this.invalidFiles.set(file.name, errors);
|
|
83
|
+
this.invalidFiles = new Map(this.invalidFiles); // trigger state update
|
|
84
|
+
this.fileError.emit({ file: file.name, errors });
|
|
124
85
|
});
|
|
125
|
-
return errors;
|
|
126
86
|
}
|
|
127
|
-
|
|
128
|
-
|
|
87
|
+
resetErrors() {
|
|
88
|
+
this.invalidFiles = new Map();
|
|
89
|
+
}
|
|
90
|
+
onFilesChange(e) {
|
|
91
|
+
this.checkFilesValidity(e.target.files);
|
|
92
|
+
}
|
|
93
|
+
componentWillLoad() {
|
|
94
|
+
// force default type on mobile and tablet viewport
|
|
95
|
+
const mql = window.matchMedia("(max-width: 1151px)");
|
|
96
|
+
this._type = mql.matches ? ZFileUploadType.DEFAULT : this.type;
|
|
97
|
+
mql.addEventListener("change", (e) => {
|
|
98
|
+
this._type = e.matches ? ZFileUploadType.DEFAULT : this.type;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
componentDidUpdate() {
|
|
102
|
+
if (!this.showErrors || !this.invalidFiles.size) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
this.errorModal.open();
|
|
129
106
|
}
|
|
130
107
|
renderDescription(cssClass) {
|
|
131
|
-
|
|
108
|
+
if (!this.description) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
return (h("span", { id: "description", class: cssClass }, this.description));
|
|
132
112
|
}
|
|
133
|
-
|
|
113
|
+
renderAllowedFilesMessage() {
|
|
134
114
|
let fileFormatString = "";
|
|
135
115
|
let fileWeightString = "";
|
|
136
116
|
if (this.acceptedFormat) {
|
|
@@ -143,31 +123,30 @@ const ZFileUpload$1 = /*@__PURE__*/ proxyCustomElement(class ZFileUpload extends
|
|
|
143
123
|
if (this.fileMaxSize) {
|
|
144
124
|
fileWeightString = ` per un massimo di ${this.fileMaxSize}MB di peso`;
|
|
145
125
|
}
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
: null));
|
|
126
|
+
const defaultMessage = fileFormatString || fileWeightString ? `Puoi allegare file${fileFormatString}${fileWeightString}.` : undefined;
|
|
127
|
+
if (!this.allowedFilesMessage && !defaultMessage) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
return h("span", { class: "allowed-files-message body-3" }, this.allowedFilesMessage || defaultMessage);
|
|
152
131
|
}
|
|
153
132
|
renderFileSection() {
|
|
154
133
|
if (!this.hasFileSection) {
|
|
155
134
|
return;
|
|
156
135
|
}
|
|
157
|
-
return (h("section", { class:
|
|
136
|
+
return (h("section", { class: { "files-container": true, "hidden": !this.files.length } }, h("div", { class: "uploaded-files-label heading-3-sb" }, this.uploadedFilesLabel), h("div", { class: "files-wrapper" }, h("slot", { name: "files" }))));
|
|
158
137
|
}
|
|
159
138
|
renderInput() {
|
|
160
|
-
return (h("input",
|
|
139
|
+
return (h("input", { type: "file", name: this.inputName, multiple: true, onChange: (e) => this.onFilesChange(e), accept: this.acceptedFormat, ref: (val) => (this.input = val) }));
|
|
161
140
|
}
|
|
162
141
|
renderUploadButton() {
|
|
163
142
|
return [
|
|
164
|
-
this.renderInput(),
|
|
165
143
|
h("z-button", { onClick: () => this.input.click(), onKeyPress: (e) => {
|
|
166
144
|
if (e.code == "Space" || e.code == "Enter") {
|
|
167
145
|
e.preventDefault();
|
|
168
146
|
this.input.click();
|
|
169
147
|
}
|
|
170
|
-
}, id: "fileSelect", variant: this.buttonVariant, icon: "upload"
|
|
148
|
+
}, id: "fileSelect", variant: this.buttonVariant, icon: "upload" }, this.uploadBtnLabel),
|
|
149
|
+
this.renderInput(),
|
|
171
150
|
];
|
|
172
151
|
}
|
|
173
152
|
renderUploadLink() {
|
|
@@ -178,13 +157,13 @@ const ZFileUpload$1 = /*@__PURE__*/ proxyCustomElement(class ZFileUpload extends
|
|
|
178
157
|
e.preventDefault();
|
|
179
158
|
this.input.click();
|
|
180
159
|
}
|
|
181
|
-
}
|
|
160
|
+
} }, this.uploadClickableMessage), " ", this.uploadMessage),
|
|
182
161
|
];
|
|
183
162
|
}
|
|
184
163
|
renderDefaultMode() {
|
|
185
164
|
return [
|
|
186
165
|
this.renderDescription("body-3-sb"),
|
|
187
|
-
this.
|
|
166
|
+
this.renderAllowedFilesMessage(),
|
|
188
167
|
this.renderFileSection(),
|
|
189
168
|
this.renderUploadButton(),
|
|
190
169
|
];
|
|
@@ -192,25 +171,21 @@ const ZFileUpload$1 = /*@__PURE__*/ proxyCustomElement(class ZFileUpload extends
|
|
|
192
171
|
renderDragDropMode() {
|
|
193
172
|
return [
|
|
194
173
|
this.renderFileSection(),
|
|
195
|
-
h("z-dragdrop-area", { "drag-and-drop-label": this.dragAndDropLabel }, h("div", { class: "text-container" }, this.renderDescription("body-1"), this.renderUploadLink(), this.
|
|
174
|
+
h("z-dragdrop-area", { "drag-and-drop-label": this.dragAndDropLabel }, h("div", { class: "text-container" }, this.renderDescription("body-1"), this.renderUploadLink(), this.renderAllowedFilesMessage())),
|
|
196
175
|
];
|
|
197
176
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
handleErrorModalContent() {
|
|
204
|
-
return (h("div", { slot: "modalContent" }, h("div", { class: "modal-wrapper" }, h("div", { class: "files" }, this.errorModalMessage ? (h("span", { class: "body-3" }, this.errorModalMessage)) : (Array.from(this.invalidFiles).map(([key, value]) => {
|
|
205
|
-
return h("span", { class: "body-3" }, this.formatErrorString(key, value));
|
|
206
|
-
}))))));
|
|
177
|
+
renderFileErrors() {
|
|
178
|
+
return Array.from(this.invalidFiles).map(([fileName, errors]) => {
|
|
179
|
+
const prefix = `Il file ${fileName}`;
|
|
180
|
+
return (h("span", { class: "error-message" }, "Il file ", h("span", { class: "body-3-sb" }, fileName), errors.map(({ message }) => message.replace(prefix, "")).join(" e "), "."));
|
|
181
|
+
});
|
|
207
182
|
}
|
|
208
183
|
render() {
|
|
209
|
-
return (h(Host, { key: '
|
|
184
|
+
return (h(Host, { key: 'ea57cc0462e4358d04bfc8f5709b61be50947e7a' }, this.mainTitle && (h("div", { key: '59e23f66172333b963922832782a8ac89611acb9', id: "title", class: "heading-3-sb" }, this.mainTitle)), this._type == ZFileUploadType.DEFAULT ? this.renderDefaultMode() : this.renderDragDropMode(), !!this.invalidFiles.size && this.showErrors && (h("z-modal", { key: '64cb55a1c0fb491a9dd5b414a309b284e4f2d24e', modalid: `file-upload-${this.type}-error-modal`, ref: (val) => (this.errorModal = val), modaltitle: this.errorModalTitle, onModalClose: () => this.resetErrors(), onModalBackgroundClick: () => this.resetErrors() }, h("div", { key: '255cf2140f1ca881f90df6952965abc8f364f4d0', slot: "modalContent" }, h("div", { key: '03638b6b970c72c73ac7014f0c7848a032029963', class: "modal-wrapper body-3" }, this.errorModalMessage ? this.errorModalMessage : this.renderFileErrors()))))));
|
|
210
185
|
}
|
|
211
|
-
get
|
|
186
|
+
get host() { return this; }
|
|
212
187
|
static get style() { return ZFileUploadStyle0; }
|
|
213
|
-
}, [
|
|
188
|
+
}, [6, "z-file-upload", {
|
|
214
189
|
"type": [513],
|
|
215
190
|
"buttonVariant": [1, "button-variant"],
|
|
216
191
|
"acceptedFormat": [1, "accepted-format"],
|
|
@@ -226,16 +201,19 @@ const ZFileUpload$1 = /*@__PURE__*/ proxyCustomElement(class ZFileUpload extends
|
|
|
226
201
|
"errorModalMessage": [1, "error-modal-message"],
|
|
227
202
|
"uploadedFilesLabel": [1, "uploaded-files-label"],
|
|
228
203
|
"hasFileSection": [4, "has-file-section"],
|
|
204
|
+
"inputName": [1, "input-name"],
|
|
205
|
+
"showErrors": [4, "show-errors"],
|
|
206
|
+
"_type": [32],
|
|
229
207
|
"files": [32],
|
|
230
208
|
"invalidFiles": [32],
|
|
231
209
|
"getFiles": [64],
|
|
232
210
|
"removeFile": [64]
|
|
233
|
-
}, [[0, "removeFile", "
|
|
211
|
+
}, [[0, "removeFile", "onFileRemoved"], [0, "fileDropped", "fileDroppedListener"]]]);
|
|
234
212
|
function defineCustomElement$1() {
|
|
235
213
|
if (typeof customElements === "undefined") {
|
|
236
214
|
return;
|
|
237
215
|
}
|
|
238
|
-
const components = ["z-file-upload", "z-button", "z-
|
|
216
|
+
const components = ["z-file-upload", "z-button", "z-dragdrop-area", "z-icon", "z-modal"];
|
|
239
217
|
components.forEach(tagName => { switch (tagName) {
|
|
240
218
|
case "z-file-upload":
|
|
241
219
|
if (!customElements.get(tagName)) {
|
|
@@ -243,11 +221,6 @@ function defineCustomElement$1() {
|
|
|
243
221
|
}
|
|
244
222
|
break;
|
|
245
223
|
case "z-button":
|
|
246
|
-
if (!customElements.get(tagName)) {
|
|
247
|
-
defineCustomElement$6();
|
|
248
|
-
}
|
|
249
|
-
break;
|
|
250
|
-
case "z-divider":
|
|
251
224
|
if (!customElements.get(tagName)) {
|
|
252
225
|
defineCustomElement$5();
|
|
253
226
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"z-file-upload.js","mappings":";;;;;;;;;AAAA,MAAM,SAAS,GAAG,gnEAAgnE,CAAC;AACnoE,0BAAe,SAAS;;MCQXA,aAAW;;;;;;QA+Ed,oBAAe,GAAG;YACxB,IAAI,EAAE,MAAM;YACZ,EAAE,EAAE,WAAW;YACf,QAAQ,EAAE,IAAI;SACf,CAAC;oBAhFsB,eAAe,CAAC,OAAO;;;;;;qBAwB/B,EAAE;8BAIQ,QAAQ;gCAIN,+CAA+C;;sCAQzC,QAAQ;6BAIjB,6BAA6B;+BAI3B,uBAAuB;;kCAQpB,sBAAsB;8BAIzB,IAAI;;;;IAwB/B,kBAAkB,CAAC,CAAc;QAC/B,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;KAClC;;IAID,mBAAmB,CAAC,CAAc;QAChC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,gBAAgB,EAAE,CAAC;KACzB;IAED,kBAAkB;QAChB,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC3B,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,IAAI,CAAC,UA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,IAE9E,IAAI,CAAC,uBAAuB,EAAE,CACvB,CACX,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ZFileUpload"],"sources":["src/components/file-upload/z-file-upload/styles.css?tag=z-file-upload&encapsulation=shadow","src/components/file-upload/z-file-upload/index.tsx"],"sourcesContent":[":host {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > .container {\n display: flex;\n flex-direction: column;\n}\n\n:host .modal-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: calc(var(--space-unit) * 2);\n}\n\n:host .modal-wrapper > .files-wrapper {\n display: flex;\n flex-direction: column;\n margin: calc(var(--space-unit) * 4);\n gap: var(--space-unit);\n}\n\n:host .text-container {\n display: flex;\n flex-direction: column;\n margin: auto;\n}\n\n:host .text-container .body-1 {\n text-align: center;\n}\n\n:host .text-container .upload-link {\n color: var(--color-text-link-blue);\n cursor: pointer;\n}\n\n:host .text-container .upload-link:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none !important;\n}\n\n:host .text-container .upload-link-text {\n margin-bottom: var(--space-unit);\n}\n\ninput#file-elem {\n display: none;\n}\n\n#title {\n display: inline-block;\n margin: calc(var(--space-unit) * 2.5) 0 calc(var(--space-unit) * 4);\n font-size: calc(var(--space-unit) * 3);\n font-weight: var(--font-sb);\n}\n\n:host > .container > z-button {\n display: inline-block;\n margin-top: calc(var(--space-unit) * 3);\n}\n\n:host > .container > .files-container.hidden {\n display: none;\n}\n\n:host > .container > .files-container > .heading-4-sb {\n display: inline-block;\n margin: calc(var(--space-unit) * 3) 0;\n font-size: calc(var(--space-unit) * 2);\n font-weight: var(--font-sb);\n}\n\n:host([type=\"dragdrop\"]) > .container > .files-container > .heading-4-sb {\n margin-top: 0;\n margin-bottom: calc(var(--space-unit) * 3);\n}\n\n:host > .container > .files-container > .files-wrapper {\n display: flex;\n flex-wrap: wrap;\n column-gap: calc(var(--space-unit) * 2);\n row-gap: calc(var(--space-unit) * 2);\n}\n\n:host > .container > .files-container > z-divider {\n margin-top: calc(var(--space-unit) * 3);\n margin-bottom: 0;\n}\n\n:host([type=\"dragdrop\"]) > .container > .files-container > z-divider {\n margin: calc(var(--space-unit) * 3) 0;\n}\n\n:host .error-message {\n font-size: 14px;\n font-weight: 400;\n letter-spacing: 0.16%;\n line-height: 20px;\n text-align: left;\n}\n\n:host .error-message > .file-name {\n font-weight: 600;\n}\n\n/* Tablet breakpoint */\n@media only screen and (min-width: 768px) {\n :host > .container > z-button {\n align-self: flex-start;\n }\n\n :host .modal-wrapper {\n padding: calc(var(--space-unit) * 3);\n }\n}\n\n@media only screen and (min-width: 1152px) {\n :host .modal-wrapper {\n padding: calc(var(--space-unit) * 4);\n }\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, h} from \"@stencil/core\";\nimport {ButtonVariant, Device, DividerSize, ZFileUploadType} from \"../../../beans\";\nimport {getDevice} from \"../../../utils/utils\";\n\n@Component({\n tag: \"z-file-upload\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZFileUpload {\n /** Prop indicating the file upload type - can be default or dragdrop */\n @Prop({reflect: true})\n type: ZFileUploadType = ZFileUploadType.DEFAULT;\n\n /** Prop indicating the button variant*/\n @Prop()\n buttonVariant?: ButtonVariant;\n\n /** Prop indicating the accepted file type: ex \".pdf, .doc, .jpg\" */\n @Prop()\n acceptedFormat?: string;\n\n /** Max file dimension in Megabyte */\n @Prop()\n fileMaxSize?: number;\n\n /** Title */\n @Prop()\n mainTitle?: string;\n\n /** Description */\n @Prop()\n description?: string;\n\n /** Files added by the user */\n @State()\n files: File[] = [];\n\n /** upoload button label */\n @Prop()\n uploadBtnLabel?: string = \"allega\";\n\n /** drag & drop button label */\n @Prop()\n dragAndDropLabel?: string = \"Rilascia i file in questa area per allegarli.\";\n\n /** allowed file message */\n @Prop()\n allowedFilesMessage?: string;\n\n /** upload clickable message */\n @Prop()\n uploadClickableMessage?: string = \"Carica\";\n\n /** upload message */\n @Prop()\n uploadMessage?: string = \"o trascina dal tuo computer\";\n\n /** error modal title */\n @Prop()\n errorModalTitle?: string = \"Errore di caricamento\";\n\n /** error modal message */\n @Prop()\n errorModalMessage?: string;\n\n /** loaded files label */\n @Prop()\n uploadedFilesLabel?: string = \"File appena caricati\";\n\n /** uploaded files history rendering */\n @Prop()\n hasFileSection?: boolean = true;\n\n /** List of files not allowed to be uploaded */\n @State()\n invalidFiles: Map<string, string[]>;\n\n @Element() el: HTMLZFileUploadElement;\n\n private input: HTMLInputElement;\n\n private button: HTMLZButtonElement;\n\n private errorModal: HTMLZModalElement;\n\n private uploadLink: HTMLSpanElement;\n\n private inputAttributes = {\n type: \"file\",\n id: \"file-elem\",\n multiple: true,\n };\n\n /** Listen removeFile event sent from z-file component */\n @Listen(\"removeFile\")\n removeFileListener(e: CustomEvent): void {\n this.removeFileHandler(e.detail);\n }\n\n /** Listen fileDropped event sent from z-dragdrop-area component */\n @Listen(\"fileDropped\")\n fileDroppedListener(e: CustomEvent): void {\n this.input.files = e.detail;\n this.fileInputHandler();\n }\n\n componentDidUpdate(): void {\n this.handleAccessibility();\n this.invalidFiles.size && this.errorModal.focus();\n }\n\n componentWillLoad(): void {\n this.invalidFiles = new Map<string, string[]>();\n }\n\n /** Emitted when user select one or more files */\n @Event()\n fileInput: EventEmitter;\n\n private fileInputHandler(): void {\n if (this.input.files.length) {\n this.invalidFiles = this.checkFiles(Array.from(this.input.files));\n }\n }\n\n /** get array of uploaded files */\n @Method()\n async getFiles(): Promise<File[]> {\n return this.files;\n }\n\n /** remove file from the array */\n @Method()\n async removeFile(fileName: string): Promise<void> {\n this.removeFileHandler(fileName);\n }\n\n private removeFileHandler(fileName: string): void {\n const files = this.files;\n const file = files.find((file) => file.name === fileName);\n if (file) {\n const index = files.indexOf(file);\n if (index >= 0) {\n files.splice(index, 1);\n this.files = [...files];\n }\n }\n }\n\n private getType(): ZFileUploadType {\n if (getDevice() !== Device.DESKTOP && getDevice() !== Device.DESKTOP_WIDE) {\n return ZFileUploadType.DEFAULT;\n }\n\n return this.type;\n }\n\n private handleAccessibility(): void {\n const lastFile = this.el.querySelector(\"z-file:last-child z-chip button\");\n if (this.files.length > 0 && lastFile) {\n (lastFile as HTMLElement).focus();\n } else {\n this.getType() === ZFileUploadType.DEFAULT\n ? this.button.querySelector(\"button\").focus()\n : this.uploadLink.focus();\n }\n }\n\n private checkFiles(files: File[]): Map<string, string[]> {\n const errors = new Map<string, string[]>();\n const sizeErrorString = `supera il limite di ${this.fileMaxSize}MB`;\n const formatErrorString = \" ha un formato non supportato\";\n files.forEach((file: File) => {\n const fileSize = file.size / 1024 / 1024;\n const fileFormatOk = this.acceptedFormat\n .split(\",\")\n .some((ext: string) => file.name.toLowerCase().endsWith(ext.trim()));\n const fileSizeOk = fileSize <= this.fileMaxSize;\n if (fileSizeOk && fileFormatOk) {\n if (!this.files.find((f) => f.name === file.name)) {\n this.files.push(file);\n this.fileInput.emit(file);\n this.input.value = \"\";\n }\n\n return;\n }\n errors.set(file.name, []);\n if (!fileSizeOk) {\n errors.get(file.name).push(sizeErrorString);\n }\n if (!fileFormatOk) {\n errors.get(file.name).push(formatErrorString);\n }\n });\n\n return errors;\n }\n\n private renderTitle(): HTMLElement {\n return <span id=\"title\">{this.mainTitle}</span>;\n }\n\n private renderDescription(cssClass): HTMLElement {\n return <span class={cssClass}>{this.description}</span>;\n }\n\n private renderAllowedFileExtensions(): HTMLElement {\n let fileFormatString = \"\";\n let fileWeightString = \"\";\n\n if (this.acceptedFormat) {\n const fileFormat = this.acceptedFormat\n .split(\", \")\n .map((string) => string.substring(1).toUpperCase())\n .join(\", \");\n fileFormatString = ` nei formati ${fileFormat}`;\n }\n\n if (this.fileMaxSize) {\n fileWeightString = ` per un massimo di ${this.fileMaxSize}MB di peso`;\n }\n\n const finalString = `Puoi allegare file${fileFormatString}${fileWeightString}.`;\n\n return (\n <span class=\"body-3\">\n {this.allowedFilesMessage\n ? this.allowedFilesMessage\n : fileFormatString || fileWeightString\n ? finalString\n : null}\n </span>\n );\n }\n\n private renderFileSection(): HTMLElement {\n if (!this.hasFileSection) {\n return;\n }\n\n return (\n <section class={`files-container ${!this.files.length ? \"hidden\" : \"\"}`}>\n <span class=\"heading-4-sb\">{this.uploadedFilesLabel}</span>\n <div class=\"files-wrapper\">\n <slot name=\"files\" />\n </div>\n <z-divider size={DividerSize.MEDIUM} />\n </section>\n );\n }\n\n private renderInput(): HTMLInputElement {\n return (\n <input\n {...this.inputAttributes}\n onChange={() => this.fileInputHandler()}\n accept={this.acceptedFormat}\n ref={(val) => (this.input = val)}\n />\n );\n }\n\n private renderUploadButton(): unknown[] {\n return [\n this.renderInput(),\n <z-button\n onClick={() => this.input.click()}\n onKeyPress={(e) => {\n if (e.code == \"Space\" || e.code == \"Enter\") {\n e.preventDefault();\n this.input.click();\n }\n }}\n id=\"fileSelect\"\n variant={this.buttonVariant}\n icon=\"upload\"\n ref={(val) => (this.button = val)}\n >\n {this.uploadBtnLabel}\n </z-button>,\n ];\n }\n\n private renderUploadLink(): unknown[] {\n return [\n this.renderInput(),\n <span class=\"body-1 upload-link-text\">\n <span\n tabIndex={0}\n class=\"body-1-sb upload-link\"\n onClick={() => this.input.click()}\n onKeyPress={(e) => {\n if (e.code == \"Space\" || e.code == \"Enter\") {\n e.preventDefault();\n this.input.click();\n }\n }}\n ref={(val) => (this.uploadLink = val)}\n >\n {this.uploadClickableMessage}\n </span>{\" \"}\n {this.uploadMessage}\n </span>,\n ];\n }\n\n private renderDefaultMode(): unknown[] {\n return [\n this.renderDescription(\"body-3-sb\"),\n this.renderAllowedFileExtensions(),\n this.renderFileSection(),\n this.renderUploadButton(),\n ];\n }\n\n private renderDragDropMode(): unknown[] {\n return [\n this.renderFileSection(),\n <z-dragdrop-area drag-and-drop-label={this.dragAndDropLabel}>\n <div class=\"text-container\">\n {this.renderDescription(\"body-1\")}\n {this.renderUploadLink()}\n {this.renderAllowedFileExtensions()}\n </div>\n </z-dragdrop-area>,\n ];\n }\n\n private formatErrorString(key, value): string {\n const bothErrors = value[0] && value[1] ? \" e \" : \"\";\n\n return (\n <span class=\"error-message\">\n Il file <span class=\"file-name\">{key}</span> {value[1] ?? \"\"}\n {bothErrors}\n {value[0] ?? \"\"}.\n </span>\n );\n }\n\n private handleErrorModalContent(): HTMLDivElement {\n return (\n <div slot=\"modalContent\">\n <div class=\"modal-wrapper\">\n <div class=\"files\">\n {this.errorModalMessage ? (\n <span class=\"body-3\">{this.errorModalMessage}</span>\n ) : (\n Array.from(this.invalidFiles).map(([key, value]) => {\n return <span class=\"body-3\">{this.formatErrorString(key, value)}</span>;\n })\n )}\n </div>\n </div>\n </div>\n );\n }\n\n render(): HTMLZFileUploadElement {\n return (\n <Host>\n <div class={`container ${this.getType()}`}>\n {this.mainTitle && this.renderTitle()}\n {this.getType() == ZFileUploadType.DEFAULT ? this.renderDefaultMode() : this.renderDragDropMode()}\n </div>\n {!!this.invalidFiles.size && (\n <z-modal\n modalid={`file-upload-${this.type}-error-modal`}\n tabIndex={0}\n ref={(val) => (this.errorModal = val)}\n modaltitle={this.errorModalTitle}\n onModalClose={() => (this.invalidFiles = new Map<string, string[]>())}\n onModalBackgroundClick={() => (this.invalidFiles = new Map<string, string[]>())}\n >\n {this.handleErrorModalContent()}\n </z-modal>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"z-file-upload.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,6rEAA6rE,CAAC;AAChtE,0BAAe,SAAS;;MCUXA,aAAW;;;;;;oBAGE,eAAe,CAAC,OAAO;;;;;;8BAwBrB,QAAQ;gCAIN,+CAA+C;;sCAQzC,QAAQ;6BAIjB,6BAA6B;+BAI3B,uBAAuB;;kCAQpB,sBAAsB;8BAIzB,IAAI;yBAIlB,eAAe;0BAOf,IAAI;qBAIgB,IAAI,CAAC,IAAI;qBAI1B,EAAE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AAW,QAAQ,EAAE,CAAC;YAErC,QACE,YAAM,KAAK,EAAC,eAAe,gBACjB,YAAM,KAAK,EAAC,WAAW,IAAE,QAAQ,CAAQ,EAChD,MAAM,CAAC,GAAG,CAAC,CAAC,EAAC,OAAO,EAAC,KAAK,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAC9D,EACP;SACH,CAAC,CAAC;KACJ;IAED,MAAM;QACJ,QACE,EAAC,IAAI,uDACF,IAAI,CAAC,SAAS,KACb,4DACE,EAAE,EAAC,OAAO,EACV,KAAK,EAAC,cAAc,IAEnB,IAAI,CAAC,SAAS,CACX,CACP,EACA,IAAI,CAAC,KAAK,IAAI,eAAe,CAAC,OAAO,GAAG,IAAI,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC,kBAAkB,EAAE,EAC5F,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAC1C,gEACE,OAAO,EAAE,eAAe,IAAI,CAAC,IAAI,cAAc,EAC/C,GAAG,EAAE,CAAC,GAAG,MAAM,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,EACrC,UAAU,EAAE,IAAI,CAAC,eAAe,EAChC,YAAY,EAAE,MAAM,IAAI,CAAC,WAAW,EAAE,EACtC,sBAAsB,EAAE,MAAM,IAAI,CAAC,WAAW,EAAE,IAEhD,4DAAK,IAAI,EAAC,cAAc,IACtB,4DAAK,KAAK,EAAC,sBAAsB,IAC9B,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,EAAE,CACtE,CACF,CACE,CACX,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ZFileUpload"],"sources":["src/components/file-upload/z-file-upload/styles.css?tag=z-file-upload&encapsulation=scoped","src/components/file-upload/z-file-upload/index.tsx"],"sourcesContent":[":host {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host .modal-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: calc(var(--space-unit) * 2);\n row-gap: calc(var(--space-unit) * 2);\n}\n\n:host .modal-wrapper > .files-wrapper {\n display: flex;\n flex-direction: column;\n margin: calc(var(--space-unit) * 4);\n gap: var(--space-unit);\n}\n\n:host .text-container {\n display: flex;\n flex-direction: column;\n margin: auto;\n text-align: center;\n}\n\n:host .text-container .upload-link {\n color: var(--color-text-link-blue);\n cursor: pointer;\n text-decoration: underline;\n}\n\n:host .text-container .upload-link:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none !important;\n}\n\n:host .text-container .upload-link-text {\n margin-bottom: var(--space-unit);\n}\n\n:host input[type=\"file\"] {\n display: none;\n}\n\n:host #title + #description {\n margin-top: var(--space-unit);\n}\n\n:host > * + z-button,\n:host > .files-container + *,\n:host > .files-container:not(:first-child) {\n margin-top: calc(var(--space-unit) * 3);\n}\n\n:host > .files-container.hidden {\n display: none;\n}\n\n:host > .files-container > .uploaded-files-label {\n margin-bottom: calc(var(--space-unit) * 2);\n}\n\n:host > .files-container > .files-wrapper {\n display: flex;\n flex-wrap: wrap;\n column-gap: calc(var(--space-unit) * 2);\n row-gap: calc(var(--space-unit) * 2);\n}\n\n/* Tablet breakpoint */\n@media (min-width: 768px) {\n :host > .container > z-button {\n align-self: flex-start;\n }\n\n :host .modal-wrapper {\n padding: calc(var(--space-unit) * 3);\n }\n}\n\n@media (min-width: 1152px) {\n :host .modal-wrapper {\n padding: calc(var(--space-unit) * 4);\n }\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, h} from \"@stencil/core\";\nimport {ButtonVariant, ZFileUploadType} from \"../../../beans\";\n\nexport type ZFileUploadError = {cause: \"format\" | \"size\"; message: string};\n\n@Component({\n tag: \"z-file-upload\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZFileUpload {\n /** Prop indicating the file upload type - can be default or dragdrop */\n @Prop({reflect: true})\n type: ZFileUploadType = ZFileUploadType.DEFAULT;\n\n /** Prop indicating the button variant*/\n @Prop()\n buttonVariant?: ButtonVariant;\n\n /** Prop indicating the accepted file type: ex \".pdf, .doc, .jpg\" */\n @Prop()\n acceptedFormat?: string;\n\n /** Max file dimension in Megabyte */\n @Prop()\n fileMaxSize?: number;\n\n /** Title */\n @Prop()\n mainTitle?: string;\n\n /** Description */\n @Prop()\n description?: string;\n\n /** upoload button label */\n @Prop()\n uploadBtnLabel?: string = \"allega\";\n\n /** drag & drop button label */\n @Prop()\n dragAndDropLabel?: string = \"Rilascia i file in questa area per allegarli.\";\n\n /** allowed file message */\n @Prop()\n allowedFilesMessage?: string;\n\n /** upload clickable message */\n @Prop()\n uploadClickableMessage?: string = \"Carica\";\n\n /** upload message */\n @Prop()\n uploadMessage?: string = \"o trascina dal tuo computer\";\n\n /** error modal title */\n @Prop()\n errorModalTitle?: string = \"Errore di caricamento\";\n\n /** error modal message */\n @Prop()\n errorModalMessage?: string;\n\n /** loaded files label */\n @Prop()\n uploadedFilesLabel?: string = \"File appena caricati\";\n\n /** uploaded files history rendering */\n @Prop()\n hasFileSection?: boolean = true;\n\n /** Value to set on the file input's `name` attribute (for use with forms) */\n @Prop()\n inputName? = \"z-file-upload\";\n\n /**\n * Whether to show errors in the internal modal or leave the handling to the app.\n * Errors will still be emitted.\n */\n @Prop()\n showErrors = true;\n\n /** Internal store of the component type. It will change when viewport goes from desktop to tablet/mobile and vice versa */\n @State()\n private _type: ZFileUploadType = this.type;\n\n /** Files added by the user */\n @State()\n files: File[] = [];\n\n /** Map of files whose upload caused an error and the relative errors, with the cause and a message */\n @State()\n invalidFiles: Map<string, ZFileUploadError[]> = new Map<string, ZFileUploadError[]>();\n\n /** Emitted when user select one or more files */\n @Event()\n fileInput: EventEmitter<File>;\n\n /**\n * Emits an array of error messages related to one or more files not allowed.\n * Emitted when some file is dropped or selected.\n */\n @Event()\n fileError: EventEmitter<{file: string; errors: ZFileUploadError[]}>;\n\n @Element() host: HTMLZFileUploadElement;\n\n private input: HTMLInputElement;\n\n private errorModal: HTMLZModalElement;\n\n /** Listen `removeFile` event sent from z-file component */\n @Listen(\"removeFile\")\n onFileRemoved(e: CustomEvent): void {\n this.removeFile(e.detail);\n }\n\n /** Listen fileDropped event sent from z-dragdrop-area component */\n @Listen(\"fileDropped\")\n fileDroppedListener(e: CustomEvent): void {\n this.input.files = e.detail;\n this.checkFilesValidity(this.input.files);\n }\n\n /** Get the list of uploaded files */\n @Method()\n async getFiles(): Promise<File[]> {\n return this.files;\n }\n\n /** Remove a previously uploaded file */\n @Method()\n async removeFile(fileName: string): Promise<void> {\n const files = this.files;\n const index = files.findIndex((file) => file.name === fileName);\n if (index >= 0) {\n files.splice(index, 1);\n this.files = [...files];\n }\n }\n\n private checkFilesValidity(files: FileList): Map<string, string[]> {\n if (!files.length) {\n return;\n }\n\n Array.from(files).forEach((file: File) => {\n const fileSize = file.size / 1024 / 1024;\n const fileFormatOk = this.acceptedFormat\n .split(\",\")\n .some((ext: string) => file.name.toLowerCase().endsWith(ext.trim()));\n const fileSizeOk = fileSize <= this.fileMaxSize;\n if (fileSizeOk && fileFormatOk && !this.files.find((f) => f.name === file.name)) {\n this.files = [...this.files, file];\n this.fileInput.emit(file);\n this.input.value = \"\";\n\n return;\n }\n\n const sizeError = `Il file ${file.name} supera il limite di ${this.fileMaxSize}MB`;\n const formatError = `Il file ${file.name} ha un formato non supportato`;\n const errors = [\n !fileSizeOk && {cause: \"size\" as const, message: sizeError},\n !fileFormatOk && {cause: \"format\" as const, message: formatError},\n ].filter(Boolean);\n this.invalidFiles.set(file.name, errors);\n this.invalidFiles = new Map(this.invalidFiles); // trigger state update\n this.fileError.emit({file: file.name, errors});\n });\n }\n\n private resetErrors(): void {\n this.invalidFiles = new Map<string, ZFileUploadError[]>();\n }\n\n private onFilesChange(e: Event): void {\n this.checkFilesValidity((e.target as HTMLInputElement).files);\n }\n\n componentWillLoad(): void {\n // force default type on mobile and tablet viewport\n const mql = window.matchMedia(\"(max-width: 1151px)\");\n this._type = mql.matches ? ZFileUploadType.DEFAULT : this.type;\n mql.addEventListener(\"change\", (e) => {\n this._type = e.matches ? ZFileUploadType.DEFAULT : this.type;\n });\n }\n\n componentDidUpdate(): void {\n if (!this.showErrors || !this.invalidFiles.size) {\n return;\n }\n\n this.errorModal.open();\n }\n\n private renderDescription(cssClass): HTMLElement | undefined {\n if (!this.description) {\n return;\n }\n\n return (\n <span\n id=\"description\"\n class={cssClass}\n >\n {this.description}\n </span>\n );\n }\n\n private renderAllowedFilesMessage(): HTMLElement {\n let fileFormatString = \"\";\n let fileWeightString = \"\";\n\n if (this.acceptedFormat) {\n const fileFormat = this.acceptedFormat\n .split(\", \")\n .map((string) => string.substring(1).toUpperCase())\n .join(\", \");\n fileFormatString = ` nei formati ${fileFormat}`;\n }\n\n if (this.fileMaxSize) {\n fileWeightString = ` per un massimo di ${this.fileMaxSize}MB di peso`;\n }\n\n const defaultMessage =\n fileFormatString || fileWeightString ? `Puoi allegare file${fileFormatString}${fileWeightString}.` : undefined;\n\n if (!this.allowedFilesMessage && !defaultMessage) {\n return;\n }\n\n return <span class=\"allowed-files-message body-3\">{this.allowedFilesMessage || defaultMessage}</span>;\n }\n\n private renderFileSection(): HTMLElement {\n if (!this.hasFileSection) {\n return;\n }\n\n return (\n <section class={{\"files-container\": true, \"hidden\": !this.files.length}}>\n <div class=\"uploaded-files-label heading-3-sb\">{this.uploadedFilesLabel}</div>\n <div class=\"files-wrapper\">\n <slot name=\"files\" />\n </div>\n </section>\n );\n }\n\n private renderInput(): HTMLInputElement {\n return (\n <input\n type=\"file\"\n name={this.inputName}\n multiple\n onChange={(e) => this.onFilesChange(e)}\n accept={this.acceptedFormat}\n ref={(val) => (this.input = val)}\n />\n );\n }\n\n private renderUploadButton(): unknown[] {\n return [\n <z-button\n onClick={() => this.input.click()}\n onKeyPress={(e) => {\n if (e.code == \"Space\" || e.code == \"Enter\") {\n e.preventDefault();\n this.input.click();\n }\n }}\n id=\"fileSelect\"\n variant={this.buttonVariant}\n icon=\"upload\"\n >\n {this.uploadBtnLabel}\n </z-button>,\n this.renderInput(),\n ];\n }\n\n private renderUploadLink(): unknown[] {\n return [\n this.renderInput(),\n <span class=\"body-1 upload-link-text\">\n <span\n tabIndex={0}\n class=\"body-1-sb upload-link\"\n onClick={() => this.input.click()}\n onKeyPress={(e) => {\n if (e.code == \"Space\" || e.code == \"Enter\") {\n e.preventDefault();\n this.input.click();\n }\n }}\n >\n {this.uploadClickableMessage}\n </span>{\" \"}\n {this.uploadMessage}\n </span>,\n ];\n }\n\n private renderDefaultMode(): unknown[] {\n return [\n this.renderDescription(\"body-3-sb\"),\n this.renderAllowedFilesMessage(),\n this.renderFileSection(),\n this.renderUploadButton(),\n ];\n }\n\n private renderDragDropMode(): unknown[] {\n return [\n this.renderFileSection(),\n <z-dragdrop-area drag-and-drop-label={this.dragAndDropLabel}>\n <div class=\"text-container\">\n {this.renderDescription(\"body-1\")}\n {this.renderUploadLink()}\n {this.renderAllowedFilesMessage()}\n </div>\n </z-dragdrop-area>,\n ];\n }\n\n private renderFileErrors(): HTMLElement[] {\n return Array.from(this.invalidFiles).map(([fileName, errors]) => {\n const prefix = `Il file ${fileName}`;\n\n return (\n <span class=\"error-message\">\n Il file <span class=\"body-3-sb\">{fileName}</span>\n {errors.map(({message}) => message.replace(prefix, \"\")).join(\" e \")}.\n </span>\n );\n });\n }\n\n render(): HTMLZFileUploadElement {\n return (\n <Host>\n {this.mainTitle && (\n <div\n id=\"title\"\n class=\"heading-3-sb\"\n >\n {this.mainTitle}\n </div>\n )}\n {this._type == ZFileUploadType.DEFAULT ? this.renderDefaultMode() : this.renderDragDropMode()}\n {!!this.invalidFiles.size && this.showErrors && (\n <z-modal\n modalid={`file-upload-${this.type}-error-modal`}\n ref={(val) => (this.errorModal = val)}\n modaltitle={this.errorModalTitle}\n onModalClose={() => this.resetErrors()}\n onModalBackgroundClick={() => this.resetErrors()}\n >\n <div slot=\"modalContent\">\n <div class=\"modal-wrapper body-3\">\n {this.errorModalMessage ? this.errorModalMessage : this.renderFileErrors()}\n </div>\n </div>\n </z-modal>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -42,7 +42,7 @@ const ZFile$1 = /*@__PURE__*/ proxyCustomElement(class ZFile extends HTMLElement
|
|
|
42
42
|
return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '9a670c454baa87afc7d1c9e47a744eecaa074c68' }, this.allowPopover && (h("z-popover", { key: '8d5d38d65a09aee75d56b888b9828a3f8a9e1626', open: this.popoverVisible, position: PopoverPosition.AUTO, bindTo: this.chip }, h("span", { key: 'c24e0d8afecbe3fdfb6370c76ddc0db54f597497', class: "body-5 tooltip-content" }, this.ellipsis.innerText))), h("z-chip", { key: 'a5c4ff0f9366bb59d581c9d48606d8989bbed678', ref: (el) => (this.chip = el), id: `chip-${this.fileNumber}`, interactiveIcon: "multiply-circled", type: ZChipType.DEFAULT }, h("span", { key: 'eed1a949170a44f7ff618ec3e363923aea656742', ref: (el) => (this.ellipsis = el), tabIndex: -1 }, this.fileName))));
|
|
46
46
|
}
|
|
47
47
|
get el() { return this; }
|
|
48
48
|
static get style() { return ZFileStyle0; }
|
|
@@ -17,7 +17,7 @@ const ZInfoBox$1 = /*@__PURE__*/ proxyCustomElement(class ZInfoBox extends HTMLE
|
|
|
17
17
|
this.infoBoxClose.emit({ boxid: this.boxid });
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h("div", { key: '
|
|
20
|
+
return (h("div", { key: 'bff4d7fdd01fae2697f23b03515d9cb93a53127d', id: this.boxid }, h("slot", { key: 'a2d80c39c0cc7c115974a4d5da52c2189ab830c9', name: "content" }), this.isclosable && (h("z-icon", { key: '555579d0bf7c1e654055fe4c552c4e89af0fb513', name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() }))));
|
|
21
21
|
}
|
|
22
22
|
static get style() { return ZInfoBoxStyle0; }
|
|
23
23
|
}, [1, "z-info-box", {
|
|
@@ -23,7 +23,7 @@ const ZLogo$1 = /*@__PURE__*/ proxyCustomElement(class ZLogo extends HTMLElement
|
|
|
23
23
|
if (this.height) {
|
|
24
24
|
style["height"] = style["max-height"] = `${this.height}px`;
|
|
25
25
|
}
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '43def5f659303a7fa03bdf8a48bf03dacc379dde', style: style, class: { mobile: !!this.mobileLogo } }, this.link ? (h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, h("img", { alt: this.imageAlt }))) : (h("img", { alt: this.imageAlt }))));
|
|
27
27
|
}
|
|
28
28
|
static get style() { return ZLogoStyle0; }
|
|
29
29
|
}, [1, "z-logo", {
|