@zanichelli/albe-web-components 12.1.2 → 12.1.4-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/package.json +1 -1
- package/dist/cjs/_commonjsHelpers-537d719a.js +0 -20
- package/dist/cjs/breakpoints-ebe1a437.js +0 -9
- package/dist/cjs/hammer-4f20813e.js +0 -2650
- package/dist/cjs/icons-d385b990.js +0 -862
- package/dist/cjs/index-00b6f6ba.js +0 -20
- package/dist/cjs/index-115387e6.js +0 -17
- package/dist/cjs/index-195ca522.js +0 -2326
- package/dist/cjs/index-20f305f7.js +0 -17
- package/dist/cjs/index-23ca3837.js +0 -53
- package/dist/cjs/index-270a4cf7.js +0 -22
- package/dist/cjs/index-2b0eb1f0.js +0 -34
- package/dist/cjs/index-4e41767c.js +0 -21
- package/dist/cjs/index-53c72420.js +0 -79
- package/dist/cjs/index-544902f0.js +0 -21
- package/dist/cjs/index-bb84dc1c.js +0 -21
- package/dist/cjs/index-cf9497bc.js +0 -344
- package/dist/cjs/index-d30158ef.js +0 -67
- package/dist/cjs/index-df08bc63.js +0 -29
- package/dist/cjs/index-e3bf75bc.js +0 -41
- package/dist/cjs/index-e78caf11.js +0 -74
- package/dist/cjs/index-f64e5dfe.js +0 -17
- package/dist/cjs/index-f6910e7f.js +0 -21
- package/dist/cjs/index.cjs.js +0 -331
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/utils-8335dca3.js +0 -2706
- package/dist/cjs/utils-ee86db4f.js +0 -110
- package/dist/cjs/web-components-library.cjs.js +0 -19
- package/dist/cjs/z-accordion.cjs.entry.js +0 -67
- package/dist/cjs/z-alert.cjs.entry.js +0 -19
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +0 -53
- package/dist/cjs/z-app-header_11.cjs.entry.js +0 -1058
- package/dist/cjs/z-aria-alert.cjs.entry.js +0 -19
- package/dist/cjs/z-avatar.cjs.entry.js +0 -44
- package/dist/cjs/z-book-card.cjs.entry.js +0 -126
- package/dist/cjs/z-breadcrumb.cjs.entry.js +0 -232
- package/dist/cjs/z-button-sort.cjs.entry.js +0 -53
- package/dist/cjs/z-card.cjs.entry.js +0 -53
- package/dist/cjs/z-carousel.cjs.entry.js +0 -150
- package/dist/cjs/z-chip.cjs.entry.js +0 -32
- package/dist/cjs/z-combobox.cjs.entry.js +0 -201
- package/dist/cjs/z-contextual-menu.cjs.entry.js +0 -46
- package/dist/cjs/z-cover-hero.cjs.entry.js +0 -57
- package/dist/cjs/z-date-picker.cjs.entry.js +0 -477
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +0 -1016
- package/dist/cjs/z-file-upload.cjs.entry.js +0 -185
- package/dist/cjs/z-file.cjs.entry.js +0 -48
- package/dist/cjs/z-ghost-loading.cjs.entry.js +0 -19
- package/dist/cjs/z-info-box.cjs.entry.js +0 -25
- package/dist/cjs/z-info-reveal.cjs.entry.js +0 -65
- package/dist/cjs/z-link.cjs.entry.js +0 -74
- package/dist/cjs/z-logo.cjs.entry.js +0 -26
- package/dist/cjs/z-menu-section.cjs.entry.js +0 -54
- package/dist/cjs/z-menu.cjs.entry.js +0 -119
- package/dist/cjs/z-messages-pocket.cjs.entry.js +0 -46
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +0 -63
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +0 -36
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +0 -19
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +0 -69
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +0 -23
- package/dist/cjs/z-myz-card-info.cjs.entry.js +0 -129
- package/dist/cjs/z-myz-card-list.cjs.entry.js +0 -38
- package/dist/cjs/z-myz-card_4.cjs.entry.js +0 -108
- package/dist/cjs/z-myz-list-item.cjs.entry.js +0 -37
- package/dist/cjs/z-myz-list.cjs.entry.js +0 -35
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +0 -74
- package/dist/cjs/z-navigation-tab.cjs.entry.js +0 -73
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +0 -229
- package/dist/cjs/z-notification.cjs.entry.js +0 -41
- package/dist/cjs/z-otp.cjs.entry.js +0 -41
- package/dist/cjs/z-pagination.cjs.entry.js +0 -229
- package/dist/cjs/z-panel-elem.cjs.entry.js +0 -34
- package/dist/cjs/z-pocket-message.cjs.entry.js +0 -19
- package/dist/cjs/z-pocket_3.cjs.entry.js +0 -125
- package/dist/cjs/z-popover.cjs.entry.js +0 -328
- package/dist/cjs/z-range-picker.cjs.entry.js +0 -361
- package/dist/cjs/z-section-title.cjs.entry.js +0 -33
- package/dist/cjs/z-select.cjs.entry.js +0 -332
- package/dist/cjs/z-skip-to-content.cjs.entry.js +0 -74
- package/dist/cjs/z-slideshow.cjs.entry.js +0 -129
- package/dist/cjs/z-stepper-item.cjs.entry.js +0 -22
- package/dist/cjs/z-stepper.cjs.entry.js +0 -19
- package/dist/cjs/z-table-body.cjs.entry.js +0 -10
- package/dist/cjs/z-table-cell.cjs.entry.js +0 -11
- package/dist/cjs/z-table-deprecated.cjs.entry.js +0 -91
- package/dist/cjs/z-table-empty-box.cjs.entry.js +0 -10
- package/dist/cjs/z-table-expanded-row.cjs.entry.js +0 -10
- package/dist/cjs/z-table-footer.cjs.entry.js +0 -10
- package/dist/cjs/z-table-head.cjs.entry.js +0 -10
- package/dist/cjs/z-table-header-row.cjs.entry.js +0 -10
- package/dist/cjs/z-table-header.cjs.entry.js +0 -13
- package/dist/cjs/z-table-row.cjs.entry.js +0 -11
- package/dist/cjs/z-table-sticky-footer.cjs.entry.js +0 -10
- package/dist/cjs/z-table.cjs.entry.js +0 -58
- package/dist/cjs/z-tag.cjs.entry.js +0 -22
- package/dist/cjs/z-tbody.cjs.entry.js +0 -10
- package/dist/cjs/z-td.cjs.entry.js +0 -11
- package/dist/cjs/z-tfoot.cjs.entry.js +0 -10
- package/dist/cjs/z-th.cjs.entry.js +0 -11
- package/dist/cjs/z-thead.cjs.entry.js +0 -10
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +0 -56
- package/dist/cjs/z-toast-notification.cjs.entry.js +0 -200
- package/dist/cjs/z-toggle-button.cjs.entry.js +0 -36
- package/dist/cjs/z-toggle-switch.cjs.entry.js +0 -51
- package/dist/cjs/z-tooltip.cjs.entry.js +0 -37
- package/dist/cjs/z-tr.cjs.entry.js +0 -15
- package/dist/cjs/z-visually-hidden.cjs.entry.js +0 -19
- package/dist/collection/beans/index.js +0 -342
- package/dist/collection/collection-manifest.json +0 -106
- package/dist/collection/components/buttons/z-button/index.js +0 -262
- package/dist/collection/components/buttons/z-button/styles.css +0 -149
- package/dist/collection/components/buttons/z-button-sort/index.js +0 -220
- package/dist/collection/components/buttons/z-button-sort/styles.css +0 -84
- package/dist/collection/components/buttons/z-chip/index.js +0 -147
- package/dist/collection/components/buttons/z-chip/styles.css +0 -122
- package/dist/collection/components/buttons/z-toggle-button/index.js +0 -146
- package/dist/collection/components/buttons/z-toggle-button/styles.css +0 -60
- package/dist/collection/components/buttons/z-toggle-switch/index.js +0 -144
- package/dist/collection/components/buttons/z-toggle-switch/styles.css +0 -104
- package/dist/collection/components/date-picker/styles.css +0 -565
- package/dist/collection/components/date-picker/utils.js +0 -76
- package/dist/collection/components/date-picker/z-date-picker/index.js +0 -295
- package/dist/collection/components/date-picker/z-range-picker/index.js +0 -593
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js +0 -53
- package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +0 -51
- package/dist/collection/components/file-upload/z-file/index.js +0 -131
- package/dist/collection/components/file-upload/z-file/styles.css +0 -23
- package/dist/collection/components/file-upload/z-file-upload/index.js +0 -363
- package/dist/collection/components/file-upload/z-file-upload/styles.css +0 -84
- package/dist/collection/components/icons/icons.js +0 -858
- package/dist/collection/components/icons/z-icon/index.js +0 -114
- package/dist/collection/components/icons/z-icon/styles.css +0 -14
- package/dist/collection/components/index.js +0 -8
- package/dist/collection/components/indicators/z-stepper/index.js +0 -21
- package/dist/collection/components/indicators/z-stepper/styles.css +0 -19
- package/dist/collection/components/indicators/z-stepper-item/index.js +0 -93
- package/dist/collection/components/indicators/z-stepper-item/styles.css +0 -114
- package/dist/collection/components/inputs/z-combobox/index.js +0 -570
- package/dist/collection/components/inputs/z-combobox/styles.css +0 -194
- package/dist/collection/components/inputs/z-input/index.js +0 -804
- package/dist/collection/components/inputs/z-input/styles.css +0 -397
- package/dist/collection/components/inputs/z-input-message/index.js +0 -89
- package/dist/collection/components/inputs/z-input-message/styles.css +0 -48
- package/dist/collection/components/inputs/z-searchbar/index.js +0 -599
- package/dist/collection/components/inputs/z-searchbar/styles.css +0 -185
- package/dist/collection/components/inputs/z-select/index.js +0 -753
- package/dist/collection/components/inputs/z-select/styles.css +0 -123
- package/dist/collection/components/list/z-list/index.js +0 -91
- package/dist/collection/components/list/z-list/styles.css +0 -6
- package/dist/collection/components/list/z-list-element/index.js +0 -508
- package/dist/collection/components/list/z-list-element/styles.css +0 -121
- package/dist/collection/components/list/z-list-group/index.js +0 -175
- package/dist/collection/components/list/z-list-group/styles.css +0 -21
- package/dist/collection/components/list/z-toast-notification-list/index.js +0 -105
- package/dist/collection/components/list/z-toast-notification-list/styles.css +0 -100
- package/dist/collection/components/logo/z-logo/index.js +0 -131
- package/dist/collection/components/logo/z-logo/styles.css +0 -29
- package/dist/collection/components/modal/z-modal/index.js +0 -351
- package/dist/collection/components/modal/z-modal/styles.css +0 -251
- package/dist/collection/components/navigation/z-app-header/index.js +0 -449
- package/dist/collection/components/navigation/z-app-header/index.stories.js +0 -393
- package/dist/collection/components/navigation/z-app-header/styles.css +0 -441
- package/dist/collection/components/navigation/z-menu/index.js +0 -250
- package/dist/collection/components/navigation/z-menu/styles.css +0 -217
- package/dist/collection/components/navigation/z-menu-section/index.js +0 -125
- package/dist/collection/components/navigation/z-menu-section/styles.css +0 -123
- package/dist/collection/components/navigation/z-navigation-tabs/index.js +0 -367
- package/dist/collection/components/navigation/z-navigation-tabs/index.stories.js +0 -12
- package/dist/collection/components/navigation/z-navigation-tabs/styles.css +0 -212
- package/dist/collection/components/notification/z-info-box/index.js +0 -85
- package/dist/collection/components/notification/z-info-box/styles.css +0 -23
- package/dist/collection/components/notification/z-notification/index.js +0 -195
- package/dist/collection/components/notification/z-notification/styles.css +0 -114
- package/dist/collection/components/notification/z-toast-notification/index.js +0 -399
- package/dist/collection/components/notification/z-toast-notification/styles.css +0 -254
- package/dist/collection/components/notification/z-tooltip/index.js +0 -157
- package/dist/collection/components/notification/z-tooltip/styles.css +0 -17
- package/dist/collection/components/panel/z-panel-elem/index.js +0 -197
- package/dist/collection/components/panel/z-panel-elem/styles.css +0 -46
- package/dist/collection/components/table/cells/z-td/index.js +0 -147
- package/dist/collection/components/table/cells/z-td/styles.css +0 -59
- package/dist/collection/components/table/cells/z-th/index.js +0 -209
- package/dist/collection/components/table/cells/z-th/styles.css +0 -88
- package/dist/collection/components/table/z-table/index.js +0 -86
- package/dist/collection/components/table/z-table/styles.css +0 -22
- package/dist/collection/components/table/z-tbody/index.js +0 -22
- package/dist/collection/components/table/z-tbody/styles.css +0 -4
- package/dist/collection/components/table/z-tfoot/index.js +0 -50
- package/dist/collection/components/table/z-tfoot/styles.css +0 -13
- package/dist/collection/components/table/z-thead/index.js +0 -50
- package/dist/collection/components/table/z-thead/styles.css +0 -19
- package/dist/collection/components/table/z-tr/index.js +0 -133
- package/dist/collection/components/table/z-tr/styles.css +0 -87
- package/dist/collection/components/z-accordion/index.js +0 -255
- package/dist/collection/components/z-accordion/styles.css +0 -255
- package/dist/collection/components/z-anchor-navigation/index.js +0 -95
- package/dist/collection/components/z-anchor-navigation/styles.css +0 -128
- package/dist/collection/components/z-aria-alert/index.js +0 -39
- package/dist/collection/components/z-avatar/index.js +0 -142
- package/dist/collection/components/z-avatar/styles.css +0 -32
- package/dist/collection/components/z-book-card/index.js +0 -392
- package/dist/collection/components/z-book-card/styles.css +0 -476
- package/dist/collection/components/z-breadcrumb/index.js +0 -392
- package/dist/collection/components/z-breadcrumb/styles.css +0 -146
- package/dist/collection/components/z-card/index.js +0 -148
- package/dist/collection/components/z-card/styles.css +0 -213
- package/dist/collection/components/z-carousel/index.js +0 -304
- package/dist/collection/components/z-carousel/styles.css +0 -129
- package/dist/collection/components/z-contextual-menu/index.js +0 -126
- package/dist/collection/components/z-contextual-menu/styles.css +0 -60
- package/dist/collection/components/z-cover-hero/index.js +0 -146
- package/dist/collection/components/z-cover-hero/styles.css +0 -93
- package/dist/collection/components/z-divider/index.js +0 -95
- package/dist/collection/components/z-divider/styles.css +0 -37
- package/dist/collection/components/z-ghost-loading/index.js +0 -18
- package/dist/collection/components/z-ghost-loading/styles.css +0 -34
- package/dist/collection/components/z-info-reveal/index.js +0 -147
- package/dist/collection/components/z-info-reveal/styles.css +0 -103
- package/dist/collection/components/z-offcanvas/index.js +0 -162
- package/dist/collection/components/z-offcanvas/styles.css +0 -182
- package/dist/collection/components/z-pagination/index.js +0 -435
- package/dist/collection/components/z-pagination/styles.css +0 -199
- package/dist/collection/components/z-popover/index.js +0 -513
- package/dist/collection/components/z-popover/styles.css +0 -147
- package/dist/collection/components/z-section-title/index.js +0 -88
- package/dist/collection/components/z-section-title/styles.css +0 -45
- package/dist/collection/components/z-skip-to-content/index.js +0 -147
- package/dist/collection/components/z-skip-to-content/styles.css +0 -81
- package/dist/collection/components/z-tag/index.js +0 -65
- package/dist/collection/components/z-tag/styles.css +0 -46
- package/dist/collection/components/z-visually-hidden/index.js +0 -18
- package/dist/collection/components/z-visually-hidden/styles.css +0 -12
- package/dist/collection/constants/breakpoints.js +0 -4
- package/dist/collection/constants/icons.js +0 -6
- package/dist/collection/deprecated/navigation-tab.css +0 -138
- package/dist/collection/deprecated/z-link/index.js +0 -318
- package/dist/collection/deprecated/z-link/styles.css +0 -167
- package/dist/collection/deprecated/z-navigation-tab/index.js +0 -290
- package/dist/collection/deprecated/z-navigation-tab-link/index.js +0 -313
- package/dist/collection/deprecated/z-table-deprecated/z-table-body/index.js +0 -26
- package/dist/collection/deprecated/z-table-deprecated/z-table-body/styles.css +0 -9
- package/dist/collection/deprecated/z-table-deprecated/z-table-cell/index.js +0 -84
- package/dist/collection/deprecated/z-table-deprecated/z-table-cell/styles.css +0 -58
- package/dist/collection/deprecated/z-table-deprecated/z-table-deprecated/index.js +0 -363
- package/dist/collection/deprecated/z-table-deprecated/z-table-deprecated/styles.css +0 -115
- package/dist/collection/deprecated/z-table-deprecated/z-table-empty-box/index.js +0 -75
- package/dist/collection/deprecated/z-table-deprecated/z-table-empty-box/styles.css +0 -38
- package/dist/collection/deprecated/z-table-deprecated/z-table-expanded-row/index.js +0 -42
- package/dist/collection/deprecated/z-table-deprecated/z-table-expanded-row/styles.css +0 -9
- package/dist/collection/deprecated/z-table-deprecated/z-table-footer/index.js +0 -25
- package/dist/collection/deprecated/z-table-deprecated/z-table-footer/styles.css +0 -5
- package/dist/collection/deprecated/z-table-deprecated/z-table-head/index.js +0 -25
- package/dist/collection/deprecated/z-table-deprecated/z-table-head/styles.css +0 -5
- package/dist/collection/deprecated/z-table-deprecated/z-table-header/index.js +0 -226
- package/dist/collection/deprecated/z-table-deprecated/z-table-header/styles.css +0 -71
- package/dist/collection/deprecated/z-table-deprecated/z-table-header-row/index.js +0 -44
- package/dist/collection/deprecated/z-table-deprecated/z-table-header-row/styles.css +0 -13
- package/dist/collection/deprecated/z-table-deprecated/z-table-row/index.js +0 -95
- package/dist/collection/deprecated/z-table-deprecated/z-table-row/styles.css +0 -45
- package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/index.js +0 -22
- package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/styles.css +0 -11
- package/dist/collection/index.js +0 -7
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +0 -129
- package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +0 -44
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +0 -151
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/styles.css +0 -62
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +0 -22
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/styles.css +0 -13
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +0 -93
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/styles.css +0 -11
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +0 -177
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +0 -72
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +0 -219
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +0 -181
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +0 -22
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/styles.css +0 -20
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +0 -109
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +0 -59
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +0 -81
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +0 -69
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +0 -199
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +0 -93
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +0 -60
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/styles.css +0 -41
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +0 -78
- package/dist/collection/snowflakes/myz/list/z-myz-list/styles.css +0 -4
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +0 -192
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +0 -66
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +0 -120
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/styles.css +0 -102
- package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +0 -191
- package/dist/collection/snowflakes/myz/pocket/z-pocket/styles.css +0 -44
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +0 -84
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/styles.css +0 -41
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +0 -93
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/styles.css +0 -27
- package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.js +0 -22
- package/dist/collection/snowflakes/myz/pocket/z-pocket-message/styles.css +0 -44
- package/dist/collection/snowflakes/myz/z-alert/index.js +0 -47
- package/dist/collection/snowflakes/myz/z-alert/styles.css +0 -28
- package/dist/collection/snowflakes/myz/z-otp/index.js +0 -120
- package/dist/collection/snowflakes/myz/z-otp/styles.css +0 -47
- package/dist/collection/snowflakes/myz/z-slideshow/index.js +0 -180
- package/dist/collection/snowflakes/myz/z-slideshow/styles.css +0 -127
- package/dist/collection/utils/storybook-utils.js +0 -76
- package/dist/collection/utils/utils.js +0 -115
- package/dist/esm/_commonjsHelpers-9943807e.js +0 -17
- package/dist/esm/breakpoints-9b81eb1b.js +0 -5
- package/dist/esm/hammer-c3266b17.js +0 -2648
- package/dist/esm/icons-e3232103.js +0 -860
- package/dist/esm/index-0a587f24.js +0 -51
- package/dist/esm/index-0cdc998f.js +0 -19
- package/dist/esm/index-361b27f9.js +0 -15
- package/dist/esm/index-47f23745.js +0 -344
- package/dist/esm/index-4968ce56.js +0 -2298
- package/dist/esm/index-4d1853ea.js +0 -77
- package/dist/esm/index-531501d7.js +0 -15
- package/dist/esm/index-6161978d.js +0 -27
- package/dist/esm/index-772a7413.js +0 -20
- package/dist/esm/index-816801e5.js +0 -18
- package/dist/esm/index-85dc8bc0.js +0 -32
- package/dist/esm/index-88a23895.js +0 -19
- package/dist/esm/index-8f7fd43f.js +0 -19
- package/dist/esm/index-af5c6b4c.js +0 -15
- package/dist/esm/index-dc50a9ae.js +0 -72
- package/dist/esm/index-e6ee76f0.js +0 -39
- package/dist/esm/index-fac1fe6c.js +0 -19
- package/dist/esm/index-fb19ca57.js +0 -65
- package/dist/esm/index.js +0 -9
- package/dist/esm/loader.js +0 -17
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/utils-2a4ef29d.js +0 -100
- package/dist/esm/utils-8e0bd81d.js +0 -2700
- package/dist/esm/web-components-library.js +0 -17
- package/dist/esm/z-accordion.entry.js +0 -63
- package/dist/esm/z-alert.entry.js +0 -15
- package/dist/esm/z-anchor-navigation.entry.js +0 -49
- package/dist/esm/z-app-header_11.entry.js +0 -1044
- package/dist/esm/z-aria-alert.entry.js +0 -15
- package/dist/esm/z-avatar.entry.js +0 -40
- package/dist/esm/z-book-card.entry.js +0 -122
- package/dist/esm/z-breadcrumb.entry.js +0 -228
- package/dist/esm/z-button-sort.entry.js +0 -49
- package/dist/esm/z-card.entry.js +0 -49
- package/dist/esm/z-carousel.entry.js +0 -146
- package/dist/esm/z-chip.entry.js +0 -28
- package/dist/esm/z-combobox.entry.js +0 -197
- package/dist/esm/z-contextual-menu.entry.js +0 -42
- package/dist/esm/z-cover-hero.entry.js +0 -53
- package/dist/esm/z-date-picker.entry.js +0 -473
- package/dist/esm/z-dragdrop-area_2.entry.js +0 -1011
- package/dist/esm/z-file-upload.entry.js +0 -181
- package/dist/esm/z-file.entry.js +0 -44
- package/dist/esm/z-ghost-loading.entry.js +0 -15
- package/dist/esm/z-info-box.entry.js +0 -21
- package/dist/esm/z-info-reveal.entry.js +0 -61
- package/dist/esm/z-link.entry.js +0 -70
- package/dist/esm/z-logo.entry.js +0 -22
- package/dist/esm/z-menu-section.entry.js +0 -50
- package/dist/esm/z-menu.entry.js +0 -115
- package/dist/esm/z-messages-pocket.entry.js +0 -42
- package/dist/esm/z-myz-card-alert.entry.js +0 -59
- package/dist/esm/z-myz-card-dictionary.entry.js +0 -32
- package/dist/esm/z-myz-card-footer-sections.entry.js +0 -15
- package/dist/esm/z-myz-card-footer.entry.js +0 -65
- package/dist/esm/z-myz-card-icon.entry.js +0 -19
- package/dist/esm/z-myz-card-info.entry.js +0 -125
- package/dist/esm/z-myz-card-list.entry.js +0 -34
- package/dist/esm/z-myz-card_4.entry.js +0 -101
- package/dist/esm/z-myz-list-item.entry.js +0 -33
- package/dist/esm/z-myz-list.entry.js +0 -31
- package/dist/esm/z-navigation-tab-link.entry.js +0 -70
- package/dist/esm/z-navigation-tab.entry.js +0 -69
- package/dist/esm/z-navigation-tabs.entry.js +0 -225
- package/dist/esm/z-notification.entry.js +0 -37
- package/dist/esm/z-otp.entry.js +0 -37
- package/dist/esm/z-pagination.entry.js +0 -225
- package/dist/esm/z-panel-elem.entry.js +0 -30
- package/dist/esm/z-pocket-message.entry.js +0 -15
- package/dist/esm/z-pocket_3.entry.js +0 -119
- package/dist/esm/z-popover.entry.js +0 -324
- package/dist/esm/z-range-picker.entry.js +0 -357
- package/dist/esm/z-section-title.entry.js +0 -29
- package/dist/esm/z-select.entry.js +0 -328
- package/dist/esm/z-skip-to-content.entry.js +0 -70
- package/dist/esm/z-slideshow.entry.js +0 -125
- package/dist/esm/z-stepper-item.entry.js +0 -18
- package/dist/esm/z-stepper.entry.js +0 -15
- package/dist/esm/z-table-body.entry.js +0 -2
- package/dist/esm/z-table-cell.entry.js +0 -3
- package/dist/esm/z-table-deprecated.entry.js +0 -87
- package/dist/esm/z-table-empty-box.entry.js +0 -2
- package/dist/esm/z-table-expanded-row.entry.js +0 -2
- package/dist/esm/z-table-footer.entry.js +0 -2
- package/dist/esm/z-table-head.entry.js +0 -2
- package/dist/esm/z-table-header-row.entry.js +0 -2
- package/dist/esm/z-table-header.entry.js +0 -5
- package/dist/esm/z-table-row.entry.js +0 -3
- package/dist/esm/z-table-sticky-footer.entry.js +0 -2
- package/dist/esm/z-table.entry.js +0 -54
- package/dist/esm/z-tag.entry.js +0 -18
- package/dist/esm/z-tbody.entry.js +0 -2
- package/dist/esm/z-td.entry.js +0 -3
- package/dist/esm/z-tfoot.entry.js +0 -2
- package/dist/esm/z-th.entry.js +0 -3
- package/dist/esm/z-thead.entry.js +0 -2
- package/dist/esm/z-toast-notification-list.entry.js +0 -52
- package/dist/esm/z-toast-notification.entry.js +0 -196
- package/dist/esm/z-toggle-button.entry.js +0 -32
- package/dist/esm/z-toggle-switch.entry.js +0 -47
- package/dist/esm/z-tooltip.entry.js +0 -33
- package/dist/esm/z-tr.entry.js +0 -7
- package/dist/esm/z-visually-hidden.entry.js +0 -15
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/types/beans/index.d.ts +0 -398
- package/dist/types/components/buttons/z-button/index.d.ts +0 -31
- package/dist/types/components/buttons/z-button-sort/index.d.ts +0 -28
- package/dist/types/components/buttons/z-chip/index.d.ts +0 -18
- package/dist/types/components/buttons/z-toggle-button/index.d.ts +0 -17
- package/dist/types/components/buttons/z-toggle-switch/index.d.ts +0 -17
- package/dist/types/components/date-picker/utils.d.ts +0 -4
- package/dist/types/components/date-picker/z-date-picker/index.d.ts +0 -29
- package/dist/types/components/date-picker/z-range-picker/index.d.ts +0 -52
- package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +0 -9
- package/dist/types/components/file-upload/z-file/index.d.ts +0 -22
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +0 -52
- package/dist/types/components/icons/icons.d.ts +0 -1549
- package/dist/types/components/icons/z-icon/index.d.ts +0 -14
- package/dist/types/components/index.d.ts +0 -0
- package/dist/types/components/indicators/z-stepper/index.d.ts +0 -6
- package/dist/types/components/indicators/z-stepper-item/index.d.ts +0 -19
- package/dist/types/components/inputs/z-combobox/index.d.ts +0 -71
- package/dist/types/components/inputs/z-input/index.d.ts +0 -91
- package/dist/types/components/inputs/z-input-message/index.d.ts +0 -12
- package/dist/types/components/inputs/z-searchbar/index.d.ts +0 -73
- package/dist/types/components/inputs/z-select/index.d.ts +0 -82
- package/dist/types/components/list/z-list/index.d.ts +0 -15
- package/dist/types/components/list/z-list-element/index.d.ts +0 -95
- package/dist/types/components/list/z-list-group/index.d.ts +0 -28
- package/dist/types/components/list/z-toast-notification-list/index.d.ts +0 -14
- package/dist/types/components/logo/z-logo/index.d.ts +0 -15
- package/dist/types/components/modal/z-modal/index.d.ts +0 -49
- package/dist/types/components/navigation/z-app-header/index.d.ts +0 -149
- package/dist/types/components/navigation/z-menu/index.d.ts +0 -61
- package/dist/types/components/navigation/z-menu-section/index.d.ts +0 -31
- package/dist/types/components/navigation/z-navigation-tabs/index.d.ts +0 -114
- package/dist/types/components/notification/z-info-box/index.d.ts +0 -14
- package/dist/types/components/notification/z-notification/index.d.ts +0 -32
- package/dist/types/components/notification/z-toast-notification/index.d.ts +0 -56
- package/dist/types/components/notification/z-tooltip/index.d.ts +0 -32
- package/dist/types/components/panel/z-panel-elem/index.d.ts +0 -25
- package/dist/types/components/table/cells/z-td/index.d.ts +0 -37
- package/dist/types/components/table/cells/z-th/index.d.ts +0 -56
- package/dist/types/components/table/z-table/index.d.ts +0 -28
- package/dist/types/components/table/z-tbody/index.d.ts +0 -7
- package/dist/types/components/table/z-tfoot/index.d.ts +0 -11
- package/dist/types/components/table/z-thead/index.d.ts +0 -11
- package/dist/types/components/table/z-tr/index.d.ts +0 -41
- package/dist/types/components/z-accordion/index.d.ts +0 -65
- package/dist/types/components/z-anchor-navigation/index.d.ts +0 -39
- package/dist/types/components/z-aria-alert/index.d.ts +0 -6
- package/dist/types/components/z-avatar/index.d.ts +0 -16
- package/dist/types/components/z-book-card/index.d.ts +0 -95
- package/dist/types/components/z-breadcrumb/index.d.ts +0 -56
- package/dist/types/components/z-card/index.d.ts +0 -38
- package/dist/types/components/z-carousel/index.d.ts +0 -63
- package/dist/types/components/z-contextual-menu/index.d.ts +0 -26
- package/dist/types/components/z-cover-hero/index.d.ts +0 -41
- package/dist/types/components/z-divider/index.d.ts +0 -10
- package/dist/types/components/z-ghost-loading/index.d.ts +0 -3
- package/dist/types/components/z-info-reveal/index.d.ts +0 -29
- package/dist/types/components/z-offcanvas/index.d.ts +0 -27
- package/dist/types/components/z-pagination/index.d.ts +0 -109
- package/dist/types/components/z-popover/index.d.ts +0 -69
- package/dist/types/components/z-section-title/index.d.ts +0 -25
- package/dist/types/components/z-skip-to-content/index.d.ts +0 -21
- package/dist/types/components/z-tag/index.d.ts +0 -13
- package/dist/types/components/z-visually-hidden/index.d.ts +0 -3
- package/dist/types/components.d.ts +0 -5198
- package/dist/types/constants/breakpoints.d.ts +0 -4
- package/dist/types/constants/icons.d.ts +0 -6
- package/dist/types/deprecated/z-link/index.d.ts +0 -41
- package/dist/types/deprecated/z-navigation-tab/index.d.ts +0 -69
- package/dist/types/deprecated/z-navigation-tab-link/index.d.ts +0 -77
- package/dist/types/deprecated/z-table-deprecated/z-table-body/index.d.ts +0 -8
- package/dist/types/deprecated/z-table-deprecated/z-table-cell/index.d.ts +0 -14
- package/dist/types/deprecated/z-table-deprecated/z-table-deprecated/index.d.ts +0 -59
- package/dist/types/deprecated/z-table-deprecated/z-table-empty-box/index.d.ts +0 -15
- package/dist/types/deprecated/z-table-deprecated/z-table-expanded-row/index.d.ts +0 -8
- package/dist/types/deprecated/z-table-deprecated/z-table-footer/index.d.ts +0 -8
- package/dist/types/deprecated/z-table-deprecated/z-table-head/index.d.ts +0 -8
- package/dist/types/deprecated/z-table-deprecated/z-table-header/index.d.ts +0 -31
- package/dist/types/deprecated/z-table-deprecated/z-table-header-row/index.d.ts +0 -9
- package/dist/types/deprecated/z-table-deprecated/z-table-row/index.d.ts +0 -16
- package/dist/types/deprecated/z-table-deprecated/z-table-sticky-footer/index.d.ts +0 -7
- package/dist/types/index.d.ts +0 -7
- package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +0 -16
- package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +0 -19
- package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +0 -7
- package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +0 -12
- package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +0 -24
- package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +0 -34
- package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +0 -7
- package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +0 -19
- package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +0 -9
- package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +0 -36
- package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +0 -9
- package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +0 -11
- package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +0 -25
- package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +0 -16
- package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +0 -25
- package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +0 -12
- package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +0 -18
- package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +0 -7
- package/dist/types/snowflakes/myz/z-alert/index.d.ts +0 -9
- package/dist/types/snowflakes/myz/z-otp/index.d.ts +0 -17
- package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +0 -30
- package/dist/types/stencil-public-runtime.d.ts +0 -1576
- package/dist/types/utils/storybook-utils.d.ts +0 -50
- package/dist/types/utils/utils.d.ts +0 -24
- package/dist/web-components-library/index.esm.js +0 -1
- package/dist/web-components-library/p-01e2e8d4.entry.js +0 -1
- package/dist/web-components-library/p-035fbb3e.entry.js +0 -1
- package/dist/web-components-library/p-03b13390.entry.js +0 -1
- package/dist/web-components-library/p-04b2ab0d.entry.js +0 -1
- package/dist/web-components-library/p-05ba9739.entry.js +0 -1
- package/dist/web-components-library/p-06c94384.entry.js +0 -1
- package/dist/web-components-library/p-100207d8.entry.js +0 -1
- package/dist/web-components-library/p-1086a0fa.entry.js +0 -1
- package/dist/web-components-library/p-112455b1.js +0 -1
- package/dist/web-components-library/p-138bc87e.entry.js +0 -1
- package/dist/web-components-library/p-13fc4378.js +0 -1
- package/dist/web-components-library/p-15a606ce.entry.js +0 -1
- package/dist/web-components-library/p-19876b0d.entry.js +0 -1
- package/dist/web-components-library/p-1d805413.entry.js +0 -1
- package/dist/web-components-library/p-29fa362c.entry.js +0 -1
- package/dist/web-components-library/p-2cb45213.entry.js +0 -1
- package/dist/web-components-library/p-33305cc8.entry.js +0 -1
- package/dist/web-components-library/p-3636078a.entry.js +0 -1
- package/dist/web-components-library/p-376f2928.entry.js +0 -1
- package/dist/web-components-library/p-392899e9.entry.js +0 -1
- package/dist/web-components-library/p-39a446ec.entry.js +0 -1
- package/dist/web-components-library/p-39b7ad4f.entry.js +0 -1
- package/dist/web-components-library/p-3bb2d909.entry.js +0 -1
- package/dist/web-components-library/p-417482b0.entry.js +0 -1
- package/dist/web-components-library/p-485fd3db.entry.js +0 -1
- package/dist/web-components-library/p-49f4e9a0.entry.js +0 -1
- package/dist/web-components-library/p-4d0d5d93.entry.js +0 -1
- package/dist/web-components-library/p-50f78a81.entry.js +0 -1
- package/dist/web-components-library/p-5338cc37.entry.js +0 -1
- package/dist/web-components-library/p-571b55dc.js +0 -1
- package/dist/web-components-library/p-57c6d414.entry.js +0 -1
- package/dist/web-components-library/p-5944a8f2.entry.js +0 -1
- package/dist/web-components-library/p-5c177ba5.entry.js +0 -1
- package/dist/web-components-library/p-5d274fcc.entry.js +0 -1
- package/dist/web-components-library/p-5f202970.entry.js +0 -1
- package/dist/web-components-library/p-5fd3ed9c.entry.js +0 -1
- package/dist/web-components-library/p-61c00383.entry.js +0 -1
- package/dist/web-components-library/p-68410ea2.js +0 -1
- package/dist/web-components-library/p-6a4403c6.entry.js +0 -1
- package/dist/web-components-library/p-6ed0aaab.entry.js +0 -1
- package/dist/web-components-library/p-7426f322.js +0 -1
- package/dist/web-components-library/p-7588fbf0.js +0 -1
- package/dist/web-components-library/p-7907bdf7.entry.js +0 -1
- package/dist/web-components-library/p-7b990086.js +0 -1
- package/dist/web-components-library/p-7c5ddeb0.entry.js +0 -1
- package/dist/web-components-library/p-80e52459.js +0 -1
- package/dist/web-components-library/p-81006561.js +0 -2
- package/dist/web-components-library/p-86758f78.entry.js +0 -1
- package/dist/web-components-library/p-8a45ae2a.entry.js +0 -1
- package/dist/web-components-library/p-8c31e60b.entry.js +0 -1
- package/dist/web-components-library/p-9021c92a.js +0 -1
- package/dist/web-components-library/p-94afe4dd.entry.js +0 -1
- package/dist/web-components-library/p-9508cd3e.js +0 -1
- package/dist/web-components-library/p-95370f75.js +0 -1
- package/dist/web-components-library/p-96fc8078.entry.js +0 -1
- package/dist/web-components-library/p-98204840.entry.js +0 -1
- package/dist/web-components-library/p-98badafc.js +0 -1
- package/dist/web-components-library/p-9b0bcd43.entry.js +0 -1
- package/dist/web-components-library/p-9c1ed1e8.entry.js +0 -1
- package/dist/web-components-library/p-9ff2fc8e.entry.js +0 -1
- package/dist/web-components-library/p-a01baa71.js +0 -1
- package/dist/web-components-library/p-a1663ab1.entry.js +0 -1
- package/dist/web-components-library/p-a3587fd6.entry.js +0 -16
- package/dist/web-components-library/p-a4502b1e.entry.js +0 -1
- package/dist/web-components-library/p-a48e5c46.entry.js +0 -1
- package/dist/web-components-library/p-a50262e8.entry.js +0 -1
- package/dist/web-components-library/p-a862a070.entry.js +0 -1
- package/dist/web-components-library/p-a9d2edee.entry.js +0 -1
- package/dist/web-components-library/p-acb89afa.entry.js +0 -1
- package/dist/web-components-library/p-b2527ca1.entry.js +0 -1
- package/dist/web-components-library/p-b497e33e.js +0 -1
- package/dist/web-components-library/p-b99039ed.js +0 -1
- package/dist/web-components-library/p-c298cb2f.js +0 -1
- package/dist/web-components-library/p-c44d87bd.entry.js +0 -1
- package/dist/web-components-library/p-c6e7991f.entry.js +0 -1
- package/dist/web-components-library/p-c9bc5148.js +0 -1
- package/dist/web-components-library/p-ca472d1c.entry.js +0 -1
- package/dist/web-components-library/p-cbb670c5.js +0 -1
- package/dist/web-components-library/p-cc009af8.entry.js +0 -1
- package/dist/web-components-library/p-cd561d69.js +0 -1
- package/dist/web-components-library/p-d2946762.entry.js +0 -1
- package/dist/web-components-library/p-db0a64af.js +0 -1
- package/dist/web-components-library/p-dd4fc386.entry.js +0 -1
- package/dist/web-components-library/p-de5688e9.entry.js +0 -1
- package/dist/web-components-library/p-decbd59d.entry.js +0 -1
- package/dist/web-components-library/p-e43e61ac.js +0 -7
- package/dist/web-components-library/p-e54d4ef9.entry.js +0 -1
- package/dist/web-components-library/p-e7c6d651.entry.js +0 -1
- package/dist/web-components-library/p-ed42ceca.entry.js +0 -1
- package/dist/web-components-library/p-f058316f.entry.js +0 -1
- package/dist/web-components-library/p-f14105c6.entry.js +0 -1
- package/dist/web-components-library/p-f3cc3f27.entry.js +0 -1
- package/dist/web-components-library/p-f46fa177.entry.js +0 -1
- package/dist/web-components-library/p-f4e2e76b.entry.js +0 -1
- package/dist/web-components-library/p-f5ae1514.entry.js +0 -1
- package/dist/web-components-library/p-f5bc7dda.entry.js +0 -1
- package/dist/web-components-library/p-f8383e14.entry.js +0 -1
- package/dist/web-components-library/p-f976f29f.js +0 -1
- package/dist/web-components-library/p-f9873cb9.entry.js +0 -1
- package/dist/web-components-library/p-fd58b7a2.entry.js +0 -1
- package/dist/web-components-library/p-fde82dc3.js +0 -1
- package/dist/web-components-library/p-ff5a6e34.entry.js +0 -1
- package/dist/web-components-library/p-ffde06d1.entry.js +0 -1
- package/dist/web-components-library/web-components-library.css +0 -3
- package/dist/web-components-library/web-components-library.esm.js +0 -1
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -12
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -11
- package/react/components.d.ts +0 -97
- package/react/components.js +0 -104
- package/react/components.js.map +0 -1
- package/react/index.d.ts +0 -1
- package/react/index.js +0 -14
- package/react/index.js.map +0 -1
- package/react/react-component-lib/createComponent.d.ts +0 -10
- package/react/react-component-lib/createComponent.js +0 -98
- package/react/react-component-lib/createComponent.js.map +0 -1
- package/react/react-component-lib/createOverlayComponent.d.ts +0 -21
- package/react/react-component-lib/createOverlayComponent.js +0 -116
- package/react/react-component-lib/createOverlayComponent.js.map +0 -1
- package/react/react-component-lib/index.d.ts +0 -2
- package/react/react-component-lib/index.js +0 -8
- package/react/react-component-lib/index.js.map +0 -1
- package/react/react-component-lib/interfaces.d.ts +0 -29
- package/react/react-component-lib/interfaces.js +0 -3
- package/react/react-component-lib/interfaces.js.map +0 -1
- package/react/react-component-lib/utils/attachProps.d.ts +0 -12
- package/react/react-component-lib/utils/attachProps.js +0 -105
- package/react/react-component-lib/utils/attachProps.js.map +0 -1
- package/react/react-component-lib/utils/case.d.ts +0 -2
- package/react/react-component-lib/utils/case.js +0 -12
- package/react/react-component-lib/utils/case.js.map +0 -1
- package/react/react-component-lib/utils/dev.d.ts +0 -2
- package/react/react-component-lib/utils/dev.js +0 -18
- package/react/react-component-lib/utils/dev.js.map +0 -1
- package/react/react-component-lib/utils/index.d.ts +0 -10
- package/react/react-component-lib/utils/index.js +0 -54
- package/react/react-component-lib/utils/index.js.map +0 -1
- package/www/assets/favicon.png +0 -0
- package/www/assets/images/png/arrowDown.png +0 -0
- package/www/assets/images/png/arrowUp.png +0 -0
- package/www/assets/images/png/back-button.png +0 -0
- package/www/assets/images/png/bovolenta-logo.png +0 -0
- package/www/assets/images/png/cart-icon.png +0 -0
- package/www/assets/images/png/cea-logo.png +0 -0
- package/www/assets/images/png/clitt-logo.png +0 -0
- package/www/assets/images/png/down-arrow.png +0 -0
- package/www/assets/images/png/download.png +0 -0
- package/www/assets/images/png/facebook.png +0 -0
- package/www/assets/images/png/gruoss.png +0 -0
- package/www/assets/images/png/instagram.png +0 -0
- package/www/assets/images/png/lucisano-logo.png +0 -0
- package/www/assets/images/png/myzanichelli-logo.png +0 -0
- package/www/assets/images/png/question-mark.png +0 -0
- package/www/assets/images/png/suitcase-icon.png +0 -0
- package/www/assets/images/png/twitter.png +0 -0
- package/www/assets/images/png/up-arrow.png +0 -0
- package/www/assets/images/png/user.png +0 -0
- package/www/assets/images/png/user_transparent.png +0 -0
- package/www/assets/images/png/youtube.png +0 -0
- package/www/assets/images/png/zanichelli-add-book-gray@8x.png +0 -0
- package/www/assets/images/png/zanichelli-book-remove-gray@8x.png +0 -0
- package/www/assets/images/png/zanichelli-error-image.png +0 -0
- package/www/assets/images/png/zanichelli-external-link-2@8x.png +0 -0
- package/www/assets/images/png/zanichelli-external-link-3@8x.png +0 -0
- package/www/assets/images/png/zanichelli-external-link@8x.png +0 -0
- package/www/assets/images/png/zanichelli-logo-2.png +0 -0
- package/www/assets/images/png/zanichelli-logo-footer.png +0 -0
- package/www/assets/images/png/zanichelli-logo.png +0 -0
- package/www/build/index.esm.js +0 -1
- package/www/build/p-01e2e8d4.entry.js +0 -1
- package/www/build/p-035fbb3e.entry.js +0 -1
- package/www/build/p-03b13390.entry.js +0 -1
- package/www/build/p-04b2ab0d.entry.js +0 -1
- package/www/build/p-05ba9739.entry.js +0 -1
- package/www/build/p-06c94384.entry.js +0 -1
- package/www/build/p-100207d8.entry.js +0 -1
- package/www/build/p-1086a0fa.entry.js +0 -1
- package/www/build/p-112455b1.js +0 -1
- package/www/build/p-138bc87e.entry.js +0 -1
- package/www/build/p-13fc4378.js +0 -1
- package/www/build/p-15a606ce.entry.js +0 -1
- package/www/build/p-19876b0d.entry.js +0 -1
- package/www/build/p-1d805413.entry.js +0 -1
- package/www/build/p-29fa362c.entry.js +0 -1
- package/www/build/p-2cb45213.entry.js +0 -1
- package/www/build/p-33305cc8.entry.js +0 -1
- package/www/build/p-3636078a.entry.js +0 -1
- package/www/build/p-376f2928.entry.js +0 -1
- package/www/build/p-392899e9.entry.js +0 -1
- package/www/build/p-39a446ec.entry.js +0 -1
- package/www/build/p-39b7ad4f.entry.js +0 -1
- package/www/build/p-3bb2d909.entry.js +0 -1
- package/www/build/p-417482b0.entry.js +0 -1
- package/www/build/p-485fd3db.entry.js +0 -1
- package/www/build/p-49f4e9a0.entry.js +0 -1
- package/www/build/p-4d0d5d93.entry.js +0 -1
- package/www/build/p-50f78a81.entry.js +0 -1
- package/www/build/p-5338cc37.entry.js +0 -1
- package/www/build/p-571b55dc.js +0 -1
- package/www/build/p-57c6d414.entry.js +0 -1
- package/www/build/p-5944a8f2.entry.js +0 -1
- package/www/build/p-5c177ba5.entry.js +0 -1
- package/www/build/p-5d274fcc.entry.js +0 -1
- package/www/build/p-5f202970.entry.js +0 -1
- package/www/build/p-5fd3ed9c.entry.js +0 -1
- package/www/build/p-61c00383.entry.js +0 -1
- package/www/build/p-68410ea2.js +0 -1
- package/www/build/p-6a4403c6.entry.js +0 -1
- package/www/build/p-6ed0aaab.entry.js +0 -1
- package/www/build/p-7426f322.js +0 -1
- package/www/build/p-7588fbf0.js +0 -1
- package/www/build/p-7907bdf7.entry.js +0 -1
- package/www/build/p-7b990086.js +0 -1
- package/www/build/p-7c5ddeb0.entry.js +0 -1
- package/www/build/p-80e52459.js +0 -1
- package/www/build/p-81006561.js +0 -2
- package/www/build/p-86758f78.entry.js +0 -1
- package/www/build/p-8a45ae2a.entry.js +0 -1
- package/www/build/p-8c31e60b.entry.js +0 -1
- package/www/build/p-9021c92a.js +0 -1
- package/www/build/p-94afe4dd.entry.js +0 -1
- package/www/build/p-9508cd3e.js +0 -1
- package/www/build/p-95370f75.js +0 -1
- package/www/build/p-96fc8078.entry.js +0 -1
- package/www/build/p-98204840.entry.js +0 -1
- package/www/build/p-98badafc.js +0 -1
- package/www/build/p-9b0bcd43.entry.js +0 -1
- package/www/build/p-9c1ed1e8.entry.js +0 -1
- package/www/build/p-9ff2fc8e.entry.js +0 -1
- package/www/build/p-a01baa71.js +0 -1
- package/www/build/p-a1663ab1.entry.js +0 -1
- package/www/build/p-a3587fd6.entry.js +0 -16
- package/www/build/p-a4502b1e.entry.js +0 -1
- package/www/build/p-a48e5c46.entry.js +0 -1
- package/www/build/p-a50262e8.entry.js +0 -1
- package/www/build/p-a69eedf3.css +0 -3
- package/www/build/p-a862a070.entry.js +0 -1
- package/www/build/p-a9d2edee.entry.js +0 -1
- package/www/build/p-acb89afa.entry.js +0 -1
- package/www/build/p-b2527ca1.entry.js +0 -1
- package/www/build/p-b497e33e.js +0 -1
- package/www/build/p-b99039ed.js +0 -1
- package/www/build/p-c298cb2f.js +0 -1
- package/www/build/p-c44d87bd.entry.js +0 -1
- package/www/build/p-c6e7991f.entry.js +0 -1
- package/www/build/p-c9bc5148.js +0 -1
- package/www/build/p-ca472d1c.entry.js +0 -1
- package/www/build/p-cbb670c5.js +0 -1
- package/www/build/p-cc009af8.entry.js +0 -1
- package/www/build/p-cd561d69.js +0 -1
- package/www/build/p-d2946762.entry.js +0 -1
- package/www/build/p-d2c232e5.js +0 -1
- package/www/build/p-db0a64af.js +0 -1
- package/www/build/p-dd4fc386.entry.js +0 -1
- package/www/build/p-de5688e9.entry.js +0 -1
- package/www/build/p-decbd59d.entry.js +0 -1
- package/www/build/p-e43e61ac.js +0 -7
- package/www/build/p-e54d4ef9.entry.js +0 -1
- package/www/build/p-e7c6d651.entry.js +0 -1
- package/www/build/p-ed42ceca.entry.js +0 -1
- package/www/build/p-f058316f.entry.js +0 -1
- package/www/build/p-f14105c6.entry.js +0 -1
- package/www/build/p-f3cc3f27.entry.js +0 -1
- package/www/build/p-f46fa177.entry.js +0 -1
- package/www/build/p-f4e2e76b.entry.js +0 -1
- package/www/build/p-f5ae1514.entry.js +0 -1
- package/www/build/p-f5bc7dda.entry.js +0 -1
- package/www/build/p-f8383e14.entry.js +0 -1
- package/www/build/p-f976f29f.js +0 -1
- package/www/build/p-f9873cb9.entry.js +0 -1
- package/www/build/p-fd58b7a2.entry.js +0 -1
- package/www/build/p-fde82dc3.js +0 -1
- package/www/build/p-ff5a6e34.entry.js +0 -1
- package/www/build/p-ffde06d1.entry.js +0 -1
- package/www/build/web-components-library.css +0 -3
- package/www/build/web-components-library.esm.js +0 -1
- package/www/build/web-components-library.js +0 -33
- package/www/host.config.json +0 -15
- package/www/index.html +0 -1
- package/www/pages/book-cards.html +0 -595
- package/www/pages/file-upload.html +0 -258
- package/www/pages/notification.html +0 -299
|
@@ -1,1016 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-195ca522.js');
|
|
6
|
-
const index$1 = require('./index-cf9497bc.js');
|
|
7
|
-
|
|
8
|
-
const stylesCss$1 = ":host{margin-top:calc(var(--space-unit) * 3);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.dragdrop{position:relative;display:flex;height:228px;flex-direction:column;border-color:var(--color-surface04);background-color:var(--color-surface02);background-image:url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='2' ry='2' stroke='%23CACCCEFF' stroke-width='2' stroke-dasharray='15%2c 10%2c 14%2c 11' stroke-dashoffset='3' stroke-linecap='square'/%3e%3c/svg%3e\");border-radius:2px;color:var(--color-text01)}:host>.dragdrop.dragover *{pointer-events:none}:host>.dragdrop .dragover-container{position:absolute;z-index:10;top:0;left:0;display:none;width:100%;height:100%;background-color:var(--color-primary03);box-shadow:var(--shadow-focus-primary)}:host>.dragdrop .dragover-container .dragover-message{padding:10px 28px;background-color:var(--color-link-primary);color:var(--color-text04)}:host>.dragdrop.dragover .dragover-container{display:flex;align-items:center;justify-content:center}";
|
|
9
|
-
|
|
10
|
-
const ZDragdropArea = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
this.fileDropped = index.createEvent(this, "fileDropped", 7);
|
|
14
|
-
}
|
|
15
|
-
fileDroppedHandler(files) {
|
|
16
|
-
this.fileDropped.emit(files);
|
|
17
|
-
}
|
|
18
|
-
renderOnDragOverMessage() {
|
|
19
|
-
return (index.h("div", { class: "dragover-container" }, index.h("div", { class: "dragover-message" }, index.h("span", { class: "body-2-sb" }, "Rilascia i file in questa area per allegarli."))));
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
return (index.h("div", { tabIndex: 0, ref: (val) => (this.dragDropContainer = val), class: "dragdrop", onDragOver: (e) => {
|
|
23
|
-
e.preventDefault();
|
|
24
|
-
this.dragDropContainer.classList.add("dragover");
|
|
25
|
-
}, onDragLeave: () => {
|
|
26
|
-
this.dragDropContainer.classList.remove("dragover");
|
|
27
|
-
}, onDrop: (e) => {
|
|
28
|
-
e.preventDefault();
|
|
29
|
-
if (e.dataTransfer.files.length) {
|
|
30
|
-
this.dragDropContainer.classList.remove("dragover");
|
|
31
|
-
this.fileDroppedHandler(e.dataTransfer.files);
|
|
32
|
-
}
|
|
33
|
-
} }, this.renderOnDragOverMessage(), index.h("slot", null)));
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
ZDragdropArea.style = stylesCss$1;
|
|
37
|
-
|
|
38
|
-
// nb. This is for IE10 and lower _only_.
|
|
39
|
-
var supportCustomEvent = window.CustomEvent;
|
|
40
|
-
if (!supportCustomEvent || typeof supportCustomEvent === 'object') {
|
|
41
|
-
supportCustomEvent = function CustomEvent(event, x) {
|
|
42
|
-
x = x || {};
|
|
43
|
-
var ev = document.createEvent('CustomEvent');
|
|
44
|
-
ev.initCustomEvent(event, !!x.bubbles, !!x.cancelable, x.detail || null);
|
|
45
|
-
return ev;
|
|
46
|
-
};
|
|
47
|
-
supportCustomEvent.prototype = window.Event.prototype;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Dispatches the passed event to both an "on<type>" handler as well as via the
|
|
52
|
-
* normal dispatch operation. Does not bubble.
|
|
53
|
-
*
|
|
54
|
-
* @param {!EventTarget} target
|
|
55
|
-
* @param {!Event} event
|
|
56
|
-
* @return {boolean}
|
|
57
|
-
*/
|
|
58
|
-
function safeDispatchEvent(target, event) {
|
|
59
|
-
var check = 'on' + event.type.toLowerCase();
|
|
60
|
-
if (typeof target[check] === 'function') {
|
|
61
|
-
target[check](event);
|
|
62
|
-
}
|
|
63
|
-
return target.dispatchEvent(event);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @param {Element} el to check for stacking context
|
|
68
|
-
* @return {boolean} whether this el or its parents creates a stacking context
|
|
69
|
-
*/
|
|
70
|
-
function createsStackingContext(el) {
|
|
71
|
-
while (el && el !== document.body) {
|
|
72
|
-
var s = window.getComputedStyle(el);
|
|
73
|
-
var invalid = function(k, ok) {
|
|
74
|
-
return !(s[k] === undefined || s[k] === ok);
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
if (s.opacity < 1 ||
|
|
78
|
-
invalid('zIndex', 'auto') ||
|
|
79
|
-
invalid('transform', 'none') ||
|
|
80
|
-
invalid('mixBlendMode', 'normal') ||
|
|
81
|
-
invalid('filter', 'none') ||
|
|
82
|
-
invalid('perspective', 'none') ||
|
|
83
|
-
s['isolation'] === 'isolate' ||
|
|
84
|
-
s.position === 'fixed' ||
|
|
85
|
-
s.webkitOverflowScrolling === 'touch') {
|
|
86
|
-
return true;
|
|
87
|
-
}
|
|
88
|
-
el = el.parentElement;
|
|
89
|
-
}
|
|
90
|
-
return false;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Finds the nearest <dialog> from the passed element.
|
|
95
|
-
*
|
|
96
|
-
* @param {Element} el to search from
|
|
97
|
-
* @return {HTMLDialogElement} dialog found
|
|
98
|
-
*/
|
|
99
|
-
function findNearestDialog(el) {
|
|
100
|
-
while (el) {
|
|
101
|
-
if (el.localName === 'dialog') {
|
|
102
|
-
return /** @type {HTMLDialogElement} */ (el);
|
|
103
|
-
}
|
|
104
|
-
if (el.parentElement) {
|
|
105
|
-
el = el.parentElement;
|
|
106
|
-
} else if (el.parentNode) {
|
|
107
|
-
el = el.parentNode.host;
|
|
108
|
-
} else {
|
|
109
|
-
el = null;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
return null;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Blur the specified element, as long as it's not the HTML body element.
|
|
117
|
-
* This works around an IE9/10 bug - blurring the body causes Windows to
|
|
118
|
-
* blur the whole application.
|
|
119
|
-
*
|
|
120
|
-
* @param {Element} el to blur
|
|
121
|
-
*/
|
|
122
|
-
function safeBlur(el) {
|
|
123
|
-
// Find the actual focused element when the active element is inside a shadow root
|
|
124
|
-
while (el && el.shadowRoot && el.shadowRoot.activeElement) {
|
|
125
|
-
el = el.shadowRoot.activeElement;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
if (el && el.blur && el !== document.body) {
|
|
129
|
-
el.blur();
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @param {!NodeList} nodeList to search
|
|
135
|
-
* @param {Node} node to find
|
|
136
|
-
* @return {boolean} whether node is inside nodeList
|
|
137
|
-
*/
|
|
138
|
-
function inNodeList(nodeList, node) {
|
|
139
|
-
for (var i = 0; i < nodeList.length; ++i) {
|
|
140
|
-
if (nodeList[i] === node) {
|
|
141
|
-
return true;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return false;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* @param {HTMLFormElement} el to check
|
|
149
|
-
* @return {boolean} whether this form has method="dialog"
|
|
150
|
-
*/
|
|
151
|
-
function isFormMethodDialog(el) {
|
|
152
|
-
if (!el || !el.hasAttribute('method')) {
|
|
153
|
-
return false;
|
|
154
|
-
}
|
|
155
|
-
return el.getAttribute('method').toLowerCase() === 'dialog';
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* @param {!DocumentFragment|!Element} hostElement
|
|
160
|
-
* @return {?Element}
|
|
161
|
-
*/
|
|
162
|
-
function findFocusableElementWithin(hostElement) {
|
|
163
|
-
// Note that this is 'any focusable area'. This list is probably not exhaustive, but the
|
|
164
|
-
// alternative involves stepping through and trying to focus everything.
|
|
165
|
-
var opts = ['button', 'input', 'keygen', 'select', 'textarea'];
|
|
166
|
-
var query = opts.map(function(el) {
|
|
167
|
-
return el + ':not([disabled])';
|
|
168
|
-
});
|
|
169
|
-
// TODO(samthor): tabindex values that are not numeric are not focusable.
|
|
170
|
-
query.push('[tabindex]:not([disabled]):not([tabindex=""])'); // tabindex != "", not disabled
|
|
171
|
-
var target = hostElement.querySelector(query.join(', '));
|
|
172
|
-
|
|
173
|
-
if (!target && 'attachShadow' in Element.prototype) {
|
|
174
|
-
// If we haven't found a focusable target, see if the host element contains an element
|
|
175
|
-
// which has a shadowRoot.
|
|
176
|
-
// Recursively search for the first focusable item in shadow roots.
|
|
177
|
-
var elems = hostElement.querySelectorAll('*');
|
|
178
|
-
for (var i = 0; i < elems.length; i++) {
|
|
179
|
-
if (elems[i].tagName && elems[i].shadowRoot) {
|
|
180
|
-
target = findFocusableElementWithin(elems[i].shadowRoot);
|
|
181
|
-
if (target) {
|
|
182
|
-
break;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
return target;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Determines if an element is attached to the DOM.
|
|
192
|
-
* @param {Element} element to check
|
|
193
|
-
* @return {boolean} whether the element is in DOM
|
|
194
|
-
*/
|
|
195
|
-
function isConnected(element) {
|
|
196
|
-
return element.isConnected || document.body.contains(element);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* @param {!Event} event
|
|
201
|
-
* @return {?Element}
|
|
202
|
-
*/
|
|
203
|
-
function findFormSubmitter(event) {
|
|
204
|
-
if (event.submitter) {
|
|
205
|
-
return event.submitter;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
var form = event.target;
|
|
209
|
-
if (!(form instanceof HTMLFormElement)) {
|
|
210
|
-
return null;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
var submitter = dialogPolyfill.formSubmitter;
|
|
214
|
-
if (!submitter) {
|
|
215
|
-
var target = event.target;
|
|
216
|
-
var root = ('getRootNode' in target && target.getRootNode() || document);
|
|
217
|
-
submitter = root.activeElement;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
if (!submitter || submitter.form !== form) {
|
|
221
|
-
return null;
|
|
222
|
-
}
|
|
223
|
-
return submitter;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* @param {!Event} event
|
|
228
|
-
*/
|
|
229
|
-
function maybeHandleSubmit(event) {
|
|
230
|
-
if (event.defaultPrevented) {
|
|
231
|
-
return;
|
|
232
|
-
}
|
|
233
|
-
var form = /** @type {!HTMLFormElement} */ (event.target);
|
|
234
|
-
|
|
235
|
-
// We'd have a value if we clicked on an imagemap.
|
|
236
|
-
var value = dialogPolyfill.imagemapUseValue;
|
|
237
|
-
var submitter = findFormSubmitter(event);
|
|
238
|
-
if (value === null && submitter) {
|
|
239
|
-
value = submitter.value;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
// There should always be a dialog as this handler is added specifically on them, but check just
|
|
243
|
-
// in case.
|
|
244
|
-
var dialog = findNearestDialog(form);
|
|
245
|
-
if (!dialog) {
|
|
246
|
-
return;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
// Prefer formmethod on the button.
|
|
250
|
-
var formmethod = submitter && submitter.getAttribute('formmethod') || form.getAttribute('method');
|
|
251
|
-
if (formmethod !== 'dialog') {
|
|
252
|
-
return;
|
|
253
|
-
}
|
|
254
|
-
event.preventDefault();
|
|
255
|
-
|
|
256
|
-
if (value != null) {
|
|
257
|
-
// nb. we explicitly check against null/undefined
|
|
258
|
-
dialog.close(value);
|
|
259
|
-
} else {
|
|
260
|
-
dialog.close();
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* @param {!HTMLDialogElement} dialog to upgrade
|
|
266
|
-
* @constructor
|
|
267
|
-
*/
|
|
268
|
-
function dialogPolyfillInfo(dialog) {
|
|
269
|
-
this.dialog_ = dialog;
|
|
270
|
-
this.replacedStyleTop_ = false;
|
|
271
|
-
this.openAsModal_ = false;
|
|
272
|
-
|
|
273
|
-
// Set a11y role. Browsers that support dialog implicitly know this already.
|
|
274
|
-
if (!dialog.hasAttribute('role')) {
|
|
275
|
-
dialog.setAttribute('role', 'dialog');
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
dialog.show = this.show.bind(this);
|
|
279
|
-
dialog.showModal = this.showModal.bind(this);
|
|
280
|
-
dialog.close = this.close.bind(this);
|
|
281
|
-
|
|
282
|
-
dialog.addEventListener('submit', maybeHandleSubmit, false);
|
|
283
|
-
|
|
284
|
-
if (!('returnValue' in dialog)) {
|
|
285
|
-
dialog.returnValue = '';
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
if ('MutationObserver' in window) {
|
|
289
|
-
var mo = new MutationObserver(this.maybeHideModal.bind(this));
|
|
290
|
-
mo.observe(dialog, {attributes: true, attributeFilter: ['open']});
|
|
291
|
-
} else {
|
|
292
|
-
// IE10 and below support. Note that DOMNodeRemoved etc fire _before_ removal. They also
|
|
293
|
-
// seem to fire even if the element was removed as part of a parent removal. Use the removed
|
|
294
|
-
// events to force downgrade (useful if removed/immediately added).
|
|
295
|
-
var removed = false;
|
|
296
|
-
var cb = function() {
|
|
297
|
-
removed ? this.downgradeModal() : this.maybeHideModal();
|
|
298
|
-
removed = false;
|
|
299
|
-
}.bind(this);
|
|
300
|
-
var timeout;
|
|
301
|
-
var delayModel = function(ev) {
|
|
302
|
-
if (ev.target !== dialog) { return; } // not for a child element
|
|
303
|
-
var cand = 'DOMNodeRemoved';
|
|
304
|
-
removed |= (ev.type.substr(0, cand.length) === cand);
|
|
305
|
-
window.clearTimeout(timeout);
|
|
306
|
-
timeout = window.setTimeout(cb, 0);
|
|
307
|
-
};
|
|
308
|
-
['DOMAttrModified', 'DOMNodeRemoved', 'DOMNodeRemovedFromDocument'].forEach(function(name) {
|
|
309
|
-
dialog.addEventListener(name, delayModel);
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
// Note that the DOM is observed inside DialogManager while any dialog
|
|
313
|
-
// is being displayed as a modal, to catch modal removal from the DOM.
|
|
314
|
-
|
|
315
|
-
Object.defineProperty(dialog, 'open', {
|
|
316
|
-
set: this.setOpen.bind(this),
|
|
317
|
-
get: dialog.hasAttribute.bind(dialog, 'open')
|
|
318
|
-
});
|
|
319
|
-
|
|
320
|
-
this.backdrop_ = document.createElement('div');
|
|
321
|
-
this.backdrop_.className = 'backdrop';
|
|
322
|
-
this.backdrop_.addEventListener('mouseup' , this.backdropMouseEvent_.bind(this));
|
|
323
|
-
this.backdrop_.addEventListener('mousedown', this.backdropMouseEvent_.bind(this));
|
|
324
|
-
this.backdrop_.addEventListener('click' , this.backdropMouseEvent_.bind(this));
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
dialogPolyfillInfo.prototype = /** @type {HTMLDialogElement.prototype} */ ({
|
|
328
|
-
|
|
329
|
-
get dialog() {
|
|
330
|
-
return this.dialog_;
|
|
331
|
-
},
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Maybe remove this dialog from the modal top layer. This is called when
|
|
335
|
-
* a modal dialog may no longer be tenable, e.g., when the dialog is no
|
|
336
|
-
* longer open or is no longer part of the DOM.
|
|
337
|
-
*/
|
|
338
|
-
maybeHideModal: function() {
|
|
339
|
-
if (this.dialog_.hasAttribute('open') && isConnected(this.dialog_)) { return; }
|
|
340
|
-
this.downgradeModal();
|
|
341
|
-
},
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Remove this dialog from the modal top layer, leaving it as a non-modal.
|
|
345
|
-
*/
|
|
346
|
-
downgradeModal: function() {
|
|
347
|
-
if (!this.openAsModal_) { return; }
|
|
348
|
-
this.openAsModal_ = false;
|
|
349
|
-
this.dialog_.style.zIndex = '';
|
|
350
|
-
|
|
351
|
-
// This won't match the native <dialog> exactly because if the user set top on a centered
|
|
352
|
-
// polyfill dialog, that top gets thrown away when the dialog is closed. Not sure it's
|
|
353
|
-
// possible to polyfill this perfectly.
|
|
354
|
-
if (this.replacedStyleTop_) {
|
|
355
|
-
this.dialog_.style.top = '';
|
|
356
|
-
this.replacedStyleTop_ = false;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
// Clear the backdrop and remove from the manager.
|
|
360
|
-
this.backdrop_.parentNode && this.backdrop_.parentNode.removeChild(this.backdrop_);
|
|
361
|
-
dialogPolyfill.dm.removeDialog(this);
|
|
362
|
-
},
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* @param {boolean} value whether to open or close this dialog
|
|
366
|
-
*/
|
|
367
|
-
setOpen: function(value) {
|
|
368
|
-
if (value) {
|
|
369
|
-
this.dialog_.hasAttribute('open') || this.dialog_.setAttribute('open', '');
|
|
370
|
-
} else {
|
|
371
|
-
this.dialog_.removeAttribute('open');
|
|
372
|
-
this.maybeHideModal(); // nb. redundant with MutationObserver
|
|
373
|
-
}
|
|
374
|
-
},
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* Handles mouse events ('mouseup', 'mousedown', 'click') on the fake .backdrop element, redirecting them as if
|
|
378
|
-
* they were on the dialog itself.
|
|
379
|
-
*
|
|
380
|
-
* @param {!Event} e to redirect
|
|
381
|
-
*/
|
|
382
|
-
backdropMouseEvent_: function(e) {
|
|
383
|
-
if (!this.dialog_.hasAttribute('tabindex')) {
|
|
384
|
-
// Clicking on the backdrop should move the implicit cursor, even if dialog cannot be
|
|
385
|
-
// focused. Create a fake thing to focus on. If the backdrop was _before_ the dialog, this
|
|
386
|
-
// would not be needed - clicks would move the implicit cursor there.
|
|
387
|
-
var fake = document.createElement('div');
|
|
388
|
-
this.dialog_.insertBefore(fake, this.dialog_.firstChild);
|
|
389
|
-
fake.tabIndex = -1;
|
|
390
|
-
fake.focus();
|
|
391
|
-
this.dialog_.removeChild(fake);
|
|
392
|
-
} else {
|
|
393
|
-
this.dialog_.focus();
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
var redirectedEvent = document.createEvent('MouseEvents');
|
|
397
|
-
redirectedEvent.initMouseEvent(e.type, e.bubbles, e.cancelable, window,
|
|
398
|
-
e.detail, e.screenX, e.screenY, e.clientX, e.clientY, e.ctrlKey,
|
|
399
|
-
e.altKey, e.shiftKey, e.metaKey, e.button, e.relatedTarget);
|
|
400
|
-
this.dialog_.dispatchEvent(redirectedEvent);
|
|
401
|
-
e.stopPropagation();
|
|
402
|
-
},
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* Focuses on the first focusable element within the dialog. This will always blur the current
|
|
406
|
-
* focus, even if nothing within the dialog is found.
|
|
407
|
-
*/
|
|
408
|
-
focus_: function() {
|
|
409
|
-
// Find element with `autofocus` attribute, or fall back to the first form/tabindex control.
|
|
410
|
-
var target = this.dialog_.querySelector('[autofocus]:not([disabled])');
|
|
411
|
-
if (!target && this.dialog_.tabIndex >= 0) {
|
|
412
|
-
target = this.dialog_;
|
|
413
|
-
}
|
|
414
|
-
if (!target) {
|
|
415
|
-
target = findFocusableElementWithin(this.dialog_);
|
|
416
|
-
}
|
|
417
|
-
safeBlur(document.activeElement);
|
|
418
|
-
target && target.focus();
|
|
419
|
-
},
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* Sets the zIndex for the backdrop and dialog.
|
|
423
|
-
*
|
|
424
|
-
* @param {number} dialogZ
|
|
425
|
-
* @param {number} backdropZ
|
|
426
|
-
*/
|
|
427
|
-
updateZIndex: function(dialogZ, backdropZ) {
|
|
428
|
-
if (dialogZ < backdropZ) {
|
|
429
|
-
throw new Error('dialogZ should never be < backdropZ');
|
|
430
|
-
}
|
|
431
|
-
this.dialog_.style.zIndex = dialogZ;
|
|
432
|
-
this.backdrop_.style.zIndex = backdropZ;
|
|
433
|
-
},
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* Shows the dialog. If the dialog is already open, this does nothing.
|
|
437
|
-
*/
|
|
438
|
-
show: function() {
|
|
439
|
-
if (!this.dialog_.open) {
|
|
440
|
-
this.setOpen(true);
|
|
441
|
-
this.focus_();
|
|
442
|
-
}
|
|
443
|
-
},
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Show this dialog modally.
|
|
447
|
-
*/
|
|
448
|
-
showModal: function() {
|
|
449
|
-
if (this.dialog_.hasAttribute('open')) {
|
|
450
|
-
throw new Error('Failed to execute \'showModal\' on dialog: The element is already open, and therefore cannot be opened modally.');
|
|
451
|
-
}
|
|
452
|
-
if (!isConnected(this.dialog_)) {
|
|
453
|
-
throw new Error('Failed to execute \'showModal\' on dialog: The element is not in a Document.');
|
|
454
|
-
}
|
|
455
|
-
if (!dialogPolyfill.dm.pushDialog(this)) {
|
|
456
|
-
throw new Error('Failed to execute \'showModal\' on dialog: There are too many open modal dialogs.');
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
if (createsStackingContext(this.dialog_.parentElement)) {
|
|
460
|
-
console.warn('A dialog is being shown inside a stacking context. ' +
|
|
461
|
-
'This may cause it to be unusable. For more information, see this link: ' +
|
|
462
|
-
'https://github.com/GoogleChrome/dialog-polyfill/#stacking-context');
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
this.setOpen(true);
|
|
466
|
-
this.openAsModal_ = true;
|
|
467
|
-
|
|
468
|
-
// Optionally center vertically, relative to the current viewport.
|
|
469
|
-
if (dialogPolyfill.needsCentering(this.dialog_)) {
|
|
470
|
-
dialogPolyfill.reposition(this.dialog_);
|
|
471
|
-
this.replacedStyleTop_ = true;
|
|
472
|
-
} else {
|
|
473
|
-
this.replacedStyleTop_ = false;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
// Insert backdrop.
|
|
477
|
-
this.dialog_.parentNode.insertBefore(this.backdrop_, this.dialog_.nextSibling);
|
|
478
|
-
|
|
479
|
-
// Focus on whatever inside the dialog.
|
|
480
|
-
this.focus_();
|
|
481
|
-
},
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* Closes this HTMLDialogElement. This is optional vs clearing the open
|
|
485
|
-
* attribute, however this fires a 'close' event.
|
|
486
|
-
*
|
|
487
|
-
* @param {string=} opt_returnValue to use as the returnValue
|
|
488
|
-
*/
|
|
489
|
-
close: function(opt_returnValue) {
|
|
490
|
-
if (!this.dialog_.hasAttribute('open')) {
|
|
491
|
-
throw new Error('Failed to execute \'close\' on dialog: The element does not have an \'open\' attribute, and therefore cannot be closed.');
|
|
492
|
-
}
|
|
493
|
-
this.setOpen(false);
|
|
494
|
-
|
|
495
|
-
// Leave returnValue untouched in case it was set directly on the element
|
|
496
|
-
if (opt_returnValue !== undefined) {
|
|
497
|
-
this.dialog_.returnValue = opt_returnValue;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
// Triggering "close" event for any attached listeners on the <dialog>.
|
|
501
|
-
var closeEvent = new supportCustomEvent('close', {
|
|
502
|
-
bubbles: false,
|
|
503
|
-
cancelable: false
|
|
504
|
-
});
|
|
505
|
-
safeDispatchEvent(this.dialog_, closeEvent);
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
});
|
|
509
|
-
|
|
510
|
-
var dialogPolyfill = {};
|
|
511
|
-
|
|
512
|
-
dialogPolyfill.reposition = function(element) {
|
|
513
|
-
var scrollTop = document.body.scrollTop || document.documentElement.scrollTop;
|
|
514
|
-
var topValue = scrollTop + (window.innerHeight - element.offsetHeight) / 2;
|
|
515
|
-
element.style.top = Math.max(scrollTop, topValue) + 'px';
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
dialogPolyfill.isInlinePositionSetByStylesheet = function(element) {
|
|
519
|
-
for (var i = 0; i < document.styleSheets.length; ++i) {
|
|
520
|
-
var styleSheet = document.styleSheets[i];
|
|
521
|
-
var cssRules = null;
|
|
522
|
-
// Some browsers throw on cssRules.
|
|
523
|
-
try {
|
|
524
|
-
cssRules = styleSheet.cssRules;
|
|
525
|
-
} catch (e) {}
|
|
526
|
-
if (!cssRules) { continue; }
|
|
527
|
-
for (var j = 0; j < cssRules.length; ++j) {
|
|
528
|
-
var rule = cssRules[j];
|
|
529
|
-
var selectedNodes = null;
|
|
530
|
-
// Ignore errors on invalid selector texts.
|
|
531
|
-
try {
|
|
532
|
-
selectedNodes = document.querySelectorAll(rule.selectorText);
|
|
533
|
-
} catch(e) {}
|
|
534
|
-
if (!selectedNodes || !inNodeList(selectedNodes, element)) {
|
|
535
|
-
continue;
|
|
536
|
-
}
|
|
537
|
-
var cssTop = rule.style.getPropertyValue('top');
|
|
538
|
-
var cssBottom = rule.style.getPropertyValue('bottom');
|
|
539
|
-
if ((cssTop && cssTop !== 'auto') || (cssBottom && cssBottom !== 'auto')) {
|
|
540
|
-
return true;
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
return false;
|
|
545
|
-
};
|
|
546
|
-
|
|
547
|
-
dialogPolyfill.needsCentering = function(dialog) {
|
|
548
|
-
var computedStyle = window.getComputedStyle(dialog);
|
|
549
|
-
if (computedStyle.position !== 'absolute') {
|
|
550
|
-
return false;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
// We must determine whether the top/bottom specified value is non-auto. In
|
|
554
|
-
// WebKit/Blink, checking computedStyle.top == 'auto' is sufficient, but
|
|
555
|
-
// Firefox returns the used value. So we do this crazy thing instead: check
|
|
556
|
-
// the inline style and then go through CSS rules.
|
|
557
|
-
if ((dialog.style.top !== 'auto' && dialog.style.top !== '') ||
|
|
558
|
-
(dialog.style.bottom !== 'auto' && dialog.style.bottom !== '')) {
|
|
559
|
-
return false;
|
|
560
|
-
}
|
|
561
|
-
return !dialogPolyfill.isInlinePositionSetByStylesheet(dialog);
|
|
562
|
-
};
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* @param {!Element} element to force upgrade
|
|
566
|
-
*/
|
|
567
|
-
dialogPolyfill.forceRegisterDialog = function(element) {
|
|
568
|
-
if (window.HTMLDialogElement || element.showModal) {
|
|
569
|
-
console.warn('This browser already supports <dialog>, the polyfill ' +
|
|
570
|
-
'may not work correctly', element);
|
|
571
|
-
}
|
|
572
|
-
if (element.localName !== 'dialog') {
|
|
573
|
-
throw new Error('Failed to register dialog: The element is not a dialog.');
|
|
574
|
-
}
|
|
575
|
-
new dialogPolyfillInfo(/** @type {!HTMLDialogElement} */ (element));
|
|
576
|
-
};
|
|
577
|
-
|
|
578
|
-
/**
|
|
579
|
-
* @param {!Element} element to upgrade, if necessary
|
|
580
|
-
*/
|
|
581
|
-
dialogPolyfill.registerDialog = function(element) {
|
|
582
|
-
if (!element.showModal) {
|
|
583
|
-
dialogPolyfill.forceRegisterDialog(element);
|
|
584
|
-
}
|
|
585
|
-
};
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
* @constructor
|
|
589
|
-
*/
|
|
590
|
-
dialogPolyfill.DialogManager = function() {
|
|
591
|
-
/** @type {!Array<!dialogPolyfillInfo>} */
|
|
592
|
-
this.pendingDialogStack = [];
|
|
593
|
-
|
|
594
|
-
var checkDOM = this.checkDOM_.bind(this);
|
|
595
|
-
|
|
596
|
-
// The overlay is used to simulate how a modal dialog blocks the document.
|
|
597
|
-
// The blocking dialog is positioned on top of the overlay, and the rest of
|
|
598
|
-
// the dialogs on the pending dialog stack are positioned below it. In the
|
|
599
|
-
// actual implementation, the modal dialog stacking is controlled by the
|
|
600
|
-
// top layer, where z-index has no effect.
|
|
601
|
-
this.overlay = document.createElement('div');
|
|
602
|
-
this.overlay.className = '_dialog_overlay';
|
|
603
|
-
this.overlay.addEventListener('click', function(e) {
|
|
604
|
-
this.forwardTab_ = undefined;
|
|
605
|
-
e.stopPropagation();
|
|
606
|
-
checkDOM([]); // sanity-check DOM
|
|
607
|
-
}.bind(this));
|
|
608
|
-
|
|
609
|
-
this.handleKey_ = this.handleKey_.bind(this);
|
|
610
|
-
this.handleFocus_ = this.handleFocus_.bind(this);
|
|
611
|
-
|
|
612
|
-
this.zIndexLow_ = 100000;
|
|
613
|
-
this.zIndexHigh_ = 100000 + 150;
|
|
614
|
-
|
|
615
|
-
this.forwardTab_ = undefined;
|
|
616
|
-
|
|
617
|
-
if ('MutationObserver' in window) {
|
|
618
|
-
this.mo_ = new MutationObserver(function(records) {
|
|
619
|
-
var removed = [];
|
|
620
|
-
records.forEach(function(rec) {
|
|
621
|
-
for (var i = 0, c; c = rec.removedNodes[i]; ++i) {
|
|
622
|
-
if (!(c instanceof Element)) {
|
|
623
|
-
continue;
|
|
624
|
-
} else if (c.localName === 'dialog') {
|
|
625
|
-
removed.push(c);
|
|
626
|
-
}
|
|
627
|
-
removed = removed.concat(c.querySelectorAll('dialog'));
|
|
628
|
-
}
|
|
629
|
-
});
|
|
630
|
-
removed.length && checkDOM(removed);
|
|
631
|
-
});
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* Called on the first modal dialog being shown. Adds the overlay and related
|
|
637
|
-
* handlers.
|
|
638
|
-
*/
|
|
639
|
-
dialogPolyfill.DialogManager.prototype.blockDocument = function() {
|
|
640
|
-
document.documentElement.addEventListener('focus', this.handleFocus_, true);
|
|
641
|
-
document.addEventListener('keydown', this.handleKey_);
|
|
642
|
-
this.mo_ && this.mo_.observe(document, {childList: true, subtree: true});
|
|
643
|
-
};
|
|
644
|
-
|
|
645
|
-
/**
|
|
646
|
-
* Called on the first modal dialog being removed, i.e., when no more modal
|
|
647
|
-
* dialogs are visible.
|
|
648
|
-
*/
|
|
649
|
-
dialogPolyfill.DialogManager.prototype.unblockDocument = function() {
|
|
650
|
-
document.documentElement.removeEventListener('focus', this.handleFocus_, true);
|
|
651
|
-
document.removeEventListener('keydown', this.handleKey_);
|
|
652
|
-
this.mo_ && this.mo_.disconnect();
|
|
653
|
-
};
|
|
654
|
-
|
|
655
|
-
/**
|
|
656
|
-
* Updates the stacking of all known dialogs.
|
|
657
|
-
*/
|
|
658
|
-
dialogPolyfill.DialogManager.prototype.updateStacking = function() {
|
|
659
|
-
var zIndex = this.zIndexHigh_;
|
|
660
|
-
|
|
661
|
-
for (var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i) {
|
|
662
|
-
dpi.updateZIndex(--zIndex, --zIndex);
|
|
663
|
-
if (i === 0) {
|
|
664
|
-
this.overlay.style.zIndex = --zIndex;
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
// Make the overlay a sibling of the dialog itself.
|
|
669
|
-
var last = this.pendingDialogStack[0];
|
|
670
|
-
if (last) {
|
|
671
|
-
var p = last.dialog.parentNode || document.body;
|
|
672
|
-
p.appendChild(this.overlay);
|
|
673
|
-
} else if (this.overlay.parentNode) {
|
|
674
|
-
this.overlay.parentNode.removeChild(this.overlay);
|
|
675
|
-
}
|
|
676
|
-
};
|
|
677
|
-
|
|
678
|
-
/**
|
|
679
|
-
* @param {Element} candidate to check if contained or is the top-most modal dialog
|
|
680
|
-
* @return {boolean} whether candidate is contained in top dialog
|
|
681
|
-
*/
|
|
682
|
-
dialogPolyfill.DialogManager.prototype.containedByTopDialog_ = function(candidate) {
|
|
683
|
-
while (candidate = findNearestDialog(candidate)) {
|
|
684
|
-
for (var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i) {
|
|
685
|
-
if (dpi.dialog === candidate) {
|
|
686
|
-
return i === 0; // only valid if top-most
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
candidate = candidate.parentElement;
|
|
690
|
-
}
|
|
691
|
-
return false;
|
|
692
|
-
};
|
|
693
|
-
|
|
694
|
-
dialogPolyfill.DialogManager.prototype.handleFocus_ = function(event) {
|
|
695
|
-
var target = event.composedPath ? event.composedPath()[0] : event.target;
|
|
696
|
-
|
|
697
|
-
if (this.containedByTopDialog_(target)) { return; }
|
|
698
|
-
|
|
699
|
-
if (document.activeElement === document.documentElement) { return; }
|
|
700
|
-
|
|
701
|
-
event.preventDefault();
|
|
702
|
-
event.stopPropagation();
|
|
703
|
-
safeBlur(/** @type {Element} */ (target));
|
|
704
|
-
|
|
705
|
-
if (this.forwardTab_ === undefined) { return; } // move focus only from a tab key
|
|
706
|
-
|
|
707
|
-
var dpi = this.pendingDialogStack[0];
|
|
708
|
-
var dialog = dpi.dialog;
|
|
709
|
-
var position = dialog.compareDocumentPosition(target);
|
|
710
|
-
if (position & Node.DOCUMENT_POSITION_PRECEDING) {
|
|
711
|
-
if (this.forwardTab_) {
|
|
712
|
-
// forward
|
|
713
|
-
dpi.focus_();
|
|
714
|
-
} else if (target !== document.documentElement) {
|
|
715
|
-
// backwards if we're not already focused on <html>
|
|
716
|
-
document.documentElement.focus();
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
return false;
|
|
721
|
-
};
|
|
722
|
-
|
|
723
|
-
dialogPolyfill.DialogManager.prototype.handleKey_ = function(event) {
|
|
724
|
-
this.forwardTab_ = undefined;
|
|
725
|
-
if (event.keyCode === 27) {
|
|
726
|
-
event.preventDefault();
|
|
727
|
-
event.stopPropagation();
|
|
728
|
-
var cancelEvent = new supportCustomEvent('cancel', {
|
|
729
|
-
bubbles: false,
|
|
730
|
-
cancelable: true
|
|
731
|
-
});
|
|
732
|
-
var dpi = this.pendingDialogStack[0];
|
|
733
|
-
if (dpi && safeDispatchEvent(dpi.dialog, cancelEvent)) {
|
|
734
|
-
dpi.dialog.close();
|
|
735
|
-
}
|
|
736
|
-
} else if (event.keyCode === 9) {
|
|
737
|
-
this.forwardTab_ = !event.shiftKey;
|
|
738
|
-
}
|
|
739
|
-
};
|
|
740
|
-
|
|
741
|
-
/**
|
|
742
|
-
* Finds and downgrades any known modal dialogs that are no longer displayed. Dialogs that are
|
|
743
|
-
* removed and immediately readded don't stay modal, they become normal.
|
|
744
|
-
*
|
|
745
|
-
* @param {!Array<!HTMLDialogElement>} removed that have definitely been removed
|
|
746
|
-
*/
|
|
747
|
-
dialogPolyfill.DialogManager.prototype.checkDOM_ = function(removed) {
|
|
748
|
-
// This operates on a clone because it may cause it to change. Each change also calls
|
|
749
|
-
// updateStacking, which only actually needs to happen once. But who removes many modal dialogs
|
|
750
|
-
// at a time?!
|
|
751
|
-
var clone = this.pendingDialogStack.slice();
|
|
752
|
-
clone.forEach(function(dpi) {
|
|
753
|
-
if (removed.indexOf(dpi.dialog) !== -1) {
|
|
754
|
-
dpi.downgradeModal();
|
|
755
|
-
} else {
|
|
756
|
-
dpi.maybeHideModal();
|
|
757
|
-
}
|
|
758
|
-
});
|
|
759
|
-
};
|
|
760
|
-
|
|
761
|
-
/**
|
|
762
|
-
* @param {!dialogPolyfillInfo} dpi
|
|
763
|
-
* @return {boolean} whether the dialog was allowed
|
|
764
|
-
*/
|
|
765
|
-
dialogPolyfill.DialogManager.prototype.pushDialog = function(dpi) {
|
|
766
|
-
var allowed = (this.zIndexHigh_ - this.zIndexLow_) / 2 - 1;
|
|
767
|
-
if (this.pendingDialogStack.length >= allowed) {
|
|
768
|
-
return false;
|
|
769
|
-
}
|
|
770
|
-
if (this.pendingDialogStack.unshift(dpi) === 1) {
|
|
771
|
-
this.blockDocument();
|
|
772
|
-
}
|
|
773
|
-
this.updateStacking();
|
|
774
|
-
return true;
|
|
775
|
-
};
|
|
776
|
-
|
|
777
|
-
/**
|
|
778
|
-
* @param {!dialogPolyfillInfo} dpi
|
|
779
|
-
*/
|
|
780
|
-
dialogPolyfill.DialogManager.prototype.removeDialog = function(dpi) {
|
|
781
|
-
var index = this.pendingDialogStack.indexOf(dpi);
|
|
782
|
-
if (index === -1) { return; }
|
|
783
|
-
|
|
784
|
-
this.pendingDialogStack.splice(index, 1);
|
|
785
|
-
if (this.pendingDialogStack.length === 0) {
|
|
786
|
-
this.unblockDocument();
|
|
787
|
-
}
|
|
788
|
-
this.updateStacking();
|
|
789
|
-
};
|
|
790
|
-
|
|
791
|
-
dialogPolyfill.dm = new dialogPolyfill.DialogManager();
|
|
792
|
-
dialogPolyfill.formSubmitter = null;
|
|
793
|
-
dialogPolyfill.imagemapUseValue = null;
|
|
794
|
-
|
|
795
|
-
/**
|
|
796
|
-
* Installs global handlers, such as click listers and native method overrides. These are needed
|
|
797
|
-
* even if a no dialog is registered, as they deal with <form method="dialog">.
|
|
798
|
-
*/
|
|
799
|
-
if (window.HTMLDialogElement === undefined) {
|
|
800
|
-
|
|
801
|
-
/**
|
|
802
|
-
* If HTMLFormElement translates method="DIALOG" into 'get', then replace the descriptor with
|
|
803
|
-
* one that returns the correct value.
|
|
804
|
-
*/
|
|
805
|
-
var testForm = document.createElement('form');
|
|
806
|
-
testForm.setAttribute('method', 'dialog');
|
|
807
|
-
if (testForm.method !== 'dialog') {
|
|
808
|
-
var methodDescriptor = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, 'method');
|
|
809
|
-
if (methodDescriptor) {
|
|
810
|
-
// nb. Some older iOS and older PhantomJS fail to return the descriptor. Don't do anything
|
|
811
|
-
// and don't bother to update the element.
|
|
812
|
-
var realGet = methodDescriptor.get;
|
|
813
|
-
methodDescriptor.get = function() {
|
|
814
|
-
if (isFormMethodDialog(this)) {
|
|
815
|
-
return 'dialog';
|
|
816
|
-
}
|
|
817
|
-
return realGet.call(this);
|
|
818
|
-
};
|
|
819
|
-
var realSet = methodDescriptor.set;
|
|
820
|
-
/** @this {HTMLElement} */
|
|
821
|
-
methodDescriptor.set = function(v) {
|
|
822
|
-
if (typeof v === 'string' && v.toLowerCase() === 'dialog') {
|
|
823
|
-
return this.setAttribute('method', v);
|
|
824
|
-
}
|
|
825
|
-
return realSet.call(this, v);
|
|
826
|
-
};
|
|
827
|
-
Object.defineProperty(HTMLFormElement.prototype, 'method', methodDescriptor);
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
/**
|
|
832
|
-
* Global 'click' handler, to capture the <input type="submit"> or <button> element which has
|
|
833
|
-
* submitted a <form method="dialog">. Needed as Safari and others don't report this inside
|
|
834
|
-
* document.activeElement.
|
|
835
|
-
*/
|
|
836
|
-
document.addEventListener('click', function(ev) {
|
|
837
|
-
dialogPolyfill.formSubmitter = null;
|
|
838
|
-
dialogPolyfill.imagemapUseValue = null;
|
|
839
|
-
if (ev.defaultPrevented) { return; } // e.g. a submit which prevents default submission
|
|
840
|
-
|
|
841
|
-
var target = /** @type {Element} */ (ev.target);
|
|
842
|
-
if ('composedPath' in ev) {
|
|
843
|
-
var path = ev.composedPath();
|
|
844
|
-
target = path.shift() || target;
|
|
845
|
-
}
|
|
846
|
-
if (!target || !isFormMethodDialog(target.form)) { return; }
|
|
847
|
-
|
|
848
|
-
var valid = (target.type === 'submit' && ['button', 'input'].indexOf(target.localName) > -1);
|
|
849
|
-
if (!valid) {
|
|
850
|
-
if (!(target.localName === 'input' && target.type === 'image')) { return; }
|
|
851
|
-
// this is a <input type="image">, which can submit forms
|
|
852
|
-
dialogPolyfill.imagemapUseValue = ev.offsetX + ',' + ev.offsetY;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
var dialog = findNearestDialog(target);
|
|
856
|
-
if (!dialog) { return; }
|
|
857
|
-
|
|
858
|
-
dialogPolyfill.formSubmitter = target;
|
|
859
|
-
|
|
860
|
-
}, false);
|
|
861
|
-
|
|
862
|
-
/**
|
|
863
|
-
* Global 'submit' handler. This handles submits of `method="dialog"` which are invalid, i.e.,
|
|
864
|
-
* outside a dialog. They get prevented.
|
|
865
|
-
*/
|
|
866
|
-
document.addEventListener('submit', function(ev) {
|
|
867
|
-
var form = ev.target;
|
|
868
|
-
var dialog = findNearestDialog(form);
|
|
869
|
-
if (dialog) {
|
|
870
|
-
return; // ignore, handle there
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
var submitter = findFormSubmitter(ev);
|
|
874
|
-
var formmethod = submitter && submitter.getAttribute('formmethod') || form.getAttribute('method');
|
|
875
|
-
if (formmethod === 'dialog') {
|
|
876
|
-
ev.preventDefault();
|
|
877
|
-
}
|
|
878
|
-
});
|
|
879
|
-
|
|
880
|
-
/**
|
|
881
|
-
* Replace the native HTMLFormElement.submit() method, as it won't fire the
|
|
882
|
-
* submit event and give us a chance to respond.
|
|
883
|
-
*/
|
|
884
|
-
var nativeFormSubmit = HTMLFormElement.prototype.submit;
|
|
885
|
-
var replacementFormSubmit = function () {
|
|
886
|
-
if (!isFormMethodDialog(this)) {
|
|
887
|
-
return nativeFormSubmit.call(this);
|
|
888
|
-
}
|
|
889
|
-
var dialog = findNearestDialog(this);
|
|
890
|
-
dialog && dialog.close();
|
|
891
|
-
};
|
|
892
|
-
HTMLFormElement.prototype.submit = replacementFormSubmit;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>dialog{padding:0;border:none;margin:0;background-color:transparent}:host>dialog:modal{width:100%;max-width:100%;max-height:100%}:host>dialog::backdrop{display:none}:host>dialog+.backdrop{display:none}:host>dialog:not([open]){display:none}:host>dialog[open]{display:block}.modal-container{z-index:1010;display:flex;overflow:-moz-scrollbars-none;width:100%;height:100vh;flex-direction:column}.modal-container>.modal-content-scroll-outside{overflow:auto;background:var(--color-surface01)}.modal-container>header{padding:calc(var(--space-unit) * 2 - 2px) calc(var(--space-unit) * 2);background:var(--color-surface02)}.modal-container>header button{padding:0;border:none;margin:0;margin-left:auto;background:transparent;cursor:pointer}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 2.5);--z-icon-height:calc(var(--space-unit) * 2.5);display:flex;fill:var(--color-icon01)}.modal-container>header>div{display:flex;width:100%;align-items:center;margin-right:calc(var(--space-unit) * 2)}.modal-container>header h1,.modal-container>header h2{padding:0;margin:0;color:var(--color-text01);font-weight:var(--font-rg)}.modal-container>header h1{font-size:var(--font-size-5);letter-spacing:0;line-height:1.4}.modal-container>header h2{font-size:var(--font-size-3);letter-spacing:0;line-height:1.5}.modal-container>header>div>h1 *:empty{display:none}.modal-container>header h1+h2{margin-top:calc(var(--space-unit) * 0.5)}.modal-container-scroll-inside>.modal-content-scroll-inside{overflow:hidden auto;flex:1 auto;background:var(--color-surface01)}.modal-container-scroll-inside>.modal-content-scroll-inside::-webkit-scrollbar,.modal-container-scroll-outside>.modal-content-scroll-outside::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.modal-container-scroll-inside>.modal-content-scroll-inside::-webkit-scrollbar-thumb,.modal-container-scroll-outside>.modal-content-scroll-outside::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01)}.modal-container-scroll-inside>.modal-content-scroll-inside::-webkit-scrollbar-thumb:hover,.modal-container-scroll-outside>.modal-content-scroll-outside::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.modal-container-scroll-inside .modal-content-scroll-inside,.modal-container-scroll-outside .modal-content-scroll-outside{scrollbar-color:var(--color-primary01) transparent}@media only screen and (min-width: 768px){.modal-background{position:fixed;top:0;left:0;overflow:hidden;width:100vw;height:100vh;background-color:var(--gray900);opacity:0.7}.modal-background.modal-background-scroll-outside{position:sticky}.modal-container-scroll-inside{position:fixed;top:calc(var(--space-unit) * 6);left:50%;overflow:hidden;width:auto;min-width:calc(var(--space-unit) * 40);height:auto;min-height:calc(var(--space-unit) * 40);max-height:calc(100vh - calc(var(--space-unit) * 6 * 2));border-radius:var(--border-radius);transform:translateX(-50%)}.modal-container-scroll-outside{position:absolute;top:calc(var(--space-unit) * 6);left:50%;display:block;overflow:initial;width:auto;min-width:calc(var(--space-unit) * 40);height:auto;min-height:calc(var(--space-unit) * 40);max-height:calc(100vh - calc(var(--space-unit) * 6 * 2));transform:translateX(-50%)}.modal-container>.modal-content-scroll-outside{overflow:initial}.modal-container-scroll-outside>header,.modal-container-scroll-inside>header{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.modal-container-scroll-outside::after{display:block;height:calc(var(--space-unit) * 6);content:\" \"}.modal-dialog{position:fixed;top:0;left:0;height:auto;overflow-x:hidden;overflow-y:auto}.modal-content-scroll-outside{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}.modal-dialog::-webkit-scrollbar{display:none}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 3);--z-icon-height:calc(var(--space-unit) * 3)}}@media only screen and (min-width: 768px) and (max-width: 1151px){.modal-container>header{padding:calc(var(--space-unit) * 3 - 2px) calc(var(--space-unit) * 3)}}@media only screen and (min-width: 1152px){.modal-container>header{padding:calc(var(--space-unit) * 4 - 4px) calc(var(--space-unit) * 4)}.modal-container>header h1{font-size:var(--font-size-6);letter-spacing:0;line-height:1.33}.modal-container>header h2{font-size:var(--font-size-4);letter-spacing:0;line-height:1.5}.modal-container>header h1+h2{margin-top:0}}";
|
|
896
|
-
|
|
897
|
-
const FOCUSABLE_ELEMENTS_SELECTOR = ':is(button, input, select, textarea, [contenteditable=""], [contenteditable="true"], a[href], [tabindex], summary):not([disabled], [disabled=""], [tabindex="-1"], [aria-hidden="true"], [hidden])';
|
|
898
|
-
const ZModal = class {
|
|
899
|
-
constructor(hostRef) {
|
|
900
|
-
index.registerInstance(this, hostRef);
|
|
901
|
-
this.modalClose = index.createEvent(this, "modalClose", 7);
|
|
902
|
-
this.modalHeaderActive = index.createEvent(this, "modalHeaderActive", 7);
|
|
903
|
-
this.modalBackgroundClick = index.createEvent(this, "modalBackgroundClick", 7);
|
|
904
|
-
/** aria-label for close button (optional) */
|
|
905
|
-
this.closeButtonLabel = "chiudi modale";
|
|
906
|
-
/** add role "alertdialog" to dialog (optional, default is false) */
|
|
907
|
-
this.alertdialog = false;
|
|
908
|
-
/** if true, the modal is closable (optional, default is true) */
|
|
909
|
-
this.closable = true;
|
|
910
|
-
/** if true, the modal can scroll inside, if false the viewport can scroll */
|
|
911
|
-
this.scrollInside = true;
|
|
912
|
-
}
|
|
913
|
-
emitModalClose() {
|
|
914
|
-
if (this.closable) {
|
|
915
|
-
this.modalClose.emit({ modalid: this.modalid });
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
emitModalHeaderActive() {
|
|
919
|
-
this.modalHeaderActive.emit({ modalid: this.modalid });
|
|
920
|
-
}
|
|
921
|
-
emitBackgroundClick() {
|
|
922
|
-
if (this.closable) {
|
|
923
|
-
this.modalBackgroundClick.emit({ modalid: this.modalid });
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
componentDidLoad() {
|
|
927
|
-
if (typeof HTMLDialogElement !== "function") {
|
|
928
|
-
dialogPolyfill.registerDialog(this.dialog);
|
|
929
|
-
this.dialog.setAttribute("open", "true");
|
|
930
|
-
}
|
|
931
|
-
else {
|
|
932
|
-
this.open();
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
/** open modal */
|
|
936
|
-
async open() {
|
|
937
|
-
var _a;
|
|
938
|
-
(_a = this.dialog) === null || _a === void 0 ? void 0 : _a.showModal();
|
|
939
|
-
}
|
|
940
|
-
/** close modal */
|
|
941
|
-
async close() {
|
|
942
|
-
var _a;
|
|
943
|
-
if (this.closable) {
|
|
944
|
-
(_a = this.dialog) === null || _a === void 0 ? void 0 : _a.close();
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
/**
|
|
948
|
-
* Get a list of focusable elements in the dialog.
|
|
949
|
-
* Remove elements with `display: none` from the list, because they're not focusable.
|
|
950
|
-
*
|
|
951
|
-
* N.B. The list is built on the assumption that elements inside shadow root are placed ALL before the `modalContent` slot.
|
|
952
|
-
* Adding focusable elements after the `modalContent` slot would break the order of elements in the list.
|
|
953
|
-
*/
|
|
954
|
-
get focusableElements() {
|
|
955
|
-
return [
|
|
956
|
-
...Array.from(this.host.shadowRoot.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR)),
|
|
957
|
-
...Array.from(this.host.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR)),
|
|
958
|
-
].filter((element) => getComputedStyle(element).display !== "none");
|
|
959
|
-
}
|
|
960
|
-
handleKeyDown(e) {
|
|
961
|
-
if (e.code !== index$1.KeyboardCode.TAB) {
|
|
962
|
-
return;
|
|
963
|
-
}
|
|
964
|
-
const focusableElements = this.focusableElements;
|
|
965
|
-
const shadowActiveElement = this.host.shadowRoot.activeElement;
|
|
966
|
-
const activeElement = this.host.ownerDocument.activeElement;
|
|
967
|
-
const firstFocusableElement = focusableElements[0];
|
|
968
|
-
const lastFocusableElement = focusableElements[focusableElements.length - 1];
|
|
969
|
-
if (e.shiftKey && (shadowActiveElement == firstFocusableElement || activeElement == firstFocusableElement)) {
|
|
970
|
-
// shift + tab was pressed and current active element is the first focusable element
|
|
971
|
-
e.preventDefault();
|
|
972
|
-
lastFocusableElement.focus();
|
|
973
|
-
}
|
|
974
|
-
else if (!e.shiftKey && (shadowActiveElement == lastFocusableElement || activeElement == lastFocusableElement)) {
|
|
975
|
-
// shift + tab was pressed and current active element is the first focusable element
|
|
976
|
-
e.preventDefault();
|
|
977
|
-
firstFocusableElement.focus();
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
closeButtonSlot() {
|
|
981
|
-
if (this.closable) {
|
|
982
|
-
return (index.h("slot", { name: "modalCloseButton" }, index.h("button", { "aria-label": this.closeButtonLabel, onClick: () => this.close() }, index.h("z-icon", { name: "multiply-circle-filled" }))));
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
handleEscape(e) {
|
|
986
|
-
if (this.closable) {
|
|
987
|
-
return;
|
|
988
|
-
}
|
|
989
|
-
e.preventDefault();
|
|
990
|
-
}
|
|
991
|
-
render() {
|
|
992
|
-
return (index.h("dialog", { class: {
|
|
993
|
-
"modal-dialog": !this.scrollInside,
|
|
994
|
-
}, "aria-labelledby": "modal-title", "aria-describedby": "modal-content", role: this.alertdialog ? "alertdialog" : undefined, ref: (el) => (this.dialog = el), onClose: () => this.emitModalClose(),
|
|
995
|
-
// @ts-ignore
|
|
996
|
-
onCancel: (e) => this.handleEscape(e) }, index.h("div", { class: {
|
|
997
|
-
"modal-container": true,
|
|
998
|
-
"modal-container-scroll-inside": this.scrollInside,
|
|
999
|
-
"modal-container-scroll-outside": !this.scrollInside,
|
|
1000
|
-
}, id: this.modalid }, index.h("header", { onClick: this.emitModalHeaderActive.bind(this) }, index.h("div", null, this.modaltitle && index.h("h1", { id: "modal-title" }, this.modaltitle), this.closeButtonSlot()), this.modalsubtitle && index.h("h2", { id: "modal-subtitle" }, this.modalsubtitle)), index.h("div", { class: {
|
|
1001
|
-
"modal-content-scroll-inside": this.scrollInside,
|
|
1002
|
-
"modal-content-scroll-outside": !this.scrollInside,
|
|
1003
|
-
}, id: "modal-content" }, index.h("slot", { name: "modalContent" }))), index.h("div", { class: {
|
|
1004
|
-
"modal-background": true,
|
|
1005
|
-
"modal-background-scroll-outside": !this.scrollInside,
|
|
1006
|
-
}, "data-action": "modalBackground", "data-modal": this.modalid, onClick: () => {
|
|
1007
|
-
this.emitBackgroundClick();
|
|
1008
|
-
this.close();
|
|
1009
|
-
} })));
|
|
1010
|
-
}
|
|
1011
|
-
get host() { return index.getElement(this); }
|
|
1012
|
-
};
|
|
1013
|
-
ZModal.style = stylesCss;
|
|
1014
|
-
|
|
1015
|
-
exports.z_dragdrop_area = ZDragdropArea;
|
|
1016
|
-
exports.z_modal = ZModal;
|