@zanichelli/albe-web-components 19.2.0 → 19.2.1-RC
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/dist/cjs/{index-5eb95b44.js → index-012853a0.js} +2 -2
- package/dist/cjs/{index-5eb95b44.js.map → index-012853a0.js.map} +1 -1
- package/dist/cjs/{index-d214a119.js → index-1d7a50cc.js} +2 -2
- package/dist/cjs/{index-d214a119.js.map → index-1d7a50cc.js.map} +1 -1
- package/dist/cjs/{index-8770e71a.js → index-2dff20f5.js} +2 -2
- package/dist/cjs/{index-8770e71a.js.map → index-2dff20f5.js.map} +1 -1
- package/dist/cjs/{index-1ee051ca.js → index-86a8a3a4.js} +2 -2
- package/dist/cjs/{index-1ee051ca.js.map → index-86a8a3a4.js.map} +1 -1
- package/dist/cjs/{index-844c7a99.js → index-938c9669.js} +4 -4
- package/dist/cjs/{index-844c7a99.js.map → index-938c9669.js.map} +1 -1
- package/dist/cjs/{index-43dfc8b2.js → index-cb280932.js} +2 -2
- package/dist/cjs/{index-43dfc8b2.js.map → index-cb280932.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 +11 -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 +1 -1
- package/dist/cjs/z-app-header-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +18 -20
- package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-avatar.cjs.entry.js +2 -2
- package/dist/cjs/z-book-card-app.cjs.entry.js +1 -1
- package/dist/cjs/z-book-card-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-book-cover.cjs.entry.js +1 -1
- package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +2 -2
- package/dist/cjs/z-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-combobox.cjs.entry.js +1 -1
- package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
- package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +6 -6
- package/dist/cjs/z-file.cjs.entry.js +1 -1
- package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
- package/dist/cjs/z-info-box.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
- package/dist/cjs/z-logo.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
- package/dist/cjs/z-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +1 -1
- package/dist/cjs/z-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 +42 -45
- package/dist/cjs/z-toast-notification.cjs.entry.js.map +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-tool.cjs.entry.js +2 -2
- package/dist/cjs/z-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/z-tr.cjs.entry.js +3 -3
- package/dist/cjs/z-tree-list.cjs.entry.js +1 -1
- package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/collection/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-section-deprecated/index.js +1 -1
- package/dist/collection/components/deprecated/z-section-title/index.js +1 -1
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js +2 -2
- package/dist/collection/components/file-upload/z-file/index.js +1 -1
- package/dist/collection/components/list/z-list/index.js +1 -1
- package/dist/collection/components/list/z-list-element/index.js +1 -1
- package/dist/collection/components/list/z-list-group/index.js +2 -2
- package/dist/collection/components/list/z-tree-list/index.js +1 -1
- package/dist/collection/components/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 +15 -1
- package/dist/collection/components/z-accordion/index.js.map +1 -1
- package/dist/collection/components/z-accordion/index.stories.js +4 -4
- package/dist/collection/components/z-accordion/index.stories.js.map +1 -1
- package/dist/collection/components/z-accordion/styles.css +2 -34
- package/dist/collection/components/z-anchor-navigation/index.js +1 -1
- package/dist/collection/components/z-app-header/index.js +1 -1
- package/dist/collection/components/z-aria-alert/index.js +1 -1
- package/dist/collection/components/z-avatar/index.js +2 -2
- package/dist/collection/components/z-book-cover/index.js +1 -1
- package/dist/collection/components/z-breadcrumb/index.js +2 -2
- package/dist/collection/components/z-button-sort/index.js +1 -1
- package/dist/collection/components/z-chip/index.js +2 -2
- package/dist/collection/components/z-color-picker/index.js +1 -1
- package/dist/collection/components/z-combobox/index.js +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 +4 -6
- package/dist/collection/components/z-icon/index.js.map +1 -1
- package/dist/collection/components/z-icon/styles.css +3 -2
- package/dist/collection/components/z-info-box/index.js +1 -1
- package/dist/collection/components/z-info-reveal/index.js +1 -1
- package/dist/collection/components/z-input/index.js +1 -1
- package/dist/collection/components/z-input-message/index.js +1 -1
- package/dist/collection/components/z-logo/index.js +1 -1
- package/dist/collection/components/z-menu-section/index.js +1 -1
- package/dist/collection/components/z-modal/index.js +4 -4
- package/dist/collection/components/z-navigation-tabs/index.js +2 -2
- package/dist/collection/components/z-notification/index.js +1 -1
- package/dist/collection/components/z-offcanvas/index.js +2 -2
- 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-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 +43 -45
- package/dist/collection/components/z-toast-notification/index.js.map +1 -1
- package/dist/collection/components/z-toast-notification/index.stories.js +3 -1
- package/dist/collection/components/z-toast-notification/index.stories.js.map +1 -1
- package/dist/collection/components/z-toast-notification/styles.css +124 -124
- 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-tool/index.js +2 -2
- package/dist/collection/components/z-toolbar/index.js +1 -1
- package/dist/collection/components/z-tooltip/index.js +1 -1
- package/dist/collection/components/z-visually-hidden/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
- package/dist/components/index10.js +5 -7
- package/dist/components/index10.js.map +1 -1
- package/dist/components/index11.js +1 -1
- package/dist/components/index12.js +1 -1
- package/dist/components/index13.js +1 -1
- package/dist/components/index14.js +1 -1
- package/dist/components/index15.js +1 -1
- package/dist/components/index16.js +2 -2
- package/dist/components/index17.js +4 -4
- 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 +2 -2
- package/dist/components/index24.js +1 -1
- package/dist/components/index25.js +1 -1
- package/dist/components/index26.js +2 -2
- package/dist/components/index27.js +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/index4.js +1 -1
- package/dist/components/index6.js +2 -2
- package/dist/components/index7.js +1 -1
- package/dist/components/index8.js +2 -2
- package/dist/components/index9.js +1 -1
- package/dist/components/z-accordion.js +13 -3
- package/dist/components/z-accordion.js.map +1 -1
- package/dist/components/z-anchor-navigation.js +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-breadcrumb.js +2 -2
- package/dist/components/z-button-sort.js +1 -1
- package/dist/components/z-color-picker.js +1 -1
- package/dist/components/z-combobox.js +1 -1
- package/dist/components/z-cover-hero.js +2 -2
- package/dist/components/z-date-picker.js +1 -1
- package/dist/components/z-file.js +1 -1
- package/dist/components/z-info-box.js +1 -1
- package/dist/components/z-logo.js +1 -1
- package/dist/components/z-menu-deprecated.js +1 -1
- package/dist/components/z-menu-section-deprecated.js +1 -1
- package/dist/components/z-menu-section.js +1 -1
- package/dist/components/z-myz-card-alert.js +1 -1
- package/dist/components/z-myz-card-dictionary.js +1 -1
- package/dist/components/z-myz-card-footer-sections.js +1 -1
- package/dist/components/z-myz-card-footer.js +1 -1
- package/dist/components/z-myz-card-icon.js +1 -1
- package/dist/components/z-myz-card-info.js +1 -1
- package/dist/components/z-myz-card-list.js +1 -1
- package/dist/components/z-myz-list.js +1 -1
- package/dist/components/z-navigation-tabs.js +2 -2
- package/dist/components/z-notification.js +1 -1
- package/dist/components/z-otp.js +2 -2
- package/dist/components/z-panel-elem.js +2 -2
- package/dist/components/z-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 +44 -46
- package/dist/components/z-toast-notification.js.map +1 -1
- package/dist/components/z-toggle-button.js +2 -2
- package/dist/components/z-toggle-switch.js +3 -3
- package/dist/components/z-tool.js +2 -2
- package/dist/components/z-toolbar.js +1 -1
- package/dist/components/z-tr.js +1 -1
- package/dist/components/z-tree-list.js +1 -1
- package/dist/components/z-visually-hidden.js +1 -1
- package/dist/esm/{index-599cd05a.js → index-09bfb4ee.js} +2 -2
- package/dist/esm/{index-599cd05a.js.map → index-09bfb4ee.js.map} +1 -1
- package/dist/esm/{index-41934729.js → index-3856a6ca.js} +2 -2
- package/dist/esm/{index-41934729.js.map → index-3856a6ca.js.map} +1 -1
- package/dist/esm/{index-21176e80.js → index-455c0a68.js} +2 -2
- package/dist/esm/{index-21176e80.js.map → index-455c0a68.js.map} +1 -1
- package/dist/esm/{index-39a920c4.js → index-6c43bc70.js} +2 -2
- package/dist/esm/{index-39a920c4.js.map → index-6c43bc70.js.map} +1 -1
- package/dist/esm/{index-d003e5d7.js → index-83248f5c.js} +4 -4
- package/dist/esm/{index-d003e5d7.js.map → index-83248f5c.js.map} +1 -1
- package/dist/esm/{index-4845b32f.js → index-f8517155.js} +2 -2
- package/dist/esm/{index-4845b32f.js.map → index-f8517155.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 +12 -3
- 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 +1 -1
- package/dist/esm/z-app-header-deprecated.entry.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +18 -20
- package/dist/esm/z-app-header_12.entry.js.map +1 -1
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +2 -2
- package/dist/esm/z-book-card-app.entry.js +1 -1
- package/dist/esm/z-book-card-deprecated.entry.js +1 -1
- package/dist/esm/z-book-cover.entry.js +1 -1
- package/dist/esm/z-breadcrumb.entry.js +2 -2
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +2 -2
- package/dist/esm/z-color-picker.entry.js +1 -1
- package/dist/esm/z-combobox.entry.js +1 -1
- package/dist/esm/z-cover-hero.entry.js +2 -2
- package/dist/esm/z-date-picker.entry.js +1 -1
- package/dist/esm/z-dragdrop-area_2.entry.js +6 -6
- package/dist/esm/z-file.entry.js +1 -1
- package/dist/esm/z-ghost-loading.entry.js +1 -1
- package/dist/esm/z-info-box.entry.js +1 -1
- package/dist/esm/z-info-reveal.entry.js +1 -1
- package/dist/esm/z-logo.entry.js +1 -1
- package/dist/esm/z-menu-deprecated.entry.js +1 -1
- package/dist/esm/z-menu-section-deprecated.entry.js +1 -1
- package/dist/esm/z-menu-section.entry.js +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +1 -1
- package/dist/esm/z-myz-card-list.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +4 -4
- package/dist/esm/z-myz-list-item.entry.js +1 -1
- package/dist/esm/z-myz-list.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +2 -2
- package/dist/esm/z-notification.entry.js +1 -1
- package/dist/esm/z-otp.entry.js +2 -2
- package/dist/esm/z-panel-elem.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +1 -1
- package/dist/esm/z-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 +42 -45
- package/dist/esm/z-toast-notification.entry.js.map +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-tool.entry.js +2 -2
- package/dist/esm/z-toolbar.entry.js +1 -1
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/esm/z-tr.entry.js +3 -3
- package/dist/esm/z-tree-list.entry.js +1 -1
- package/dist/esm/z-visually-hidden.entry.js +1 -1
- package/dist/types/components/z-accordion/index.d.ts +5 -0
- package/dist/types/components/z-accordion/index.stories.d.ts +4 -4
- package/dist/types/components/z-icon/index.d.ts +2 -1
- package/dist/types/components/z-toast-notification/index.d.ts +8 -7
- package/dist/types/components/z-toast-notification/index.stories.d.ts +11 -1
- package/{www/build/p-e38a5dd2.entry.js → dist/web-components-library/p-0643d684.entry.js} +2 -2
- package/dist/web-components-library/{p-6ef58a14.entry.js → p-0aed3ddc.entry.js} +2 -2
- package/dist/web-components-library/{p-59baa7f5.entry.js → p-19103e70.entry.js} +2 -2
- package/dist/web-components-library/{p-b4b264b1.entry.js → p-252893a8.entry.js} +2 -2
- package/{www/build/p-84ed6163.entry.js → dist/web-components-library/p-26ed6c96.entry.js} +2 -2
- package/{www/build/p-2501dd29.entry.js → dist/web-components-library/p-2d4cf6ff.entry.js} +2 -2
- package/dist/web-components-library/{p-f0f53bb2.entry.js → p-30a78a06.entry.js} +2 -2
- package/dist/web-components-library/p-32bc8a40.entry.js +2 -0
- package/dist/web-components-library/p-32bc8a40.entry.js.map +1 -0
- package/dist/web-components-library/p-3977b0ae.entry.js +2 -0
- package/dist/web-components-library/p-3ba7621b.entry.js +2 -0
- package/dist/web-components-library/p-42abfe3b.entry.js +2 -0
- package/dist/web-components-library/{p-de313d96.entry.js → p-4504375f.entry.js} +2 -2
- package/{www/build/p-f9e41b2e.entry.js → dist/web-components-library/p-47813782.entry.js} +2 -2
- package/{www/build/p-6d61933f.entry.js → dist/web-components-library/p-47b59f05.entry.js} +2 -2
- package/{www/build/p-a7bb5e87.js → dist/web-components-library/p-4844c774.js} +2 -2
- package/{www/build/p-7d6c4b21.entry.js → dist/web-components-library/p-55e5e53a.entry.js} +2 -2
- package/dist/web-components-library/{p-c03767a4.entry.js → p-565c1815.entry.js} +2 -2
- package/{www/build/p-6d11da08.entry.js → dist/web-components-library/p-58aeaf21.entry.js} +2 -2
- package/dist/web-components-library/{p-d1a04722.entry.js → p-5905cca0.entry.js} +2 -2
- package/dist/web-components-library/{p-cc87d814.entry.js → p-5989465b.entry.js} +2 -2
- package/{www/build/p-b8211903.entry.js → dist/web-components-library/p-5e2f6ab7.entry.js} +2 -2
- package/{www/build/p-7b199026.entry.js → dist/web-components-library/p-613987cd.entry.js} +2 -2
- package/dist/web-components-library/{p-b854cc3d.entry.js → p-6164feb9.entry.js} +2 -2
- package/dist/web-components-library/p-623fdee4.js +2 -0
- package/dist/web-components-library/{p-5f1e17cb.js → p-68d91a93.js} +2 -2
- package/dist/web-components-library/p-6c6a655e.entry.js +2 -0
- package/dist/web-components-library/{p-03a558ef.entry.js.map → p-6c6a655e.entry.js.map} +1 -1
- package/dist/web-components-library/{p-eb9161bc.entry.js → p-6c9cd6be.entry.js} +2 -2
- package/dist/web-components-library/{p-76003048.entry.js → p-6d15da6f.entry.js} +2 -2
- package/dist/web-components-library/{p-d1fe7960.entry.js → p-6e13aa8e.entry.js} +2 -2
- package/dist/web-components-library/{p-661bce1c.entry.js → p-767b66ca.entry.js} +2 -2
- package/{www/build/p-c645dc11.entry.js → dist/web-components-library/p-76d1d0e4.entry.js} +2 -2
- package/{www/build/p-684142d7.entry.js → dist/web-components-library/p-771dea79.entry.js} +2 -2
- package/dist/web-components-library/{p-c57bb632.entry.js → p-7a4f6a5b.entry.js} +2 -2
- package/dist/web-components-library/p-7b837e11.js +2 -0
- package/dist/web-components-library/{p-332e0361.entry.js → p-7d655f96.entry.js} +2 -2
- package/dist/web-components-library/p-82eeea83.entry.js +2 -0
- package/dist/web-components-library/{p-db2c3235.entry.js → p-862989b6.entry.js} +2 -2
- package/dist/web-components-library/{p-90690d4d.entry.js → p-8988eee3.entry.js} +2 -2
- package/dist/web-components-library/{p-54cd104c.js → p-8b367393.js} +2 -2
- package/dist/web-components-library/{p-5cdd431e.entry.js → p-8c52635e.entry.js} +2 -2
- package/dist/web-components-library/{p-3f66654f.entry.js → p-8fd50cc5.entry.js} +2 -2
- package/{www/build/p-2bba665d.entry.js → dist/web-components-library/p-92f13701.entry.js} +2 -2
- package/dist/web-components-library/{p-4df66afe.entry.js → p-93d349ee.entry.js} +2 -2
- package/dist/web-components-library/{p-ddae9016.entry.js → p-943db3a8.entry.js} +2 -2
- package/dist/web-components-library/p-988a58dd.entry.js +2 -0
- package/dist/web-components-library/p-9ae0c0c6.entry.js +2 -0
- package/dist/web-components-library/{p-2a04c00e.entry.js.map → p-9ae0c0c6.entry.js.map} +1 -1
- package/dist/web-components-library/{p-80285500.js → p-9c816a3b.js} +2 -2
- package/{www/build/p-3d02ad75.entry.js → dist/web-components-library/p-a2ee659d.entry.js} +2 -2
- package/dist/web-components-library/{p-1939116a.entry.js → p-a4d2cf55.entry.js} +2 -2
- package/dist/web-components-library/p-a5146ef3.entry.js +2 -0
- package/dist/web-components-library/p-a5146ef3.entry.js.map +1 -0
- package/dist/web-components-library/{p-9a63ec80.entry.js → p-a8609510.entry.js} +2 -2
- package/{www/build/p-b1f2388a.entry.js → dist/web-components-library/p-aaa96c12.entry.js} +2 -2
- package/dist/web-components-library/{p-dba260f2.entry.js → p-b391211f.entry.js} +2 -2
- package/dist/web-components-library/{p-0989655c.entry.js → p-b54d923e.entry.js} +2 -2
- package/dist/web-components-library/{p-15951fc6.entry.js → p-b7056859.entry.js} +2 -2
- package/dist/web-components-library/{p-1e0d85d5.entry.js → p-b71a3f69.entry.js} +2 -2
- package/dist/web-components-library/{p-19172b2c.entry.js → p-b7ec2cc4.entry.js} +2 -2
- package/dist/web-components-library/{p-0a192ddf.entry.js → p-c12f93e4.entry.js} +2 -2
- package/dist/web-components-library/{p-d5ebbfdf.entry.js → p-c811b0cf.entry.js} +2 -2
- package/dist/web-components-library/p-c89e1f4b.entry.js +2 -0
- package/dist/web-components-library/{p-c5e032de.entry.js.map → p-c89e1f4b.entry.js.map} +1 -1
- package/dist/web-components-library/{p-c0b4f29d.entry.js → p-c9b81cab.entry.js} +2 -2
- package/dist/web-components-library/{p-2f45f1ff.entry.js → p-cbc09112.entry.js} +2 -2
- package/dist/web-components-library/p-da3abb97.entry.js +2 -0
- package/dist/web-components-library/{p-c93c6135.entry.js.map → p-da3abb97.entry.js.map} +1 -1
- package/dist/web-components-library/{p-5fda8769.entry.js → p-e8eacbeb.entry.js} +4 -4
- package/dist/web-components-library/p-e8eacbeb.entry.js.map +1 -0
- package/dist/web-components-library/p-efa6b991.entry.js +2 -0
- package/{www/build/p-57dcff49.entry.js → dist/web-components-library/p-f4b987ed.entry.js} +2 -2
- package/dist/web-components-library/{p-215b1fa5.entry.js → p-f662e7ff.entry.js} +2 -2
- package/dist/web-components-library/p-f92e0c29.entry.js +2 -0
- package/dist/web-components-library/{p-71f62226.entry.js → p-ff89d630.entry.js} +2 -2
- package/dist/web-components-library/web-components-library.css +23 -25
- 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 +3 -2
- package/{dist/web-components-library/p-e38a5dd2.entry.js → www/build/p-0643d684.entry.js} +2 -2
- package/www/build/{p-6ef58a14.entry.js → p-0aed3ddc.entry.js} +2 -2
- package/www/build/{p-385363df.js → p-156f9df4.js} +1 -1
- package/www/build/{p-59baa7f5.entry.js → p-19103e70.entry.js} +2 -2
- package/www/build/{p-b4b264b1.entry.js → p-252893a8.entry.js} +2 -2
- package/{dist/web-components-library/p-84ed6163.entry.js → www/build/p-26ed6c96.entry.js} +2 -2
- package/{dist/web-components-library/p-2501dd29.entry.js → www/build/p-2d4cf6ff.entry.js} +2 -2
- package/www/build/{p-f0f53bb2.entry.js → p-30a78a06.entry.js} +2 -2
- package/www/build/p-32bc8a40.entry.js +2 -0
- package/www/build/p-32bc8a40.entry.js.map +1 -0
- package/www/build/p-3977b0ae.entry.js +2 -0
- package/www/build/p-3ba7621b.entry.js +2 -0
- package/www/build/p-42abfe3b.entry.js +2 -0
- package/www/build/{p-de313d96.entry.js → p-4504375f.entry.js} +2 -2
- package/{dist/web-components-library/p-f9e41b2e.entry.js → www/build/p-47813782.entry.js} +2 -2
- package/{dist/web-components-library/p-6d61933f.entry.js → www/build/p-47b59f05.entry.js} +2 -2
- package/{dist/web-components-library/p-a7bb5e87.js → www/build/p-4844c774.js} +2 -2
- package/{dist/web-components-library/p-7d6c4b21.entry.js → www/build/p-55e5e53a.entry.js} +2 -2
- package/www/build/{p-c03767a4.entry.js → p-565c1815.entry.js} +2 -2
- package/{dist/web-components-library/p-6d11da08.entry.js → www/build/p-58aeaf21.entry.js} +2 -2
- package/www/build/{p-d1a04722.entry.js → p-5905cca0.entry.js} +2 -2
- package/www/build/{p-cc87d814.entry.js → p-5989465b.entry.js} +2 -2
- package/{dist/web-components-library/p-b8211903.entry.js → www/build/p-5e2f6ab7.entry.js} +2 -2
- package/{dist/web-components-library/p-7b199026.entry.js → www/build/p-613987cd.entry.js} +2 -2
- package/www/build/{p-b854cc3d.entry.js → p-6164feb9.entry.js} +2 -2
- package/www/build/p-623fdee4.js +2 -0
- package/www/build/{p-5f1e17cb.js → p-68d91a93.js} +2 -2
- package/www/build/p-6c6a655e.entry.js +2 -0
- package/www/build/{p-03a558ef.entry.js.map → p-6c6a655e.entry.js.map} +1 -1
- package/www/build/{p-eb9161bc.entry.js → p-6c9cd6be.entry.js} +2 -2
- package/www/build/{p-76003048.entry.js → p-6d15da6f.entry.js} +2 -2
- package/www/build/{p-d1fe7960.entry.js → p-6e13aa8e.entry.js} +2 -2
- package/www/build/{p-661bce1c.entry.js → p-767b66ca.entry.js} +2 -2
- package/{dist/web-components-library/p-c645dc11.entry.js → www/build/p-76d1d0e4.entry.js} +2 -2
- package/{dist/web-components-library/p-684142d7.entry.js → www/build/p-771dea79.entry.js} +2 -2
- package/www/build/{p-c57bb632.entry.js → p-7a4f6a5b.entry.js} +2 -2
- package/www/build/p-7b837e11.js +2 -0
- package/www/build/{p-332e0361.entry.js → p-7d655f96.entry.js} +2 -2
- package/www/build/{p-b5b5dae5.css → p-813bd63b.css} +23 -25
- package/www/build/p-82eeea83.entry.js +2 -0
- package/www/build/{p-db2c3235.entry.js → p-862989b6.entry.js} +2 -2
- package/www/build/{p-90690d4d.entry.js → p-8988eee3.entry.js} +2 -2
- package/www/build/{p-54cd104c.js → p-8b367393.js} +2 -2
- package/www/build/{p-5cdd431e.entry.js → p-8c52635e.entry.js} +2 -2
- package/www/build/{p-3f66654f.entry.js → p-8fd50cc5.entry.js} +2 -2
- package/{dist/web-components-library/p-2bba665d.entry.js → www/build/p-92f13701.entry.js} +2 -2
- package/www/build/{p-4df66afe.entry.js → p-93d349ee.entry.js} +2 -2
- package/www/build/{p-ddae9016.entry.js → p-943db3a8.entry.js} +2 -2
- package/www/build/p-988a58dd.entry.js +2 -0
- package/www/build/p-9ae0c0c6.entry.js +2 -0
- package/www/build/{p-2a04c00e.entry.js.map → p-9ae0c0c6.entry.js.map} +1 -1
- package/www/build/{p-80285500.js → p-9c816a3b.js} +2 -2
- package/{dist/web-components-library/p-3d02ad75.entry.js → www/build/p-a2ee659d.entry.js} +2 -2
- package/www/build/{p-1939116a.entry.js → p-a4d2cf55.entry.js} +2 -2
- package/www/build/p-a5146ef3.entry.js +2 -0
- package/www/build/p-a5146ef3.entry.js.map +1 -0
- package/www/build/{p-9a63ec80.entry.js → p-a8609510.entry.js} +2 -2
- package/{dist/web-components-library/p-b1f2388a.entry.js → www/build/p-aaa96c12.entry.js} +2 -2
- package/www/build/{p-dba260f2.entry.js → p-b391211f.entry.js} +2 -2
- package/www/build/{p-0989655c.entry.js → p-b54d923e.entry.js} +2 -2
- package/www/build/{p-15951fc6.entry.js → p-b7056859.entry.js} +2 -2
- package/www/build/{p-1e0d85d5.entry.js → p-b71a3f69.entry.js} +2 -2
- package/www/build/{p-19172b2c.entry.js → p-b7ec2cc4.entry.js} +2 -2
- package/www/build/{p-0a192ddf.entry.js → p-c12f93e4.entry.js} +2 -2
- package/www/build/{p-d5ebbfdf.entry.js → p-c811b0cf.entry.js} +2 -2
- package/www/build/p-c89e1f4b.entry.js +2 -0
- package/www/build/{p-c5e032de.entry.js.map → p-c89e1f4b.entry.js.map} +1 -1
- package/www/build/{p-c0b4f29d.entry.js → p-c9b81cab.entry.js} +2 -2
- package/www/build/{p-2f45f1ff.entry.js → p-cbc09112.entry.js} +2 -2
- package/www/build/p-da3abb97.entry.js +2 -0
- package/www/build/{p-c93c6135.entry.js.map → p-da3abb97.entry.js.map} +1 -1
- package/www/build/{p-5fda8769.entry.js → p-e8eacbeb.entry.js} +4 -4
- package/www/build/p-e8eacbeb.entry.js.map +1 -0
- package/www/build/p-efa6b991.entry.js +2 -0
- package/{dist/web-components-library/p-57dcff49.entry.js → www/build/p-f4b987ed.entry.js} +2 -2
- package/www/build/{p-215b1fa5.entry.js → p-f662e7ff.entry.js} +2 -2
- package/www/build/p-f92e0c29.entry.js +2 -0
- package/www/build/{p-71f62226.entry.js → p-ff89d630.entry.js} +2 -2
- package/www/build/web-components-library.css +23 -25
- 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-03a558ef.entry.js +0 -2
- package/dist/web-components-library/p-17e2fed2.entry.js +0 -2
- package/dist/web-components-library/p-2a04c00e.entry.js +0 -2
- package/dist/web-components-library/p-5fda8769.entry.js.map +0 -1
- package/dist/web-components-library/p-6af67a60.entry.js +0 -2
- package/dist/web-components-library/p-6af67a60.entry.js.map +0 -1
- package/dist/web-components-library/p-6c3d141b.entry.js +0 -2
- package/dist/web-components-library/p-80ddecaf.entry.js +0 -2
- package/dist/web-components-library/p-839e2478.entry.js +0 -2
- package/dist/web-components-library/p-8b562dca.entry.js +0 -2
- package/dist/web-components-library/p-8b562dca.entry.js.map +0 -1
- package/dist/web-components-library/p-9af837bb.entry.js +0 -2
- package/dist/web-components-library/p-a32ebcc3.entry.js +0 -2
- package/dist/web-components-library/p-b06af2fc.js +0 -2
- package/dist/web-components-library/p-c5e032de.entry.js +0 -2
- package/dist/web-components-library/p-c93c6135.entry.js +0 -2
- package/dist/web-components-library/p-d65aeb54.entry.js +0 -2
- package/dist/web-components-library/p-f79010de.js +0 -2
- package/www/build/p-03a558ef.entry.js +0 -2
- package/www/build/p-17e2fed2.entry.js +0 -2
- package/www/build/p-2a04c00e.entry.js +0 -2
- package/www/build/p-5fda8769.entry.js.map +0 -1
- package/www/build/p-6af67a60.entry.js +0 -2
- package/www/build/p-6af67a60.entry.js.map +0 -1
- package/www/build/p-6c3d141b.entry.js +0 -2
- package/www/build/p-80ddecaf.entry.js +0 -2
- package/www/build/p-839e2478.entry.js +0 -2
- package/www/build/p-8b562dca.entry.js +0 -2
- package/www/build/p-8b562dca.entry.js.map +0 -1
- package/www/build/p-9af837bb.entry.js +0 -2
- package/www/build/p-a32ebcc3.entry.js +0 -2
- package/www/build/p-b06af2fc.js +0 -2
- package/www/build/p-c5e032de.entry.js +0 -2
- package/www/build/p-c93c6135.entry.js +0 -2
- package/www/build/p-d65aeb54.entry.js +0 -2
- package/www/build/p-f79010de.js +0 -2
- /package/dist/web-components-library/{p-e38a5dd2.entry.js.map → p-0643d684.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6ef58a14.entry.js.map → p-0aed3ddc.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-59baa7f5.entry.js.map → p-19103e70.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b4b264b1.entry.js.map → p-252893a8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-84ed6163.entry.js.map → p-26ed6c96.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2501dd29.entry.js.map → p-2d4cf6ff.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f0f53bb2.entry.js.map → p-30a78a06.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-17e2fed2.entry.js.map → p-3977b0ae.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6c3d141b.entry.js.map → p-3ba7621b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-839e2478.entry.js.map → p-42abfe3b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-de313d96.entry.js.map → p-4504375f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f9e41b2e.entry.js.map → p-47813782.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6d61933f.entry.js.map → p-47b59f05.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a7bb5e87.js.map → p-4844c774.js.map} +0 -0
- /package/dist/web-components-library/{p-7d6c4b21.entry.js.map → p-55e5e53a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c03767a4.entry.js.map → p-565c1815.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6d11da08.entry.js.map → p-58aeaf21.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d1a04722.entry.js.map → p-5905cca0.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-cc87d814.entry.js.map → p-5989465b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b8211903.entry.js.map → p-5e2f6ab7.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7b199026.entry.js.map → p-613987cd.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b854cc3d.entry.js.map → p-6164feb9.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f79010de.js.map → p-623fdee4.js.map} +0 -0
- /package/dist/web-components-library/{p-5f1e17cb.js.map → p-68d91a93.js.map} +0 -0
- /package/dist/web-components-library/{p-eb9161bc.entry.js.map → p-6c9cd6be.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-76003048.entry.js.map → p-6d15da6f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d1fe7960.entry.js.map → p-6e13aa8e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-661bce1c.entry.js.map → p-767b66ca.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c645dc11.entry.js.map → p-76d1d0e4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-684142d7.entry.js.map → p-771dea79.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c57bb632.entry.js.map → p-7a4f6a5b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b06af2fc.js.map → p-7b837e11.js.map} +0 -0
- /package/dist/web-components-library/{p-332e0361.entry.js.map → p-7d655f96.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9af837bb.entry.js.map → p-82eeea83.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-db2c3235.entry.js.map → p-862989b6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-90690d4d.entry.js.map → p-8988eee3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-54cd104c.js.map → p-8b367393.js.map} +0 -0
- /package/dist/web-components-library/{p-5cdd431e.entry.js.map → p-8c52635e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-3f66654f.entry.js.map → p-8fd50cc5.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2bba665d.entry.js.map → p-92f13701.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-4df66afe.entry.js.map → p-93d349ee.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ddae9016.entry.js.map → p-943db3a8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a32ebcc3.entry.js.map → p-988a58dd.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-80285500.js.map → p-9c816a3b.js.map} +0 -0
- /package/dist/web-components-library/{p-3d02ad75.entry.js.map → p-a2ee659d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-1939116a.entry.js.map → p-a4d2cf55.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9a63ec80.entry.js.map → p-a8609510.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b1f2388a.entry.js.map → p-aaa96c12.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-dba260f2.entry.js.map → p-b391211f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0989655c.entry.js.map → p-b54d923e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-15951fc6.entry.js.map → p-b7056859.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-1e0d85d5.entry.js.map → p-b71a3f69.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-19172b2c.entry.js.map → p-b7ec2cc4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0a192ddf.entry.js.map → p-c12f93e4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d5ebbfdf.entry.js.map → p-c811b0cf.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c0b4f29d.entry.js.map → p-c9b81cab.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2f45f1ff.entry.js.map → p-cbc09112.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d65aeb54.entry.js.map → p-efa6b991.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-57dcff49.entry.js.map → p-f4b987ed.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-215b1fa5.entry.js.map → p-f662e7ff.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-80ddecaf.entry.js.map → p-f92e0c29.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-71f62226.entry.js.map → p-ff89d630.entry.js.map} +0 -0
- /package/www/build/{p-e38a5dd2.entry.js.map → p-0643d684.entry.js.map} +0 -0
- /package/www/build/{p-6ef58a14.entry.js.map → p-0aed3ddc.entry.js.map} +0 -0
- /package/www/build/{p-59baa7f5.entry.js.map → p-19103e70.entry.js.map} +0 -0
- /package/www/build/{p-b4b264b1.entry.js.map → p-252893a8.entry.js.map} +0 -0
- /package/www/build/{p-84ed6163.entry.js.map → p-26ed6c96.entry.js.map} +0 -0
- /package/www/build/{p-2501dd29.entry.js.map → p-2d4cf6ff.entry.js.map} +0 -0
- /package/www/build/{p-f0f53bb2.entry.js.map → p-30a78a06.entry.js.map} +0 -0
- /package/www/build/{p-17e2fed2.entry.js.map → p-3977b0ae.entry.js.map} +0 -0
- /package/www/build/{p-6c3d141b.entry.js.map → p-3ba7621b.entry.js.map} +0 -0
- /package/www/build/{p-839e2478.entry.js.map → p-42abfe3b.entry.js.map} +0 -0
- /package/www/build/{p-de313d96.entry.js.map → p-4504375f.entry.js.map} +0 -0
- /package/www/build/{p-f9e41b2e.entry.js.map → p-47813782.entry.js.map} +0 -0
- /package/www/build/{p-6d61933f.entry.js.map → p-47b59f05.entry.js.map} +0 -0
- /package/www/build/{p-a7bb5e87.js.map → p-4844c774.js.map} +0 -0
- /package/www/build/{p-7d6c4b21.entry.js.map → p-55e5e53a.entry.js.map} +0 -0
- /package/www/build/{p-c03767a4.entry.js.map → p-565c1815.entry.js.map} +0 -0
- /package/www/build/{p-6d11da08.entry.js.map → p-58aeaf21.entry.js.map} +0 -0
- /package/www/build/{p-d1a04722.entry.js.map → p-5905cca0.entry.js.map} +0 -0
- /package/www/build/{p-cc87d814.entry.js.map → p-5989465b.entry.js.map} +0 -0
- /package/www/build/{p-b8211903.entry.js.map → p-5e2f6ab7.entry.js.map} +0 -0
- /package/www/build/{p-7b199026.entry.js.map → p-613987cd.entry.js.map} +0 -0
- /package/www/build/{p-b854cc3d.entry.js.map → p-6164feb9.entry.js.map} +0 -0
- /package/www/build/{p-f79010de.js.map → p-623fdee4.js.map} +0 -0
- /package/www/build/{p-5f1e17cb.js.map → p-68d91a93.js.map} +0 -0
- /package/www/build/{p-eb9161bc.entry.js.map → p-6c9cd6be.entry.js.map} +0 -0
- /package/www/build/{p-76003048.entry.js.map → p-6d15da6f.entry.js.map} +0 -0
- /package/www/build/{p-d1fe7960.entry.js.map → p-6e13aa8e.entry.js.map} +0 -0
- /package/www/build/{p-661bce1c.entry.js.map → p-767b66ca.entry.js.map} +0 -0
- /package/www/build/{p-c645dc11.entry.js.map → p-76d1d0e4.entry.js.map} +0 -0
- /package/www/build/{p-684142d7.entry.js.map → p-771dea79.entry.js.map} +0 -0
- /package/www/build/{p-c57bb632.entry.js.map → p-7a4f6a5b.entry.js.map} +0 -0
- /package/www/build/{p-b06af2fc.js.map → p-7b837e11.js.map} +0 -0
- /package/www/build/{p-332e0361.entry.js.map → p-7d655f96.entry.js.map} +0 -0
- /package/www/build/{p-9af837bb.entry.js.map → p-82eeea83.entry.js.map} +0 -0
- /package/www/build/{p-db2c3235.entry.js.map → p-862989b6.entry.js.map} +0 -0
- /package/www/build/{p-90690d4d.entry.js.map → p-8988eee3.entry.js.map} +0 -0
- /package/www/build/{p-54cd104c.js.map → p-8b367393.js.map} +0 -0
- /package/www/build/{p-5cdd431e.entry.js.map → p-8c52635e.entry.js.map} +0 -0
- /package/www/build/{p-3f66654f.entry.js.map → p-8fd50cc5.entry.js.map} +0 -0
- /package/www/build/{p-2bba665d.entry.js.map → p-92f13701.entry.js.map} +0 -0
- /package/www/build/{p-4df66afe.entry.js.map → p-93d349ee.entry.js.map} +0 -0
- /package/www/build/{p-ddae9016.entry.js.map → p-943db3a8.entry.js.map} +0 -0
- /package/www/build/{p-a32ebcc3.entry.js.map → p-988a58dd.entry.js.map} +0 -0
- /package/www/build/{p-80285500.js.map → p-9c816a3b.js.map} +0 -0
- /package/www/build/{p-3d02ad75.entry.js.map → p-a2ee659d.entry.js.map} +0 -0
- /package/www/build/{p-1939116a.entry.js.map → p-a4d2cf55.entry.js.map} +0 -0
- /package/www/build/{p-9a63ec80.entry.js.map → p-a8609510.entry.js.map} +0 -0
- /package/www/build/{p-b1f2388a.entry.js.map → p-aaa96c12.entry.js.map} +0 -0
- /package/www/build/{p-dba260f2.entry.js.map → p-b391211f.entry.js.map} +0 -0
- /package/www/build/{p-0989655c.entry.js.map → p-b54d923e.entry.js.map} +0 -0
- /package/www/build/{p-15951fc6.entry.js.map → p-b7056859.entry.js.map} +0 -0
- /package/www/build/{p-1e0d85d5.entry.js.map → p-b71a3f69.entry.js.map} +0 -0
- /package/www/build/{p-19172b2c.entry.js.map → p-b7ec2cc4.entry.js.map} +0 -0
- /package/www/build/{p-0a192ddf.entry.js.map → p-c12f93e4.entry.js.map} +0 -0
- /package/www/build/{p-d5ebbfdf.entry.js.map → p-c811b0cf.entry.js.map} +0 -0
- /package/www/build/{p-c0b4f29d.entry.js.map → p-c9b81cab.entry.js.map} +0 -0
- /package/www/build/{p-2f45f1ff.entry.js.map → p-cbc09112.entry.js.map} +0 -0
- /package/www/build/{p-d65aeb54.entry.js.map → p-efa6b991.entry.js.map} +0 -0
- /package/www/build/{p-57dcff49.entry.js.map → p-f4b987ed.entry.js.map} +0 -0
- /package/www/build/{p-215b1fa5.entry.js.map → p-f662e7ff.entry.js.map} +0 -0
- /package/www/build/{p-80ddecaf.entry.js.map → p-f92e0c29.entry.js.map} +0 -0
- /package/www/build/{p-71f62226.entry.js.map → p-ff89d630.entry.js.map} +0 -0
|
@@ -13,10 +13,10 @@ export class ZTag {
|
|
|
13
13
|
render() {
|
|
14
14
|
var _a;
|
|
15
15
|
const hasText = ((_a = this.host.textContent) === null || _a === void 0 ? void 0 : _a.trim().length) > 0;
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'ed05949bf1f4fb03fdbecfaa7acb43bfbb6f8841', class: {
|
|
17
17
|
"expandable": this.expandable && !!this.icon,
|
|
18
18
|
"has-text": hasText,
|
|
19
|
-
} }, this.icon && h("z-icon", { key: '
|
|
19
|
+
} }, this.icon && h("z-icon", { key: '72ebeed5930725102f4131acedeabc536d887a44', name: this.icon }), h("div", { key: '7528424efc94fad4b910f54365a20dd644962936' }, h("slot", { key: '951b325ae2b157d343fd6fbed8bc8d40fcdd9e37' }))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "z-tag"; }
|
|
22
22
|
static get encapsulation() { return "scoped"; }
|
|
@@ -2,6 +2,13 @@ import { Host, h } from "@stencil/core";
|
|
|
2
2
|
import { KeyboardCode, ToastNotificationTransition } from "../../beans";
|
|
3
3
|
import DOMPurify from "dompurify";
|
|
4
4
|
import Hammer from "hammerjs";
|
|
5
|
+
/** Map of slide-in transitions to their corresponding slide-out transitions */
|
|
6
|
+
const SLIDE_OUT_TRANSITION_MAP = {
|
|
7
|
+
[ToastNotificationTransition.SLIDE_IN_DOWN]: ToastNotificationTransition.SLIDE_OUT_UP,
|
|
8
|
+
[ToastNotificationTransition.SLIDE_IN_UP]: ToastNotificationTransition.SLIDE_OUT_DOWN,
|
|
9
|
+
[ToastNotificationTransition.SLIDE_IN_LEFT]: ToastNotificationTransition.SLIDE_OUT_RIGHT,
|
|
10
|
+
[ToastNotificationTransition.SLIDE_IN_RIGHT]: ToastNotificationTransition.SLIDE_OUT_LEFT,
|
|
11
|
+
};
|
|
5
12
|
/**
|
|
6
13
|
* ZToastNotification component.
|
|
7
14
|
* @slot message - Custom HTML message
|
|
@@ -20,6 +27,7 @@ export class ZToastNotification {
|
|
|
20
27
|
this.draggablepercentage = 80;
|
|
21
28
|
this.transition = undefined;
|
|
22
29
|
this.percentage = undefined;
|
|
30
|
+
this.hasSlottedButton = undefined;
|
|
23
31
|
}
|
|
24
32
|
watchPropIsdraggable(newValue) {
|
|
25
33
|
if (newValue) {
|
|
@@ -43,36 +51,20 @@ export class ZToastNotification {
|
|
|
43
51
|
}
|
|
44
52
|
}
|
|
45
53
|
}
|
|
46
|
-
|
|
54
|
+
close(closingTransition, stopTimer) {
|
|
47
55
|
if (stopTimer && this.timeoutHandle) {
|
|
48
56
|
clearTimeout(this.timeoutHandle);
|
|
49
57
|
}
|
|
50
58
|
this.timeoutHandle = null;
|
|
51
59
|
this.elapsedTime = null;
|
|
52
60
|
this.toastClose.emit();
|
|
53
|
-
if (
|
|
54
|
-
this.hostElement.classList.add(
|
|
61
|
+
if (closingTransition) {
|
|
62
|
+
this.hostElement.classList.add(closingTransition);
|
|
55
63
|
}
|
|
56
64
|
else {
|
|
57
65
|
this.hostElement.parentNode.removeChild(this.hostElement);
|
|
58
66
|
}
|
|
59
67
|
}
|
|
60
|
-
componentWillLoad() {
|
|
61
|
-
this.validateAutoclose();
|
|
62
|
-
this.percentage = 0;
|
|
63
|
-
}
|
|
64
|
-
componentDidLoad() {
|
|
65
|
-
this.startTime = Date.now();
|
|
66
|
-
if (this.autoclose) {
|
|
67
|
-
if (this.pauseonfocusloss) {
|
|
68
|
-
document.addEventListener("visibilitychange", this.visibilityChangeEventHandler);
|
|
69
|
-
}
|
|
70
|
-
if (!this.transition) {
|
|
71
|
-
this.startClosingTimeout(this.autoclose);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
this.isdraggable && this.handleSlideOutDragAnimation();
|
|
75
|
-
}
|
|
76
68
|
visibilityChangeEventHandler() {
|
|
77
69
|
if (document.visibilityState === "hidden") {
|
|
78
70
|
this.timeoutHandle && this.onBlur();
|
|
@@ -86,20 +78,6 @@ export class ZToastNotification {
|
|
|
86
78
|
console.error("At least one between autoclose and closebutton must be present");
|
|
87
79
|
}
|
|
88
80
|
}
|
|
89
|
-
mapSlideOutClass() {
|
|
90
|
-
switch (this.transition) {
|
|
91
|
-
case ToastNotificationTransition.SLIDE_IN_DOWN:
|
|
92
|
-
return ToastNotificationTransition.SLIDE_OUT_UP;
|
|
93
|
-
case ToastNotificationTransition.SLIDE_IN_UP:
|
|
94
|
-
return ToastNotificationTransition.SLIDE_OUT_DOWN;
|
|
95
|
-
case ToastNotificationTransition.SLIDE_IN_LEFT:
|
|
96
|
-
return ToastNotificationTransition.SLIDE_OUT_RIGHT;
|
|
97
|
-
case ToastNotificationTransition.SLIDE_IN_RIGHT:
|
|
98
|
-
return ToastNotificationTransition.SLIDE_OUT_LEFT;
|
|
99
|
-
default:
|
|
100
|
-
return null;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
81
|
calculateDraggedPercentage(e) {
|
|
104
82
|
const bounding = this.hostElement.getBoundingClientRect();
|
|
105
83
|
return Math.round((100 * e.deltaX) / bounding.width);
|
|
@@ -124,7 +102,9 @@ export class ZToastNotification {
|
|
|
124
102
|
this.hostElement.style.transform = translateObj.translate;
|
|
125
103
|
if (Math.abs(this.percentage) > this.draggablepercentage && !this.isCloseEventCalled) {
|
|
126
104
|
this.isCloseEventCalled = true;
|
|
127
|
-
this.
|
|
105
|
+
this.close(e.direction === Hammer.DIRECTION_LEFT
|
|
106
|
+
? ToastNotificationTransition.SLIDE_OUT_LEFT
|
|
107
|
+
: ToastNotificationTransition.SLIDE_OUT_RIGHT, true);
|
|
128
108
|
}
|
|
129
109
|
}
|
|
130
110
|
if (e.isFinal && Math.abs(this.percentage) < this.draggablepercentage) {
|
|
@@ -149,25 +129,42 @@ export class ZToastNotification {
|
|
|
149
129
|
clearTimeout(this.timeoutHandle);
|
|
150
130
|
}
|
|
151
131
|
startClosingTimeout(time) {
|
|
152
|
-
this.timeoutHandle = window.setTimeout(() => this.
|
|
132
|
+
this.timeoutHandle = window.setTimeout(() => this.close(SLIDE_OUT_TRANSITION_MAP[this.transition], false), time);
|
|
153
133
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
134
|
+
checkSlottedButton() {
|
|
135
|
+
this.hasSlottedButton = !!this.hostElement.querySelector("[slot='button']");
|
|
136
|
+
}
|
|
137
|
+
componentWillLoad() {
|
|
138
|
+
this.validateAutoclose();
|
|
139
|
+
this.checkSlottedButton();
|
|
140
|
+
this.percentage = 0;
|
|
141
|
+
}
|
|
142
|
+
componentDidLoad() {
|
|
143
|
+
this.startTime = Date.now();
|
|
144
|
+
if (this.autoclose) {
|
|
145
|
+
if (this.pauseonfocusloss) {
|
|
146
|
+
document.addEventListener("visibilitychange", this.visibilityChangeEventHandler);
|
|
147
|
+
}
|
|
148
|
+
if (!this.transition) {
|
|
149
|
+
this.startClosingTimeout(this.autoclose);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
this.isdraggable && this.handleSlideOutDragAnimation();
|
|
161
153
|
}
|
|
162
154
|
render() {
|
|
163
|
-
return (h(Host, { key: '
|
|
155
|
+
return (h(Host, { key: '4dddb200f4671bbd69e8d1470d0d441678da3039', style: { "--percentuale": `${this.percentage}%` }, class: { [this.transition]: !!this.transition, [this.type]: !!this.type }, onAnimationEnd: (e) => {
|
|
164
156
|
if (this.autoclose && e.animationName.includes("slidein")) {
|
|
165
157
|
this.startClosingTimeout(this.autoclose);
|
|
166
158
|
}
|
|
167
159
|
if (e.animationName.includes("slideout")) {
|
|
168
160
|
this.hostElement.parentNode.removeChild(this.hostElement);
|
|
169
161
|
}
|
|
170
|
-
} }, this.
|
|
162
|
+
} }, h("div", { key: '424761a172e8f139e35d9c1b2139a4093e5ac48d', class: "toast-notification-container" }, h("div", { key: 'f1f8f3b2cfb8dde84ba0e136ac94631b47993975', class: "toast-notification-content" }, h("div", { key: '75c17b6a15c05dea66744ddb08a9abfcda21be28', class: "toast-notification-text" }, this.heading && h("span", { key: '94eda50ee38a39cec7056ee113b9863b54ed1555', class: "title" }, this.heading), h("span", { key: 'def713dd54fac1d0332c82c12ec4878672dddf1f', class: "message" }, h("slot", { key: '30cd97c7a2381c5a25e1b184524cb2fce29a549c', name: "message" }, this.message && h("span", { key: 'fc4c5cf459f595cb3727d5328ecb12419d1ea405', innerHTML: DOMPurify.sanitize(this.message) })))), h("div", { key: '994505f881dbe43ab69eb42c449afb0dc4d46336', class: "button-container", hidden: !this.hasSlottedButton }, h("slot", { key: 'b4a78b86c8d3b98750bcafee88d43bb47712558c', name: "button", onSlotchange: () => this.checkSlottedButton() }))), this.closebutton && (h("button", { key: '6658b9fe87e402ad434afe3bc50d4bf99f19b7a4', class: "close-button", "aria-label": "Chiudi notifica", onClick: () => this.close(SLIDE_OUT_TRANSITION_MAP[this.transition], true), onKeyDown: (e) => {
|
|
163
|
+
if (e.code == KeyboardCode.SPACE || e.code == KeyboardCode.ENTER) {
|
|
164
|
+
e.preventDefault();
|
|
165
|
+
this.close(SLIDE_OUT_TRANSITION_MAP[this.transition], true);
|
|
166
|
+
}
|
|
167
|
+
} }, h("z-icon", { key: '2edf589b7755c20c21217a8161736eeee5859cc9', name: "multiply-circled" }))))));
|
|
171
168
|
}
|
|
172
169
|
static get is() { return "z-toast-notification"; }
|
|
173
170
|
static get encapsulation() { return "shadow"; }
|
|
@@ -355,7 +352,8 @@ export class ZToastNotification {
|
|
|
355
352
|
}
|
|
356
353
|
static get states() {
|
|
357
354
|
return {
|
|
358
|
-
"percentage": {}
|
|
355
|
+
"percentage": {},
|
|
356
|
+
"hasSlottedButton": {}
|
|
359
357
|
};
|
|
360
358
|
}
|
|
361
359
|
static get events() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/z-toast-notification/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACnG,OAAO,EAAC,YAAY,EAAE,iBAAiB,EAAE,2BAA2B,EAAC,MAAM,aAAa,CAAC;AAEzF,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B;;;;GAIG;AAMH,MAAM,OAAO,kBAAkB;;QAkDrB,uBAAkB,GAAG,KAAK,CAAC;;;;;gCA7BN,IAAI;;2BAQT,IAAI;mCAIG,EAAE;;;;IAoBjC,oBAAoB,CAAC,QAAiB;QACpC,IAAI,QAAQ,EAAE,CAAC;YACb,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAC,MAAM,EAAE,IAAI,EAAC,CAAC,CAAC;QACpD,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAC,MAAM,EAAE,KAAK,EAAC,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;IAGD,kBAAkB,CAAC,QAAgB;QACjC,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACjC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC;IAGD,yBAAyB,CAAC,QAAiB;QACzC,IAAI,IAAI,CAAC,SAA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AE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAC7C,cAAc,EAAE,CAAC,CAAiB,EAAE,EAAE;gBACpC,IAAI,IAAI,CAAC,SAAS,IAAI,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;oBAC1D,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBAC3C,CAAC;gBACD,IAAI,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;oBACzC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;gBAC5D,CAAC;YACH,CAAC,IAEA,IAAI,CAAC,aAAa,EAAE,CAChB,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h} from \"@stencil/core\";\nimport {KeyboardCode, ToastNotification, ToastNotificationTransition} from \"../../beans\";\n\nimport DOMPurify from \"dompurify\";\nimport Hammer from \"hammerjs\";\n\n/**\n * ZToastNotification component.\n * @slot message - Custom HTML message\n * @slot button - Custom button\n */\n@Component({\n tag: \"z-toast-notification\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZToastNotification {\n @Element() hostElement: HTMLZToastNotificationElement;\n\n /** toast notification's title */\n @Prop()\n heading?: string;\n\n /** toast notification's message */\n @Prop()\n message: string;\n\n /** toggles closing button rendering */\n @Prop()\n closebutton: boolean;\n\n /** toast notification closing timeout (ms) */\n @Prop()\n autoclose?: number;\n\n /** toast notification autoclose can be paused */\n @Prop()\n pauseonfocusloss?: boolean = true;\n\n /** toast notification type: dark, light, accent, error, success, warning */\n @Prop()\n type?: ToastNotification;\n\n /** toast notification can be draggable*/\n @Prop()\n isdraggable?: boolean = true;\n\n /** toast notification draggable percentage*/\n @Prop()\n draggablepercentage?: number = 80;\n\n /** toast notification animation type: slide-in-left, slide-in-right, slide-in-down, slide-in-up*/\n @Prop()\n transition?: ToastNotificationTransition;\n\n @State()\n percentage: number;\n\n private sliderManager: HammerManager;\n\n private elapsedTime: number;\n\n private timeoutHandle: number;\n\n private startTime: number;\n\n private isCloseEventCalled = false;\n\n @Watch(\"isdraggable\")\n watchPropIsdraggable(newValue: boolean): void {\n if (newValue) {\n this.sliderManager.get(\"pan\").set({enable: true});\n } else {\n this.sliderManager.get(\"pan\").set({enable: false});\n }\n }\n\n @Watch(\"autoclose\")\n watchPropAutoclose(newValue: number): void {\n clearTimeout(this.timeoutHandle);\n this.startClosingTimeout(newValue);\n }\n\n @Watch(\"pauseonfocusloss\")\n watchPropPauseonfocusloss(newValue: boolean): void {\n if (this.autoclose) {\n if (newValue) {\n document.addEventListener(\"visibilitychange\", this.visibilityChangeEventHandler);\n } else {\n document.removeEventListener(\"visibilitychange\", this.visibilityChangeEventHandler);\n }\n }\n }\n\n /** notification close event */\n @Event()\n toastClose: EventEmitter;\n\n private emitToastClose(cssClass: string, stopTimer: boolean): void {\n if (stopTimer && this.timeoutHandle) {\n clearTimeout(this.timeoutHandle);\n }\n this.timeoutHandle = null;\n this.elapsedTime = null;\n this.toastClose.emit();\n if (cssClass) {\n this.hostElement.classList.add(cssClass);\n } else {\n this.hostElement.parentNode.removeChild(this.hostElement);\n }\n }\n\n componentWillLoad(): void {\n this.validateAutoclose();\n this.percentage = 0;\n }\n\n componentDidLoad(): void {\n this.startTime = Date.now();\n if (this.autoclose) {\n if (this.pauseonfocusloss) {\n document.addEventListener(\"visibilitychange\", this.visibilityChangeEventHandler);\n }\n if (!this.transition) {\n this.startClosingTimeout(this.autoclose);\n }\n }\n\n this.isdraggable && this.handleSlideOutDragAnimation();\n }\n\n private visibilityChangeEventHandler(): void {\n if (document.visibilityState === \"hidden\") {\n this.timeoutHandle && this.onBlur();\n } else {\n this.elapsedTime && this.onFocus();\n }\n }\n\n private validateAutoclose(): void {\n if (!this.autoclose && !this.closebutton) {\n console.error(\"At least one between autoclose and closebutton must be present\");\n }\n }\n\n private mapSlideOutClass(): ToastNotificationTransition {\n switch (this.transition) {\n case ToastNotificationTransition.SLIDE_IN_DOWN:\n return ToastNotificationTransition.SLIDE_OUT_UP;\n case ToastNotificationTransition.SLIDE_IN_UP:\n return ToastNotificationTransition.SLIDE_OUT_DOWN;\n case ToastNotificationTransition.SLIDE_IN_LEFT:\n return ToastNotificationTransition.SLIDE_OUT_RIGHT;\n case ToastNotificationTransition.SLIDE_IN_RIGHT:\n return ToastNotificationTransition.SLIDE_OUT_LEFT;\n default:\n return null;\n }\n }\n\n private calculateDraggedPercentage(e): number {\n const bounding = this.hostElement.getBoundingClientRect();\n\n return Math.round((100 * e.deltaX) / bounding.width);\n }\n\n private handleSlideOutDragAnimation(): void {\n this.sliderManager = new Hammer(this.hostElement);\n this.sliderManager.get(\"pan\").set({\n direction: Hammer.DIRECTION_HORIZONTAL,\n });\n\n this.sliderManager.on(\"pan\", (e) => {\n this.percentage = this.calculateDraggedPercentage(e);\n this.hostElement.style.transition = \"none\";\n if (this.transition) {\n this.hostElement.classList.remove(this.transition);\n }\n const translateObj = {\n translate: `translateX(${this.percentage}%)`,\n translateBack: \"translateX(0)\",\n };\n\n this.hostElement.style.opacity = `${100 - Math.abs(this.percentage)}%`;\n if (e.eventType === Hammer.DIRECTION_LEFT || e.eventType === Hammer.DIRECTION_RIGHT) {\n this.hostElement.style.transform = translateObj.translate;\n if (Math.abs(this.percentage) > this.draggablepercentage && !this.isCloseEventCalled) {\n this.isCloseEventCalled = true;\n this.emitToastClose(e.direction === Hammer.DIRECTION_LEFT ? \"slide-out-left\" : \"slide-out-right\", true);\n }\n }\n\n if (e.isFinal && Math.abs(this.percentage) < this.draggablepercentage) {\n this.hostElement.style.transform = translateObj.translateBack;\n this.hostElement.style.transition = \"all 1s\";\n this.hostElement.style.opacity = \"100%\";\n this.percentage = 0;\n }\n });\n }\n\n private onFocus(): void {\n let time = this.autoclose;\n if (this.elapsedTime) {\n time = this.autoclose - this.elapsedTime;\n }\n if (time > 0) {\n this.startClosingTimeout(time);\n }\n }\n\n private onBlur(): void {\n this.elapsedTime = Date.now() - this.startTime;\n clearTimeout(this.timeoutHandle);\n }\n\n private startClosingTimeout(time: number): void {\n this.timeoutHandle = window.setTimeout(() => this.emitToastClose(this.mapSlideOutClass(), false), time);\n }\n\n private renderContent(): HTMLDivElement {\n return (\n <div\n id=\"external-container\"\n tabIndex={0}\n class={{[this.type]: !!this.type}}\n >\n <div id=\"inner-container\">\n <div id=\"text\">\n {this.heading && <span class=\"title\">{this.heading}</span>}\n <span class=\"message\">\n <slot name=\"message\">\n <span innerHTML={DOMPurify.sanitize(this.message || \" \")} />\n </slot>\n </span>\n </div>\n <div id=\"button\">\n <slot name=\"button\" />\n </div>\n </div>\n <div id=\"icon\">\n {this.closebutton && (\n <z-icon\n tabIndex={0}\n name=\"multiply-circled\"\n width={15}\n height={15}\n onClick={() => this.emitToastClose(this.mapSlideOutClass(), true)}\n onKeyPress={(e) => {\n if (e.code == KeyboardCode.SPACE || e.code == KeyboardCode.ENTER) {\n e.preventDefault();\n this.emitToastClose(this.mapSlideOutClass(), true);\n }\n }}\n />\n )}\n </div>\n </div>\n );\n }\n\n render(): HTMLZToastNotificationElement {\n return (\n <Host\n style={{\"--percentuale\": `${this.percentage}%`}}\n class={this.transition ? this.transition : \"\"}\n onAnimationEnd={(e: AnimationEvent) => {\n if (this.autoclose && e.animationName.includes(\"slidein\")) {\n this.startClosingTimeout(this.autoclose);\n }\n if (e.animationName.includes(\"slideout\")) {\n this.hostElement.parentNode.removeChild(this.hostElement);\n }\n }}\n >\n {this.renderContent()}\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/z-toast-notification/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACnG,OAAO,EAAC,YAAY,EAAE,iBAAiB,EAAE,2BAA2B,EAAC,MAAM,aAAa,CAAC;AAEzF,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,+EAA+E;AAC/E,MAAM,wBAAwB,GAAG;IAC/B,CAAC,2BAA2B,CAAC,aAAa,CAAC,EAAE,2BAA2B,CAAC,YAAY;IACrF,CAAC,2BAA2B,CAAC,WAAW,CAAC,EAAE,2BAA2B,CAAC,cAAc;IACrF,CAAC,2BAA2B,CAAC,aAAa,CAAC,EAAE,2BAA2B,CAAC,eAAe;IACxF,CAAC,2BAA2B,CAAC,cAAc,CAAC,EAAE,2BAA2B,CAAC,cAAc;CACzF,CAAC;AAEF;;;;GAIG;AAMH,MAAM,OAAO,kBAAkB;;QA0DrB,uBAAkB,GAAG,KAAK,CAAC;;;;;gCArCN,IAAI;;2BAQT,IAAI;mCAIG,EAAE;;;;;IA4BjC,oBAAoB,CAAC,QAAiB;QACpC,IAAI,QAAQ,EAAE,CAAC;YACb,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAC,MAAM,EAAE,IAAI,EAAC,CAAC,CAAC;QACpD,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAC,MAAM,EAAE,KAAK,EAAC,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;IAG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gBACT,iBAAiB,EAC5B,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,EAC1E,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;wBACf,IAAI,CAAC,CAAC,IAAI,IAAI,YAAY,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI,IAAI,YAAY,CAAC,KAAK,EAAE,CAAC;4BACjE,CAAC,CAAC,cAAc,EAAE,CAAC;4BACnB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,CAAC;wBAC9D,CAAC;oBACH,CAAC;oBAED,+DAAQ,IAAI,EAAC,kBAAkB,GAAG,CAC3B,CACV,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h} from \"@stencil/core\";\nimport {KeyboardCode, ToastNotification, ToastNotificationTransition} from \"../../beans\";\n\nimport DOMPurify from \"dompurify\";\nimport Hammer from \"hammerjs\";\n\n/** Map of slide-in transitions to their corresponding slide-out transitions */\nconst SLIDE_OUT_TRANSITION_MAP = {\n [ToastNotificationTransition.SLIDE_IN_DOWN]: ToastNotificationTransition.SLIDE_OUT_UP,\n [ToastNotificationTransition.SLIDE_IN_UP]: ToastNotificationTransition.SLIDE_OUT_DOWN,\n [ToastNotificationTransition.SLIDE_IN_LEFT]: ToastNotificationTransition.SLIDE_OUT_RIGHT,\n [ToastNotificationTransition.SLIDE_IN_RIGHT]: ToastNotificationTransition.SLIDE_OUT_LEFT,\n};\n\n/**\n * ZToastNotification component.\n * @slot message - Custom HTML message\n * @slot button - Custom button\n */\n@Component({\n tag: \"z-toast-notification\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZToastNotification {\n @Element() hostElement: HTMLZToastNotificationElement;\n\n /** toast notification's title */\n @Prop()\n heading?: string;\n\n /** toast notification's message */\n @Prop()\n message: string;\n\n /** toggles closing button rendering */\n @Prop()\n closebutton: boolean;\n\n /** toast notification closing timeout (ms) */\n @Prop()\n autoclose?: number;\n\n /** toast notification autoclose can be paused */\n @Prop()\n pauseonfocusloss?: boolean = true;\n\n /** toast notification type: dark, light, accent, error, success, warning */\n @Prop()\n type?: ToastNotification;\n\n /** toast notification can be draggable*/\n @Prop()\n isdraggable?: boolean = true;\n\n /** toast notification draggable percentage*/\n @Prop()\n draggablepercentage?: number = 80;\n\n /** toast notification animation type: slide-in-left, slide-in-right, slide-in-down, slide-in-up*/\n @Prop()\n transition?: ToastNotificationTransition;\n\n @State()\n percentage: number;\n\n /** Indicates if the toast notification has a slotted button. */\n @State()\n hasSlottedButton: boolean;\n\n /** notification close event */\n @Event()\n toastClose: EventEmitter;\n\n private sliderManager: HammerManager;\n\n private elapsedTime: number;\n\n private timeoutHandle: number;\n\n private startTime: number;\n\n private isCloseEventCalled = false;\n\n @Watch(\"isdraggable\")\n watchPropIsdraggable(newValue: boolean): void {\n if (newValue) {\n this.sliderManager.get(\"pan\").set({enable: true});\n } else {\n this.sliderManager.get(\"pan\").set({enable: false});\n }\n }\n\n @Watch(\"autoclose\")\n watchPropAutoclose(newValue: number): void {\n clearTimeout(this.timeoutHandle);\n this.startClosingTimeout(newValue);\n }\n\n @Watch(\"pauseonfocusloss\")\n watchPropPauseonfocusloss(newValue: boolean): void {\n if (this.autoclose) {\n if (newValue) {\n document.addEventListener(\"visibilitychange\", this.visibilityChangeEventHandler);\n } else {\n document.removeEventListener(\"visibilitychange\", this.visibilityChangeEventHandler);\n }\n }\n }\n\n private close(closingTransition: string, stopTimer: boolean): void {\n if (stopTimer && this.timeoutHandle) {\n clearTimeout(this.timeoutHandle);\n }\n this.timeoutHandle = null;\n this.elapsedTime = null;\n this.toastClose.emit();\n if (closingTransition) {\n this.hostElement.classList.add(closingTransition);\n } else {\n this.hostElement.parentNode.removeChild(this.hostElement);\n }\n }\n\n private visibilityChangeEventHandler(): void {\n if (document.visibilityState === \"hidden\") {\n this.timeoutHandle && this.onBlur();\n } else {\n this.elapsedTime && this.onFocus();\n }\n }\n\n private validateAutoclose(): void {\n if (!this.autoclose && !this.closebutton) {\n console.error(\"At least one between autoclose and closebutton must be present\");\n }\n }\n\n private calculateDraggedPercentage(e): number {\n const bounding = this.hostElement.getBoundingClientRect();\n\n return Math.round((100 * e.deltaX) / bounding.width);\n }\n\n private handleSlideOutDragAnimation(): void {\n this.sliderManager = new Hammer(this.hostElement);\n this.sliderManager.get(\"pan\").set({\n direction: Hammer.DIRECTION_HORIZONTAL,\n });\n\n this.sliderManager.on(\"pan\", (e) => {\n this.percentage = this.calculateDraggedPercentage(e);\n this.hostElement.style.transition = \"none\";\n if (this.transition) {\n this.hostElement.classList.remove(this.transition);\n }\n const translateObj = {\n translate: `translateX(${this.percentage}%)`,\n translateBack: \"translateX(0)\",\n };\n\n this.hostElement.style.opacity = `${100 - Math.abs(this.percentage)}%`;\n if (e.eventType === Hammer.DIRECTION_LEFT || e.eventType === Hammer.DIRECTION_RIGHT) {\n this.hostElement.style.transform = translateObj.translate;\n if (Math.abs(this.percentage) > this.draggablepercentage && !this.isCloseEventCalled) {\n this.isCloseEventCalled = true;\n this.close(\n e.direction === Hammer.DIRECTION_LEFT\n ? ToastNotificationTransition.SLIDE_OUT_LEFT\n : ToastNotificationTransition.SLIDE_OUT_RIGHT,\n true\n );\n }\n }\n\n if (e.isFinal && Math.abs(this.percentage) < this.draggablepercentage) {\n this.hostElement.style.transform = translateObj.translateBack;\n this.hostElement.style.transition = \"all 1s\";\n this.hostElement.style.opacity = \"100%\";\n this.percentage = 0;\n }\n });\n }\n\n private onFocus(): void {\n let time = this.autoclose;\n if (this.elapsedTime) {\n time = this.autoclose - this.elapsedTime;\n }\n if (time > 0) {\n this.startClosingTimeout(time);\n }\n }\n\n private onBlur(): void {\n this.elapsedTime = Date.now() - this.startTime;\n clearTimeout(this.timeoutHandle);\n }\n\n private startClosingTimeout(time: number): void {\n this.timeoutHandle = window.setTimeout(() => this.close(SLIDE_OUT_TRANSITION_MAP[this.transition], false), time);\n }\n\n private checkSlottedButton(): void {\n this.hasSlottedButton = !!this.hostElement.querySelector(\"[slot='button']\");\n }\n\n componentWillLoad(): void {\n this.validateAutoclose();\n this.checkSlottedButton();\n this.percentage = 0;\n }\n\n componentDidLoad(): void {\n this.startTime = Date.now();\n if (this.autoclose) {\n if (this.pauseonfocusloss) {\n document.addEventListener(\"visibilitychange\", this.visibilityChangeEventHandler);\n }\n if (!this.transition) {\n this.startClosingTimeout(this.autoclose);\n }\n }\n\n this.isdraggable && this.handleSlideOutDragAnimation();\n }\n\n render(): HTMLZToastNotificationElement {\n return (\n <Host\n style={{\"--percentuale\": `${this.percentage}%`}}\n class={{[this.transition]: !!this.transition, [this.type]: !!this.type}}\n onAnimationEnd={(e: AnimationEvent) => {\n if (this.autoclose && e.animationName.includes(\"slidein\")) {\n this.startClosingTimeout(this.autoclose);\n }\n if (e.animationName.includes(\"slideout\")) {\n this.hostElement.parentNode.removeChild(this.hostElement);\n }\n }}\n >\n <div class=\"toast-notification-container\">\n <div class=\"toast-notification-content\">\n <div class=\"toast-notification-text\">\n {this.heading && <span class=\"title\">{this.heading}</span>}\n <span class=\"message\">\n <slot name=\"message\">{this.message && <span innerHTML={DOMPurify.sanitize(this.message)} />}</slot>\n </span>\n </div>\n <div\n class=\"button-container\"\n hidden={!this.hasSlottedButton}\n >\n <slot\n name=\"button\"\n onSlotchange={() => this.checkSlottedButton()}\n />\n </div>\n </div>\n {this.closebutton && (\n <button\n class=\"close-button\"\n aria-label=\"Chiudi notifica\"\n onClick={() => this.close(SLIDE_OUT_TRANSITION_MAP[this.transition], true)}\n onKeyDown={(e) => {\n if (e.code == KeyboardCode.SPACE || e.code == KeyboardCode.ENTER) {\n e.preventDefault();\n this.close(SLIDE_OUT_TRANSITION_MAP[this.transition], true);\n }\n }}\n >\n <z-icon name=\"multiply-circled\" />\n </button>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -22,7 +22,7 @@ const StoryMeta = {
|
|
|
22
22
|
argTypes: {
|
|
23
23
|
type: {
|
|
24
24
|
control: {
|
|
25
|
-
type: "
|
|
25
|
+
type: "inline-radio",
|
|
26
26
|
},
|
|
27
27
|
options: Object.values(ToastNotification),
|
|
28
28
|
},
|
|
@@ -125,6 +125,7 @@ export const SlottedButtonLongText = {
|
|
|
125
125
|
};
|
|
126
126
|
export const SlottedMessage = {
|
|
127
127
|
args: { transition: ToastNotificationTransition.SLIDE_IN_DOWN },
|
|
128
|
+
parameters: { controls: { exclude: ["message"] } },
|
|
128
129
|
render: (args) => html `<div class="toast-container">
|
|
129
130
|
<z-toast-notification
|
|
130
131
|
heading="${args.heading}"
|
|
@@ -150,6 +151,7 @@ export const SlottedMessage = {
|
|
|
150
151
|
};
|
|
151
152
|
export const SlottedMessageLongText = {
|
|
152
153
|
args: { transition: ToastNotificationTransition.SLIDE_IN_DOWN },
|
|
154
|
+
parameters: { controls: { exclude: ["message"] } },
|
|
153
155
|
render: (args) => html `<div class="toast-container">
|
|
154
156
|
<z-toast-notification
|
|
155
157
|
heading="Titolo abbastanza lungo"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../src/components/z-toast-notification/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAsB,MAAM,KAAK,CAAC;AAE9C,OAAO,EAAC,iBAAiB,EAAE,2BAA2B,EAAC,MAAM,aAAa,CAAC;AAC3E,OAAO,mBAAmB,CAAC;AAC3B,OAAO,SAAS,CAAC;AAEjB,MAAM,QAAQ,GACZ,uKAAuK,CAAC;AAE1K,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAkB,EAAE,CACxC,IAAI,CAAA;;iBAEW,IAAI,CAAC,OAAO;iBACZ,IAAI,CAAC,OAAO;qBACR,IAAI,CAAC,WAAW;mBAClB,IAAI,CAAC,SAAS;0BACP,IAAI,CAAC,gBAAgB;cACjC,IAAI,CAAC,IAAI;qBACF,IAAI,CAAC,WAAW;6BACR,IAAI,CAAC,mBAAmB;oBACjC,IAAI,CAAC,UAAU;;SAE1B,CAAC;AAEV,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,sBAAsB;IACjC,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../src/components/z-toast-notification/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAsB,MAAM,KAAK,CAAC;AAE9C,OAAO,EAAC,iBAAiB,EAAE,2BAA2B,EAAC,MAAM,aAAa,CAAC;AAC3E,OAAO,mBAAmB,CAAC;AAC3B,OAAO,SAAS,CAAC;AAEjB,MAAM,QAAQ,GACZ,uKAAuK,CAAC;AAE1K,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAkB,EAAE,CACxC,IAAI,CAAA;;iBAEW,IAAI,CAAC,OAAO;iBACZ,IAAI,CAAC,OAAO;qBACR,IAAI,CAAC,WAAW;mBAClB,IAAI,CAAC,SAAS;0BACP,IAAI,CAAC,gBAAgB;cACjC,IAAI,CAAC,IAAI;qBACF,IAAI,CAAC,WAAW;6BACR,IAAI,CAAC,mBAAmB;oBACjC,IAAI,CAAC,UAAU;;SAE1B,CAAC;AAEV,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,sBAAsB;IACjC,QA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;;WAY1B;CACM,CAAC;AAElB,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,EAAC,UAAU,EAAE,2BAA2B,CAAC,aAAa,EAAC;IAC7D,UAAU,EAAE,EAAC,QAAQ,EAAE,EAAC,OAAO,EAAE,CAAC,SAAS,CAAC,EAAC,EAAC;IAC9C,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CACf,IAAI,CAAA;;;uBAGe,IAAI,CAAC,WAAW;qBAClB,IAAI,CAAC,SAAS;4BACP,IAAI,CAAC,gBAAgB;gBACjC,IAAI,CAAC,IAAI;uBACF,IAAI,CAAC,WAAW;+BACR,IAAI,CAAC,mBAAmB;sBACjC,IAAI,CAAC,UAAU;;;aAGxB,QAAQ;;;;;;;;WAQV;CACM,CAAC","sourcesContent":["import {Meta, StoryObj} from \"@storybook/web-components\";\nimport {html, type TemplateResult} from \"lit\";\nimport {type ZToastNotification} from \".\";\nimport {ToastNotification, ToastNotificationTransition} from \"../../beans\";\nimport \"../z-button/index\";\nimport \"./index\";\n\nconst longText =\n \"Testo decisamente lungo, che non sta su 1 sola riga. Questo testo occupa varie righe ed è un esempio di come vengono posizionati gli elementi in caso di testo lungo.\";\n\nconst template = (args): TemplateResult =>\n html`<div class=\"toast-container\">\n <z-toast-notification\n heading=\"${args.heading}\"\n message=\"${args.message}\"\n closebutton=\"${args.closebutton}\"\n autoclose=\"${args.autoclose}\"\n pauseonfocusloss=\"${args.pauseonfocusloss}\"\n type=\"${args.type}\"\n isdraggable=\"${args.isdraggable}\"\n draggablepercentage=\"${args.draggablepercentage}\"\n transition=\"${args.transition}\"\n ></z-toast-notification>\n </div>`;\n\nconst StoryMeta = {\n title: \"ZToastNotification\",\n component: \"z-toast-notification\",\n argTypes: {\n type: {\n control: {\n type: \"inline-radio\",\n },\n options: Object.values(ToastNotification),\n },\n transition: {\n control: {\n type: \"select\",\n },\n options: Object.values(ToastNotificationTransition),\n },\n },\n args: {\n heading: \"Titolo\",\n message: \"Questo è un messaggio di prova.\",\n closebutton: true,\n autoclose: null,\n pauseonfocusloss: false,\n type: ToastNotification.DARK,\n isdraggable: true,\n draggablepercentage: 80,\n },\n render: (args) => template(args),\n} satisfies Meta<ZToastNotification>;\n\nexport default StoryMeta;\n\ntype Story = StoryObj<ZToastNotification>;\nexport const NoSlideIn = {\n args: {\n message: \"Messaggio con <b>grassetto</b> e altro <i>html</i> renderizzato\",\n },\n} satisfies Story;\n\nexport const SlideInRight = {\n args: {\n transition: ToastNotificationTransition.SLIDE_IN_RIGHT,\n },\n} satisfies Story;\n\nexport const SlideInLeft = {\n args: {\n transition: ToastNotificationTransition.SLIDE_IN_LEFT,\n },\n} satisfies Story;\n\nexport const SlideInDownNoCloseButton = {\n args: {\n transition: ToastNotificationTransition.SLIDE_IN_DOWN,\n closebutton: false,\n },\n} satisfies Story;\n\nexport const SlideInUpLongText = {\n args: {\n transition: ToastNotificationTransition.SLIDE_IN_UP,\n message: longText,\n },\n} satisfies Story;\n\nexport const SlottedButton = {\n args: {\n transition: ToastNotificationTransition.SLIDE_IN_DOWN,\n },\n render: (args) =>\n html`<div class=\"toast-container slotted-button\">\n <z-toast-notification\n heading=\"${args.heading}\"\n message=\"${args.message}\"\n closebutton=\"${args.closebutton}\"\n autoclose=\"${args.autoclose}\"\n pauseonfocusloss=\"${args.pauseonfocusloss}\"\n type=\"${args.type}\"\n isdraggable=\"${args.isdraggable}\"\n draggablepercentage=\"${args.draggablepercentage}\"\n transition=\"${args.transition}\"\n >\n <z-button\n slot=\"button\"\n size=\"small\"\n variant=\"tertiary\"\n >button</z-button\n >\n </z-toast-notification>\n </div>`,\n} satisfies Story;\n\nexport const SlottedButtonLongText = {\n args: {\n transition: ToastNotificationTransition.SLIDE_IN_DOWN,\n },\n render: (args) =>\n html`<div class=\"toast-container slotted-button\">\n <z-toast-notification\n heading=\"Titolo abbastanza lungo\"\n message=${longText}\n closebutton=\"${args.closebutton}\"\n autoclose=\"${args.autoclose}\"\n pauseonfocusloss=\"${args.pauseonfocusloss}\"\n type=\"${args.type}\"\n isdraggable=\"${args.isdraggable}\"\n draggablepercentage=\"${args.draggablepercentage}\"\n transition=\"${args.transition}\"\n >\n <z-button\n slot=\"button\"\n size=\"small\"\n variant=\"tertiary\"\n >button</z-button\n >\n </z-toast-notification>\n </div>`,\n} satisfies Story;\n\nexport const SlottedMessage = {\n args: {transition: ToastNotificationTransition.SLIDE_IN_DOWN},\n parameters: {controls: {exclude: [\"message\"]}},\n render: (args) =>\n html`<div class=\"toast-container\">\n <z-toast-notification\n heading=\"${args.heading}\"\n closebutton=\"${args.closebutton}\"\n autoclose=\"${args.autoclose}\"\n pauseonfocusloss=\"${args.pauseonfocusloss}\"\n type=\"${args.type}\"\n isdraggable=\"${args.isdraggable}\"\n draggablepercentage=\"${args.draggablepercentage}\"\n transition=\"${args.transition}\"\n >\n <span slot=\"message\"\n >Messaggio con\n <a\n href=\"#\"\n class=\"z-link z-link-blue\"\n >link</a\n >\n e <b>grassetto</b></span\n >\n </z-toast-notification>\n </div>`,\n} satisfies Story;\n\nexport const SlottedMessageLongText = {\n args: {transition: ToastNotificationTransition.SLIDE_IN_DOWN},\n parameters: {controls: {exclude: [\"message\"]}},\n render: (args) =>\n html`<div class=\"toast-container\">\n <z-toast-notification\n heading=\"Titolo abbastanza lungo\"\n closebutton=\"${args.closebutton}\"\n autoclose=\"${args.autoclose}\"\n pauseonfocusloss=\"${args.pauseonfocusloss}\"\n type=\"${args.type}\"\n isdraggable=\"${args.isdraggable}\"\n draggablepercentage=\"${args.draggablepercentage}\"\n transition=\"${args.transition}\"\n >\n <span slot=\"message\"\n >${longText}\n <a\n href=\"#\"\n class=\"z-link z-link-blue\"\n >link</a\n ></span\n >\n </z-toast-notification>\n </div>`,\n} satisfies Story;\n"]}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
width: 100vw;
|
|
4
|
-
min-width: 200px;
|
|
5
|
-
|
|
6
2
|
--percentuale: 0;
|
|
3
|
+
|
|
4
|
+
display: flex;
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-width: 200px;
|
|
7
|
+
max-width: 100dvw;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
background: var(--color-surface01);
|
|
10
|
+
border-radius: var(--border-size-large);
|
|
11
|
+
box-shadow: var(--shadow-3);
|
|
12
|
+
color: var(--color-default-text);
|
|
13
|
+
fill: var(--color-primary01-icon);
|
|
14
|
+
font-family: var(--font-family-sans);
|
|
15
|
+
font-size: var(--font-size-2);
|
|
16
|
+
font-weight: var(--font-rg);
|
|
7
17
|
}
|
|
8
18
|
|
|
9
19
|
:host(.slide-in-left) {
|
|
@@ -46,6 +56,116 @@
|
|
|
46
56
|
animation-fill-mode: forwards;
|
|
47
57
|
}
|
|
48
58
|
|
|
59
|
+
.toast-notification-container {
|
|
60
|
+
display: flex;
|
|
61
|
+
width: 100%;
|
|
62
|
+
align-items: baseline;
|
|
63
|
+
justify-content: space-between;
|
|
64
|
+
padding: calc(var(--space-unit) * 2);
|
|
65
|
+
border-radius: var(--border-radius);
|
|
66
|
+
gap: calc(var(--space-unit) * 2);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.toast-notification-content {
|
|
70
|
+
display: flex;
|
|
71
|
+
width: 100%;
|
|
72
|
+
flex-wrap: wrap;
|
|
73
|
+
align-items: baseline;
|
|
74
|
+
justify-content: space-between;
|
|
75
|
+
gap: calc(var(--space-unit) * 2);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.toast-notification-content .toast-notification-text {
|
|
79
|
+
color: inherit;
|
|
80
|
+
letter-spacing: 0.16px;
|
|
81
|
+
line-height: 1.25rem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.toast-notification-content .toast-notification-text .title {
|
|
85
|
+
margin-right: calc(var(--space-unit) / 2);
|
|
86
|
+
font-weight: var(--font-sb);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.close-button {
|
|
90
|
+
height: 1.125rem; /* same height of the icon */
|
|
91
|
+
padding: 0;
|
|
92
|
+
border: none;
|
|
93
|
+
background-color: transparent;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.close-button z-icon {
|
|
98
|
+
--z-icon-width: 1.125rem;
|
|
99
|
+
--z-icon-height: 1.125rem;
|
|
100
|
+
|
|
101
|
+
display: inline-block;
|
|
102
|
+
height: 1.25rem;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.close-button:focus:focus-visible {
|
|
106
|
+
border-radius: 50%;
|
|
107
|
+
box-shadow: var(--shadow-focus-primary);
|
|
108
|
+
outline: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:host(.dark) {
|
|
112
|
+
background: var(--color-surface05);
|
|
113
|
+
color: var(--color-text-inverse);
|
|
114
|
+
fill: var(--color-inverse-icon);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:host(.dark) .close-button:focus:focus-visible {
|
|
118
|
+
box-shadow:
|
|
119
|
+
0 0 0 2px var(--gray900),
|
|
120
|
+
0 0 2px 5px var(--blue25);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:host(.accent) {
|
|
124
|
+
background: var(--color-primary01);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host(.error) {
|
|
128
|
+
background: var(--color-default-error);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:host(.success) {
|
|
132
|
+
background: var(--color-default-success);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:host(.warning) {
|
|
136
|
+
background: var(--color-default-warning);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:host(.accent),
|
|
140
|
+
:host(.error),
|
|
141
|
+
:host(.success) {
|
|
142
|
+
color: var(--color-text-inverse);
|
|
143
|
+
fill: var(--color-inverse-icon);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:host(.warning) .close-button {
|
|
147
|
+
fill: var(--color-default-icon);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* Tablet breakpoint */
|
|
151
|
+
@media (min-width: 768px) {
|
|
152
|
+
:host {
|
|
153
|
+
width: fit-content;
|
|
154
|
+
max-width: 50vw;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.toast-notification-content {
|
|
158
|
+
flex-wrap: nowrap;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* Wide breakpoint */
|
|
163
|
+
@media (min-width: 1366px) {
|
|
164
|
+
:host {
|
|
165
|
+
max-width: 33vw;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
49
169
|
@keyframes slideinleft {
|
|
50
170
|
0% {
|
|
51
171
|
transform: translateX(100%);
|
|
@@ -139,123 +259,3 @@
|
|
|
139
259
|
transform: translateY(100%);
|
|
140
260
|
}
|
|
141
261
|
}
|
|
142
|
-
|
|
143
|
-
:host > #external-container {
|
|
144
|
-
display: flex;
|
|
145
|
-
min-height: calc(var(--space-unit) * 8.5);
|
|
146
|
-
box-sizing: border-box;
|
|
147
|
-
justify-content: space-between;
|
|
148
|
-
padding: calc(var(--space-unit) * 2) 14px calc(var(--space-unit) * 2) calc(var(--space-unit) * 2);
|
|
149
|
-
border-radius: var(--border-size-large);
|
|
150
|
-
box-shadow: var(--shadow-3);
|
|
151
|
-
font-family: var(--font-family-sans);
|
|
152
|
-
font-size: var(--font-size-2);
|
|
153
|
-
font-weight: var(--font-rg);
|
|
154
|
-
letter-spacing: 0.16px;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
:host > #external-container > #inner-container {
|
|
158
|
-
display: flex;
|
|
159
|
-
width: 100%;
|
|
160
|
-
flex-direction: column;
|
|
161
|
-
justify-content: space-between;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
:host > #external-container #inner-container #text {
|
|
165
|
-
padding: var(--space-unit) 0;
|
|
166
|
-
color: var(--color-text-inverse);
|
|
167
|
-
letter-spacing: 0.16px;
|
|
168
|
-
line-height: 20px;
|
|
169
|
-
text-align: start;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
:host > #external-container #inner-container #text > .title {
|
|
173
|
-
margin-right: calc(var(--space-unit) / 2);
|
|
174
|
-
font-weight: var(--font-sb);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
:host > #external-container #inner-container ::slotted([slot="button"]) {
|
|
178
|
-
margin-top: var(--space-unit);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
:host > #external-container #icon {
|
|
182
|
-
padding-top: var(--space-unit);
|
|
183
|
-
margin: 0 calc(var(--space-unit) / 4);
|
|
184
|
-
cursor: pointer;
|
|
185
|
-
fill: var(--color-inverse-icon);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
:host > #external-container #icon:focus-within {
|
|
189
|
-
margin: 0;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
:host > #external-container #icon z-icon {
|
|
193
|
-
margin: 0 0 0 14px;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
:host > #external-container #icon z-icon:focus {
|
|
197
|
-
display: inline-block;
|
|
198
|
-
padding: calc(var(--space-unit) / 4);
|
|
199
|
-
border-radius: 50%;
|
|
200
|
-
box-shadow: var(--shadow-focus-primary);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
:host > #external-container.dark {
|
|
204
|
-
background: var(--color-surface05);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
:host > #external-container.light {
|
|
208
|
-
background: var(--color-surface01);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
:host > #external-container.light #icon {
|
|
212
|
-
fill: var(--color-primary01-icon);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
:host > #external-container.light #inner-container #text,
|
|
216
|
-
:host > #external-container.warning #inner-container #text {
|
|
217
|
-
color: var(--color-default-text);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
:host > #external-container.accent {
|
|
221
|
-
background: var(--color-primary01);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
:host > #external-container.error {
|
|
225
|
-
background: var(--color-default-error);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
:host > #external-container.success {
|
|
229
|
-
background: var(--color-default-success);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
:host > #external-container.warning {
|
|
233
|
-
background: var(--color-default-warning);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
:host > #external-container.warning #icon {
|
|
237
|
-
fill: var(--color-default-icon);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/* Tablet breakpoint */
|
|
241
|
-
@media (min-width: 768px) {
|
|
242
|
-
:host {
|
|
243
|
-
width: unset;
|
|
244
|
-
max-width: 50vw;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
:host > #external-container #inner-container {
|
|
248
|
-
flex-direction: row;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
:host > #external-container #inner-container ::slotted([slot="button"]) {
|
|
252
|
-
margin: 0 0 0 calc(var(--space-unit) * 2);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/* Wide breakpoint */
|
|
257
|
-
@media (min-width: 1366px) {
|
|
258
|
-
:host {
|
|
259
|
-
max-width: 33vw;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
@@ -36,7 +36,7 @@ export class ZToastNotificationList {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return h("slot", { key: '
|
|
39
|
+
return h("slot", { key: 'fcca8c71a9eca7ada8de9d23d4930ec6796b2925', name: "toasts" });
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "z-toast-notification-list"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,10 +15,10 @@ export class ZToggleButton {
|
|
|
15
15
|
this.toggleClick.emit(this.opened);
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h("button", { key: '
|
|
18
|
+
return (h("button", { key: '6df0aee8dfd4785cd9787b2940c12cc3d680ef0c', tabindex: this.avoidclick ? "-1" : "0", class: {
|
|
19
19
|
"isopen": this.opened,
|
|
20
20
|
"avoid-clicks": this.avoidclick,
|
|
21
|
-
}, disabled: this.isdisabled, "aria-expanded": this.opened ? "true" : "false", "aria-label": this.ariaLabel, onClick: () => this.emitToggleClick() }, h("z-icon", { key: '
|
|
21
|
+
}, disabled: this.isdisabled, "aria-expanded": this.opened ? "true" : "false", "aria-label": this.ariaLabel, onClick: () => this.emitToggleClick() }, h("z-icon", { key: 'ab52cd6023b492b5bba8086fd189112e5329c3ad', name: this.opened ? "chevron-down" : "chevron-up", width: 16, height: 16 }), this.label));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "z-toggle-button"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -22,14 +22,14 @@ export class ZToggleSwitch {
|
|
|
22
22
|
this.emitToggleClick();
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: 'b572a91e4ed2f91cbe0b7a393371425a5b9b896a' }, h("input", { key: 'acff3447044eba6dd7622feb954a03d5503111f1', id: this.htmlid, type: "checkbox", checked: this.checked, disabled: this.disabled, onChange: this.handleClick.bind(this) }), h("label", { key: '58b70932d34e39bb1c078947eea614d6384b9660', htmlFor: this.htmlid, class: {
|
|
26
26
|
[this.labelPosition]: true,
|
|
27
27
|
disabled: this.disabled,
|
|
28
|
-
} }, h("span", { key: '
|
|
28
|
+
} }, h("span", { key: '824e029aeb434813b35f72891d991f19a90daded' }, h("slot", { key: '37e8bad4378c65f4a3411fee47a960b9220af5d3' })), h("span", { key: '55eaf2b824ce8e91b77b5f8f2677724b2834fad6', class: {
|
|
29
29
|
container: true,
|
|
30
30
|
disabled: this.disabled,
|
|
31
31
|
checked: this.checked,
|
|
32
|
-
} }, h("span", { key: '
|
|
32
|
+
} }, h("span", { key: '41b7660f89b5ba9829782d3e6b041323357fdefa', class: "circle" }, this.checked && (h("z-icon", { key: 'ae68c35e2765c6eece7dcee8f7ad570a6fc0aa34', width: 12, height: 12, name: "checkmark" })))))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "z-toggle-switch"; }
|
|
35
35
|
static get encapsulation() { return "scoped"; }
|
|
@@ -181,10 +181,10 @@ export class ZTool {
|
|
|
181
181
|
(_a = this.mql) === null || _a === void 0 ? void 0 : _a.removeEventListener("change", this.onMobileViewChange);
|
|
182
182
|
}
|
|
183
183
|
render() {
|
|
184
|
-
return (h(Host, { key: '
|
|
184
|
+
return (h(Host, { key: '206a8594f395b3be01956358cb59968c69cc1317', class: { "z-tool-tooltip-open": this.tooltipOpen } }, h("button", { key: '0ad3f51d384386005f5cd4ca2bdf9e9c9b49c7d2', class: "z-tool", type: "button", ref: (el) => (this.buttonRef = el), "aria-pressed": this.hasSlottedContent ? undefined : this.active ? "true" : "false", "aria-expanded": this.hasSlottedContent ? (this.open ? "true" : "false") : undefined, "aria-haspopup": this.hasSlottedContent ? "true" : undefined, "aria-label": this.htmlAriaLabel || this.tooltip || undefined, disabled: this.disabled, onClick: this.handleClick, onMouseEnter: this.handleTooltipOpen, onMouseLeave: this.handleTooltipClose, onFocus: this.handleTooltipOpen, onBlur: this.handleTooltipClose }, h("z-icon", { key: '67a9360a49a09d6cb715314a610af87aec542608', ref: (el) => (this.iconRef = el), name: this.icon, indicatorColor: this.indicatorColor })), this.tooltip && (h("z-tooltip", { key: '7c66f173dc55e4757302c659d56f8d0acf310b76', class: "z-tool-tooltip", ref: (el) => (this.tooltipRef = el), bindTo: this.iconRef, open: this.tooltipOpen && !this.open, position: this.isNested ? PopoverPosition.BOTTOM : this.tooltipPosition, dark: true, onMouseLeave: this.handleTooltipClose, onBlur: this.handleTooltipClose, onOpenChange: this.onTooltipOpenChange }, h("span", { key: '7ceeeb537eb0292e629952da4aa932644a7468cf', class: "body-4" }, this.tooltip))), this.hasSlottedContent && (h("z-popover", { key: '27fde7bbc6dddb8f081bd47491dc91a70538271a', class: "z-tool-submenu", open: this.open, bindTo: this.isMobile && this.mainToolbar ? this.mainToolbar : this.hostElement, center: true,
|
|
185
185
|
/* disable auto-close to prevent unwanted close behaviors on mobile,
|
|
186
186
|
when the bound element is the main toolbar */
|
|
187
|
-
closable: false, position: this.isMobile ? PopoverPosition.TOP : PopoverPosition.BOTTOM }, h("slot", { key: '
|
|
187
|
+
closable: false, position: this.isMobile ? PopoverPosition.TOP : PopoverPosition.BOTTOM }, h("slot", { key: 'e31fd30c100e732f4aca6b038d277d99b6543589' })))));
|
|
188
188
|
}
|
|
189
189
|
static get is() { return "z-tool"; }
|
|
190
190
|
static get encapsulation() { return "shadow"; }
|