@zanichelli/albe-web-components 19.2.2 → 19.2.3-RC1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_commonjsHelpers-CFO10eej.js +7 -0
- package/dist/cjs/{breakpoints-8a1e87e0.js → breakpoints-B7vFm-3T.js} +0 -2
- package/dist/cjs/{iconset-5d47610c.js → iconset-Bcbz2MS1.js} +3 -4
- package/dist/cjs/index-2H1EJ2Tl.js +2683 -0
- package/dist/cjs/{index-e30d0503.js → index-wGaSHN1_.js} +0 -2
- package/dist/cjs/index.cjs.js +112 -224
- package/dist/cjs/loader.cjs.js +3 -8
- package/dist/cjs/{utils-4f7b4830.js → utils-C5_wGVkJ.js} +81 -73
- package/dist/cjs/{utils-b1859d65.js → utils-Ctc6JP2n.js} +2 -4
- package/dist/cjs/web-components-library.cjs.js +7 -10
- package/dist/cjs/z-accordion.cjs.entry.js +26 -13
- package/dist/cjs/z-alert.cjs.entry.js +4 -10
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +25 -10
- package/dist/cjs/z-app-header-deprecated.cjs.entry.js +53 -22
- package/dist/cjs/z-app-header_12.cjs.entry.js +261 -150
- package/dist/cjs/z-aria-alert.cjs.entry.js +4 -7
- package/dist/cjs/z-avatar.cjs.entry.js +9 -13
- package/dist/cjs/z-book-card-app.cjs.entry.js +10 -18
- package/dist/cjs/z-book-card-deprecated.cjs.entry.js +10 -24
- package/dist/cjs/z-book-card.cjs.entry.js +11 -23
- package/dist/cjs/z-book-cover.cjs.entry.js +6 -11
- package/dist/cjs/z-breadcrumb.cjs.entry.js +24 -19
- package/dist/cjs/z-button-sort.cjs.entry.js +9 -14
- package/dist/cjs/z-card.cjs.entry.js +9 -12
- package/dist/cjs/z-carousel.cjs.entry.js +49 -29
- package/dist/cjs/z-chip.cjs.entry.js +9 -13
- package/dist/cjs/z-color-picker.cjs.entry.js +24 -18
- package/dist/cjs/z-combobox.cjs.entry.js +27 -26
- package/dist/cjs/z-cover-hero.cjs.entry.js +18 -11
- package/dist/cjs/z-date-picker.cjs.entry.js +351 -330
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +18 -22
- package/dist/cjs/z-file-upload.cjs.entry.js +21 -18
- package/dist/cjs/z-file.cjs.entry.js +6 -13
- package/dist/cjs/z-ghost-loading.cjs.entry.js +4 -9
- package/dist/cjs/z-info-box.cjs.entry.js +5 -10
- package/dist/cjs/z-info-reveal.cjs.entry.js +20 -13
- package/dist/cjs/z-logo.cjs.entry.js +4 -15
- package/dist/cjs/z-menu-deprecated.cjs.entry.js +23 -14
- package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +10 -13
- package/dist/cjs/z-menu-section.cjs.entry.js +15 -16
- package/dist/cjs/z-menu.cjs.entry.js +27 -17
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +5 -14
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +9 -12
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +4 -9
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +7 -15
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +6 -10
- package/dist/cjs/z-myz-card-info.cjs.entry.js +8 -13
- package/dist/cjs/z-myz-card-list.cjs.entry.js +4 -10
- package/dist/cjs/z-myz-card_4.cjs.entry.js +16 -31
- package/dist/cjs/z-myz-list-item.cjs.entry.js +9 -17
- package/dist/cjs/z-myz-list.cjs.entry.js +7 -12
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +28 -18
- package/dist/cjs/z-notification.cjs.entry.js +10 -12
- package/dist/cjs/z-otp.cjs.entry.js +10 -14
- package/dist/cjs/z-pagination.cjs.entry.js +28 -18
- package/dist/cjs/z-panel-elem.cjs.entry.js +7 -17
- package/dist/cjs/z-popover.cjs.entry.js +35 -19
- package/dist/cjs/z-range-picker.cjs.entry.js +38 -31
- package/dist/cjs/z-result-card.cjs.entry.js +7 -16
- package/dist/cjs/z-section-title.cjs.entry.js +12 -10
- package/dist/cjs/z-select.cjs.entry.js +21 -25
- package/dist/cjs/z-skip-to-content.cjs.entry.js +8 -13
- package/dist/cjs/z-slideshow.cjs.entry.js +12 -16
- package/dist/cjs/z-stepper-item.cjs.entry.js +4 -14
- package/dist/cjs/z-stepper.cjs.entry.js +4 -9
- package/dist/cjs/z-table.cjs.entry.js +19 -18
- package/dist/cjs/z-tbody.cjs.entry.js +12 -7
- package/dist/cjs/z-td.cjs.entry.js +54 -8
- package/dist/cjs/z-tfoot.cjs.entry.js +16 -7
- package/dist/cjs/z-th.cjs.entry.js +81 -8
- package/dist/cjs/z-thead.cjs.entry.js +21 -7
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +11 -12
- package/dist/cjs/z-toast-notification.cjs.entry.js +3942 -3963
- package/dist/cjs/z-toggle-button.cjs.entry.js +8 -12
- package/dist/cjs/z-toggle-switch.cjs.entry.js +13 -14
- package/dist/cjs/z-tool.cjs.entry.js +28 -29
- package/dist/cjs/z-toolbar.cjs.entry.js +7 -12
- package/dist/cjs/z-tooltip.cjs.entry.js +15 -11
- package/dist/cjs/z-tr.cjs.entry.js +80 -12
- package/dist/cjs/z-tree-list.cjs.entry.js +10 -14
- package/dist/cjs/z-visually-hidden.cjs.entry.js +4 -9
- package/dist/collection/__mocks__/fileMock.js +0 -1
- package/dist/collection/beans/index.js +0 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/book-card/z-book-card/index.js +55 -34
- package/dist/collection/components/book-card/z-book-card/index.stories.js +0 -1
- package/dist/collection/components/book-card/z-book-card-app/index.js +23 -15
- package/dist/collection/components/book-card/z-book-card-app/index.stories.js +0 -1
- package/dist/collection/components/css-components/z-fab/index.stories.js +0 -1
- package/dist/collection/components/css-components/z-label/index.stories.js +0 -1
- package/dist/collection/components/css-components/z-link/index.stories.js +0 -1
- package/dist/collection/components/css-components/z-scrollbar/index.stories.js +0 -1
- package/dist/collection/components/date-picker/utils.js +0 -1
- package/dist/collection/components/date-picker/z-date-picker/index.js +61 -35
- package/dist/collection/components/date-picker/z-date-picker/index.stories.js +0 -1
- package/dist/collection/components/date-picker/z-range-picker/index.js +61 -34
- package/dist/collection/components/date-picker/z-range-picker/index.stories.js +0 -1
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +70 -23
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js +0 -1
- package/dist/collection/components/deprecated/z-book-card-deprecated/index.js +57 -40
- package/dist/collection/components/deprecated/z-book-card-deprecated/index.stories.js +0 -1
- package/dist/collection/components/deprecated/z-menu-deprecated/index.js +31 -12
- package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js +0 -1
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +11 -10
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js +0 -1
- package/dist/collection/components/deprecated/z-section-title/index.js +16 -5
- package/dist/collection/components/deprecated/z-section-title/index.stories.js +0 -1
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js +7 -6
- package/dist/collection/components/file-upload/z-file/index.js +9 -8
- package/dist/collection/components/file-upload/z-file/index.stories.js +0 -1
- package/dist/collection/components/file-upload/z-file-upload/index.js +80 -37
- package/dist/collection/components/file-upload/z-file-upload/index.stories.js +0 -1
- package/dist/collection/components/index.js +0 -1
- package/dist/collection/components/list/z-list/index.js +23 -7
- package/dist/collection/components/list/z-list/index.stories.js +0 -1
- package/dist/collection/components/list/z-list-element/index.js +113 -38
- package/dist/collection/components/list/z-list-element/index.stories.js +0 -1
- package/dist/collection/components/list/z-list-group/index.js +50 -16
- package/dist/collection/components/list/z-list-group/index.stories.js +0 -1
- package/dist/collection/components/list/z-tree-list/index.js +16 -11
- package/dist/collection/components/list/z-tree-list/index.stories.js +0 -1
- package/dist/collection/components/table/cells/z-td/index.js +32 -10
- package/dist/collection/components/table/cells/z-th/index.js +54 -17
- package/dist/collection/components/table/z-table/index.js +10 -3
- package/dist/collection/components/table/z-table/index.stories.js +0 -1
- package/dist/collection/components/table/z-tbody/index.js +1 -2
- package/dist/collection/components/table/z-tfoot/index.js +7 -3
- package/dist/collection/components/table/z-thead/index.js +13 -4
- package/dist/collection/components/table/z-tr/index.js +17 -5
- package/dist/collection/components/z-accordion/index.js +49 -16
- package/dist/collection/components/z-accordion/index.stories.js +0 -1
- package/dist/collection/components/z-anchor-navigation/index.js +33 -6
- package/dist/collection/components/z-anchor-navigation/index.stories.js +0 -1
- package/dist/collection/components/z-app-header/index.js +58 -20
- package/dist/collection/components/z-app-header/index.stories.js +0 -1
- package/dist/collection/components/z-aria-alert/index.js +7 -4
- package/dist/collection/components/z-aria-alert/index.stories.js +0 -1
- package/dist/collection/components/z-avatar/index.js +24 -13
- package/dist/collection/components/z-avatar/index.stories.js +0 -1
- package/dist/collection/components/z-book-cover/index.js +17 -10
- package/dist/collection/components/z-book-cover/index.stories.js +0 -1
- package/dist/collection/components/z-breadcrumb/index.js +37 -17
- package/dist/collection/components/z-breadcrumb/index.stories.js +0 -1
- package/dist/collection/components/z-button/index.js +74 -35
- package/dist/collection/components/z-button/index.stories.js +0 -1
- package/dist/collection/components/z-button-sort/index.js +33 -18
- package/dist/collection/components/z-button-sort/index.stories.js +0 -1
- package/dist/collection/components/z-card/index.js +21 -11
- package/dist/collection/components/z-card/index.stories.js +0 -1
- package/dist/collection/components/z-carousel/index.js +69 -35
- package/dist/collection/components/z-carousel/index.stories.js +2 -3
- package/dist/collection/components/z-chip/index.js +24 -13
- package/dist/collection/components/z-chip/index.stories.js +0 -1
- package/dist/collection/components/z-color-picker/index.js +31 -17
- package/dist/collection/components/z-color-picker/index.stories.js +0 -1
- package/dist/collection/components/z-combobox/index.js +80 -41
- package/dist/collection/components/z-combobox/index.stories.js +0 -1
- package/dist/collection/components/z-cover-hero/index.js +27 -8
- package/dist/collection/components/z-cover-hero/index.stories.js +0 -1
- package/dist/collection/components/z-divider/index.js +17 -7
- package/dist/collection/components/z-divider/index.stories.js +0 -1
- package/dist/collection/components/z-ghost-loading/index.js +1 -2
- package/dist/collection/components/z-ghost-loading/index.stories.js +0 -1
- package/dist/collection/components/z-icon/index.js +25 -22
- package/dist/collection/components/z-icon/index.stories.js +0 -1
- package/dist/collection/components/z-info-box/index.js +9 -6
- package/dist/collection/components/z-info-box/index.stories.js +0 -1
- package/dist/collection/components/z-info-reveal/index.js +30 -11
- package/dist/collection/components/z-info-reveal/index.stories.js +0 -1
- package/dist/collection/components/z-input/index.js +131 -74
- package/dist/collection/components/z-input/index.stories.js +0 -1
- package/dist/collection/components/z-input-message/index.js +15 -12
- package/dist/collection/components/z-input-message/index.stories.js +0 -1
- package/dist/collection/components/z-logo/index.js +25 -22
- package/dist/collection/components/z-logo/index.stories.js +0 -1
- package/dist/collection/components/z-menu/index.js +32 -12
- package/dist/collection/components/z-menu/index.stories.js +0 -1
- package/dist/collection/components/z-menu-section/index.js +17 -12
- package/dist/collection/components/z-menu-section/index.stories.js +0 -1
- package/dist/collection/components/z-modal/index.js +36 -19
- package/dist/collection/components/z-modal/index.stories.js +0 -1
- package/dist/collection/components/z-navigation-tabs/index.js +35 -15
- package/dist/collection/components/z-navigation-tabs/index.stories.js +0 -1
- package/dist/collection/components/z-notification/index.js +30 -15
- package/dist/collection/components/z-notification/index.stories.js +0 -1
- package/dist/collection/components/z-offcanvas/index.js +42 -12
- package/dist/collection/components/z-offcanvas/index.stories.js +0 -1
- package/dist/collection/components/z-pagination/index.js +45 -21
- package/dist/collection/components/z-pagination/index.stories.js +0 -1
- package/dist/collection/components/z-panel-elem/index.js +38 -26
- package/dist/collection/components/z-panel-elem/index.stories.js +0 -1
- package/dist/collection/components/z-popover/index.js +44 -16
- package/dist/collection/components/z-popover/index.stories.js +0 -1
- package/dist/collection/components/z-result-card/index.js +34 -23
- package/dist/collection/components/z-result-card/z-result-card.stories.js +0 -1
- package/dist/collection/components/z-searchbar/index.js +80 -40
- package/dist/collection/components/z-searchbar/index.stories.js +0 -1
- package/dist/collection/components/z-select/index.js +87 -47
- package/dist/collection/components/z-select/index.stories.js +0 -1
- package/dist/collection/components/z-skip-to-content/index.js +13 -8
- package/dist/collection/components/z-skip-to-content/index.stories.js +0 -1
- package/dist/collection/components/z-stepper/index.js +1 -2
- package/dist/collection/components/z-stepper/index.stories.js +0 -1
- package/dist/collection/components/z-stepper-item/index.js +21 -19
- package/dist/collection/components/z-stepper-item/index.stories.js +0 -1
- package/dist/collection/components/z-tag/index.js +11 -14
- package/dist/collection/components/z-tag/index.stories.js +0 -1
- package/dist/collection/components/z-toast-notification/index.js +52 -34
- package/dist/collection/components/z-toast-notification/index.stories.js +0 -1
- package/dist/collection/components/z-toast-notification-list/index.js +12 -6
- package/dist/collection/components/z-toast-notification-list/index.stories.js +0 -1
- package/dist/collection/components/z-toggle-button/index.js +22 -12
- package/dist/collection/components/z-toggle-button/index.stories.js +0 -1
- package/dist/collection/components/z-toggle-switch/index.js +21 -9
- package/dist/collection/components/z-toggle-switch/index.stories.js +0 -1
- package/dist/collection/components/z-tool/index.js +49 -31
- package/dist/collection/components/z-tool/index.stories.js +0 -1
- package/dist/collection/components/z-toolbar/index.js +7 -6
- package/dist/collection/components/z-toolbar/index.stories.js +0 -1
- package/dist/collection/components/z-tooltip/index.js +29 -10
- package/dist/collection/components/z-tooltip/index.stories.js +0 -1
- package/dist/collection/components/z-visually-hidden/index.js +1 -2
- package/dist/collection/components/z-visually-hidden/index.stories.js +0 -1
- package/dist/collection/constants/breakpoints.js +0 -1
- package/dist/collection/constants/icons.js +0 -1
- package/dist/collection/constants/iconset.js +0 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +19 -11
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +17 -16
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -2
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +17 -16
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +25 -12
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +31 -20
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -2
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +15 -12
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +13 -7
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +11 -7
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +5 -5
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +10 -10
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +29 -19
- package/dist/collection/snowflakes/myz/z-alert/index.js +7 -8
- package/dist/collection/snowflakes/myz/z-otp/index.js +19 -12
- package/dist/collection/snowflakes/myz/z-slideshow/index.js +11 -9
- package/dist/collection/utils/storybook-utils.js +0 -1
- package/dist/collection/utils/utils.js +0 -1
- package/dist/components/_commonjsHelpers.js +1 -5
- package/dist/components/breakpoints.js +1 -11
- package/dist/components/iconset.js +1 -1013
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -98
- package/dist/components/index10.js +1 -60
- package/dist/components/index11.js +1 -92
- package/dist/components/index12.js +1 -342
- package/dist/components/index13.js +1 -66
- package/dist/components/index14.js +1 -53
- package/dist/components/index15.js +1 -181
- package/dist/components/index16.js +1 -76
- package/dist/components/index17.js +1 -1040
- package/dist/components/index18.js +1 -65
- package/dist/components/index19.js +1 -33
- package/dist/components/index2.js +1 -407
- package/dist/components/index20.js +1 -45
- package/dist/components/index21.js +1 -62
- package/dist/components/index22.js +1 -66
- package/dist/components/index23.js +1 -179
- package/dist/components/index24.js +1 -549
- package/dist/components/index25.js +1 -409
- package/dist/components/index26.js +1 -49
- package/dist/components/index27.js +1 -55
- package/dist/components/index3.js +1 -36
- package/dist/components/index4.js +1 -45
- package/dist/components/index5.js +1 -82
- package/dist/components/index6.js +1 -56
- package/dist/components/index7.js +1 -40
- package/dist/components/index8.js +1 -63
- package/dist/components/index9.js +1 -33
- package/dist/components/utils.js +1 -246
- package/dist/components/utils2.js +1 -2704
- package/dist/components/z-accordion.js +1 -95
- package/dist/components/z-alert.js +1 -8
- package/dist/components/z-anchor-navigation.js +1 -87
- package/dist/components/z-app-header-deprecated.js +1 -255
- package/dist/components/z-app-header.js +1 -367
- package/dist/components/z-aria-alert.js +1 -35
- package/dist/components/z-avatar.js +1 -66
- package/dist/components/z-book-card-app.js +1 -77
- package/dist/components/z-book-card-deprecated.js +1 -175
- package/dist/components/z-book-card.js +1 -149
- package/dist/components/z-book-cover.js +1 -8
- package/dist/components/z-breadcrumb.js +1 -290
- package/dist/components/z-button-sort.js +1 -86
- package/dist/components/z-button.js +1 -8
- package/dist/components/z-card.js +1 -83
- package/dist/components/z-carousel.js +1 -234
- package/dist/components/z-chip.js +1 -8
- package/dist/components/z-color-picker.js +1 -234
- package/dist/components/z-combobox.js +1 -393
- package/dist/components/z-cover-hero.js +1 -66
- package/dist/components/z-date-picker.js +16 -528
- package/dist/components/z-divider.js +1 -8
- package/dist/components/z-dragdrop-area.js +1 -8
- package/dist/components/z-file-upload.js +1 -253
- package/dist/components/z-file.js +1 -89
- package/dist/components/z-ghost-loading.js +1 -8
- package/dist/components/z-icon.js +1 -8
- package/dist/components/z-info-box.js +1 -51
- package/dist/components/z-info-reveal.js +1 -8
- package/dist/components/z-input-message.js +1 -8
- package/dist/components/z-input.js +1 -8
- package/dist/components/z-list-element.js +1 -8
- package/dist/components/z-list-group.js +1 -8
- package/dist/components/z-list.js +1 -8
- package/dist/components/z-logo.js +1 -56
- package/dist/components/z-menu-deprecated.js +1 -144
- package/dist/components/z-menu-section-deprecated.js +1 -84
- package/dist/components/z-menu-section.js +1 -226
- package/dist/components/z-menu.js +1 -353
- package/dist/components/z-modal.js +1 -8
- package/dist/components/z-myz-card-alert.js +1 -101
- package/dist/components/z-myz-card-body.js +1 -8
- package/dist/components/z-myz-card-cover.js +1 -8
- package/dist/components/z-myz-card-dictionary.js +1 -94
- package/dist/components/z-myz-card-footer-sections.js +1 -36
- package/dist/components/z-myz-card-footer.js +1 -99
- package/dist/components/z-myz-card-header.js +1 -8
- package/dist/components/z-myz-card-icon.js +1 -49
- package/dist/components/z-myz-card-info.js +1 -162
- package/dist/components/z-myz-card-list.js +1 -58
- package/dist/components/z-myz-card.js +1 -8
- package/dist/components/z-myz-list-item.js +1 -8
- package/dist/components/z-myz-list.js +1 -71
- package/dist/components/z-navigation-tabs.js +1 -272
- package/dist/components/z-notification.js +1 -68
- package/dist/components/z-offcanvas.js +1 -8
- package/dist/components/z-otp.js +1 -75
- package/dist/components/z-pagination.js +1 -283
- package/dist/components/z-panel-elem.js +1 -66
- package/dist/components/z-popover.js +1 -8
- package/dist/components/z-range-picker.js +1 -413
- package/dist/components/z-result-card.js +1 -121
- package/dist/components/z-searchbar.js +1 -8
- package/dist/components/z-section-title.js +1 -52
- package/dist/components/z-select.js +1 -585
- package/dist/components/z-skip-to-content.js +1 -93
- package/dist/components/z-slideshow.js +1 -161
- package/dist/components/z-stepper-item.js +1 -60
- package/dist/components/z-stepper.js +1 -36
- package/dist/components/z-table.js +1 -68
- package/dist/components/z-tag.js +1 -8
- package/dist/components/z-tbody.js +1 -36
- package/dist/components/z-td.js +1 -89
- package/dist/components/z-tfoot.js +1 -39
- package/dist/components/z-th.js +1 -112
- package/dist/components/z-thead.js +1 -42
- package/dist/components/z-toast-notification-list.js +1 -79
- package/dist/components/z-toast-notification.js +2 -4228
- package/dist/components/z-toggle-button.js +1 -64
- package/dist/components/z-toggle-switch.js +1 -73
- package/dist/components/z-tool.js +1 -260
- package/dist/components/z-toolbar.js +1 -165
- package/dist/components/z-tooltip.js +1 -8
- package/dist/components/z-tr.js +1 -101
- package/dist/components/z-tree-list.js +1 -162
- package/dist/components/z-visually-hidden.js +1 -36
- package/dist/esm/_commonjsHelpers-B85MJLTf.js +5 -0
- package/dist/esm/{breakpoints-d148bfde.js → breakpoints-Q-tWjk7P.js} +0 -2
- package/dist/esm/{iconset-d7823b13.js → iconset-BanpkIXZ.js} +3 -4
- package/dist/esm/{index-106473a8.js → index-BKCj6NR2.js} +0 -2
- package/dist/esm/index-ByN2sYu6.js +2653 -0
- package/dist/esm/index.js +4 -6
- package/dist/esm/loader.js +3 -6
- package/dist/esm/{utils-8d6ca808.js → utils-0PByxJyN.js} +3 -5
- package/dist/esm/{utils-93ac0e6c.js → utils-DuuLzXZj.js} +81 -73
- package/dist/esm/web-components-library.js +5 -7
- package/dist/esm/z-accordion.entry.js +26 -11
- package/dist/esm/z-alert.entry.js +4 -8
- package/dist/esm/z-anchor-navigation.entry.js +25 -8
- package/dist/esm/z-app-header-deprecated.entry.js +53 -20
- package/dist/esm/z-app-header_12.entry.js +261 -148
- package/dist/esm/z-aria-alert.entry.js +4 -5
- package/dist/esm/z-avatar.entry.js +9 -11
- package/dist/esm/z-book-card-app.entry.js +10 -16
- package/dist/esm/z-book-card-deprecated.entry.js +10 -22
- package/dist/esm/z-book-card.entry.js +11 -21
- package/dist/esm/z-book-cover.entry.js +6 -9
- package/dist/esm/z-breadcrumb.entry.js +24 -17
- package/dist/esm/z-button-sort.entry.js +9 -12
- package/dist/esm/z-card.entry.js +9 -10
- package/dist/esm/z-carousel.entry.js +50 -28
- package/dist/esm/z-chip.entry.js +9 -11
- package/dist/esm/z-color-picker.entry.js +24 -16
- package/dist/esm/z-combobox.entry.js +27 -24
- package/dist/esm/z-cover-hero.entry.js +18 -9
- package/dist/esm/z-date-picker.entry.js +352 -329
- package/dist/esm/z-dragdrop-area_2.entry.js +18 -20
- package/dist/esm/z-file-upload.entry.js +21 -16
- package/dist/esm/z-file.entry.js +6 -11
- package/dist/esm/z-ghost-loading.entry.js +4 -7
- package/dist/esm/z-info-box.entry.js +5 -8
- package/dist/esm/z-info-reveal.entry.js +20 -11
- package/dist/esm/z-logo.entry.js +4 -13
- package/dist/esm/z-menu-deprecated.entry.js +23 -12
- package/dist/esm/z-menu-section-deprecated.entry.js +10 -11
- package/dist/esm/z-menu-section.entry.js +15 -14
- package/dist/esm/z-menu.entry.js +27 -15
- package/dist/esm/z-myz-card-alert.entry.js +5 -12
- package/dist/esm/z-myz-card-dictionary.entry.js +9 -10
- package/dist/esm/z-myz-card-footer-sections.entry.js +4 -7
- package/dist/esm/z-myz-card-footer.entry.js +7 -13
- package/dist/esm/z-myz-card-icon.entry.js +6 -8
- package/dist/esm/z-myz-card-info.entry.js +8 -11
- package/dist/esm/z-myz-card-list.entry.js +4 -8
- package/dist/esm/z-myz-card_4.entry.js +16 -29
- package/dist/esm/z-myz-list-item.entry.js +9 -15
- package/dist/esm/z-myz-list.entry.js +7 -10
- package/dist/esm/z-navigation-tabs.entry.js +28 -16
- package/dist/esm/z-notification.entry.js +10 -10
- package/dist/esm/z-otp.entry.js +10 -12
- package/dist/esm/z-pagination.entry.js +28 -16
- package/dist/esm/z-panel-elem.entry.js +7 -15
- package/dist/esm/z-popover.entry.js +35 -17
- package/dist/esm/z-range-picker.entry.js +38 -29
- package/dist/esm/z-result-card.entry.js +7 -14
- package/dist/esm/z-section-title.entry.js +12 -8
- package/dist/esm/z-select.entry.js +21 -23
- package/dist/esm/z-skip-to-content.entry.js +8 -11
- package/dist/esm/z-slideshow.entry.js +12 -14
- package/dist/esm/z-stepper-item.entry.js +4 -12
- package/dist/esm/z-stepper.entry.js +4 -7
- package/dist/esm/z-table.entry.js +19 -16
- package/dist/esm/z-tbody.entry.js +14 -3
- package/dist/esm/z-td.entry.js +56 -4
- package/dist/esm/z-tfoot.entry.js +18 -3
- package/dist/esm/z-th.entry.js +83 -4
- package/dist/esm/z-thead.entry.js +23 -3
- package/dist/esm/z-toast-notification-list.entry.js +11 -10
- package/dist/esm/z-toast-notification.entry.js +3942 -3961
- package/dist/esm/z-toggle-button.entry.js +8 -10
- package/dist/esm/z-toggle-switch.entry.js +13 -12
- package/dist/esm/z-tool.entry.js +28 -27
- package/dist/esm/z-toolbar.entry.js +7 -10
- package/dist/esm/z-tooltip.entry.js +15 -9
- package/dist/esm/z-tr.entry.js +82 -8
- package/dist/esm/z-tree-list.entry.js +10 -12
- package/dist/esm/z-visually-hidden.entry.js +4 -7
- package/dist/types/components/book-card/z-book-card/index.d.ts +2 -2
- package/dist/types/components/book-card/z-book-card-app/index.d.ts +2 -2
- package/dist/types/components/date-picker/z-date-picker/index.d.ts +2 -2
- package/dist/types/components/date-picker/z-range-picker/index.d.ts +2 -2
- package/dist/types/components/deprecated/z-app-header-deprecated/index.d.ts +2 -2
- package/dist/types/components/deprecated/z-book-card-deprecated/index.d.ts +2 -2
- package/dist/types/components/deprecated/z-menu-deprecated/index.d.ts +2 -2
- package/dist/types/components/deprecated/z-menu-section-deprecated/index.d.ts +2 -2
- package/dist/types/components/deprecated/z-section-title/index.d.ts +2 -1
- package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +2 -2
- package/dist/types/components/file-upload/z-file/index.d.ts +2 -2
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +2 -2
- package/dist/types/components/list/z-list/index.d.ts +2 -1
- package/dist/types/components/list/z-list-element/index.d.ts +2 -2
- package/dist/types/components/list/z-list-group/index.d.ts +2 -1
- package/dist/types/components/list/z-tree-list/index.d.ts +2 -2
- package/dist/types/components/table/cells/z-td/index.d.ts +2 -2
- package/dist/types/components/table/cells/z-th/index.d.ts +2 -1
- package/dist/types/components/table/z-table/index.d.ts +2 -1
- package/dist/types/components/table/z-tbody/index.d.ts +2 -1
- package/dist/types/components/table/z-tfoot/index.d.ts +2 -1
- package/dist/types/components/table/z-thead/index.d.ts +2 -1
- package/dist/types/components/table/z-tr/index.d.ts +2 -2
- package/dist/types/components/z-accordion/index.d.ts +2 -2
- package/dist/types/components/z-anchor-navigation/index.d.ts +2 -1
- package/dist/types/components/z-app-header/index.d.ts +2 -2
- package/dist/types/components/z-aria-alert/index.d.ts +2 -1
- package/dist/types/components/z-avatar/index.d.ts +2 -1
- package/dist/types/components/z-book-cover/index.d.ts +2 -1
- package/dist/types/components/z-breadcrumb/index.d.ts +2 -2
- package/dist/types/components/z-button/index.d.ts +5 -2
- package/dist/types/components/z-button-sort/index.d.ts +2 -2
- package/dist/types/components/z-card/index.d.ts +2 -1
- package/dist/types/components/z-carousel/index.d.ts +5 -2
- package/dist/types/components/z-carousel/index.stories.d.ts +2 -2
- package/dist/types/components/z-chip/index.d.ts +2 -2
- package/dist/types/components/z-color-picker/index.d.ts +2 -2
- package/dist/types/components/z-combobox/index.d.ts +2 -2
- package/dist/types/components/z-cover-hero/index.d.ts +2 -1
- package/dist/types/components/z-divider/index.d.ts +2 -1
- package/dist/types/components/z-ghost-loading/index.d.ts +2 -1
- package/dist/types/components/z-icon/index.d.ts +2 -1
- package/dist/types/components/z-info-box/index.d.ts +2 -2
- package/dist/types/components/z-info-reveal/index.d.ts +2 -1
- package/dist/types/components/z-input/index.d.ts +2 -2
- package/dist/types/components/z-input-message/index.d.ts +2 -1
- package/dist/types/components/z-logo/index.d.ts +2 -1
- package/dist/types/components/z-menu/index.d.ts +2 -2
- package/dist/types/components/z-menu-section/index.d.ts +2 -2
- package/dist/types/components/z-modal/index.d.ts +2 -2
- package/dist/types/components/z-navigation-tabs/index.d.ts +2 -2
- package/dist/types/components/z-notification/index.d.ts +2 -2
- package/dist/types/components/z-offcanvas/index.d.ts +2 -2
- package/dist/types/components/z-pagination/index.d.ts +2 -2
- package/dist/types/components/z-panel-elem/index.d.ts +2 -1
- package/dist/types/components/z-popover/index.d.ts +2 -2
- package/dist/types/components/z-result-card/index.d.ts +2 -1
- package/dist/types/components/z-searchbar/index.d.ts +2 -2
- package/dist/types/components/z-select/index.d.ts +2 -2
- package/dist/types/components/z-skip-to-content/index.d.ts +2 -1
- package/dist/types/components/z-stepper/index.d.ts +2 -1
- package/dist/types/components/z-stepper-item/index.d.ts +2 -1
- package/dist/types/components/z-tag/index.d.ts +2 -1
- package/dist/types/components/z-toast-notification/index.d.ts +2 -2
- package/dist/types/components/z-toast-notification-list/index.d.ts +2 -1
- package/dist/types/components/z-toggle-button/index.d.ts +2 -2
- package/dist/types/components/z-toggle-switch/index.d.ts +2 -2
- package/dist/types/components/z-tool/index.d.ts +2 -2
- package/dist/types/components/z-toolbar/index.d.ts +2 -1
- package/dist/types/components/z-tooltip/index.d.ts +2 -2
- package/dist/types/components/z-visually-hidden/index.d.ts +2 -1
- package/dist/types/components.d.ts +1299 -166
- package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +2 -1
- package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +2 -2
- package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +2 -1
- package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +2 -1
- package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +2 -2
- package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +2 -1
- package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +2 -1
- package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +2 -1
- package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +2 -1
- package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +2 -2
- package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +2 -1
- package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +2 -1
- package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +2 -2
- package/dist/types/snowflakes/myz/z-alert/index.d.ts +2 -1
- package/dist/types/snowflakes/myz/z-otp/index.d.ts +2 -2
- package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +2 -1
- package/dist/types/stencil-public-runtime.d.ts +194 -8
- package/dist/web-components-library/index.esm.js +1 -2
- package/dist/web-components-library/p-00f09ae2.entry.js +1 -0
- package/dist/web-components-library/p-02e588b4.entry.js +1 -0
- package/dist/web-components-library/p-040fbd28.entry.js +1 -0
- package/dist/web-components-library/p-05fe5555.entry.js +1 -0
- package/dist/web-components-library/p-081b1648.entry.js +1 -0
- package/dist/web-components-library/p-0a819ab4.entry.js +1 -0
- package/dist/web-components-library/p-0dde6773.entry.js +1 -0
- package/dist/web-components-library/p-11a90064.entry.js +1 -0
- package/dist/web-components-library/p-1210c90f.entry.js +1 -0
- package/dist/web-components-library/p-1280ac72.entry.js +1 -0
- package/dist/web-components-library/p-17429bce.entry.js +1 -0
- package/dist/web-components-library/p-18782c2f.entry.js +1 -0
- package/dist/web-components-library/p-19536f5e.entry.js +1 -0
- package/dist/web-components-library/p-1b851174.entry.js +1 -0
- package/dist/web-components-library/p-1c75b67f.entry.js +1 -0
- package/dist/web-components-library/p-1e984688.entry.js +1 -0
- package/dist/web-components-library/p-2294f1b0.entry.js +1 -0
- package/dist/web-components-library/p-26fc8a38.entry.js +1 -0
- package/dist/web-components-library/p-27f93251.entry.js +1 -0
- package/dist/web-components-library/p-294f7b4e.entry.js +1 -0
- package/dist/web-components-library/p-2b122a22.entry.js +1 -0
- package/dist/web-components-library/p-2f99634d.entry.js +1 -0
- package/dist/web-components-library/p-30c86858.entry.js +1 -0
- package/dist/web-components-library/p-314302ce.entry.js +1 -0
- package/dist/web-components-library/p-366d2553.entry.js +1 -0
- package/dist/web-components-library/p-3a9aec16.entry.js +1 -0
- package/dist/web-components-library/p-3c861d49.entry.js +1 -0
- package/dist/web-components-library/p-41b55222.entry.js +1 -0
- package/dist/web-components-library/p-44220d6b.entry.js +1 -0
- package/dist/web-components-library/p-48d72b52.entry.js +1 -0
- package/dist/web-components-library/p-50b59012.entry.js +1 -0
- package/dist/web-components-library/p-5883dbc1.entry.js +1 -0
- package/dist/web-components-library/p-58933ba5.entry.js +1 -0
- package/dist/web-components-library/p-5bb77af2.entry.js +1 -0
- package/dist/web-components-library/{p-6c9cd6be.entry.js → p-5c85b7f4.entry.js} +1 -2
- package/dist/web-components-library/p-5e91940f.entry.js +1 -0
- package/dist/web-components-library/p-5fc4048b.entry.js +1 -0
- package/dist/web-components-library/p-61b2ad9b.entry.js +1 -0
- package/dist/web-components-library/p-631f111d.entry.js +1 -0
- package/dist/web-components-library/p-6d0abf8c.entry.js +1 -0
- package/dist/web-components-library/p-6ece59b5.entry.js +1 -0
- package/dist/web-components-library/p-73aaace2.entry.js +1 -0
- package/dist/web-components-library/p-772c3e3e.entry.js +1 -0
- package/dist/web-components-library/p-849d65f5.entry.js +1 -0
- package/dist/web-components-library/p-87306cd0.entry.js +1 -0
- package/dist/web-components-library/p-8745878e.entry.js +1 -0
- package/dist/web-components-library/p-8f5387ef.entry.js +1 -0
- package/dist/web-components-library/p-967549d2.entry.js +1 -0
- package/dist/web-components-library/p-99922496.entry.js +1 -0
- package/dist/web-components-library/p-9b181c2c.entry.js +1 -0
- package/dist/web-components-library/p-9e4db6a2.entry.js +1 -0
- package/dist/web-components-library/p-B85MJLTf.js +1 -0
- package/dist/web-components-library/p-B8WJfd4z.js +1 -0
- package/dist/web-components-library/p-BKCj6NR2.js +1 -0
- package/dist/web-components-library/{p-eb15536d.js → p-BanpkIXZ.js} +1 -2
- package/dist/web-components-library/p-ByN2sYu6.js +2 -0
- package/dist/web-components-library/p-D4yqZKyM.js +1 -0
- package/dist/web-components-library/p-Q-tWjk7P.js +1 -0
- package/dist/web-components-library/p-a336c241.entry.js +1 -0
- package/dist/web-components-library/p-a3a7c406.entry.js +1 -0
- package/dist/web-components-library/p-a9534450.entry.js +1 -0
- package/dist/web-components-library/p-aabb5aea.entry.js +1 -0
- package/dist/web-components-library/p-abfdc045.entry.js +1 -0
- package/dist/web-components-library/p-ad2ed505.entry.js +16 -0
- package/dist/web-components-library/p-aeaf586b.entry.js +1 -0
- package/dist/web-components-library/p-afab22fc.entry.js +1 -0
- package/dist/web-components-library/p-afcabf3b.entry.js +1 -0
- package/dist/web-components-library/p-b38d52e5.entry.js +1 -0
- package/dist/web-components-library/p-b5c180bc.entry.js +1 -0
- package/dist/web-components-library/p-c1677653.entry.js +1 -0
- package/dist/web-components-library/p-c23bfec2.entry.js +1 -0
- package/dist/web-components-library/p-d8f0e022.entry.js +2 -0
- package/dist/web-components-library/p-dc759208.entry.js +1 -0
- package/dist/web-components-library/p-eb722234.entry.js +1 -0
- package/dist/web-components-library/p-ebdbd84c.entry.js +1 -0
- package/dist/web-components-library/p-ecea3d09.entry.js +1 -0
- package/dist/web-components-library/p-fade8c19.entry.js +1 -0
- package/dist/web-components-library/p-fc90579e.entry.js +1 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -2
- package/package.json +14 -10
- package/react/components.js +87 -92
- package/react/index.js +1 -18
- package/react/react-component-lib/createComponent.js +11 -39
- package/react/react-component-lib/createOverlayComponent.js +35 -56
- package/react/react-component-lib/index.js +2 -8
- package/react/react-component-lib/interfaces.js +1 -3
- package/react/react-component-lib/utils/attachProps.js +11 -20
- package/react/react-component-lib/utils/case.js +2 -8
- package/react/react-component-lib/utils/dev.js +3 -9
- package/react/react-component-lib/utils/index.js +10 -35
- package/www/build/index.esm.js +1 -2
- package/www/build/p-00f09ae2.entry.js +1 -0
- package/www/build/p-02e588b4.entry.js +1 -0
- package/www/build/p-040fbd28.entry.js +1 -0
- package/www/build/p-05fe5555.entry.js +1 -0
- package/www/build/p-081b1648.entry.js +1 -0
- package/www/build/p-0a819ab4.entry.js +1 -0
- package/www/build/p-0dde6773.entry.js +1 -0
- package/www/build/p-11a90064.entry.js +1 -0
- package/www/build/p-1210c90f.entry.js +1 -0
- package/www/build/p-1280ac72.entry.js +1 -0
- package/www/build/p-17429bce.entry.js +1 -0
- package/www/build/p-18782c2f.entry.js +1 -0
- package/www/build/p-19536f5e.entry.js +1 -0
- package/www/build/p-1b851174.entry.js +1 -0
- package/www/build/p-1c75b67f.entry.js +1 -0
- package/www/build/p-1e984688.entry.js +1 -0
- package/www/build/p-2294f1b0.entry.js +1 -0
- package/www/build/p-26fc8a38.entry.js +1 -0
- package/www/build/p-27f93251.entry.js +1 -0
- package/www/build/p-294f7b4e.entry.js +1 -0
- package/www/build/p-2b122a22.entry.js +1 -0
- package/www/build/p-2f99634d.entry.js +1 -0
- package/www/build/p-30c86858.entry.js +1 -0
- package/www/build/p-314302ce.entry.js +1 -0
- package/www/build/p-366d2553.entry.js +1 -0
- package/www/build/p-3a9aec16.entry.js +1 -0
- package/www/build/p-3c861d49.entry.js +1 -0
- package/www/build/p-41b55222.entry.js +1 -0
- package/www/build/p-44220d6b.entry.js +1 -0
- package/www/build/p-48d72b52.entry.js +1 -0
- package/www/build/p-50b59012.entry.js +1 -0
- package/www/build/p-5883dbc1.entry.js +1 -0
- package/www/build/p-58933ba5.entry.js +1 -0
- package/www/build/p-5bb77af2.entry.js +1 -0
- package/www/build/{p-6c9cd6be.entry.js → p-5c85b7f4.entry.js} +1 -2
- package/www/build/p-5e91940f.entry.js +1 -0
- package/www/build/p-5fc4048b.entry.js +1 -0
- package/www/build/p-61b2ad9b.entry.js +1 -0
- package/www/build/p-631f111d.entry.js +1 -0
- package/www/build/p-654b3801.js +1 -0
- package/www/build/p-6d0abf8c.entry.js +1 -0
- package/www/build/p-6ece59b5.entry.js +1 -0
- package/www/build/p-73aaace2.entry.js +1 -0
- package/www/build/p-772c3e3e.entry.js +1 -0
- package/www/build/p-849d65f5.entry.js +1 -0
- package/www/build/p-87306cd0.entry.js +1 -0
- package/www/build/p-8745878e.entry.js +1 -0
- package/www/build/p-8f5387ef.entry.js +1 -0
- package/www/build/p-967549d2.entry.js +1 -0
- package/www/build/p-99922496.entry.js +1 -0
- package/www/build/p-9b181c2c.entry.js +1 -0
- package/www/build/p-9e4db6a2.entry.js +1 -0
- package/www/build/p-B85MJLTf.js +1 -0
- package/www/build/p-B8WJfd4z.js +1 -0
- package/www/build/p-BKCj6NR2.js +1 -0
- package/www/build/{p-eb15536d.js → p-BanpkIXZ.js} +1 -2
- package/www/build/p-ByN2sYu6.js +2 -0
- package/www/build/p-D4yqZKyM.js +1 -0
- package/www/build/p-Q-tWjk7P.js +1 -0
- package/www/build/p-a336c241.entry.js +1 -0
- package/www/build/p-a3a7c406.entry.js +1 -0
- package/www/build/p-a9534450.entry.js +1 -0
- package/www/build/p-aabb5aea.entry.js +1 -0
- package/www/build/p-abfdc045.entry.js +1 -0
- package/www/build/p-ad2ed505.entry.js +16 -0
- package/www/build/p-aeaf586b.entry.js +1 -0
- package/www/build/p-afab22fc.entry.js +1 -0
- package/www/build/p-afcabf3b.entry.js +1 -0
- package/www/build/p-b38d52e5.entry.js +1 -0
- package/www/build/p-b5c180bc.entry.js +1 -0
- package/www/build/p-c1677653.entry.js +1 -0
- package/www/build/p-c23bfec2.entry.js +1 -0
- package/www/build/p-d8f0e022.entry.js +2 -0
- package/www/build/p-dc759208.entry.js +1 -0
- package/www/build/p-eb722234.entry.js +1 -0
- package/www/build/p-ebdbd84c.entry.js +1 -0
- package/www/build/p-ecea3d09.entry.js +1 -0
- package/www/build/p-fade8c19.entry.js +1 -0
- package/www/build/p-fc90579e.entry.js +1 -0
- package/www/build/web-components-library.esm.js +1 -2
- package/www/index.html +1 -1
- package/dist/cjs/_commonjsHelpers-68cdf74f.js +0 -7
- package/dist/cjs/_commonjsHelpers-68cdf74f.js.map +0 -1
- package/dist/cjs/app-globals-3a1e7e63.js +0 -7
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/breakpoints-8a1e87e0.js.map +0 -1
- package/dist/cjs/iconset-5d47610c.js.map +0 -1
- package/dist/cjs/index-012853a0.js +0 -21
- package/dist/cjs/index-012853a0.js.map +0 -1
- package/dist/cjs/index-1d7a50cc.js +0 -67
- package/dist/cjs/index-1d7a50cc.js.map +0 -1
- package/dist/cjs/index-2dff20f5.js +0 -20
- package/dist/cjs/index-2dff20f5.js.map +0 -1
- package/dist/cjs/index-86a8a3a4.js +0 -23
- package/dist/cjs/index-86a8a3a4.js.map +0 -1
- package/dist/cjs/index-96af6326.js +0 -2324
- package/dist/cjs/index-96af6326.js.map +0 -1
- package/dist/cjs/index-c38e5b9e.js +0 -73
- package/dist/cjs/index-c38e5b9e.js.map +0 -1
- package/dist/cjs/index-cb280932.js +0 -47
- package/dist/cjs/index-cb280932.js.map +0 -1
- package/dist/cjs/index-e30d0503.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/utils-4f7b4830.js.map +0 -1
- package/dist/cjs/utils-b1859d65.js.map +0 -1
- package/dist/cjs/web-components-library.cjs.js.map +0 -1
- package/dist/cjs/z-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/z-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/z-anchor-navigation.cjs.entry.js.map +0 -1
- package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +0 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js.map +0 -1
- package/dist/cjs/z-aria-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/z-avatar.cjs.entry.js.map +0 -1
- package/dist/cjs/z-book-card-app.cjs.entry.js.map +0 -1
- package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +0 -1
- package/dist/cjs/z-book-card.cjs.entry.js.map +0 -1
- package/dist/cjs/z-book-cover.cjs.entry.js.map +0 -1
- package/dist/cjs/z-breadcrumb.cjs.entry.js.map +0 -1
- package/dist/cjs/z-button-sort.cjs.entry.js.map +0 -1
- package/dist/cjs/z-card.cjs.entry.js.map +0 -1
- package/dist/cjs/z-carousel.cjs.entry.js.map +0 -1
- package/dist/cjs/z-chip.cjs.entry.js.map +0 -1
- package/dist/cjs/z-color-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/z-combobox.cjs.entry.js.map +0 -1
- package/dist/cjs/z-cover-hero.cjs.entry.js.map +0 -1
- package/dist/cjs/z-date-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +0 -1
- package/dist/cjs/z-file-upload.cjs.entry.js.map +0 -1
- package/dist/cjs/z-file.cjs.entry.js.map +0 -1
- package/dist/cjs/z-ghost-loading.cjs.entry.js.map +0 -1
- package/dist/cjs/z-info-box.cjs.entry.js.map +0 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js.map +0 -1
- package/dist/cjs/z-logo.cjs.entry.js.map +0 -1
- package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +0 -1
- package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +0 -1
- package/dist/cjs/z-menu-section.cjs.entry.js.map +0 -1
- package/dist/cjs/z-menu.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-card-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-card-list.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-list.cjs.entry.js.map +0 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/z-notification.cjs.entry.js.map +0 -1
- package/dist/cjs/z-otp.cjs.entry.js.map +0 -1
- package/dist/cjs/z-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/z-panel-elem.cjs.entry.js.map +0 -1
- package/dist/cjs/z-popover.cjs.entry.js.map +0 -1
- package/dist/cjs/z-range-picker.cjs.entry.js.map +0 -1
- package/dist/cjs/z-result-card.cjs.entry.js.map +0 -1
- package/dist/cjs/z-section-title.cjs.entry.js.map +0 -1
- package/dist/cjs/z-select.cjs.entry.js.map +0 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js.map +0 -1
- package/dist/cjs/z-slideshow.cjs.entry.js.map +0 -1
- package/dist/cjs/z-stepper-item.cjs.entry.js.map +0 -1
- package/dist/cjs/z-stepper.cjs.entry.js.map +0 -1
- package/dist/cjs/z-table.cjs.entry.js.map +0 -1
- package/dist/cjs/z-tbody.cjs.entry.js.map +0 -1
- package/dist/cjs/z-td.cjs.entry.js.map +0 -1
- package/dist/cjs/z-tfoot.cjs.entry.js.map +0 -1
- package/dist/cjs/z-th.cjs.entry.js.map +0 -1
- package/dist/cjs/z-thead.cjs.entry.js.map +0 -1
- package/dist/cjs/z-toast-notification-list.cjs.entry.js.map +0 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js.map +0 -1
- package/dist/cjs/z-toggle-button.cjs.entry.js.map +0 -1
- package/dist/cjs/z-toggle-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/z-tool.cjs.entry.js.map +0 -1
- package/dist/cjs/z-toolbar.cjs.entry.js.map +0 -1
- package/dist/cjs/z-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/z-tr.cjs.entry.js.map +0 -1
- package/dist/cjs/z-tree-list.cjs.entry.js.map +0 -1
- package/dist/cjs/z-visually-hidden.cjs.entry.js.map +0 -1
- package/dist/collection/__mocks__/fileMock.js.map +0 -1
- package/dist/collection/beans/index.js.map +0 -1
- package/dist/collection/components/book-card/z-book-card/index.js.map +0 -1
- package/dist/collection/components/book-card/z-book-card/index.stories.js.map +0 -1
- package/dist/collection/components/book-card/z-book-card-app/index.js.map +0 -1
- package/dist/collection/components/book-card/z-book-card-app/index.stories.js.map +0 -1
- package/dist/collection/components/css-components/z-fab/index.stories.js.map +0 -1
- package/dist/collection/components/css-components/z-label/index.stories.js.map +0 -1
- package/dist/collection/components/css-components/z-link/index.stories.js.map +0 -1
- package/dist/collection/components/css-components/z-scrollbar/index.stories.js.map +0 -1
- package/dist/collection/components/date-picker/utils.js.map +0 -1
- package/dist/collection/components/date-picker/z-date-picker/index.js.map +0 -1
- package/dist/collection/components/date-picker/z-date-picker/index.stories.js.map +0 -1
- package/dist/collection/components/date-picker/z-range-picker/index.js.map +0 -1
- package/dist/collection/components/date-picker/z-range-picker/index.stories.js.map +0 -1
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +0 -1
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js.map +0 -1
- package/dist/collection/components/deprecated/z-book-card-deprecated/index.js.map +0 -1
- package/dist/collection/components/deprecated/z-book-card-deprecated/index.stories.js.map +0 -1
- package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +0 -1
- package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js.map +0 -1
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +0 -1
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js.map +0 -1
- package/dist/collection/components/deprecated/z-section-title/index.js.map +0 -1
- package/dist/collection/components/deprecated/z-section-title/index.stories.js.map +0 -1
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js.map +0 -1
- package/dist/collection/components/file-upload/z-file/index.js.map +0 -1
- package/dist/collection/components/file-upload/z-file/index.stories.js.map +0 -1
- package/dist/collection/components/file-upload/z-file-upload/index.js.map +0 -1
- package/dist/collection/components/file-upload/z-file-upload/index.stories.js.map +0 -1
- package/dist/collection/components/index.js.map +0 -1
- package/dist/collection/components/list/z-list/index.js.map +0 -1
- package/dist/collection/components/list/z-list/index.stories.js.map +0 -1
- package/dist/collection/components/list/z-list-element/index.js.map +0 -1
- package/dist/collection/components/list/z-list-element/index.stories.js.map +0 -1
- package/dist/collection/components/list/z-list-group/index.js.map +0 -1
- package/dist/collection/components/list/z-list-group/index.stories.js.map +0 -1
- package/dist/collection/components/list/z-tree-list/index.js.map +0 -1
- package/dist/collection/components/list/z-tree-list/index.stories.js.map +0 -1
- package/dist/collection/components/table/cells/z-td/index.js.map +0 -1
- package/dist/collection/components/table/cells/z-th/index.js.map +0 -1
- package/dist/collection/components/table/z-table/index.js.map +0 -1
- package/dist/collection/components/table/z-table/index.stories.js.map +0 -1
- package/dist/collection/components/table/z-tbody/index.js.map +0 -1
- package/dist/collection/components/table/z-tfoot/index.js.map +0 -1
- package/dist/collection/components/table/z-thead/index.js.map +0 -1
- package/dist/collection/components/table/z-tr/index.js.map +0 -1
- package/dist/collection/components/z-accordion/index.js.map +0 -1
- package/dist/collection/components/z-accordion/index.stories.js.map +0 -1
- package/dist/collection/components/z-anchor-navigation/index.js.map +0 -1
- package/dist/collection/components/z-anchor-navigation/index.stories.js.map +0 -1
- package/dist/collection/components/z-app-header/index.js.map +0 -1
- package/dist/collection/components/z-app-header/index.stories.js.map +0 -1
- package/dist/collection/components/z-aria-alert/index.js.map +0 -1
- package/dist/collection/components/z-aria-alert/index.stories.js.map +0 -1
- package/dist/collection/components/z-avatar/index.js.map +0 -1
- package/dist/collection/components/z-avatar/index.stories.js.map +0 -1
- package/dist/collection/components/z-book-cover/index.js.map +0 -1
- package/dist/collection/components/z-book-cover/index.stories.js.map +0 -1
- package/dist/collection/components/z-breadcrumb/index.js.map +0 -1
- package/dist/collection/components/z-breadcrumb/index.stories.js.map +0 -1
- package/dist/collection/components/z-button/index.js.map +0 -1
- package/dist/collection/components/z-button/index.stories.js.map +0 -1
- package/dist/collection/components/z-button-sort/index.js.map +0 -1
- package/dist/collection/components/z-button-sort/index.stories.js.map +0 -1
- package/dist/collection/components/z-card/index.js.map +0 -1
- package/dist/collection/components/z-card/index.stories.js.map +0 -1
- package/dist/collection/components/z-carousel/index.js.map +0 -1
- package/dist/collection/components/z-carousel/index.stories.js.map +0 -1
- package/dist/collection/components/z-chip/index.js.map +0 -1
- package/dist/collection/components/z-chip/index.stories.js.map +0 -1
- package/dist/collection/components/z-color-picker/index.js.map +0 -1
- package/dist/collection/components/z-color-picker/index.stories.js.map +0 -1
- package/dist/collection/components/z-combobox/index.js.map +0 -1
- package/dist/collection/components/z-combobox/index.stories.js.map +0 -1
- package/dist/collection/components/z-cover-hero/index.js.map +0 -1
- package/dist/collection/components/z-cover-hero/index.stories.js.map +0 -1
- package/dist/collection/components/z-divider/index.js.map +0 -1
- package/dist/collection/components/z-divider/index.stories.js.map +0 -1
- package/dist/collection/components/z-ghost-loading/index.js.map +0 -1
- package/dist/collection/components/z-ghost-loading/index.stories.js.map +0 -1
- package/dist/collection/components/z-icon/index.js.map +0 -1
- package/dist/collection/components/z-icon/index.stories.js.map +0 -1
- package/dist/collection/components/z-info-box/index.js.map +0 -1
- package/dist/collection/components/z-info-box/index.stories.js.map +0 -1
- package/dist/collection/components/z-info-reveal/index.js.map +0 -1
- package/dist/collection/components/z-info-reveal/index.stories.js.map +0 -1
- package/dist/collection/components/z-input/index.js.map +0 -1
- package/dist/collection/components/z-input/index.stories.js.map +0 -1
- package/dist/collection/components/z-input-message/index.js.map +0 -1
- package/dist/collection/components/z-input-message/index.stories.js.map +0 -1
- package/dist/collection/components/z-logo/index.js.map +0 -1
- package/dist/collection/components/z-logo/index.stories.js.map +0 -1
- package/dist/collection/components/z-menu/index.js.map +0 -1
- package/dist/collection/components/z-menu/index.stories.js.map +0 -1
- package/dist/collection/components/z-menu-section/index.js.map +0 -1
- package/dist/collection/components/z-menu-section/index.stories.js.map +0 -1
- package/dist/collection/components/z-modal/index.js.map +0 -1
- package/dist/collection/components/z-modal/index.stories.js.map +0 -1
- package/dist/collection/components/z-navigation-tabs/index.js.map +0 -1
- package/dist/collection/components/z-navigation-tabs/index.stories.js.map +0 -1
- package/dist/collection/components/z-notification/index.js.map +0 -1
- package/dist/collection/components/z-notification/index.stories.js.map +0 -1
- package/dist/collection/components/z-offcanvas/index.js.map +0 -1
- package/dist/collection/components/z-offcanvas/index.stories.js.map +0 -1
- package/dist/collection/components/z-pagination/index.js.map +0 -1
- package/dist/collection/components/z-pagination/index.stories.js.map +0 -1
- package/dist/collection/components/z-panel-elem/index.js.map +0 -1
- package/dist/collection/components/z-panel-elem/index.stories.js.map +0 -1
- package/dist/collection/components/z-popover/index.js.map +0 -1
- package/dist/collection/components/z-popover/index.stories.js.map +0 -1
- package/dist/collection/components/z-result-card/index.js.map +0 -1
- package/dist/collection/components/z-result-card/z-result-card.stories.js.map +0 -1
- package/dist/collection/components/z-searchbar/index.js.map +0 -1
- package/dist/collection/components/z-searchbar/index.stories.js.map +0 -1
- package/dist/collection/components/z-select/index.js.map +0 -1
- package/dist/collection/components/z-select/index.stories.js.map +0 -1
- package/dist/collection/components/z-skip-to-content/index.js.map +0 -1
- package/dist/collection/components/z-skip-to-content/index.stories.js.map +0 -1
- package/dist/collection/components/z-stepper/index.js.map +0 -1
- package/dist/collection/components/z-stepper/index.stories.js.map +0 -1
- package/dist/collection/components/z-stepper-item/index.js.map +0 -1
- package/dist/collection/components/z-stepper-item/index.stories.js.map +0 -1
- package/dist/collection/components/z-tag/index.js.map +0 -1
- package/dist/collection/components/z-tag/index.stories.js.map +0 -1
- package/dist/collection/components/z-toast-notification/index.js.map +0 -1
- package/dist/collection/components/z-toast-notification/index.stories.js.map +0 -1
- package/dist/collection/components/z-toast-notification-list/index.js.map +0 -1
- package/dist/collection/components/z-toast-notification-list/index.stories.js.map +0 -1
- package/dist/collection/components/z-toggle-button/index.js.map +0 -1
- package/dist/collection/components/z-toggle-button/index.stories.js.map +0 -1
- package/dist/collection/components/z-toggle-switch/index.js.map +0 -1
- package/dist/collection/components/z-toggle-switch/index.stories.js.map +0 -1
- package/dist/collection/components/z-tool/index.js.map +0 -1
- package/dist/collection/components/z-tool/index.stories.js.map +0 -1
- package/dist/collection/components/z-toolbar/index.js.map +0 -1
- package/dist/collection/components/z-toolbar/index.stories.js.map +0 -1
- package/dist/collection/components/z-tooltip/index.js.map +0 -1
- package/dist/collection/components/z-tooltip/index.stories.js.map +0 -1
- package/dist/collection/components/z-visually-hidden/index.js.map +0 -1
- package/dist/collection/components/z-visually-hidden/index.stories.js.map +0 -1
- package/dist/collection/constants/breakpoints.js.map +0 -1
- package/dist/collection/constants/icons.js.map +0 -1
- package/dist/collection/constants/iconset.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/z-alert/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/z-otp/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/z-slideshow/index.js.map +0 -1
- package/dist/collection/utils/storybook-utils.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/_commonjsHelpers.js.map +0 -1
- package/dist/components/breakpoints.js.map +0 -1
- package/dist/components/iconset.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/index10.js.map +0 -1
- package/dist/components/index11.js.map +0 -1
- package/dist/components/index12.js.map +0 -1
- package/dist/components/index13.js.map +0 -1
- package/dist/components/index14.js.map +0 -1
- package/dist/components/index15.js.map +0 -1
- package/dist/components/index16.js.map +0 -1
- package/dist/components/index17.js.map +0 -1
- package/dist/components/index18.js.map +0 -1
- package/dist/components/index19.js.map +0 -1
- package/dist/components/index2.js.map +0 -1
- package/dist/components/index20.js.map +0 -1
- package/dist/components/index21.js.map +0 -1
- package/dist/components/index22.js.map +0 -1
- package/dist/components/index23.js.map +0 -1
- package/dist/components/index24.js.map +0 -1
- package/dist/components/index25.js.map +0 -1
- package/dist/components/index26.js.map +0 -1
- package/dist/components/index27.js.map +0 -1
- package/dist/components/index3.js.map +0 -1
- package/dist/components/index4.js.map +0 -1
- package/dist/components/index5.js.map +0 -1
- package/dist/components/index6.js.map +0 -1
- package/dist/components/index7.js.map +0 -1
- package/dist/components/index8.js.map +0 -1
- package/dist/components/index9.js.map +0 -1
- package/dist/components/utils.js.map +0 -1
- package/dist/components/utils2.js.map +0 -1
- package/dist/components/z-accordion.js.map +0 -1
- package/dist/components/z-alert.js.map +0 -1
- package/dist/components/z-anchor-navigation.js.map +0 -1
- package/dist/components/z-app-header-deprecated.js.map +0 -1
- package/dist/components/z-app-header.js.map +0 -1
- package/dist/components/z-aria-alert.js.map +0 -1
- package/dist/components/z-avatar.js.map +0 -1
- package/dist/components/z-book-card-app.js.map +0 -1
- package/dist/components/z-book-card-deprecated.js.map +0 -1
- package/dist/components/z-book-card.js.map +0 -1
- package/dist/components/z-book-cover.js.map +0 -1
- package/dist/components/z-breadcrumb.js.map +0 -1
- package/dist/components/z-button-sort.js.map +0 -1
- package/dist/components/z-button.js.map +0 -1
- package/dist/components/z-card.js.map +0 -1
- package/dist/components/z-carousel.js.map +0 -1
- package/dist/components/z-chip.js.map +0 -1
- package/dist/components/z-color-picker.js.map +0 -1
- package/dist/components/z-combobox.js.map +0 -1
- package/dist/components/z-cover-hero.js.map +0 -1
- package/dist/components/z-date-picker.js.map +0 -1
- package/dist/components/z-divider.js.map +0 -1
- package/dist/components/z-dragdrop-area.js.map +0 -1
- package/dist/components/z-file-upload.js.map +0 -1
- package/dist/components/z-file.js.map +0 -1
- package/dist/components/z-ghost-loading.js.map +0 -1
- package/dist/components/z-icon.js.map +0 -1
- package/dist/components/z-info-box.js.map +0 -1
- package/dist/components/z-info-reveal.js.map +0 -1
- package/dist/components/z-input-message.js.map +0 -1
- package/dist/components/z-input.js.map +0 -1
- package/dist/components/z-list-element.js.map +0 -1
- package/dist/components/z-list-group.js.map +0 -1
- package/dist/components/z-list.js.map +0 -1
- package/dist/components/z-logo.js.map +0 -1
- package/dist/components/z-menu-deprecated.js.map +0 -1
- package/dist/components/z-menu-section-deprecated.js.map +0 -1
- package/dist/components/z-menu-section.js.map +0 -1
- package/dist/components/z-menu.js.map +0 -1
- package/dist/components/z-modal.js.map +0 -1
- package/dist/components/z-myz-card-alert.js.map +0 -1
- package/dist/components/z-myz-card-body.js.map +0 -1
- package/dist/components/z-myz-card-cover.js.map +0 -1
- package/dist/components/z-myz-card-dictionary.js.map +0 -1
- package/dist/components/z-myz-card-footer-sections.js.map +0 -1
- package/dist/components/z-myz-card-footer.js.map +0 -1
- package/dist/components/z-myz-card-header.js.map +0 -1
- package/dist/components/z-myz-card-icon.js.map +0 -1
- package/dist/components/z-myz-card-info.js.map +0 -1
- package/dist/components/z-myz-card-list.js.map +0 -1
- package/dist/components/z-myz-card.js.map +0 -1
- package/dist/components/z-myz-list-item.js.map +0 -1
- package/dist/components/z-myz-list.js.map +0 -1
- package/dist/components/z-navigation-tabs.js.map +0 -1
- package/dist/components/z-notification.js.map +0 -1
- package/dist/components/z-offcanvas.js.map +0 -1
- package/dist/components/z-otp.js.map +0 -1
- package/dist/components/z-pagination.js.map +0 -1
- package/dist/components/z-panel-elem.js.map +0 -1
- package/dist/components/z-popover.js.map +0 -1
- package/dist/components/z-range-picker.js.map +0 -1
- package/dist/components/z-result-card.js.map +0 -1
- package/dist/components/z-searchbar.js.map +0 -1
- package/dist/components/z-section-title.js.map +0 -1
- package/dist/components/z-select.js.map +0 -1
- package/dist/components/z-skip-to-content.js.map +0 -1
- package/dist/components/z-slideshow.js.map +0 -1
- package/dist/components/z-stepper-item.js.map +0 -1
- package/dist/components/z-stepper.js.map +0 -1
- package/dist/components/z-table.js.map +0 -1
- package/dist/components/z-tag.js.map +0 -1
- package/dist/components/z-tbody.js.map +0 -1
- package/dist/components/z-td.js.map +0 -1
- package/dist/components/z-tfoot.js.map +0 -1
- package/dist/components/z-th.js.map +0 -1
- package/dist/components/z-thead.js.map +0 -1
- package/dist/components/z-toast-notification-list.js.map +0 -1
- package/dist/components/z-toast-notification.js.map +0 -1
- package/dist/components/z-toggle-button.js.map +0 -1
- package/dist/components/z-toggle-switch.js.map +0 -1
- package/dist/components/z-tool.js.map +0 -1
- package/dist/components/z-toolbar.js.map +0 -1
- package/dist/components/z-tooltip.js.map +0 -1
- package/dist/components/z-tr.js.map +0 -1
- package/dist/components/z-tree-list.js.map +0 -1
- package/dist/components/z-visually-hidden.js.map +0 -1
- package/dist/docs/grid/index.stories.js +0 -54
- package/dist/docs/grid/index.stories.js.map +0 -1
- package/dist/docs/iconset/index.stories.js +0 -32
- package/dist/docs/iconset/index.stories.js.map +0 -1
- package/dist/docs/themes/index.stories.js +0 -108
- package/dist/docs/themes/index.stories.js.map +0 -1
- package/dist/docs/typography/index.stories.js +0 -186
- package/dist/docs/typography/index.stories.js.map +0 -1
- package/dist/esm/_commonjsHelpers-1c8beb5f.js +0 -5
- package/dist/esm/_commonjsHelpers-1c8beb5f.js.map +0 -1
- package/dist/esm/app-globals-0f993ce5.js +0 -5
- package/dist/esm/app-globals-0f993ce5.js.map +0 -1
- package/dist/esm/breakpoints-d148bfde.js.map +0 -1
- package/dist/esm/iconset-d7823b13.js.map +0 -1
- package/dist/esm/index-09bfb4ee.js +0 -18
- package/dist/esm/index-09bfb4ee.js.map +0 -1
- package/dist/esm/index-106473a8.js.map +0 -1
- package/dist/esm/index-3856a6ca.js +0 -19
- package/dist/esm/index-3856a6ca.js.map +0 -1
- package/dist/esm/index-455c0a68.js +0 -21
- package/dist/esm/index-455c0a68.js.map +0 -1
- package/dist/esm/index-6c43bc70.js +0 -65
- package/dist/esm/index-6c43bc70.js.map +0 -1
- package/dist/esm/index-a0b957e0.js +0 -71
- package/dist/esm/index-a0b957e0.js.map +0 -1
- package/dist/esm/index-c8ceadeb.js +0 -2293
- package/dist/esm/index-c8ceadeb.js.map +0 -1
- package/dist/esm/index-f8517155.js +0 -45
- package/dist/esm/index-f8517155.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/utils-8d6ca808.js.map +0 -1
- package/dist/esm/utils-93ac0e6c.js.map +0 -1
- package/dist/esm/web-components-library.js.map +0 -1
- package/dist/esm/z-accordion.entry.js.map +0 -1
- package/dist/esm/z-alert.entry.js.map +0 -1
- package/dist/esm/z-anchor-navigation.entry.js.map +0 -1
- package/dist/esm/z-app-header-deprecated.entry.js.map +0 -1
- package/dist/esm/z-app-header_12.entry.js.map +0 -1
- package/dist/esm/z-aria-alert.entry.js.map +0 -1
- package/dist/esm/z-avatar.entry.js.map +0 -1
- package/dist/esm/z-book-card-app.entry.js.map +0 -1
- package/dist/esm/z-book-card-deprecated.entry.js.map +0 -1
- package/dist/esm/z-book-card.entry.js.map +0 -1
- package/dist/esm/z-book-cover.entry.js.map +0 -1
- package/dist/esm/z-breadcrumb.entry.js.map +0 -1
- package/dist/esm/z-button-sort.entry.js.map +0 -1
- package/dist/esm/z-card.entry.js.map +0 -1
- package/dist/esm/z-carousel.entry.js.map +0 -1
- package/dist/esm/z-chip.entry.js.map +0 -1
- package/dist/esm/z-color-picker.entry.js.map +0 -1
- package/dist/esm/z-combobox.entry.js.map +0 -1
- package/dist/esm/z-cover-hero.entry.js.map +0 -1
- package/dist/esm/z-date-picker.entry.js.map +0 -1
- package/dist/esm/z-dragdrop-area_2.entry.js.map +0 -1
- package/dist/esm/z-file-upload.entry.js.map +0 -1
- package/dist/esm/z-file.entry.js.map +0 -1
- package/dist/esm/z-ghost-loading.entry.js.map +0 -1
- package/dist/esm/z-info-box.entry.js.map +0 -1
- package/dist/esm/z-info-reveal.entry.js.map +0 -1
- package/dist/esm/z-logo.entry.js.map +0 -1
- package/dist/esm/z-menu-deprecated.entry.js.map +0 -1
- package/dist/esm/z-menu-section-deprecated.entry.js.map +0 -1
- package/dist/esm/z-menu-section.entry.js.map +0 -1
- package/dist/esm/z-menu.entry.js.map +0 -1
- package/dist/esm/z-myz-card-alert.entry.js.map +0 -1
- package/dist/esm/z-myz-card-dictionary.entry.js.map +0 -1
- package/dist/esm/z-myz-card-footer-sections.entry.js.map +0 -1
- package/dist/esm/z-myz-card-footer.entry.js.map +0 -1
- package/dist/esm/z-myz-card-icon.entry.js.map +0 -1
- package/dist/esm/z-myz-card-info.entry.js.map +0 -1
- package/dist/esm/z-myz-card-list.entry.js.map +0 -1
- package/dist/esm/z-myz-card_4.entry.js.map +0 -1
- package/dist/esm/z-myz-list-item.entry.js.map +0 -1
- package/dist/esm/z-myz-list.entry.js.map +0 -1
- package/dist/esm/z-navigation-tabs.entry.js.map +0 -1
- package/dist/esm/z-notification.entry.js.map +0 -1
- package/dist/esm/z-otp.entry.js.map +0 -1
- package/dist/esm/z-pagination.entry.js.map +0 -1
- package/dist/esm/z-panel-elem.entry.js.map +0 -1
- package/dist/esm/z-popover.entry.js.map +0 -1
- package/dist/esm/z-range-picker.entry.js.map +0 -1
- package/dist/esm/z-result-card.entry.js.map +0 -1
- package/dist/esm/z-section-title.entry.js.map +0 -1
- package/dist/esm/z-select.entry.js.map +0 -1
- package/dist/esm/z-skip-to-content.entry.js.map +0 -1
- package/dist/esm/z-slideshow.entry.js.map +0 -1
- package/dist/esm/z-stepper-item.entry.js.map +0 -1
- package/dist/esm/z-stepper.entry.js.map +0 -1
- package/dist/esm/z-table.entry.js.map +0 -1
- package/dist/esm/z-tbody.entry.js.map +0 -1
- package/dist/esm/z-td.entry.js.map +0 -1
- package/dist/esm/z-tfoot.entry.js.map +0 -1
- package/dist/esm/z-th.entry.js.map +0 -1
- package/dist/esm/z-thead.entry.js.map +0 -1
- package/dist/esm/z-toast-notification-list.entry.js.map +0 -1
- package/dist/esm/z-toast-notification.entry.js.map +0 -1
- package/dist/esm/z-toggle-button.entry.js.map +0 -1
- package/dist/esm/z-toggle-switch.entry.js.map +0 -1
- package/dist/esm/z-tool.entry.js.map +0 -1
- package/dist/esm/z-toolbar.entry.js.map +0 -1
- package/dist/esm/z-tooltip.entry.js.map +0 -1
- package/dist/esm/z-tr.entry.js.map +0 -1
- package/dist/esm/z-tree-list.entry.js.map +0 -1
- package/dist/esm/z-visually-hidden.entry.js.map +0 -1
- package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/grid/index.stories.d.ts +0 -9
- package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/iconset/index.stories.d.ts +0 -11
- package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/themes/index.stories.d.ts +0 -16
- package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/typography/index.stories.d.ts +0 -96
- package/dist/web-components-library/index.esm.js.map +0 -1
- package/dist/web-components-library/p-05be939d.entry.js +0 -2
- package/dist/web-components-library/p-05be939d.entry.js.map +0 -1
- package/dist/web-components-library/p-061e28d6.js +0 -2
- package/dist/web-components-library/p-061e28d6.js.map +0 -1
- package/dist/web-components-library/p-0643d684.entry.js +0 -2
- package/dist/web-components-library/p-0643d684.entry.js.map +0 -1
- package/dist/web-components-library/p-0aed3ddc.entry.js +0 -2
- package/dist/web-components-library/p-0aed3ddc.entry.js.map +0 -1
- package/dist/web-components-library/p-0b03b0e3.js +0 -2
- package/dist/web-components-library/p-0b03b0e3.js.map +0 -1
- package/dist/web-components-library/p-1b972597.entry.js +0 -2
- package/dist/web-components-library/p-1b972597.entry.js.map +0 -1
- package/dist/web-components-library/p-252893a8.entry.js +0 -2
- package/dist/web-components-library/p-252893a8.entry.js.map +0 -1
- package/dist/web-components-library/p-30a78a06.entry.js +0 -2
- package/dist/web-components-library/p-30a78a06.entry.js.map +0 -1
- package/dist/web-components-library/p-31bd2a1c.entry.js +0 -2
- package/dist/web-components-library/p-31bd2a1c.entry.js.map +0 -1
- package/dist/web-components-library/p-32bc8a40.entry.js +0 -2
- package/dist/web-components-library/p-32bc8a40.entry.js.map +0 -1
- package/dist/web-components-library/p-35d73edf.entry.js +0 -2
- package/dist/web-components-library/p-35d73edf.entry.js.map +0 -1
- package/dist/web-components-library/p-3977b0ae.entry.js +0 -2
- package/dist/web-components-library/p-3977b0ae.entry.js.map +0 -1
- package/dist/web-components-library/p-41891d34.entry.js +0 -2
- package/dist/web-components-library/p-41891d34.entry.js.map +0 -1
- package/dist/web-components-library/p-42abfe3b.entry.js +0 -2
- package/dist/web-components-library/p-42abfe3b.entry.js.map +0 -1
- package/dist/web-components-library/p-43adca09.entry.js +0 -2
- package/dist/web-components-library/p-43adca09.entry.js.map +0 -1
- package/dist/web-components-library/p-447a6391.entry.js +0 -2
- package/dist/web-components-library/p-447a6391.entry.js.map +0 -1
- package/dist/web-components-library/p-4504375f.entry.js +0 -2
- package/dist/web-components-library/p-4504375f.entry.js.map +0 -1
- package/dist/web-components-library/p-4573c419.js +0 -2
- package/dist/web-components-library/p-4573c419.js.map +0 -1
- package/dist/web-components-library/p-47b59f05.entry.js +0 -2
- package/dist/web-components-library/p-47b59f05.entry.js.map +0 -1
- package/dist/web-components-library/p-5145a606.js +0 -2
- package/dist/web-components-library/p-5145a606.js.map +0 -1
- package/dist/web-components-library/p-565c1815.entry.js +0 -2
- package/dist/web-components-library/p-565c1815.entry.js.map +0 -1
- package/dist/web-components-library/p-5989465b.entry.js +0 -2
- package/dist/web-components-library/p-5989465b.entry.js.map +0 -1
- package/dist/web-components-library/p-6164feb9.entry.js +0 -2
- package/dist/web-components-library/p-6164feb9.entry.js.map +0 -1
- package/dist/web-components-library/p-623fdee4.js +0 -2
- package/dist/web-components-library/p-623fdee4.js.map +0 -1
- package/dist/web-components-library/p-66c0f993.entry.js +0 -2
- package/dist/web-components-library/p-66c0f993.entry.js.map +0 -1
- package/dist/web-components-library/p-68d91a93.js +0 -2
- package/dist/web-components-library/p-68d91a93.js.map +0 -1
- package/dist/web-components-library/p-6c6a655e.entry.js +0 -2
- package/dist/web-components-library/p-6c6a655e.entry.js.map +0 -1
- package/dist/web-components-library/p-6c9cd6be.entry.js.map +0 -1
- package/dist/web-components-library/p-6d15da6f.entry.js +0 -2
- package/dist/web-components-library/p-6d15da6f.entry.js.map +0 -1
- package/dist/web-components-library/p-6e13aa8e.entry.js +0 -2
- package/dist/web-components-library/p-6e13aa8e.entry.js.map +0 -1
- package/dist/web-components-library/p-75c4a726.js +0 -3
- package/dist/web-components-library/p-75c4a726.js.map +0 -1
- package/dist/web-components-library/p-767b66ca.entry.js +0 -2
- package/dist/web-components-library/p-767b66ca.entry.js.map +0 -1
- package/dist/web-components-library/p-76d1d0e4.entry.js +0 -2
- package/dist/web-components-library/p-76d1d0e4.entry.js.map +0 -1
- package/dist/web-components-library/p-7a4f6a5b.entry.js +0 -2
- package/dist/web-components-library/p-7a4f6a5b.entry.js.map +0 -1
- package/dist/web-components-library/p-7b837e11.js +0 -2
- package/dist/web-components-library/p-7b837e11.js.map +0 -1
- package/dist/web-components-library/p-7d655f96.entry.js +0 -2
- package/dist/web-components-library/p-7d655f96.entry.js.map +0 -1
- package/dist/web-components-library/p-82eeea83.entry.js +0 -2
- package/dist/web-components-library/p-82eeea83.entry.js.map +0 -1
- package/dist/web-components-library/p-8503c87a.entry.js +0 -2
- package/dist/web-components-library/p-8503c87a.entry.js.map +0 -1
- package/dist/web-components-library/p-86618221.js +0 -2
- package/dist/web-components-library/p-86618221.js.map +0 -1
- package/dist/web-components-library/p-869295ce.entry.js +0 -2
- package/dist/web-components-library/p-869295ce.entry.js.map +0 -1
- package/dist/web-components-library/p-88a9865c.entry.js +0 -2
- package/dist/web-components-library/p-88a9865c.entry.js.map +0 -1
- package/dist/web-components-library/p-8988eee3.entry.js +0 -2
- package/dist/web-components-library/p-8988eee3.entry.js.map +0 -1
- package/dist/web-components-library/p-8b367393.js +0 -2
- package/dist/web-components-library/p-8b367393.js.map +0 -1
- package/dist/web-components-library/p-8c52635e.entry.js +0 -2
- package/dist/web-components-library/p-8c52635e.entry.js.map +0 -1
- package/dist/web-components-library/p-8fd50cc5.entry.js +0 -2
- package/dist/web-components-library/p-8fd50cc5.entry.js.map +0 -1
- package/dist/web-components-library/p-92f13701.entry.js +0 -2
- package/dist/web-components-library/p-92f13701.entry.js.map +0 -1
- package/dist/web-components-library/p-93d349ee.entry.js +0 -2
- package/dist/web-components-library/p-93d349ee.entry.js.map +0 -1
- package/dist/web-components-library/p-943db3a8.entry.js +0 -2
- package/dist/web-components-library/p-943db3a8.entry.js.map +0 -1
- package/dist/web-components-library/p-9814f864.entry.js +0 -2
- package/dist/web-components-library/p-9814f864.entry.js.map +0 -1
- package/dist/web-components-library/p-988a58dd.entry.js +0 -2
- package/dist/web-components-library/p-988a58dd.entry.js.map +0 -1
- package/dist/web-components-library/p-9ae0c0c6.entry.js +0 -2
- package/dist/web-components-library/p-9ae0c0c6.entry.js.map +0 -1
- package/dist/web-components-library/p-9c816a3b.js +0 -2
- package/dist/web-components-library/p-9c816a3b.js.map +0 -1
- package/dist/web-components-library/p-a2ee659d.entry.js +0 -2
- package/dist/web-components-library/p-a2ee659d.entry.js.map +0 -1
- package/dist/web-components-library/p-a3f9a5da.entry.js +0 -2
- package/dist/web-components-library/p-a3f9a5da.entry.js.map +0 -1
- package/dist/web-components-library/p-a4d2cf55.entry.js +0 -2
- package/dist/web-components-library/p-a4d2cf55.entry.js.map +0 -1
- package/dist/web-components-library/p-a8790237.entry.js +0 -2
- package/dist/web-components-library/p-a8790237.entry.js.map +0 -1
- package/dist/web-components-library/p-aaa96c12.entry.js +0 -17
- package/dist/web-components-library/p-aaa96c12.entry.js.map +0 -1
- package/dist/web-components-library/p-accbc381.entry.js +0 -2
- package/dist/web-components-library/p-accbc381.entry.js.map +0 -1
- package/dist/web-components-library/p-b0324c7d.entry.js +0 -2
- package/dist/web-components-library/p-b0324c7d.entry.js.map +0 -1
- package/dist/web-components-library/p-b391211f.entry.js +0 -2
- package/dist/web-components-library/p-b391211f.entry.js.map +0 -1
- package/dist/web-components-library/p-b421424f.entry.js +0 -2
- package/dist/web-components-library/p-b421424f.entry.js.map +0 -1
- package/dist/web-components-library/p-b54d923e.entry.js +0 -2
- package/dist/web-components-library/p-b54d923e.entry.js.map +0 -1
- package/dist/web-components-library/p-b7056859.entry.js +0 -2
- package/dist/web-components-library/p-b7056859.entry.js.map +0 -1
- package/dist/web-components-library/p-b71a3f69.entry.js +0 -2
- package/dist/web-components-library/p-b71a3f69.entry.js.map +0 -1
- package/dist/web-components-library/p-b7ec2cc4.entry.js +0 -2
- package/dist/web-components-library/p-b7ec2cc4.entry.js.map +0 -1
- package/dist/web-components-library/p-bd76ca35.entry.js +0 -2
- package/dist/web-components-library/p-bd76ca35.entry.js.map +0 -1
- package/dist/web-components-library/p-c3e03e41.entry.js +0 -2
- package/dist/web-components-library/p-c3e03e41.entry.js.map +0 -1
- package/dist/web-components-library/p-c811b0cf.entry.js +0 -2
- package/dist/web-components-library/p-c811b0cf.entry.js.map +0 -1
- package/dist/web-components-library/p-c89e1f4b.entry.js +0 -2
- package/dist/web-components-library/p-c89e1f4b.entry.js.map +0 -1
- package/dist/web-components-library/p-c9b81cab.entry.js +0 -2
- package/dist/web-components-library/p-c9b81cab.entry.js.map +0 -1
- package/dist/web-components-library/p-cb395500.js +0 -2
- package/dist/web-components-library/p-cb395500.js.map +0 -1
- package/dist/web-components-library/p-cbc09112.entry.js +0 -2
- package/dist/web-components-library/p-cbc09112.entry.js.map +0 -1
- package/dist/web-components-library/p-da3abb97.entry.js +0 -2
- package/dist/web-components-library/p-da3abb97.entry.js.map +0 -1
- package/dist/web-components-library/p-e1255160.js +0 -2
- package/dist/web-components-library/p-e1255160.js.map +0 -1
- package/dist/web-components-library/p-e8eacbeb.entry.js +0 -8
- package/dist/web-components-library/p-e8eacbeb.entry.js.map +0 -1
- package/dist/web-components-library/p-eb15536d.js.map +0 -1
- package/dist/web-components-library/p-ec1270db.entry.js +0 -2
- package/dist/web-components-library/p-ec1270db.entry.js.map +0 -1
- package/dist/web-components-library/p-efa6b991.entry.js +0 -2
- package/dist/web-components-library/p-efa6b991.entry.js.map +0 -1
- package/dist/web-components-library/p-f2c2ad04.entry.js +0 -2
- package/dist/web-components-library/p-f2c2ad04.entry.js.map +0 -1
- package/dist/web-components-library/p-f4b987ed.entry.js +0 -2
- package/dist/web-components-library/p-f4b987ed.entry.js.map +0 -1
- package/dist/web-components-library/p-f662e7ff.entry.js +0 -2
- package/dist/web-components-library/p-f662e7ff.entry.js.map +0 -1
- package/dist/web-components-library/p-f7e65eb0.entry.js +0 -2
- package/dist/web-components-library/p-f7e65eb0.entry.js.map +0 -1
- package/dist/web-components-library/p-f92e0c29.entry.js +0 -2
- package/dist/web-components-library/p-f92e0c29.entry.js.map +0 -1
- package/dist/web-components-library/p-fbce9614.entry.js +0 -2
- package/dist/web-components-library/p-fbce9614.entry.js.map +0 -1
- package/dist/web-components-library/p-ff89d630.entry.js +0 -2
- package/dist/web-components-library/p-ff89d630.entry.js.map +0 -1
- package/dist/web-components-library/web-components-library.esm.js.map +0 -1
- package/loader/package.json +0 -11
- package/react/components.js.map +0 -1
- package/react/index.js.map +0 -1
- package/react/react-component-lib/createComponent.js.map +0 -1
- package/react/react-component-lib/createOverlayComponent.js.map +0 -1
- package/react/react-component-lib/index.js.map +0 -1
- package/react/react-component-lib/interfaces.js.map +0 -1
- package/react/react-component-lib/utils/attachProps.js.map +0 -1
- package/react/react-component-lib/utils/case.js.map +0 -1
- package/react/react-component-lib/utils/dev.js.map +0 -1
- package/react/react-component-lib/utils/index.js.map +0 -1
- package/www/build/index.esm.js.map +0 -1
- package/www/build/p-05be939d.entry.js +0 -2
- package/www/build/p-05be939d.entry.js.map +0 -1
- package/www/build/p-061e28d6.js +0 -2
- package/www/build/p-061e28d6.js.map +0 -1
- package/www/build/p-0643d684.entry.js +0 -2
- package/www/build/p-0643d684.entry.js.map +0 -1
- package/www/build/p-0aed3ddc.entry.js +0 -2
- package/www/build/p-0aed3ddc.entry.js.map +0 -1
- package/www/build/p-0b03b0e3.js +0 -2
- package/www/build/p-0b03b0e3.js.map +0 -1
- package/www/build/p-1b972597.entry.js +0 -2
- package/www/build/p-1b972597.entry.js.map +0 -1
- package/www/build/p-252893a8.entry.js +0 -2
- package/www/build/p-252893a8.entry.js.map +0 -1
- package/www/build/p-30a78a06.entry.js +0 -2
- package/www/build/p-30a78a06.entry.js.map +0 -1
- package/www/build/p-31bd2a1c.entry.js +0 -2
- package/www/build/p-31bd2a1c.entry.js.map +0 -1
- package/www/build/p-32bc8a40.entry.js +0 -2
- package/www/build/p-32bc8a40.entry.js.map +0 -1
- package/www/build/p-35d73edf.entry.js +0 -2
- package/www/build/p-35d73edf.entry.js.map +0 -1
- package/www/build/p-3977b0ae.entry.js +0 -2
- package/www/build/p-3977b0ae.entry.js.map +0 -1
- package/www/build/p-41891d34.entry.js +0 -2
- package/www/build/p-41891d34.entry.js.map +0 -1
- package/www/build/p-42abfe3b.entry.js +0 -2
- package/www/build/p-42abfe3b.entry.js.map +0 -1
- package/www/build/p-43adca09.entry.js +0 -2
- package/www/build/p-43adca09.entry.js.map +0 -1
- package/www/build/p-447a6391.entry.js +0 -2
- package/www/build/p-447a6391.entry.js.map +0 -1
- package/www/build/p-4504375f.entry.js +0 -2
- package/www/build/p-4504375f.entry.js.map +0 -1
- package/www/build/p-4573c419.js +0 -2
- package/www/build/p-4573c419.js.map +0 -1
- package/www/build/p-47b59f05.entry.js +0 -2
- package/www/build/p-47b59f05.entry.js.map +0 -1
- package/www/build/p-4b38182a.js +0 -2
- package/www/build/p-5145a606.js +0 -2
- package/www/build/p-5145a606.js.map +0 -1
- package/www/build/p-565c1815.entry.js +0 -2
- package/www/build/p-565c1815.entry.js.map +0 -1
- package/www/build/p-5989465b.entry.js +0 -2
- package/www/build/p-5989465b.entry.js.map +0 -1
- package/www/build/p-6164feb9.entry.js +0 -2
- package/www/build/p-6164feb9.entry.js.map +0 -1
- package/www/build/p-623fdee4.js +0 -2
- package/www/build/p-623fdee4.js.map +0 -1
- package/www/build/p-66c0f993.entry.js +0 -2
- package/www/build/p-66c0f993.entry.js.map +0 -1
- package/www/build/p-68d91a93.js +0 -2
- package/www/build/p-68d91a93.js.map +0 -1
- package/www/build/p-6c6a655e.entry.js +0 -2
- package/www/build/p-6c6a655e.entry.js.map +0 -1
- package/www/build/p-6c9cd6be.entry.js.map +0 -1
- package/www/build/p-6d15da6f.entry.js +0 -2
- package/www/build/p-6d15da6f.entry.js.map +0 -1
- package/www/build/p-6e13aa8e.entry.js +0 -2
- package/www/build/p-6e13aa8e.entry.js.map +0 -1
- package/www/build/p-75c4a726.js +0 -3
- package/www/build/p-75c4a726.js.map +0 -1
- package/www/build/p-767b66ca.entry.js +0 -2
- package/www/build/p-767b66ca.entry.js.map +0 -1
- package/www/build/p-76d1d0e4.entry.js +0 -2
- package/www/build/p-76d1d0e4.entry.js.map +0 -1
- package/www/build/p-7a4f6a5b.entry.js +0 -2
- package/www/build/p-7a4f6a5b.entry.js.map +0 -1
- package/www/build/p-7b837e11.js +0 -2
- package/www/build/p-7b837e11.js.map +0 -1
- package/www/build/p-7d655f96.entry.js +0 -2
- package/www/build/p-7d655f96.entry.js.map +0 -1
- package/www/build/p-82eeea83.entry.js +0 -2
- package/www/build/p-82eeea83.entry.js.map +0 -1
- package/www/build/p-8503c87a.entry.js +0 -2
- package/www/build/p-8503c87a.entry.js.map +0 -1
- package/www/build/p-86618221.js +0 -2
- package/www/build/p-86618221.js.map +0 -1
- package/www/build/p-869295ce.entry.js +0 -2
- package/www/build/p-869295ce.entry.js.map +0 -1
- package/www/build/p-88a9865c.entry.js +0 -2
- package/www/build/p-88a9865c.entry.js.map +0 -1
- package/www/build/p-8988eee3.entry.js +0 -2
- package/www/build/p-8988eee3.entry.js.map +0 -1
- package/www/build/p-8b367393.js +0 -2
- package/www/build/p-8b367393.js.map +0 -1
- package/www/build/p-8c52635e.entry.js +0 -2
- package/www/build/p-8c52635e.entry.js.map +0 -1
- package/www/build/p-8fd50cc5.entry.js +0 -2
- package/www/build/p-8fd50cc5.entry.js.map +0 -1
- package/www/build/p-92f13701.entry.js +0 -2
- package/www/build/p-92f13701.entry.js.map +0 -1
- package/www/build/p-93d349ee.entry.js +0 -2
- package/www/build/p-93d349ee.entry.js.map +0 -1
- package/www/build/p-943db3a8.entry.js +0 -2
- package/www/build/p-943db3a8.entry.js.map +0 -1
- package/www/build/p-9814f864.entry.js +0 -2
- package/www/build/p-9814f864.entry.js.map +0 -1
- package/www/build/p-988a58dd.entry.js +0 -2
- package/www/build/p-988a58dd.entry.js.map +0 -1
- package/www/build/p-9ae0c0c6.entry.js +0 -2
- package/www/build/p-9ae0c0c6.entry.js.map +0 -1
- package/www/build/p-9c816a3b.js +0 -2
- package/www/build/p-9c816a3b.js.map +0 -1
- package/www/build/p-a2ee659d.entry.js +0 -2
- package/www/build/p-a2ee659d.entry.js.map +0 -1
- package/www/build/p-a3f9a5da.entry.js +0 -2
- package/www/build/p-a3f9a5da.entry.js.map +0 -1
- package/www/build/p-a4d2cf55.entry.js +0 -2
- package/www/build/p-a4d2cf55.entry.js.map +0 -1
- package/www/build/p-a8790237.entry.js +0 -2
- package/www/build/p-a8790237.entry.js.map +0 -1
- package/www/build/p-aaa96c12.entry.js +0 -17
- package/www/build/p-aaa96c12.entry.js.map +0 -1
- package/www/build/p-accbc381.entry.js +0 -2
- package/www/build/p-accbc381.entry.js.map +0 -1
- package/www/build/p-b0324c7d.entry.js +0 -2
- package/www/build/p-b0324c7d.entry.js.map +0 -1
- package/www/build/p-b391211f.entry.js +0 -2
- package/www/build/p-b391211f.entry.js.map +0 -1
- package/www/build/p-b421424f.entry.js +0 -2
- package/www/build/p-b421424f.entry.js.map +0 -1
- package/www/build/p-b54d923e.entry.js +0 -2
- package/www/build/p-b54d923e.entry.js.map +0 -1
- package/www/build/p-b7056859.entry.js +0 -2
- package/www/build/p-b7056859.entry.js.map +0 -1
- package/www/build/p-b71a3f69.entry.js +0 -2
- package/www/build/p-b71a3f69.entry.js.map +0 -1
- package/www/build/p-b7ec2cc4.entry.js +0 -2
- package/www/build/p-b7ec2cc4.entry.js.map +0 -1
- package/www/build/p-bd76ca35.entry.js +0 -2
- package/www/build/p-bd76ca35.entry.js.map +0 -1
- package/www/build/p-c3e03e41.entry.js +0 -2
- package/www/build/p-c3e03e41.entry.js.map +0 -1
- package/www/build/p-c811b0cf.entry.js +0 -2
- package/www/build/p-c811b0cf.entry.js.map +0 -1
- package/www/build/p-c89e1f4b.entry.js +0 -2
- package/www/build/p-c89e1f4b.entry.js.map +0 -1
- package/www/build/p-c9b81cab.entry.js +0 -2
- package/www/build/p-c9b81cab.entry.js.map +0 -1
- package/www/build/p-cb395500.js +0 -2
- package/www/build/p-cb395500.js.map +0 -1
- package/www/build/p-cbc09112.entry.js +0 -2
- package/www/build/p-cbc09112.entry.js.map +0 -1
- package/www/build/p-da3abb97.entry.js +0 -2
- package/www/build/p-da3abb97.entry.js.map +0 -1
- package/www/build/p-e1255160.js +0 -2
- package/www/build/p-e1255160.js.map +0 -1
- package/www/build/p-e8eacbeb.entry.js +0 -8
- package/www/build/p-e8eacbeb.entry.js.map +0 -1
- package/www/build/p-eb15536d.js.map +0 -1
- package/www/build/p-ec1270db.entry.js +0 -2
- package/www/build/p-ec1270db.entry.js.map +0 -1
- package/www/build/p-efa6b991.entry.js +0 -2
- package/www/build/p-efa6b991.entry.js.map +0 -1
- package/www/build/p-f2c2ad04.entry.js +0 -2
- package/www/build/p-f2c2ad04.entry.js.map +0 -1
- package/www/build/p-f4b987ed.entry.js +0 -2
- package/www/build/p-f4b987ed.entry.js.map +0 -1
- package/www/build/p-f662e7ff.entry.js +0 -2
- package/www/build/p-f662e7ff.entry.js.map +0 -1
- package/www/build/p-f7e65eb0.entry.js +0 -2
- package/www/build/p-f7e65eb0.entry.js.map +0 -1
- package/www/build/p-f92e0c29.entry.js +0 -2
- package/www/build/p-f92e0c29.entry.js.map +0 -1
- package/www/build/p-fbce9614.entry.js +0 -2
- package/www/build/p-fbce9614.entry.js.map +0 -1
- package/www/build/p-ff89d630.entry.js +0 -2
- package/www/build/p-ff89d630.entry.js.map +0 -1
- package/www/build/web-components-library.esm.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["boolean","value","randomId","Math","random","toString","replace","handleKeyboardSubmit","ev","callback","args","code","KeyboardCode","ENTER","SPACE","preventDefault","handleEnterKeydSubmit","getClickedElement","elem","document","activeElement","shadowRoot","getElementTree","tree","push","parentElement","parentNode","host","getDevice","window","innerWidth","Breakpoints","MOBILE","Device","TABLET","DESKTOP","DESKTOP_WIDE","convertJson","data","JSON","parse","_a","colorFromId","id","prefix","colorsCount","seed","ceil","parseFloat","color","padStart","containsElement","ancestor","descendant","contains","checkRecursive","node","Array","from","childNodes","some","hasDescendantInAssignedNodes","querySelectorAll","slot","assignedNodes","flatten","assigned","_b","call","children","getParentElement","element","assignedSlot","ShadowRoot","isElementVisibleInContainer","container","elemRect","getBoundingClientRect","documentWidth","ownerDocument","documentElement","clientWidth","documentHeight","clientHeight","isVisibleInViewport","bottom","top","right","left","body","containerRect","isVisibleInContainer","findContainingBlockAncestor","parent","elementPosition","getComputedStyle","position","parentStyle","affectingProperties","property","getPropertyValue","includes","display","getPlainText","html","doc","DOMParser","parseFromString","textContent"],"sources":["src/utils/utils.ts"],"sourcesContent":["import {ChildNode} from \"@stencil/core\";\nimport {Device, KeyboardCode} from \"../beans/index\";\nimport {Breakpoints} from \"../constants/breakpoints\";\n\n/**\n * Return boolean value for passed value if a boolean corresponding value is found\n * Return passed value otherwise\n */\nexport function boolean(value: string | number | boolean): boolean | string | number {\n switch (value) {\n case true:\n case \"true\":\n case 1:\n case \"1\":\n case \"on\":\n case \"yes\":\n return true;\n case false:\n case \"false\":\n case 0:\n case \"0\":\n case \"off\":\n case \"no\":\n return false;\n default:\n return value;\n }\n}\n\nexport function retrieveAsset(assetName: string): string {\n return assetName && \"assets/images/png/\" + assetName;\n}\n\nexport function randomId(): string {\n return Math.random().toString(36).replace(\"0.\", \"\");\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function handleKeyboardSubmit(ev: KeyboardEvent, callback: (...args) => void, ...args: any[]): void {\n if (ev.code === KeyboardCode.ENTER || ev.code === KeyboardCode.SPACE) {\n ev.preventDefault();\n callback(...args);\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function handleEnterKeydSubmit(ev: KeyboardEvent, callback: (...args) => void, ...args: any[]): void {\n if (ev.code === KeyboardCode.ENTER) {\n ev.preventDefault();\n callback(...args);\n }\n}\n\nexport function getClickedElement(elem: null | Element = null): null | Element {\n if (!elem) {\n elem = document.activeElement;\n }\n\n if (elem && elem.shadowRoot && elem.shadowRoot.activeElement) {\n elem = elem.shadowRoot.activeElement;\n\n return getClickedElement(elem);\n }\n\n return elem;\n}\n\nexport function getElementTree(elem: Element, tree: Element[] = []): null | Element[] {\n tree.push(elem);\n\n if (elem.parentElement) {\n elem = elem.parentElement;\n\n return getElementTree(elem, tree);\n } else if (elem.parentNode && (elem.parentNode as ShadowRoot).host) {\n elem = (elem.parentNode as ShadowRoot).host;\n\n return getElementTree(elem, tree);\n }\n\n return tree;\n}\n\nexport function getSiblings(elem: HTMLElement): ChildNode[] {\n const siblings = [];\n if (!elem || !elem.parentNode || !elem.parentNode.childNodes) {\n return siblings;\n }\n\n elem.parentNode.childNodes.forEach((child) => {\n if (child.nodeType === 1 && child !== elem) {\n siblings.push(child);\n }\n });\n\n return siblings;\n}\n\n/**\n * Get the current device type based on the window width.\n * @returns {Device} - The current device type\n */\nexport function getDevice(): Device {\n switch (true) {\n case window.innerWidth <= Breakpoints.MOBILE:\n return Device.MOBILE;\n case window.innerWidth <= Breakpoints.TABLET:\n return Device.TABLET;\n case window.innerWidth <= Breakpoints.DESKTOP:\n return Device.DESKTOP;\n default:\n return Device.DESKTOP_WIDE;\n }\n}\n\ntype JSONValue = string | number | boolean | JSONObject | JSONArray;\ninterface JSONObject {\n [x: string]: JSONValue;\n}\ntype JSONArray = JSONValue[];\n\nexport function convertJson(data: string): JSONValue {\n try {\n return JSON.parse(data);\n } catch {\n return false;\n }\n}\n\nexport function colorFromId(id: number): string {\n const prefix = \"avatar-C\"; // prefix for color vars name\n const colorsCount = 19; // available colors\n const seed = Math.ceil(2 ** 31 - 1) * parseFloat(`0.${id}`);\n let color = Math.ceil(colorsCount * (seed % 1));\n\n // if result of mc is 0\n // es.: 3895229\n if (color === 0) {\n color = 1;\n }\n\n return `${prefix}${color.toString().padStart(2, \"0\")}`;\n}\n\n/**\n * Check if the passed CSS selector is valid.\n * @param selector CSS selector to validate\n */\nexport function isSelectorValid(selector: string): boolean {\n try {\n document.createDocumentFragment().querySelector(selector);\n\n return true;\n } catch {\n return false;\n }\n}\n\n/**\n * Check if an element contains another element, checking both light and shadow DOM recursively.\n * This function also checks slot assignments, so it correctly handles nested slots across components.\n * @param ancestor Ancestor element\n * @param descendant Descendant element\n */\nexport function containsElement(ancestor: HTMLElement, descendant: Node): boolean {\n if (ancestor.contains(descendant) || ancestor.shadowRoot?.contains(descendant)) {\n return true;\n }\n\n const checkRecursive = (node: Node): boolean => {\n if (node === descendant) {\n return true;\n }\n\n const shadowRoot = (node as HTMLElement).shadowRoot;\n if (!shadowRoot) {\n // Check light DOM children only\n return Array.from(node.childNodes).some(checkRecursive);\n }\n\n if (shadowRoot.contains(descendant)) {\n return true;\n }\n\n // Check slot assigned nodes\n const hasDescendantInAssignedNodes = Array.from(shadowRoot.querySelectorAll(\"slot\")).some((slot) =>\n (slot as HTMLSlotElement)\n .assignedNodes({flatten: true})\n .some((assigned) => (assigned as HTMLElement).contains?.(descendant) || checkRecursive(assigned))\n );\n if (hasDescendantInAssignedNodes) {\n return true;\n }\n\n // Check shadow and light DOM children\n return Array.from(shadowRoot.children).some(checkRecursive) || Array.from(node.childNodes).some(checkRecursive);\n };\n\n return checkRecursive(ancestor);\n}\n\n/** Get the parent of passed element, accounting for shadow DOM.\n * @param element The element whose parent is to be found.\n */\nexport function getParentElement(element: Element): Element | null {\n // If the element is slotted, the direct rendered parent is the target slot in shadow DOM.\n if (element.assignedSlot) {\n return element.assignedSlot;\n }\n\n // If the element is in a shadow root, the parent is the shadow host.\n if (element.parentNode instanceof ShadowRoot) {\n return element.parentNode.host;\n }\n\n // Otherwise fall back to standard light DOM parent.\n return element.parentElement;\n}\n\n/**\n * Check if the `element` is visible within the `container` or in the viewport.\n * @param element The element to check.\n * @param container The container to check against, which must be the nearest scrollable ancestor.\n */\nexport function isElementVisibleInContainer(element: HTMLElement, container: HTMLElement): boolean {\n const elemRect = element.getBoundingClientRect();\n const documentWidth = element.ownerDocument.documentElement.clientWidth;\n const documentHeight = element.ownerDocument.documentElement.clientHeight;\n\n // Check if element is visible in viewport\n const isVisibleInViewport =\n elemRect.bottom > 0 && elemRect.top < documentHeight && elemRect.right > 0 && elemRect.left < documentWidth;\n\n // If container is the document element, only check viewport visibility\n if (container === element.ownerDocument.documentElement || container === element.ownerDocument.body) {\n return isVisibleInViewport;\n }\n\n // For other containers, check both container and viewport visibility\n const containerRect = container.getBoundingClientRect();\n const isVisibleInContainer =\n elemRect.bottom > containerRect.top &&\n elemRect.top < containerRect.bottom &&\n elemRect.right > containerRect.left &&\n elemRect.left < containerRect.right;\n\n return isVisibleInContainer && isVisibleInViewport;\n}\n\n/**\n * Find the nearest containing block ancestor of an element.\n * The containing block is determined based on the element's `position` value:\n * - `static`, `sticky` or `relative`: nearest block container or root\n * - `absolute`: nearest ancestor with `position` != `static`\n * - `fixed`: nearest ancestor with properties that create a containing block (`transform`, `filter`, `will-change`, `backdrop-filter`, `perspective`, etc.).\n * An ancestor with these properties will create a containing block for fixed positioned elements, making them behave like absolute positioned elements relative to that ancestor.\n *\n * @link https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Display/Containing_block#identifying_the_containing_block\n * @param element The element for which to find the containing block\n * @returns The containing block element if any, or the `documentElement`\n */\nexport function findContainingBlockAncestor(element: HTMLElement): HTMLElement {\n let parent = getParentElement(element);\n const elementPosition = window.getComputedStyle(element).position;\n while (parent && parent !== element.ownerDocument.documentElement) {\n const parentStyle = window.getComputedStyle(parent);\n\n switch (elementPosition) {\n case \"fixed\": {\n const affectingProperties = [\n \"filter\",\n \"transform\",\n \"translate\",\n \"perspective\",\n \"scale\",\n \"rotate\",\n \"backdrop-filter\",\n ];\n if (\n affectingProperties.some((property) => parentStyle.getPropertyValue(property) !== \"none\") ||\n affectingProperties.some((property) => parentStyle.getPropertyValue(\"will-change\").includes(property))\n ) {\n return parent as HTMLElement;\n }\n break;\n }\n case \"absolute\":\n if (parentStyle.position !== \"static\") {\n return parent as HTMLElement;\n }\n break;\n // Handle position: static, relative, sticky (they all look for the nearest block container or root)\n case \"relative\":\n case \"sticky\":\n case \"static\": {\n const display = window.getComputedStyle(parent).display;\n\n // Block containers: block, flex, grid, table, flow-root\n if (\n display === \"block\" ||\n display === \"flex\" ||\n display === \"grid\" ||\n display === \"table\" ||\n display === \"flow-root\" ||\n display === \"inline-block\" ||\n display === \"inline-flex\" ||\n display === \"inline-grid\"\n ) {\n return parent as HTMLElement;\n }\n\n break;\n }\n }\n\n parent = getParentElement(parent);\n }\n\n return element.ownerDocument.documentElement;\n}\n\n/** Convert HTML to plain text */\nexport const getPlainText = (html: string): string => {\n const doc = new DOMParser().parseFromString(html, \"text/html\");\n\n return doc.body.textContent || \"\";\n};\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,h as r}from"./p-75c4a726.js";import{L as i}from"./p-86618221.js";const t=":host{--card-overflow:hidden}div{display:flex;overflow:var(--card-overflow);width:auto;width:256px;height:522px;box-sizing:border-box;flex-direction:column;border:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius)}div.real,div.trial,div.temp{border-color:var(--blue100)}div.faded{border:var(--border-size-medium) solid var(--color-background)}div.highlighted{box-shadow:var(--shadow-4);outline:none}div.pressed{box-shadow:var(--shadow-8);outline:none}div:focus{box-shadow:var(--shadow-focus-primary);outline:none}";const a=t;const o=class{constructor(r){e(this,r);this.faded=undefined;this.cardtype=undefined;this.ispressed=false;this.ishighlighted=false}retrieveClass(){let e="";if(this.cardtype===i.REAL){e+="real"}else if(this.cardtype===i.TRIAL){e+="trial"}else if(this.cardtype===i.TEMP){e+="temp"}if(this.faded){e+=" faded"}else if(this.ispressed){e+=" pressed"}else if(this.ishighlighted){e+=" highlighted"}return e}render(){return r("div",{key:"fe9682514ff12467eff3a0f844690aaad51ac1e5",class:this.retrieveClass(),tabindex:"0"},r("slot",{key:"b38b157360d99c9f0fd6009343547877c51fd59a"}))}};o.style=a;const d=":host{width:auto;height:340px}:host>div{position:relative;display:flex;width:auto;height:340px;align-items:center;justify-content:center}";const s=d;const n=class{constructor(r){e(this,r)}render(){return r("div",{key:"ce8e2f29bbbe43340a86049182f38586e14b8e47"},r("slot",{key:"2b3c1274ab1df4995039e7dfc82a06e10ac66be9",name:"alert"}),r("slot",{key:"c92240268966ca58f7844e6a43693582152b59f5",name:"cover"}))}};n.style=s;const c="img{display:block;max-width:100%;height:340px;margin:auto;object-fit:cover}img.faded{opacity:0.3}";const l=c;const h=class{constructor(r){e(this,r);this.img=undefined;this.titolo=undefined;this.faded=undefined;this.defaultimg=undefined}hadleOnImageError(){this.img=this.defaultimg}render(){return r("img",{key:"9474ee5c6352f5f253b4d976ff88a4a9079ad176",class:this.faded&&"faded",onError:this.hadleOnImageError.bind(this),alt:this.titolo,src:this.img})}};h.style=l;const f='header{position:relative;display:flex;width:auto;height:calc(var(--space-unit) * 6);flex-direction:row;align-items:flex-start;justify-content:space-between;border-bottom:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius) var(--border-radius) var(--border-no-radius) var(--border-no-radius)}slot[name="aria-heading"]::slotted(*){position:absolute;overflow:hidden !important;width:1px !important;height:1px !important;padding:0 !important;border:0 none !important;margin:-1px !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important}header.real,header.trial,header.temp{border-bottom:var(--border-size-medium) solid var(--blue100);background-color:var(--color-primary03)}.card-title{overflow:hidden;height:calc(var(--space-unit) * 2);padding:calc(var(--space-unit) * 2);margin:0;color:var(--color-surface05);font-family:var(--font-family-sans);font-size:12px;font-weight:var(--font-sb);letter-spacing:0.22px;line-height:calc(var(--space-unit) * 2);text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.faded{border-bottom:var(--border-size-medium) solid var(--color-background)}.faded.real,.faded.trial,.faded.temp{border-top:var(--border-size-medium) solid var(--blue100);border-right:var(--border-size-medium) solid var(--blue100);border-left:var(--border-size-medium) solid var(--blue100)}';const u=f;const b=class{constructor(r){e(this,r);this.titolo=undefined;this.faded=undefined;this.cardtype=undefined;this.allowTooltip=false}getTitle(){return this.allowTooltip?this.titolo:""}componentDidLoad(){if(this.elementHasEllipsis()){this.allowTooltip=true}}elementHasEllipsis(){return this.ellipsis.offsetWidth<this.ellipsis.scrollWidth}retrieveClass(){return{real:this.cardtype===i.REAL,trial:this.cardtype===i.TRIAL,temp:this.cardtype===i.TEMP,faded:this.faded}}render(){return r("header",{key:"f57af285c3ded847594f226cd57e29f47e96db29",class:this.retrieveClass()},r("slot",{key:"d4404802765f567dd4be757becef12bde5a0762c",name:"aria-heading"}),r("span",{key:"5906cbdb67aea281d0ccabe43711c7d2e34c0667",class:"card-title",ref:e=>this.ellipsis=e,title:this.getTitle()},this.titolo),r("slot",{key:"7f4dd40eb421872623556751133a9138a4381a98",name:"icon"}))}};b.style=u;export{o as z_myz_card,n as z_myz_card_body,h as z_myz_card_cover,b as z_myz_card_header};
|
|
2
|
-
//# sourceMappingURL=p-0643d684.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["stylesCss","ZMyzCardStyle0","ZMyzCardComponent","retrieveClass","elemClasses","this","cardtype","LicenseType","REAL","TRIAL","TEMP","faded","ispressed","ishighlighted","render","h","key","class","tabindex","ZMyzCardBodyStyle0","ZMyzCardBody","name","ZMyzCardCoverStyle0","ZMyzCardCover","hadleOnImageError","img","defaultimg","onError","bind","alt","titolo","src","ZMyzCardHeaderStyle0","ZMyzCardHeader","getTitle","allowTooltip","componentDidLoad","elementHasEllipsis","ellipsis","offsetWidth","scrollWidth","real","trial","temp","ref","el","title"],"sources":["src/snowflakes/myz/card/z-myz-card/styles.css?tag=z-myz-card&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card/index.tsx","src/snowflakes/myz/card/z-myz-card-body/styles.css?tag=z-myz-card-body&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-body/index.tsx","src/snowflakes/myz/card/z-myz-card-cover/styles.css?tag=z-myz-card-cover&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-cover/index.tsx","src/snowflakes/myz/card/z-myz-card-header/styles.css?tag=z-myz-card-header&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-header/index.tsx"],"sourcesContent":[":host {\n --card-overflow: hidden;\n}\n\ndiv {\n display: flex;\n overflow: var(--card-overflow);\n width: auto;\n width: 256px; /* TODO: width must be 100% - must be handled in dashboard */\n height: 522px;\n box-sizing: border-box;\n flex-direction: column;\n border: var(--border-size-medium) solid var(--color-surface03);\n background-color: var(--color-surface01);\n border-radius: var(--border-radius);\n}\n\ndiv.real,\ndiv.trial,\ndiv.temp {\n border-color: var(--blue100);\n}\n\n/* HIDDEN status */\ndiv.faded {\n border: var(--border-size-medium) solid var(--color-background);\n}\n\n/* HIGHLIGHTED status */\ndiv.highlighted {\n box-shadow: var(--shadow-4);\n outline: none;\n}\n\n/* PRESSED status */\ndiv.pressed {\n box-shadow: var(--shadow-8);\n outline: none;\n}\n\ndiv:focus {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n","import {Component, h, Prop} from \"@stencil/core\";\nimport {LicenseType} from \"../../../../beans/index\";\n\n/**\n * @slot - generic card slot\n */\n@Component({\n tag: \"z-myz-card\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardComponent {\n /** faded status */\n @Prop()\n faded: boolean;\n\n /** graphic variant (optional) */\n @Prop()\n cardtype?: LicenseType;\n\n /** pressed status */\n @Prop()\n ispressed = false;\n\n /** highlighted status */\n @Prop()\n ishighlighted = false;\n\n private retrieveClass(): string {\n let elemClasses = \"\";\n\n if (this.cardtype === LicenseType.REAL) {\n elemClasses += \"real\";\n } else if (this.cardtype === LicenseType.TRIAL) {\n elemClasses += \"trial\";\n } else if (this.cardtype === LicenseType.TEMP) {\n elemClasses += \"temp\";\n }\n\n if (this.faded) {\n elemClasses += \" faded\";\n } else if (this.ispressed) {\n elemClasses += \" pressed\";\n } else if (this.ishighlighted) {\n elemClasses += \" highlighted\";\n }\n\n return elemClasses;\n }\n\n render(): HTMLDivElement {\n return (\n <div\n class={this.retrieveClass()}\n tabindex=\"0\"\n >\n <slot />\n </div>\n );\n }\n}\n",":host {\n width: auto;\n height: 340px;\n}\n\n:host > div {\n position: relative;\n display: flex;\n width: auto;\n height: 340px;\n align-items: center;\n justify-content: center;\n}\n","import {Component, h} from \"@stencil/core\";\n\n/**\n * @slot alert - card alert slot\n * @slot cover - book cover slot\n */\n@Component({\n tag: \"z-myz-card-body\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardBody {\n render(): HTMLDivElement {\n return (\n <div>\n <slot name=\"alert\"></slot>\n <slot name=\"cover\" />\n </div>\n );\n }\n}\n","img {\n display: block;\n max-width: 100%;\n height: 340px;\n margin: auto;\n object-fit: cover;\n}\n\nimg.faded {\n opacity: 0.3;\n}\n","import {Component, Prop, h} from \"@stencil/core\";\n\n@Component({\n tag: \"z-myz-card-cover\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardCover {\n /** image source */\n @Prop()\n img: string;\n\n /** cover alt title */\n @Prop()\n titolo: string;\n\n /** faded status */\n @Prop()\n faded: boolean;\n\n /** default error image source */\n @Prop()\n defaultimg: string;\n\n private hadleOnImageError(): void {\n this.img = this.defaultimg;\n }\n\n render(): HTMLImageElement {\n return (\n <img\n class={this.faded && \"faded\"}\n onError={this.hadleOnImageError.bind(this)}\n alt={this.titolo}\n src={this.img}\n />\n );\n }\n}\n","header {\n position: relative;\n display: flex;\n width: auto;\n height: calc(var(--space-unit) * 6);\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n border-bottom: var(--border-size-medium) solid var(--color-surface03);\n background-color: var(--color-surface01);\n border-radius: var(--border-radius) var(--border-radius) var(--border-no-radius) var(--border-no-radius);\n}\n\nslot[name=\"aria-heading\"]::slotted(*) {\n position: absolute;\n overflow: hidden !important;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n border: 0 none !important;\n margin: -1px !important;\n clip: rect(0, 0, 0, 0) !important;\n white-space: nowrap !important;\n}\n\nheader.real,\nheader.trial,\nheader.temp {\n border-bottom: var(--border-size-medium) solid var(--blue100);\n background-color: var(--color-primary03);\n}\n\n.card-title {\n overflow: hidden;\n height: calc(var(--space-unit) * 2);\n padding: calc(var(--space-unit) * 2);\n margin: 0;\n color: var(--color-surface05);\n font-family: var(--font-family-sans);\n font-size: 12px;\n font-weight: var(--font-sb);\n letter-spacing: 0.22px;\n line-height: calc(var(--space-unit) * 2);\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n}\n\n.faded {\n border-bottom: var(--border-size-medium) solid var(--color-background);\n}\n\n.faded.real,\n.faded.trial,\n.faded.temp {\n border-top: var(--border-size-medium) solid var(--blue100);\n border-right: var(--border-size-medium) solid var(--blue100);\n border-left: var(--border-size-medium) solid var(--blue100);\n}\n","import {Component, Prop, State, h} from \"@stencil/core\";\nimport {JSXBase} from \"@stencil/core/internal\";\nimport {LicenseType} from \"../../../../beans/index\";\n\n/**\n * @slot icon - card header icon slot\n */\n@Component({\n tag: \"z-myz-card-header\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardHeader {\n /** volume title */\n @Prop()\n titolo: string;\n\n /** faded status */\n @Prop()\n faded: boolean;\n\n /** card graphic variant (optional) */\n @Prop()\n cardtype?: LicenseType;\n\n @State()\n allowTooltip = false;\n\n private ellipsis?: HTMLElement;\n\n private getTitle(): string {\n return this.allowTooltip ? this.titolo : \"\";\n }\n\n componentDidLoad(): void {\n if (this.elementHasEllipsis()) {\n this.allowTooltip = true;\n }\n }\n\n private elementHasEllipsis(): boolean {\n return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;\n }\n\n private retrieveClass(): JSXBase.HTMLAttributes[\"class\"] {\n return {\n real: this.cardtype === LicenseType.REAL,\n trial: this.cardtype === LicenseType.TRIAL,\n temp: this.cardtype === LicenseType.TEMP,\n faded: this.faded,\n };\n }\n\n render(): HTMLElement {\n return (\n <header class={this.retrieveClass()}>\n <slot name=\"aria-heading\" />\n <span\n class=\"card-title\"\n ref={(el) => (this.ellipsis = el as HTMLElement)}\n title={this.getTitle()}\n >\n {this.titolo}\n </span>\n <slot name=\"icon\" />\n </header>\n );\n }\n}\n"],"mappings":"+EAAA,MAAMA,EAAY,mlBAClB,MAAAC,EAAeD,E,MCUFE,EAAiB,M,qFAWhB,M,mBAII,K,CAER,aAAAC,GACN,IAAIC,EAAc,GAElB,GAAIC,KAAKC,WAAaC,EAAYC,KAAM,CACtCJ,GAAe,M,MACV,GAAIC,KAAKC,WAAaC,EAAYE,MAAO,CAC9CL,GAAe,O,MACV,GAAIC,KAAKC,WAAaC,EAAYG,KAAM,CAC7CN,GAAe,M,CAGjB,GAAIC,KAAKM,MAAO,CACdP,GAAe,Q,MACV,GAAIC,KAAKO,UAAW,CACzBR,GAAe,U,MACV,GAAIC,KAAKQ,cAAe,CAC7BT,GAAe,c,CAGjB,OAAOA,C,CAGT,MAAAU,GACE,OACEC,EAAA,OAAAC,IAAA,2CACEC,MAAOZ,KAAKF,gBACZe,SAAS,KAETH,EAAA,QAAAC,IAAA,6C,aCxDR,MAAMhB,EAAY,4IAClB,MAAAmB,EAAenB,E,MCUFoB,EAAY,M,yBACvB,MAAAN,GACE,OACEC,EAAA,OAAAC,IAAA,4CACED,EAAA,QAAAC,IAAA,2CAAMK,KAAK,UACXN,EAAA,QAAAC,IAAA,2CAAMK,KAAK,U,aChBnB,MAAMrB,EAAY,oGAClB,MAAAsB,EAAetB,E,MCMFuB,EAAa,M,iHAiBhB,iBAAAC,GACNnB,KAAKoB,IAAMpB,KAAKqB,U,CAGlB,MAAAZ,GACE,OACEC,EAAA,OAAAC,IAAA,2CACEC,MAAOZ,KAAKM,OAAS,QACrBgB,QAAStB,KAAKmB,kBAAkBI,KAAKvB,MACrCwB,IAAKxB,KAAKyB,OACVC,IAAK1B,KAAKoB,K,aClClB,MAAMzB,EAAY,23CAClB,MAAAgC,EAAehC,E,MCWFiC,EAAc,M,8GAcV,K,CAIP,QAAAC,GACN,OAAO7B,KAAK8B,aAAe9B,KAAKyB,OAAS,E,CAG3C,gBAAAM,GACE,GAAI/B,KAAKgC,qBAAsB,CAC7BhC,KAAK8B,aAAe,I,EAIhB,kBAAAE,GACN,OAAOhC,KAAKiC,SAASC,YAAclC,KAAKiC,SAASE,W,CAG3C,aAAArC,GACN,MAAO,CACLsC,KAAMpC,KAAKC,WAAaC,EAAYC,KACpCkC,MAAOrC,KAAKC,WAAaC,EAAYE,MACrCkC,KAAMtC,KAAKC,WAAaC,EAAYG,KACpCC,MAAON,KAAKM,M,CAIhB,MAAAG,GACE,OACEC,EAAA,UAAAC,IAAA,2CAAQC,MAAOZ,KAAKF,iBAClBY,EAAA,QAAAC,IAAA,2CAAMK,KAAK,iBACXN,EAAA,QAAAC,IAAA,2CACEC,MAAM,aACN2B,IAAMC,GAAQxC,KAAKiC,SAAWO,EAC9BC,MAAOzC,KAAK6B,YAEX7B,KAAKyB,QAERf,EAAA,QAAAC,IAAA,2CAAMK,KAAK,S","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as a}from"./p-75c4a726.js";import{f as n}from"./p-86618221.js";const r="input:focus{box-shadow:var(--shadow-focus-primary);outline:none !important}:host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}.digits-container{display:flex;justify-content:flex-start}input{width:calc(var(--space-unit) * 5);height:72px;box-sizing:border-box;padding:0;caret-color:transparent;color:var(--color-surface05);font-family:var(--font-family-sans);font-size:32px;font-weight:300;text-align:center}input.error{border:1px solid;border-color:var(--color-default-error);background-color:var(--color-inverse-error);border-radius:4px}input:not(:last-of-type){margin-right:var(--space-unit)}@media only screen and (min-width: 768px){input:not(:last-of-type){margin-right:calc(var(--space-unit) * 2)}}@media only screen and (min-width: 1025px){input{width:calc(var(--space-unit) * 6)}}";const o=r;const s=class{constructor(a){t(this,a);this.otpChange=i(this,"otpChange",7);this.inputNum=6;this.status=undefined;this.message=undefined}emitInputChange(t){this.otpChange.emit({value:t})}componentWillLoad(){this.otp=[...Array(this.inputNum)];this.otpRef=[...Array(this.inputNum)]}render(){return a("div",{key:"9814a8c35149033a7ce7091ff7d9807cd400f50a",class:"otp-container"},a("div",{key:"f85cbf0862d6b50da4a015e8ca6651b56ba96b30",class:"digits-container"},this.otp.map(((t,i)=>a("input",{class:this.status==n.ERROR?"error":null,onKeyDown:t=>{if(t.keyCode>47){this.otpRef[i].value=""}},onKeyUp:t=>{if(t.keyCode>47){i<this.inputNum-1&&this.otpRef[i+1].focus()}},onInput:t=>{this.otp[i]=t.target.value;this.emitInputChange(this.otp.join(""))},type:"text",minlength:"1",maxlength:"1",autoComplete:"off",ref:t=>this.otpRef[i]=t})))),a("z-input-message",{key:"666ac57e8c41d6f6c205839f05337c5ec29bf9ba",message:this.message,status:this.status}))}};s.style=o;export{s as z_otp};
|
|
2
|
-
//# sourceMappingURL=p-0aed3ddc.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["stylesCss","ZOtpStyle0","ZOtp","emitInputChange","value","this","otpChange","emit","componentWillLoad","otp","Array","inputNum","otpRef","render","h","key","class","map","_val","i","status","InputStatus","ERROR","onKeyDown","e","keyCode","onKeyUp","focus","onInput","target","join","type","minlength","maxlength","autoComplete","ref","el","message"],"sources":["src/snowflakes/myz/z-otp/styles.css?tag=z-otp&encapsulation=shadow","src/snowflakes/myz/z-otp/index.tsx"],"sourcesContent":["input:focus {\n box-shadow: var(--shadow-focus-primary);\n outline: none !important;\n}\n\n:host {\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n.digits-container {\n display: flex;\n justify-content: flex-start;\n}\n\ninput {\n width: calc(var(--space-unit) * 5);\n height: 72px;\n box-sizing: border-box;\n padding: 0;\n caret-color: transparent;\n color: var(--color-surface05);\n font-family: var(--font-family-sans);\n font-size: 32px;\n font-weight: 300;\n text-align: center;\n}\n\ninput.error {\n border: 1px solid;\n border-color: var(--color-default-error);\n background-color: var(--color-inverse-error);\n border-radius: 4px;\n}\n\ninput:not(:last-of-type) {\n margin-right: var(--space-unit);\n}\n\n/* Tablet breakpoint */\n@media only screen and (min-width: 768px) {\n input:not(:last-of-type) {\n margin-right: calc(var(--space-unit) * 2);\n }\n}\n\n/* Desktop breakpoint */\n@media only screen and (min-width: 1025px) {\n input {\n width: calc(var(--space-unit) * 6);\n }\n}\n","import {Component, Event, EventEmitter, Prop, h} from \"@stencil/core\";\nimport {InputStatus} from \"../../../beans\";\n\n@Component({\n tag: \"z-otp\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZOtp {\n /** Input number */\n @Prop()\n inputNum?: number = 6;\n\n /** Input status */\n @Prop()\n status?: InputStatus;\n\n /** Input message */\n @Prop()\n message?: string;\n\n private otp: string[];\n\n private otpRef: HTMLInputElement[];\n\n /** Otp change event */\n @Event()\n otpChange: EventEmitter;\n\n private emitInputChange(value: string): void {\n this.otpChange.emit({value});\n }\n\n componentWillLoad(): void {\n this.otp = [...Array(this.inputNum)];\n this.otpRef = [...Array(this.inputNum)];\n }\n\n render(): HTMLDivElement {\n return (\n <div class=\"otp-container\">\n <div class=\"digits-container\">\n {this.otp.map((_val, i) => (\n <input\n class={this.status == InputStatus.ERROR ? \"error\" : null}\n onKeyDown={(e: KeyboardEvent) => {\n if (e.keyCode > 47) {\n this.otpRef[i].value = \"\";\n }\n }}\n onKeyUp={(e: KeyboardEvent) => {\n if (e.keyCode > 47) {\n i < this.inputNum - 1 && this.otpRef[i + 1].focus();\n }\n }}\n onInput={(e: InputEvent) => {\n this.otp[i] = (e.target as HTMLInputElement).value;\n this.emitInputChange(this.otp.join(\"\"));\n }}\n type=\"text\"\n minlength=\"1\"\n maxlength=\"1\"\n autoComplete=\"off\"\n ref={(el) => (this.otpRef[i] = el)}\n />\n ))}\n </div>\n <z-input-message\n message={this.message}\n status={this.status}\n ></z-input-message>\n </div>\n );\n }\n}\n"],"mappings":"sFAAA,MAAMA,EAAY,uyBAClB,MAAAC,EAAeD,E,MCOFE,EAAI,M,4EAGK,E,6CAkBZ,eAAAC,CAAgBC,GACtBC,KAAKC,UAAUC,KAAK,CAACH,S,CAGvB,iBAAAI,GACEH,KAAKI,IAAM,IAAIC,MAAML,KAAKM,WAC1BN,KAAKO,OAAS,IAAIF,MAAML,KAAKM,U,CAG/B,MAAAE,GACE,OACEC,EAAA,OAAAC,IAAA,2CAAKC,MAAM,iBACTF,EAAA,OAAAC,IAAA,2CAAKC,MAAM,oBACRX,KAAKI,IAAIQ,KAAI,CAACC,EAAMC,IACnBL,EAAA,SACEE,MAAOX,KAAKe,QAAUC,EAAYC,MAAQ,QAAU,KACpDC,UAAYC,IACV,GAAIA,EAAEC,QAAU,GAAI,CAClBpB,KAAKO,OAAOO,GAAGf,MAAQ,E,GAG3BsB,QAAUF,IACR,GAAIA,EAAEC,QAAU,GAAI,CAClBN,EAAId,KAAKM,SAAW,GAAKN,KAAKO,OAAOO,EAAI,GAAGQ,O,GAGhDC,QAAUJ,IACRnB,KAAKI,IAAIU,GAAMK,EAAEK,OAA4BzB,MAC7CC,KAAKF,gBAAgBE,KAAKI,IAAIqB,KAAK,IAAI,EAEzCC,KAAK,OACLC,UAAU,IACVC,UAAU,IACVC,aAAa,MACbC,IAAMC,GAAQ/B,KAAKO,OAAOO,GAAKiB,OAIrCtB,EAAA,mBAAAC,IAAA,2CACEsB,QAAShC,KAAKgC,QACdjB,OAAQf,KAAKe,S","ignoreList":[]}
|
package/www/build/p-0b03b0e3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,c as o,h as e,a as r,g as n}from"./p-75c4a726.js";import{r as a}from"./p-061e28d6.js";import"./p-68d91a93.js";import"./p-8b367393.js";const s=":host{position:relative;display:grid;width:100%;box-sizing:border-box;grid-auto-flow:column;grid-template-columns:var(--z-table--expand-button-size, 0) repeat(var(--columns), minmax(128px, 1fr));--columns:1}*{box-sizing:border-box}.z-tr--expand-button-container,::slotted(*){border-bottom:var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03)}::slotted(*:not(:last-child)){border-right:var(--z-table--cell-left-border, none)}:host([expandable]){--show-expandable-button:visible;cursor:pointer}:host([expandable]) ::slotted(*){grid-row:1}:host([expandable]) ::slotted(:nth-last-child(2)){border-right:none}:host([expandable]) ::slotted(*:last-child){border-left:0;grid-column:1 / span calc(var(--columns) + 1);grid-row:2}:host([expandable]:not([expanded])) ::slotted(*:last-child){display:none}:host([expanded]){margin-bottom:4px;box-shadow:0 4px 4px -2px var(--shadow-color-base)}:host([expanded]) .z-tr--expand-button-container,:host([expanded]) ::slotted(*){background-color:var(--color-background)}:host(:hover) ::slotted(z-td),:host(:hover) ::slotted(z-th){border-top:var(--border-size-small) solid var(--color-surface04);border-bottom:var(--border-size-small) solid var(--color-surface04);background-color:var(--color-surface02)}:host(:focus){position:relative;z-index:20;box-shadow:var(--shadow-focus-primary);outline:none}.z-tr--expand-button-container{display:flex;align-items:center;justify-content:center;background-color:var(--z-table--cells-background, var(--color-surface01))}.z-tr--expand-button-container button{display:flex;align-items:center;justify-content:center;padding:0;border:none;margin:auto;appearance:none;background:transparent;cursor:pointer;visibility:var(--show-expandable-button, hidden)}.z-tr--expand-button-container button z-icon{--z-icon-width:16px;--z-icon-height:16px}.z-tr--focus-overlay{position:absolute;z-index:30;right:0;left:0;width:100%;border-radius:4px;box-shadow:none;inset:0;outline:none;pointer-events:none;transition:box-shadow 0.2s}:host(:focus) .z-tr--focus-overlay{box-shadow:0 0 0 2px var(--shadow-focus-primary),\n var(--shadow-focus-primary);outline:none}:host(:focus) ::slotted(*){border-bottom:none}:host(:focus) .z-tr--expand-button-container{border-bottom:none}";const i=s;const d=class{constructor(e){t(this,e);this.expand=o(this,"expand",7);this.expandable=false;this.expanded=false;this.expandableContentId=undefined}updateColumns(){const t=Array.from(this.host.querySelectorAll("z-td, z-th"));if(this.expandable){t.pop()}const o=t.map((t=>t.colspan||1)).reduce(((t,o)=>t+o),0);this.host.style.setProperty("--columns",`${o}`);if(this.expandable){const o=t.pop();o.id=o.id||`z-tr-expandable-content-${a()}`;this.expandableContentId=o.id}}onRowClick(t){const o=t.target.closest(".prevent-expand");if(!this.expandable||o){return}this.expanded=!this.expanded;this.expand.emit({expanded:this.expanded})}onKeyDown(t){if(!this.expandable){return}const o=document.activeElement;if(o!==this.host){return}if(t.key==="Enter"||t.key===" "){t.preventDefault();this.expanded=!this.expanded;this.expand.emit({expanded:this.expanded})}}componentWillLoad(){this.updateColumns()}render(){return e(r,{key:"c1edcb26241c7528d544f61ab75d2920b545e62d",role:"row",tabIndex:0,expanded:this.expanded,onClick:this.onRowClick.bind(this),onKeyDown:this.onKeyDown.bind(this)},e("div",{key:"8bb2db80cfdd9dd4065466a97381dfacd4ef5395",class:"z-tr--focus-overlay","aria-hidden":"true"}),e("div",{key:"1ab915207f73524dc1dbffe3d79190ee4c177c62",class:"z-tr--expand-button-container"},this.expandable&&e("button",{key:"419b53264646264a73687faa3ee007531e0c3ac9",tabIndex:-1,"aria-expanded":this.expanded?"true":"false","aria-label":this.expanded?"Comprimi riga":"Espandi riga","aria-controls":this.expandableContentId,type:"button"},e("z-icon",{key:"048a03b706c82e5dfb2f55001b24864bf5bad97c",name:this.expanded?"minus-circled":"plus-circled"}))),e("slot",{key:"c44fd9d9808651d63d9eb5f25fe8a0c31faadfe8",onSlotchange:this.updateColumns.bind(this)}))}get host(){return n(this)}static get watchers(){return{expandable:["updateColumns"]}}};d.style=i;export{d as Z};
|
|
2
|
-
//# sourceMappingURL=p-0b03b0e3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["stylesCss","ZTrStyle0","ZTr","updateColumns","cells","Array","from","this","host","querySelectorAll","expandable","pop","columns","map","cell","colspan","reduce","a","b","style","setProperty","expandableContent","id","randomId","expandableContentId","onRowClick","event","preventExpand","target","closest","expanded","expand","emit","onKeyDown","active","document","activeElement","key","preventDefault","componentWillLoad","render","h","Host","role","tabIndex","onClick","bind","class","type","name","onSlotchange"],"sources":["src/components/table/z-tr/styles.css?tag=z-tr&encapsulation=shadow","src/components/table/z-tr/index.tsx"],"sourcesContent":[":host {\n position: relative;\n display: grid;\n width: 100%;\n box-sizing: border-box;\n grid-auto-flow: column;\n grid-template-columns: var(--z-table--expand-button-size, 0) repeat(var(--columns), minmax(128px, 1fr));\n\n --columns: 1;\n}\n\n* {\n box-sizing: border-box;\n}\n\n.z-tr--expand-button-container,\n::slotted(*) {\n border-bottom: var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03);\n}\n\n::slotted(*:not(:last-child)) {\n border-right: var(--z-table--cell-left-border, none);\n}\n\n:host([expandable]) {\n --show-expandable-button: visible;\n\n cursor: pointer;\n}\n\n:host([expandable]) ::slotted(*) {\n grid-row: 1;\n}\n\n:host([expandable]) ::slotted(:nth-last-child(2)) {\n border-right: none;\n}\n\n:host([expandable]) ::slotted(*:last-child) {\n border-left: 0;\n grid-column: 1 / span calc(var(--columns) + 1);\n grid-row: 2;\n}\n\n:host([expandable]:not([expanded])) ::slotted(*:last-child) {\n display: none;\n}\n\n:host([expanded]) {\n margin-bottom: 4px; /* prevents shadow to be cut by the next element */\n box-shadow: 0 4px 4px -2px var(--shadow-color-base);\n}\n\n:host([expanded]) .z-tr--expand-button-container,\n:host([expanded]) ::slotted(*) {\n background-color: var(--color-background);\n}\n\n:host(:hover) ::slotted(z-td),\n:host(:hover) ::slotted(z-th) {\n border-top: var(--border-size-small) solid var(--color-surface04);\n border-bottom: var(--border-size-small) solid var(--color-surface04);\n background-color: var(--color-surface02);\n}\n\n:host(:focus) {\n position: relative;\n z-index: 20;\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.z-tr--expand-button-container {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--z-table--cells-background, var(--color-surface01));\n}\n\n.z-tr--expand-button-container button {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n margin: auto;\n appearance: none;\n background: transparent;\n cursor: pointer;\n visibility: var(--show-expandable-button, hidden);\n}\n\n.z-tr--expand-button-container button z-icon {\n --z-icon-width: 16px;\n --z-icon-height: 16px;\n}\n\n.z-tr--focus-overlay {\n position: absolute;\n z-index: 30;\n right: 0;\n left: 0;\n width: 100%;\n border-radius: 4px;\n box-shadow: none;\n inset: 0;\n outline: none;\n pointer-events: none;\n transition: box-shadow 0.2s;\n}\n\n:host(:focus) .z-tr--focus-overlay {\n box-shadow:\n 0 0 0 2px var(--shadow-focus-primary),\n var(--shadow-focus-primary);\n outline: none;\n}\n\n:host(:focus) ::slotted(*) {\n border-bottom: none;\n}\n\n:host(:focus) .z-tr--expand-button-container {\n border-bottom: none;\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\nimport {randomId} from \"../../../utils/utils\";\nimport \"../cells/z-td/index\";\nimport \"../cells/z-th/index\";\n\n/**\n * ZTr component.\n * When the row is `expandable`, you can set the `prevent-expand` css class on an interactive element inside the row\n * to prevent the row from expanding.\n * @slot - ZTr content (`z-td` or `z-th`).\n */\n@Component({\n tag: \"z-tr\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTr {\n @Element() host: HTMLZTrElement;\n\n /**\n * Whether the row is expandable.\n * Use a `z-td` as the last cell of the row for the additional content.\n * It will show a button to expand/collapse the row.\n * The last cell will be hidden until the button or row is clicked.\n *\n * If some element inside the expandable row contains the `prevent-expand` css class,\n * the row will not expand by clicking that element.\n */\n @Prop({reflect: true})\n expandable = false;\n\n /**\n * Whether the row is currently expanded.\n */\n @State()\n expanded = false;\n\n /**\n * HTML Id of the expandable content.\n * It is used to link the button to the content through the `aria-controls` attribute.\n */\n @State()\n expandableContentId: string;\n\n /** Row has been expanded */\n @Event()\n expand: EventEmitter;\n\n @Watch(\"expandable\")\n @Listen(\"colspanchange\")\n protected updateColumns(): void {\n const cells = Array.from(this.host.querySelectorAll<HTMLZTdElement | HTMLZThElement>(\"z-td, z-th\"));\n if (this.expandable) {\n cells.pop();\n }\n\n const columns = cells.map((cell) => cell.colspan || 1).reduce((a, b) => a + b, 0);\n this.host.style.setProperty(\"--columns\", `${columns}`);\n\n if (this.expandable) {\n const expandableContent = cells.pop();\n expandableContent.id = expandableContent.id || `z-tr-expandable-content-${randomId()}`;\n this.expandableContentId = expandableContent.id;\n }\n }\n\n /**\n * Handle click on row.\n * Skip expansion if the click is on a element with `prevent-expand` css class.\n */\n private onRowClick(event: MouseEvent): void {\n const preventExpand = (event.target as HTMLElement).closest(\".prevent-expand\");\n if (!this.expandable || preventExpand) {\n return;\n }\n\n this.expanded = !this.expanded;\n this.expand.emit({expanded: this.expanded});\n }\n\n private onKeyDown(event: KeyboardEvent): void {\n if (!this.expandable) {\n return;\n }\n\n const active = document.activeElement;\n if (active !== this.host) {\n return;\n }\n\n if (event.key === \"Enter\" || event.key === \" \") {\n event.preventDefault();\n this.expanded = !this.expanded;\n this.expand.emit({expanded: this.expanded});\n }\n }\n\n componentWillLoad(): void {\n this.updateColumns();\n }\n\n render(): HTMLZTrElement {\n return (\n <Host\n role=\"row\"\n tabIndex={0}\n expanded={this.expanded}\n onClick={this.onRowClick.bind(this)}\n onKeyDown={this.onKeyDown.bind(this)}\n >\n <div\n class=\"z-tr--focus-overlay\"\n aria-hidden=\"true\"\n ></div>\n <div class=\"z-tr--expand-button-container\">\n {this.expandable && (\n <button\n tabIndex={-1}\n aria-expanded={this.expanded ? \"true\" : \"false\"}\n aria-label={this.expanded ? \"Comprimi riga\" : \"Espandi riga\"}\n aria-controls={this.expandableContentId}\n type=\"button\"\n >\n <z-icon name={this.expanded ? \"minus-circled\" : \"plus-circled\"}></z-icon>\n </button>\n )}\n </div>\n <slot onSlotchange={this.updateColumns.bind(this)}></slot>\n </Host>\n );\n }\n}\n"],"mappings":"oJAAA,MAAMA,EAAY,6tEAClB,MAAAC,EAAeD,E,MCeFE,EAAG,M,wEAaD,M,cAMF,M,mCAeD,aAAAC,GACR,MAAMC,EAAQC,MAAMC,KAAKC,KAAKC,KAAKC,iBAAkD,eACrF,GAAIF,KAAKG,WAAY,CACnBN,EAAMO,K,CAGR,MAAMC,EAAUR,EAAMS,KAAKC,GAASA,EAAKC,SAAW,IAAGC,QAAO,CAACC,EAAGC,IAAMD,EAAIC,GAAG,GAC/EX,KAAKC,KAAKW,MAAMC,YAAY,YAAa,GAAGR,KAE5C,GAAIL,KAAKG,WAAY,CACnB,MAAMW,EAAoBjB,EAAMO,MAChCU,EAAkBC,GAAKD,EAAkBC,IAAM,2BAA2BC,MAC1EhB,KAAKiB,oBAAsBH,EAAkBC,E,EAQzC,UAAAG,CAAWC,GACjB,MAAMC,EAAiBD,EAAME,OAAuBC,QAAQ,mBAC5D,IAAKtB,KAAKG,YAAciB,EAAe,CACrC,M,CAGFpB,KAAKuB,UAAYvB,KAAKuB,SACtBvB,KAAKwB,OAAOC,KAAK,CAACF,SAAUvB,KAAKuB,U,CAG3B,SAAAG,CAAUP,GAChB,IAAKnB,KAAKG,WAAY,CACpB,M,CAGF,MAAMwB,EAASC,SAASC,cACxB,GAAIF,IAAW3B,KAAKC,KAAM,CACxB,M,CAGF,GAAIkB,EAAMW,MAAQ,SAAWX,EAAMW,MAAQ,IAAK,CAC9CX,EAAMY,iBACN/B,KAAKuB,UAAYvB,KAAKuB,SACtBvB,KAAKwB,OAAOC,KAAK,CAACF,SAAUvB,KAAKuB,U,EAIrC,iBAAAS,GACEhC,KAAKJ,e,CAGP,MAAAqC,GACE,OACEC,EAACC,EAAI,CAAAL,IAAA,2CACHM,KAAK,MACLC,SAAU,EACVd,SAAUvB,KAAKuB,SACfe,QAAStC,KAAKkB,WAAWqB,KAAKvC,MAC9B0B,UAAW1B,KAAK0B,UAAUa,KAAKvC,OAE/BkC,EAAA,OAAAJ,IAAA,2CACEU,MAAM,sBAAqB,cACf,SAEdN,EAAA,OAAAJ,IAAA,2CAAKU,MAAM,iCACRxC,KAAKG,YACJ+B,EAAA,UAAAJ,IAAA,2CACEO,UAAW,EAAC,gBACGrC,KAAKuB,SAAW,OAAS,QAAO,aACnCvB,KAAKuB,SAAW,gBAAkB,eAAc,gBAC7CvB,KAAKiB,oBACpBwB,KAAK,UAELP,EAAA,UAAAJ,IAAA,2CAAQY,KAAM1C,KAAKuB,SAAW,gBAAkB,mBAItDW,EAAA,QAAAJ,IAAA,2CAAMa,aAAc3C,KAAKJ,cAAc2C,KAAKvC,Q","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,c as o,h as e,a as s,g as r}from"./p-75c4a726.js";import{P as i,g as n,p as a}from"./p-86618221.js";import{a as h,k as c,l as f,g as p,m as l}from"./p-061e28d6.js";import"./p-5145a606.js";const u=':host{position:fixed;display:none;max-width:calc(100dvw - var(--grid-margin) * 2);max-height:calc(100dvh - var(--grid-margin) * 2);padding:var(--z-popover-padding, 0);background:var(--z-popover-theme--surface, var(--color-surface01));border-radius:var(--border-radius-small);color:var(--z-popover-theme--text, var(--color-default-text));fill:currentcolor;filter:var(--z-popover-shadow-filter, drop-shadow(0 1px 2px var(--shadow-color-base)));text-align:center;visibility:hidden;}:host([open]:not([open="false"])[current-position]){display:block}:host([center][current-position="top"]),:host([center][current-position="bottom"]){transform:translateX(-50%)}:host([center][current-position="right"]),:host([center][current-position="left"]){transform:translateY(-50%)}:host([current-position^="top"]){margin:0 0 var(--space-unit)}:host([current-position^="bottom"]){margin:var(--space-unit) 0 0}:host([current-position^="left"]){margin:0 var(--space-unit) 0 0}:host([current-position^="right"]){margin:0 0 0 var(--space-unit)}:host([current-position])::before{--arrow-size:6px;--arrow-edge-offset:calc(100% - var(--space-unit) - (var(--arrow-size) / 2));--arrow-center-x-offset:calc(50% - (var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - (var(--arrow-size) / 2));position:absolute;display:block;width:var(--arrow-size);height:var(--arrow-size);background:var(--z-popover-theme--surface, var(--color-surface01));content:"";transform:rotate(45deg)}:host([show-arrow="false"])::before,:host(:not([show-arrow]))::before{display:none}:host([current-position^="top"])::before{top:var(--arrow-center-y-offset)}:host([current-position^="bottom"])::before{bottom:var(--arrow-center-y-offset)}:host([current-position="top"])::before,:host([current-position="bottom"])::before{right:var(--arrow-edge-offset)}:host([current-position="right"])::before,:host([current-position="left"])::before{bottom:var(--arrow-edge-offset)}:host([current-position="right"])::before{right:var(--arrow-center-y-offset)}:host([current-position="left"])::before{left:var(--arrow-center-y-offset)}:host([current-position="top_right"])::before,:host([current-position="bottom_right"])::before{right:var(--arrow-edge-offset)}:host([current-position="top_left"])::before,:host([current-position="bottom_left"])::before{left:var(--arrow-edge-offset)}:host([current-position="right_top"])::before,:host([current-position="left_top"])::before{top:var(--arrow-edge-offset)}:host([current-position="right_top"])::before,:host([current-position="right_bottom"])::before{right:var(--arrow-center-y-offset)}:host([current-position="left_top"])::before,:host([current-position="left_bottom"])::before{left:var(--arrow-center-y-offset)}:host([current-position="right_bottom"])::before,:host([current-position="left_bottom"])::before{bottom:var(--arrow-edge-offset)}:host([center][current-position="top"])::before,:host([center][current-position="bottom"])::before{right:auto;left:var(--arrow-center-x-offset)}:host([center][current-position="right"])::before,:host([center][current-position="left"])::before{top:var(--arrow-center-x-offset);bottom:auto}';const b=u;const d=class{constructor(e){t(this,e);this.positionChange=o(this,"positionChange",7);this.openChange=o(this,"openChange",7);this.spaceTolerance=3;this.position=i.TOP;this.open=false;this.bindTo=undefined;this.showArrow=false;this.center=false;this.closable=true;this.currentPosition=undefined}closePopoverWithKeyboard(t){if(this.closable&&t.key===n.ESC){t.stopPropagation();this.open=false}}handleOutsideClick(t){const o=t.target;if(!this.closable||!this.open||h(this.host,o)){return}if(h(this.boundElement,o)){t.stopPropagation()}this.open=false}validatePosition(t){if(!Object.values(i).includes(t)||t===i.AUTO){t=i.TOP;this.position=t}this.currentPosition=t;if(this.open){this.setPosition()}}onOpen(){cancelAnimationFrame(this.animationFrameRequestId);this.openChange.emit({open:this.open});if(!this.open){Object.assign(this.host.style,{top:"auto",right:"auto",bottom:"auto",left:"auto",maxWidth:"",maxHeight:"",visibility:"hidden"});this.currentPosition=undefined;return}const t=()=>{if(!this.open){return}this.setPosition();this.animationFrameRequestId=requestAnimationFrame(t)};setTimeout((()=>{t()}),0)}onBindingChange(){this.findBoundElement()}get offsetModifier(){return this.center?.5:0}findBoundElement(){if(typeof this.bindTo==="string"){this.boundElement=this.host.ownerDocument.querySelector(this.bindTo)}else if(this.bindTo){this.boundElement=this.bindTo}else{this.boundElement=c(this.host);if(this.boundElement.tagName.toLowerCase()==="z-tooltip"){this.boundElement=c(this.boundElement)}}}hasCenteredHorizontalSpace(t,o,e,s){const r=(e-s)*(1-this.offsetModifier);if(!this.center){return o>=r-this.spaceTolerance}return o>=r-this.spaceTolerance&&t>=r-this.spaceTolerance}hasCenteredVerticalSpace(t,o,e,s){const r=(e-s)*(1-this.offsetModifier);if(!this.center){return o>=r-this.spaceTolerance}return t>=r-this.spaceTolerance&&o>=r-this.spaceTolerance}hasEnoughSideSpace(t,o,e,s){return t>=o-e*(1-s)-this.spaceTolerance}getOptimalPopoverPosition(t,o){const e=this.host.offsetWidth;const s=this.host.offsetHeight;const r=this.boundElement.getBoundingClientRect().width;const n=this.boundElement.getBoundingClientRect().height;const a=this.offsetModifier;const h=t=>{switch(t){case i.TOP:return o.top>=s-this.spaceTolerance&&this.hasCenteredHorizontalSpace(o.left,o.right,e,r);case i.TOP_RIGHT:return o.top>=s&&this.hasEnoughSideSpace(o.right,e,r,a);case i.TOP_LEFT:return o.top>=s&&this.hasEnoughSideSpace(o.left,e,r,a);case i.RIGHT:return o.right>=e&&this.hasCenteredVerticalSpace(o.top,o.bottom,s,n);case i.RIGHT_BOTTOM:return o.right>=e&&this.hasEnoughSideSpace(o.bottom,s,n,a);case i.RIGHT_TOP:return o.right>=e&&this.hasEnoughSideSpace(o.top,s,n,a);case i.BOTTOM:return o.bottom>=s&&this.hasCenteredHorizontalSpace(o.left,o.right,e,r);case i.BOTTOM_LEFT:return o.bottom>=s&&this.hasEnoughSideSpace(o.left,e,r,a);case i.BOTTOM_RIGHT:return o.bottom>=s&&this.hasEnoughSideSpace(o.right,e,r,a);case i.LEFT:return o.left>=e&&this.hasCenteredVerticalSpace(o.top,o.bottom,s,n);case i.LEFT_TOP:return o.left>=e&&this.hasEnoughSideSpace(o.top,s,n,a);case i.LEFT_BOTTOM:return o.left>=e&&this.hasEnoughSideSpace(o.bottom,s,n,a);default:return false}};if(h(t)){return t}const c=d.positionOrder;const f=c.indexOf(t);if(f===-1){return t}for(let t=1;t<c.length;t++){const o=(f+t)%c.length;const e=c[o];if(h(e)){return e}}return this.findBestFallbackPosition(o)}findBestFallbackPosition(t){const o=t.right>=t.left?i.RIGHT:i.LEFT;const e=t.bottom>=t.top?i.BOTTOM:i.TOP;const s=Math.max(t.right,t.left);const r=Math.max(t.bottom,t.top);const n=r>=s?e:o;let a=false;if(n===e){const o=Math.min(t.right,t.left);a=s>=o*2}else{const o=Math.min(t.bottom,t.top);a=r>=o*2}if(!a){return n}const h=n===e?o:e;return`${n}_${h}`}findScrollableAncestor(t){let o=c(t);while(o){if(o===t.ownerDocument.documentElement){return o}const e=getComputedStyle(o);const{overflow:s,overflowX:r,overflowY:i}=e;const n=s==="hidden"||i==="hidden"||r==="hidden";const a=o.scrollHeight>o.clientHeight&&s!=="visible"&&i!=="visible"||o.scrollWidth>o.clientWidth&&s!=="visible"&&r!=="visible";if(!n&&a){return o}o=c(o)}return t.ownerDocument.documentElement}calculateAvailableSpace(){const t=this.boundElement.getBoundingClientRect();if(this.lastBoundRect&&this.lastBoundRect.x===t.x&&this.lastBoundRect.y===t.y&&this.lastBoundRect.width===t.width&&this.lastBoundRect.height===t.height&&this.cachedAvailableSpace){return this.cachedAvailableSpace}this.lastBoundRect=t;const o=this.findScrollableAncestor(this.boundElement);const e=o.getBoundingClientRect();const s=o!==this.boundElement.ownerDocument.documentElement;const r=this.boundElement.ownerDocument.documentElement.clientWidth;const i=this.boundElement.ownerDocument.documentElement.clientHeight;const n=8;const a=s?e.top:0;const h=s?r-e.right:0;const c=s?i-e.bottom:0;const f=s?e.left:0;this.cachedAvailableSpace={top:t.top-a-n,right:r-t.right-h-n,bottom:i-t.bottom-c-n,left:t.left-f-n};return this.cachedAvailableSpace}getBoundElementOffsets(){const t=this.boundElement.getBoundingClientRect();const o=this.boundElement.ownerDocument.documentElement.clientWidth;const e=this.boundElement.ownerDocument.documentElement.clientHeight;return{top:t.top,right:o-t.right,bottom:e-t.bottom,left:t.left}}computePositionOffsets(){const t=this.getBoundElementOffsets();const o=f(this.host);const e=o===this.host.ownerDocument.documentElement;if(e){return t}const s=o.getBoundingClientRect();const r=getComputedStyle(o);const i={top:s.top+parseFloat(r.borderTopWidth),right:s.right-parseFloat(r.borderRightWidth),bottom:s.bottom-parseFloat(r.borderBottomWidth),left:s.left+parseFloat(r.borderLeftWidth)};const n=this.boundElement.getBoundingClientRect();const a={top:n.top-i.top,right:i.right-n.right,bottom:i.bottom-n.bottom,left:n.left-i.left};return{top:a.top+o.scrollTop,right:a.right-o.scrollLeft,bottom:a.bottom-o.scrollTop,left:a.left+o.scrollLeft}}applyPositionStyles(t,o){const e=this.boundElement.offsetWidth;const s=this.boundElement.offsetHeight;const r=this.offsetModifier;const n=this.showArrow&&this.center?8:0;const h=this.host.style;const c=parseFloat(getComputedStyle(this.host).marginTop.replace("px",""))||0;const f=this.computePositionOffsets();const l=f.left+e*r;const u=f.right+e*r;const b=f.top+s;const d=f.bottom+s;const g=f.top+s*r;const m=f.bottom+s*r;let v;let w;switch(t){case i.TOP:case i.TOP_RIGHT:h.bottom=`${d}px`;h.left=`${l-(t===i.TOP_RIGHT?n:0)}px`;w=o.top-c;if(t===i.TOP_RIGHT){v=o.right+e*r}break;case i.TOP_LEFT:h.right=`${u-n}px`;h.bottom=`${d}px`;v=o.left+e*r;w=o.top-c;break;case i.BOTTOM:case i.BOTTOM_RIGHT:h.top=`${b}px`;h.left=`${l-(t===i.BOTTOM_RIGHT?n:0)}px`;w=o.bottom-c;if(t===i.BOTTOM_RIGHT){v=o.right+e*r}break;case i.BOTTOM_LEFT:h.top=`${b}px`;h.right=`${u-n}px`;v=o.left+e*r;w=o.bottom-c;break;case i.RIGHT:case i.RIGHT_BOTTOM:h.top=`${g-(t===i.RIGHT_BOTTOM?n:0)}px`;h.left=`${f.left+e}px`;v=o.right-c;if(t===i.RIGHT){w=o.top+o.bottom+s}else{w=o.bottom+s*r}break;case i.RIGHT_TOP:h.bottom=`${m-n}px`;h.left=`${f.left+e}px`;v=o.right-c;w=o.top+s*r;break;case i.LEFT:case i.LEFT_BOTTOM:h.top=`${g-(t===i.LEFT_BOTTOM?n:0)}px`;h.right=`${f.right+e}px`;v=o.left-c;if(t===i.LEFT_BOTTOM){w=o.bottom+s*r}break;case i.LEFT_TOP:h.right=`${f.right+e}px`;h.bottom=`${m-n}px`;v=o.left-c;w=o.top+s*r;break}if(p()!==a.MOBILE){Object.assign(h,{maxWidth:v?`${v}px`:"",maxHeight:w?`${w}px`:""})}}setPosition(){if(!this.boundElement){return}if(!l(this.boundElement,this.findScrollableAncestor(this.boundElement))){this.open=false;return}Object.assign(this.host.style,{top:"auto",right:"auto",bottom:"auto",left:"auto",maxWidth:"",maxHeight:"",visibility:"hidden"});const t=this.calculateAvailableSpace();const o=this.getOptimalPopoverPosition(this.position,t);this.applyPositionStyles(o,t);this.currentPosition=o;this.positionChange.emit({position:this.currentPosition});this.host.style.visibility="visible"}componentWillLoad(){this.validatePosition(this.position)}componentDidLoad(){this.findBoundElement();if(this.open){this.onOpen()}}disconnectedCallback(){cancelAnimationFrame(this.animationFrameRequestId)}render(){return e(s,{key:"c3483157f2664088a337118936d81f551dcf25b1","current-position":this.currentPosition},e("slot",{key:"fc9856b30959fc041dbf295fe7bbf523ce6adaf6"}))}get host(){return r(this)}static get watchers(){return{position:["validatePosition"],open:["onOpen"],bindTo:["onBindingChange"]}}};d.positionOrder=[i.TOP,i.TOP_RIGHT,i.TOP_LEFT,i.RIGHT,i.RIGHT_BOTTOM,i.RIGHT_TOP,i.BOTTOM,i.BOTTOM_LEFT,i.BOTTOM_RIGHT,i.LEFT,i.LEFT_TOP,i.LEFT_BOTTOM];d.style=b;export{d as z_popover};
|
|
2
|
-
//# sourceMappingURL=p-1b972597.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["stylesCss","ZPopoverStyle0","ZPopover","this","spaceTolerance","PopoverPosition","TOP","closePopoverWithKeyboard","e","closable","key","KeyboardCode","ESC","stopPropagation","open","handleOutsideClick","target","containsElement","host","boundElement","validatePosition","newValue","Object","values","includes","AUTO","position","currentPosition","setPosition","onOpen","cancelAnimationFrame","animationFrameRequestId","openChange","emit","assign","style","top","right","bottom","left","maxWidth","maxHeight","visibility","undefined","updatePositionLoop","requestAnimationFrame","setTimeout","onBindingChange","findBoundElement","offsetModifier","center","bindTo","ownerDocument","querySelector","getParentElement","tagName","toLowerCase","hasCenteredHorizontalSpace","availableLeft","availableRight","hostWidth","boundElementWidth","requiredSideSpace","hasCenteredVerticalSpace","availableTop","availableBottom","hostHeight","boundElementHeight","hasEnoughSideSpace","availableSpace","hostSize","boundElementSize","getOptimalPopoverPosition","desiredPosition","offsetWidth","offsetHeight","getBoundingClientRect","width","height","fits","pos","TOP_RIGHT","TOP_LEFT","RIGHT","RIGHT_BOTTOM","RIGHT_TOP","BOTTOM","BOTTOM_LEFT","BOTTOM_RIGHT","LEFT","LEFT_TOP","LEFT_BOTTOM","positions","positionOrder","startIndex","indexOf","i","length","posIndex","findBestFallbackPosition","bestHorizontalDirection","bestVerticalDirection","maxHorizontalSpace","Math","max","maxVerticalSpace","mainDirection","needsSecondaryDirection","minHorizontalSpace","min","minVerticalSpace","secondaryDirection","findScrollableAncestor","element","parent","documentElement","getComputedStyle","overflow","overflowX","overflowY","hasHiddenOverflow","isScrollable","scrollHeight","clientHeight","scrollWidth","clientWidth","calculateAvailableSpace","boundElementRect","lastBoundRect","x","y","cachedAvailableSpace","scrollableAncestor","scrollableAncestorRect","isScrollableAncestorNested","documentWidth","documentHeight","safeSpace","deltaTop","deltaRight","deltaBottom","deltaLeft","getBoundElementOffsets","elementRect","computePositionOffsets","boundElementOffsets","containingBlockAncestor","findContainingBlockAncestor","isDocumentElement","containingBlockRect","containingBlockStyle","paddingBox","parseFloat","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","relativeOffsets","scrollTop","scrollLeft","applyPositionStyles","arrowModifier","showArrow","hostStyle","distanceFromBound","marginTop","replace","positionOffsets","leftBase","rightBase","topBase","bottomBase","sideTopBase","sideBottomBase","getDevice","Device","MOBILE","isElementVisibleInContainer","positionChange","componentWillLoad","componentDidLoad","disconnectedCallback","render","h","Host"],"sources":["src/components/z-popover/styles.css?tag=z-popover&encapsulation=shadow","src/components/z-popover/index.tsx"],"sourcesContent":[":host {\n --z-popover-theme--surface: ;\n --z-popover-theme--text: ;\n --z-popover-padding: ;\n --z-popover-shadow-filter: ;\n\n position: fixed;\n display: none;\n max-width: calc(100dvw - var(--grid-margin) * 2);\n max-height: calc(100dvh - var(--grid-margin) * 2);\n padding: var(--z-popover-padding, 0);\n background: var(--z-popover-theme--surface, var(--color-surface01));\n border-radius: var(--border-radius-small);\n color: var(--z-popover-theme--text, var(--color-default-text));\n fill: currentcolor;\n filter: var(--z-popover-shadow-filter, drop-shadow(0 1px 2px var(--shadow-color-base)));\n text-align: center;\n visibility: hidden; /* hidden by default. the positioning algorithm will set it to 'visible' when needed */\n}\n\n:host([open]:not([open=\"false\"])[current-position]) {\n display: block;\n}\n\n:host([center][current-position=\"top\"]),\n:host([center][current-position=\"bottom\"]) {\n transform: translateX(-50%);\n}\n\n:host([center][current-position=\"right\"]),\n:host([center][current-position=\"left\"]) {\n transform: translateY(-50%);\n}\n\n:host([current-position^=\"top\"]) {\n margin: 0 0 var(--space-unit);\n}\n\n:host([current-position^=\"bottom\"]) {\n margin: var(--space-unit) 0 0;\n}\n\n:host([current-position^=\"left\"]) {\n margin: 0 var(--space-unit) 0 0;\n}\n\n:host([current-position^=\"right\"]) {\n margin: 0 0 0 var(--space-unit);\n}\n\n/* Arrow style */\n:host([current-position])::before {\n --arrow-size: 6px;\n --arrow-edge-offset: calc(100% - var(--space-unit) - (var(--arrow-size) / 2));\n --arrow-center-x-offset: calc(50% - (var(--arrow-size) / 2));\n --arrow-center-y-offset: calc(100% - (var(--arrow-size) / 2));\n\n position: absolute;\n display: block;\n width: var(--arrow-size);\n height: var(--arrow-size);\n background: var(--z-popover-theme--surface, var(--color-surface01));\n content: \"\";\n transform: rotate(45deg);\n}\n\n:host([show-arrow=\"false\"])::before,\n:host(:not([show-arrow]))::before {\n display: none;\n}\n\n:host([current-position^=\"top\"])::before {\n top: var(--arrow-center-y-offset);\n}\n\n:host([current-position^=\"bottom\"])::before {\n bottom: var(--arrow-center-y-offset);\n}\n\n:host([current-position=\"top\"])::before,\n:host([current-position=\"bottom\"])::before {\n right: var(--arrow-edge-offset);\n}\n\n:host([current-position=\"right\"])::before,\n:host([current-position=\"left\"])::before {\n bottom: var(--arrow-edge-offset);\n}\n\n:host([current-position=\"right\"])::before {\n right: var(--arrow-center-y-offset);\n}\n\n:host([current-position=\"left\"])::before {\n left: var(--arrow-center-y-offset);\n}\n\n:host([current-position=\"top_right\"])::before,\n:host([current-position=\"bottom_right\"])::before {\n right: var(--arrow-edge-offset);\n}\n\n:host([current-position=\"top_left\"])::before,\n:host([current-position=\"bottom_left\"])::before {\n left: var(--arrow-edge-offset);\n}\n\n:host([current-position=\"right_top\"])::before,\n:host([current-position=\"left_top\"])::before {\n top: var(--arrow-edge-offset);\n}\n\n:host([current-position=\"right_top\"])::before,\n:host([current-position=\"right_bottom\"])::before {\n right: var(--arrow-center-y-offset);\n}\n\n:host([current-position=\"left_top\"])::before,\n:host([current-position=\"left_bottom\"])::before {\n left: var(--arrow-center-y-offset);\n}\n\n:host([current-position=\"right_bottom\"])::before,\n:host([current-position=\"left_bottom\"])::before {\n bottom: var(--arrow-edge-offset);\n}\n\n:host([center][current-position=\"top\"])::before,\n:host([center][current-position=\"bottom\"])::before {\n right: auto;\n left: var(--arrow-center-x-offset);\n}\n\n:host([center][current-position=\"right\"])::before,\n:host([center][current-position=\"left\"])::before {\n top: var(--arrow-center-x-offset);\n bottom: auto;\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\nimport {Device, KeyboardCode, PopoverPosition} from \"../../beans\";\nimport {\n containsElement,\n findContainingBlockAncestor,\n getDevice,\n getParentElement,\n isElementVisibleInContainer,\n} from \"../../utils/utils\";\n\n/** Centering offset modifier. 0 for no offset, 0.5 for centering. */\ntype OffsetModifier = 0 | 0.5;\ntype Offsets = {top: number; right: number; bottom: number; left: number};\n\n/**\n * Popover component.\n * This component displays a popover bound to an element.\n * It supports various positions and can automatically adjust it based on available space, accounting for scrollable containers.\n *\n * Notes:\n * - If positioning has an odd behavior, consider manually adjusting the size of the slotted elements (using `width`, `height`, `max-width`, `max-height`, etc...) when its content is \"fluid\" (like text), because it can interfere with the position calculation (for example a long text on one single line can be bigger than the available space, letting the algorithm think the popover doesn't fits).\n *\n * @cssprop --z-popover-theme--surface - background color of the popover.\n * @cssprop --z-popover-theme--text - foreground color of the popover.\n * @cssprop --z-popover-padding - padding of the popover.\n * @cssprop --z-popover-shadow-filter - drop-shadow filter of the popover. Defaults to `drop-shadow(0 1px 2px var(--shadow-color-base))`.\n */\n@Component({\n tag: \"z-popover\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZPopover {\n /**\n * The preferred position to render the popover.\n * The popover will automatically search another position if not enough space is available for the preferred position.\n * If the preferred position is not available, it will try to find the best position starting from `TOP` and going clockwise.\n */\n @Prop({reflect: true, mutable: true})\n position?: PopoverPosition = PopoverPosition.TOP;\n\n /**\n * The initial open state of the popover.\n * Internal changes of this prop are emitted through the `openChange` event.\n * Make sure to listen to that event if you need the updated state of the popover from the outside, to avoid inconsistent values.\n */\n @Prop({reflect: true, mutable: true})\n open = false;\n\n /**\n * The selector or the element bound with the popover.\n * If string css selector is provided make sure to use a valid selector.\n */\n @Prop()\n bindTo?: string | HTMLElement;\n\n /** Whether to show popover's arrow. */\n @Prop({reflect: true})\n showArrow = false;\n\n /** Whether to center the popup on the main side (according to \"position\"). */\n @Prop({reflect: true})\n center = false;\n\n /**\n * Whether the popover can be closed by clicking outside of it or pressing the escape key.\n * Otherwise, it will be closed only programmatically (by setting `open` to `false`).\n * Default: `true`.\n */\n @Prop()\n closable = true;\n\n /**\n * The current position of the popover.\n * It differs from `position` only when calculated automatically for space reasons.\n */\n @State()\n currentPosition?: PopoverPosition;\n\n @Element() host: HTMLZPopoverElement;\n\n // Clockwise order of positions.\n private static readonly positionOrder: PopoverPosition[] = [\n PopoverPosition.TOP,\n PopoverPosition.TOP_RIGHT,\n PopoverPosition.TOP_LEFT,\n PopoverPosition.RIGHT,\n PopoverPosition.RIGHT_BOTTOM,\n PopoverPosition.RIGHT_TOP,\n PopoverPosition.BOTTOM,\n PopoverPosition.BOTTOM_LEFT,\n PopoverPosition.BOTTOM_RIGHT,\n PopoverPosition.LEFT,\n PopoverPosition.LEFT_TOP,\n PopoverPosition.LEFT_BOTTOM,\n ] as const;\n\n private animationFrameRequestId?: number;\n\n /** space tolerance for space calculations */\n private readonly spaceTolerance = 3;\n\n /** The element bound to the popover. */\n private boundElement?: HTMLElement;\n\n /** Cached available space around the bound element to avoid unnecessary recalculations */\n private cachedAvailableSpace?: Offsets;\n\n /** Last bounding rect of the bound element to detect changes and eventually invalidate the caches. */\n private lastBoundRect?: DOMRect;\n\n /** Fired when the position changes. */\n @Event()\n positionChange: EventEmitter<{position: PopoverPosition}>;\n\n /** Event emitted when the open state of the popover changes (e.g. when the user clicks outside the popover to close it, if `closable` is true). */\n @Event()\n openChange: EventEmitter<{open: boolean}>;\n\n @Listen(\"keyup\", {target: \"window\", capture: true})\n closePopoverWithKeyboard(e: KeyboardEvent): void {\n if (this.closable && e.key === KeyboardCode.ESC) {\n e.stopPropagation();\n this.open = false;\n }\n }\n\n /**\n * Close the popover when clicking outside of its content.\n * Stop event propagation if the click was fired by popover's trigger element,\n * to prevent close and reopen glitches.\n */\n @Listen(\"click\", {target: \"body\", capture: true})\n handleOutsideClick(e: MouseEvent): void {\n const target = e.target as Element;\n if (!this.closable || !this.open || containsElement(this.host, target)) {\n return;\n }\n\n if (containsElement(this.boundElement, target)) {\n // stop propagation if the click was on the trigger element to prevent close and reopen glitches\n e.stopPropagation();\n }\n this.open = false;\n }\n\n @Watch(\"position\")\n validatePosition(newValue: PopoverPosition): void {\n if (!Object.values(PopoverPosition).includes(newValue as PopoverPosition) || newValue === PopoverPosition.AUTO) {\n newValue = PopoverPosition.TOP;\n this.position = newValue;\n }\n this.currentPosition = newValue;\n if (this.open) {\n this.setPosition();\n }\n }\n\n /** Setup popover behaviors when `open` changes. */\n @Watch(\"open\")\n onOpen(): void {\n cancelAnimationFrame(this.animationFrameRequestId);\n this.openChange.emit({open: this.open});\n if (!this.open) {\n Object.assign(this.host.style, {\n // Reset all positioning properties\n top: \"auto\",\n right: \"auto\",\n bottom: \"auto\",\n left: \"auto\",\n maxWidth: \"\",\n maxHeight: \"\",\n // Set initial visibility to hidden while calculating position...\n visibility: \"hidden\",\n });\n this.currentPosition = undefined;\n\n return;\n }\n\n const updatePositionLoop = (): void => {\n if (!this.open) {\n return;\n }\n\n this.setPosition();\n this.animationFrameRequestId = requestAnimationFrame(updatePositionLoop);\n };\n\n // call `setPosition` after a tick to ensure the DOM is ready and sizes are available\n setTimeout(() => {\n updatePositionLoop();\n }, 0);\n }\n\n @Watch(\"bindTo\")\n onBindingChange(): void {\n this.findBoundElement();\n }\n\n /** Returns the offset modifier to use in calculations to align the popover with the bound element. */\n private get offsetModifier(): OffsetModifier {\n return this.center ? 0.5 : 0;\n }\n\n private findBoundElement(): void {\n if (typeof this.bindTo === \"string\") {\n this.boundElement = this.host.ownerDocument.querySelector(this.bindTo) as HTMLElement;\n } else if (this.bindTo) {\n this.boundElement = this.bindTo;\n } else {\n this.boundElement = getParentElement(this.host) as HTMLElement;\n if (this.boundElement.tagName.toLowerCase() === \"z-tooltip\") {\n // If the popover is used inside a tooltip without a specified `bindTo`, bind it to the parent of the tooltip.\n this.boundElement = getParentElement(this.boundElement) as HTMLElement;\n }\n }\n }\n\n /**\n * Check if element has enough space to the right and left to be centered.\n * Used for `TOP` and `BOTTOM` position.\n * When `center` is not enabled, only one side needs to be checked and `RIGHT` is the default.\n */\n private hasCenteredHorizontalSpace(\n availableLeft: number,\n availableRight: number,\n hostWidth: number,\n boundElementWidth: number\n ): boolean {\n const requiredSideSpace = (hostWidth - boundElementWidth) * (1 - this.offsetModifier);\n\n if (!this.center) {\n return availableRight >= requiredSideSpace - this.spaceTolerance;\n }\n\n return (\n availableRight >= requiredSideSpace - this.spaceTolerance &&\n availableLeft >= requiredSideSpace - this.spaceTolerance\n );\n }\n\n /**\n * Check if element has enough space to the top and bottom to be centered.\n * Used for `RIGHT` and `LEFT` position.\n * When `center` is not enabled, only one side needs to be checked and `BOTTOM` is the default.\n */\n private hasCenteredVerticalSpace(\n availableTop: number,\n availableBottom: number,\n hostHeight: number,\n boundElementHeight: number\n ): boolean {\n const requiredSideSpace = (hostHeight - boundElementHeight) * (1 - this.offsetModifier);\n\n if (!this.center) {\n return availableBottom >= requiredSideSpace - this.spaceTolerance;\n }\n\n return (\n availableTop >= requiredSideSpace - this.spaceTolerance &&\n availableBottom >= requiredSideSpace - this.spaceTolerance\n );\n }\n\n /**\n * Check if there is enough space in the given direction to fit the popover.\n * Used for composed positions like TOP_RIGHT, LEFT_BOTTOM, etc.\n */\n private hasEnoughSideSpace(\n availableSpace: number,\n hostSize: number,\n boundElementSize: number,\n offsetModifier: OffsetModifier\n ): boolean {\n return availableSpace >= hostSize - boundElementSize * (1 - offsetModifier) - this.spaceTolerance;\n }\n\n /**\n * Given a desired position and available space around the bound element, returns the best position\n * that fits the popover, trying all positions if needed.\n * Takes into account offsetModifier for centering.\n * @param desiredPosition The desired position of the popover.\n * @param availableSpace The available space around the bound element.\n */\n private getOptimalPopoverPosition(desiredPosition: PopoverPosition, availableSpace: Offsets): PopoverPosition {\n const hostWidth = this.host.offsetWidth;\n const hostHeight = this.host.offsetHeight;\n const boundElementWidth = this.boundElement.getBoundingClientRect().width;\n const boundElementHeight = this.boundElement.getBoundingClientRect().height;\n const offsetModifier = this.offsetModifier;\n\n /** Check if there is enough space to fit the popover in the desired position */\n const fits = (pos: PopoverPosition): boolean => {\n switch (pos) {\n case PopoverPosition.TOP:\n return (\n availableSpace.top >= hostHeight - this.spaceTolerance &&\n this.hasCenteredHorizontalSpace(availableSpace.left, availableSpace.right, hostWidth, boundElementWidth)\n );\n case PopoverPosition.TOP_RIGHT:\n return (\n availableSpace.top >= hostHeight &&\n this.hasEnoughSideSpace(availableSpace.right, hostWidth, boundElementWidth, offsetModifier)\n );\n case PopoverPosition.TOP_LEFT:\n return (\n availableSpace.top >= hostHeight &&\n this.hasEnoughSideSpace(availableSpace.left, hostWidth, boundElementWidth, offsetModifier)\n );\n case PopoverPosition.RIGHT:\n return (\n availableSpace.right >= hostWidth &&\n this.hasCenteredVerticalSpace(availableSpace.top, availableSpace.bottom, hostHeight, boundElementHeight)\n );\n case PopoverPosition.RIGHT_BOTTOM:\n return (\n availableSpace.right >= hostWidth &&\n this.hasEnoughSideSpace(availableSpace.bottom, hostHeight, boundElementHeight, offsetModifier)\n );\n case PopoverPosition.RIGHT_TOP:\n return (\n availableSpace.right >= hostWidth &&\n this.hasEnoughSideSpace(availableSpace.top, hostHeight, boundElementHeight, offsetModifier)\n );\n case PopoverPosition.BOTTOM:\n return (\n availableSpace.bottom >= hostHeight &&\n this.hasCenteredHorizontalSpace(availableSpace.left, availableSpace.right, hostWidth, boundElementWidth)\n );\n case PopoverPosition.BOTTOM_LEFT:\n return (\n availableSpace.bottom >= hostHeight &&\n this.hasEnoughSideSpace(availableSpace.left, hostWidth, boundElementWidth, offsetModifier)\n );\n case PopoverPosition.BOTTOM_RIGHT:\n return (\n availableSpace.bottom >= hostHeight &&\n this.hasEnoughSideSpace(availableSpace.right, hostWidth, boundElementWidth, offsetModifier)\n );\n case PopoverPosition.LEFT:\n return (\n availableSpace.left >= hostWidth &&\n this.hasCenteredVerticalSpace(availableSpace.top, availableSpace.bottom, hostHeight, boundElementHeight)\n );\n case PopoverPosition.LEFT_TOP:\n return (\n availableSpace.left >= hostWidth &&\n this.hasEnoughSideSpace(availableSpace.top, hostHeight, boundElementHeight, offsetModifier)\n );\n case PopoverPosition.LEFT_BOTTOM:\n return (\n availableSpace.left >= hostWidth &&\n this.hasEnoughSideSpace(availableSpace.bottom, hostHeight, boundElementHeight, offsetModifier)\n );\n\n default:\n return false;\n }\n };\n\n // Check desired position first\n if (fits(desiredPosition)) {\n return desiredPosition;\n }\n\n // Find position index and create rotation starting from next position\n const positions = ZPopover.positionOrder;\n const startIndex = positions.indexOf(desiredPosition);\n\n if (startIndex === -1) {\n return desiredPosition; // fallback if position not found\n }\n\n // Try all other positions starting from the next one\n for (let i = 1; i < positions.length; i++) {\n const posIndex = (startIndex + i) % positions.length;\n const pos = positions[posIndex];\n if (fits(pos)) {\n return pos;\n }\n }\n\n return this.findBestFallbackPosition(availableSpace);\n }\n\n /** Find the best fallback position based on available space when no position fits perfectly. */\n private findBestFallbackPosition(availableSpace: Offsets): PopoverPosition {\n // Determine which horizontal and vertical direction has the most available space\n const bestHorizontalDirection =\n availableSpace.right >= availableSpace.left ? PopoverPosition.RIGHT : PopoverPosition.LEFT;\n\n const bestVerticalDirection =\n availableSpace.bottom >= availableSpace.top ? PopoverPosition.BOTTOM : PopoverPosition.TOP;\n\n // Choose the main direction based on which axis has more space overall\n const maxHorizontalSpace = Math.max(availableSpace.right, availableSpace.left);\n const maxVerticalSpace = Math.max(availableSpace.bottom, availableSpace.top);\n\n const mainDirection = maxVerticalSpace >= maxHorizontalSpace ? bestVerticalDirection : bestHorizontalDirection;\n\n // Decide if a secondary direction is needed\n // Only add a secondary direction if the difference between min and max in that axis is at least double\n let needsSecondaryDirection = false;\n\n if (mainDirection === bestVerticalDirection) {\n // If main direction is vertical, check horizontal space difference\n const minHorizontalSpace = Math.min(availableSpace.right, availableSpace.left);\n needsSecondaryDirection = maxHorizontalSpace >= minHorizontalSpace * 2;\n } else {\n // If main direction is horizontal, check vertical space difference\n const minVerticalSpace = Math.min(availableSpace.bottom, availableSpace.top);\n needsSecondaryDirection = maxVerticalSpace >= minVerticalSpace * 2;\n }\n\n if (!needsSecondaryDirection) {\n return mainDirection;\n }\n\n const secondaryDirection =\n mainDirection === bestVerticalDirection ? bestHorizontalDirection : bestVerticalDirection;\n\n // Return a combined position (e.g., \"bottom_right\")\n return `${mainDirection}_${secondaryDirection}` as PopoverPosition;\n }\n\n /**\n * Find the nearest scrollable ancestor of an element to take as a reference for positioning.\n * The ancestor is considered scrollable if it doesn't have `overflow` property set to `hidden` and its scroll size is bigger than its client size.\n */\n private findScrollableAncestor(element: HTMLElement): HTMLElement {\n let parent = getParentElement(element);\n\n while (parent) {\n if (parent === element.ownerDocument.documentElement) {\n return parent as HTMLElement;\n }\n\n const style = getComputedStyle(parent);\n const {overflow, overflowX, overflowY} = style;\n const hasHiddenOverflow = overflow === \"hidden\" || overflowY === \"hidden\" || overflowX === \"hidden\";\n const isScrollable =\n (parent.scrollHeight > parent.clientHeight && overflow !== \"visible\" && overflowY !== \"visible\") ||\n (parent.scrollWidth > parent.clientWidth && overflow !== \"visible\" && overflowX !== \"visible\");\n\n if (!hasHiddenOverflow && isScrollable) {\n return parent as HTMLElement;\n }\n\n parent = getParentElement(parent);\n }\n\n return element.ownerDocument.documentElement;\n }\n\n /**\n * Calculate available space around the element bound with the popover, based on its nearest scrollable ancestor.\n *\n * Calculations for `right` and `bottom` can be a little bit confusing because `boundingRect.right` and `bottom` may not be what you expect...\n * For more information see the explanation in the docs.\n * @link https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect#return_value\n */\n private calculateAvailableSpace(): Offsets {\n const boundElementRect = this.boundElement.getBoundingClientRect();\n\n if (\n this.lastBoundRect &&\n this.lastBoundRect.x === boundElementRect.x &&\n this.lastBoundRect.y === boundElementRect.y &&\n this.lastBoundRect.width === boundElementRect.width &&\n this.lastBoundRect.height === boundElementRect.height &&\n this.cachedAvailableSpace\n ) {\n // If the bound element's rect hasn't changed, return the cached rect\n return this.cachedAvailableSpace;\n }\n\n this.lastBoundRect = boundElementRect;\n const scrollableAncestor = this.findScrollableAncestor(this.boundElement);\n const scrollableAncestorRect = scrollableAncestor.getBoundingClientRect();\n const isScrollableAncestorNested = scrollableAncestor !== this.boundElement.ownerDocument.documentElement;\n const documentWidth = this.boundElement.ownerDocument.documentElement.clientWidth;\n const documentHeight = this.boundElement.ownerDocument.documentElement.clientHeight;\n const safeSpace = 8; // extra space to avoid popover being too close to the edges\n\n // These deltas represent the offset between the scrollable ancestor and the viewport.\n // They are used to adjust the available space calculations when the scrollable ancestor is not the document or body,\n // to try to fit the popover inside the scrollable ancestor.\n const deltaTop = isScrollableAncestorNested ? scrollableAncestorRect.top : 0;\n const deltaRight = isScrollableAncestorNested ? documentWidth - scrollableAncestorRect.right : 0;\n const deltaBottom = isScrollableAncestorNested ? documentHeight - scrollableAncestorRect.bottom : 0;\n const deltaLeft = isScrollableAncestorNested ? scrollableAncestorRect.left : 0;\n\n this.cachedAvailableSpace = {\n top: boundElementRect.top - deltaTop - safeSpace,\n right: documentWidth - boundElementRect.right - deltaRight - safeSpace,\n bottom: documentHeight - boundElementRect.bottom - deltaBottom - safeSpace,\n left: boundElementRect.left - deltaLeft - safeSpace,\n };\n\n return this.cachedAvailableSpace;\n }\n\n /** Calculate the space around the bound element relative to the viewport. */\n private getBoundElementOffsets(): Offsets {\n const elementRect = this.boundElement.getBoundingClientRect();\n const documentWidth = this.boundElement.ownerDocument.documentElement.clientWidth;\n const documentHeight = this.boundElement.ownerDocument.documentElement.clientHeight;\n\n return {\n top: elementRect.top,\n right: documentWidth - elementRect.right,\n bottom: documentHeight - elementRect.bottom,\n left: elementRect.left,\n };\n }\n\n /** Compute positioning offsets in the appropriate coordinate space, accounting for transformed containing blocks and scroll. */\n private computePositionOffsets(): Offsets {\n const boundElementOffsets = this.getBoundElementOffsets();\n const containingBlockAncestor = findContainingBlockAncestor(this.host);\n const isDocumentElement = containingBlockAncestor === this.host.ownerDocument.documentElement;\n\n if (isDocumentElement) {\n return boundElementOffsets;\n }\n\n const containingBlockRect = containingBlockAncestor.getBoundingClientRect();\n const containingBlockStyle = getComputedStyle(containingBlockAncestor);\n /** Padding box of the containing block, accounting for borders. */\n const paddingBox = {\n top: containingBlockRect.top + parseFloat(containingBlockStyle.borderTopWidth),\n right: containingBlockRect.right - parseFloat(containingBlockStyle.borderRightWidth),\n bottom: containingBlockRect.bottom - parseFloat(containingBlockStyle.borderBottomWidth),\n left: containingBlockRect.left + parseFloat(containingBlockStyle.borderLeftWidth),\n };\n\n const boundElementRect = this.boundElement.getBoundingClientRect();\n /** Bound element offsets relative to the containing block padding box. */\n const relativeOffsets = {\n top: boundElementRect.top - paddingBox.top,\n right: paddingBox.right - boundElementRect.right,\n bottom: paddingBox.bottom - boundElementRect.bottom,\n left: boundElementRect.left - paddingBox.left,\n };\n\n /** Account for scroll to keep the popover aligned while the containing block scrolls. */\n return {\n top: relativeOffsets.top + containingBlockAncestor.scrollTop,\n right: relativeOffsets.right - containingBlockAncestor.scrollLeft,\n bottom: relativeOffsets.bottom - containingBlockAncestor.scrollTop,\n left: relativeOffsets.left + containingBlockAncestor.scrollLeft,\n };\n }\n\n /** Apply positioning styles based on `position` parameter. */\n private applyPositionStyles(position: PopoverPosition, availableSpace: Offsets): void {\n const boundElementWidth = this.boundElement.offsetWidth;\n const boundElementHeight = this.boundElement.offsetHeight;\n const offsetModifier = this.offsetModifier;\n /**\n * Distance between the arrow center and the popover edge.\n * Needed to align the center of the arrow with the center of the bound element when `showArrow` and `center` are enabled.\n */\n const arrowModifier = this.showArrow && this.center ? 8 : 0;\n const hostStyle = this.host.style;\n /** Gap between the popover and the bound element, set as margin in CSS. */\n const distanceFromBound = parseFloat(getComputedStyle(this.host).marginTop.replace(\"px\", \"\")) || 0;\n const positionOffsets = this.computePositionOffsets();\n\n /**\n * Precomputed bases to reduce repeated arithmetic in the switch below.\n * They represent the bound element edges plus optional centering offsets.\n */\n const leftBase = positionOffsets.left + boundElementWidth * offsetModifier;\n const rightBase = positionOffsets.right + boundElementWidth * offsetModifier;\n const topBase = positionOffsets.top + boundElementHeight;\n const bottomBase = positionOffsets.bottom + boundElementHeight;\n const sideTopBase = positionOffsets.top + boundElementHeight * offsetModifier;\n const sideBottomBase = positionOffsets.bottom + boundElementHeight * offsetModifier;\n\n let maxWidth: number;\n let maxHeight: number;\n\n switch (position) {\n case PopoverPosition.TOP:\n case PopoverPosition.TOP_RIGHT:\n hostStyle.bottom = `${bottomBase}px`;\n hostStyle.left = `${leftBase - (position === PopoverPosition.TOP_RIGHT ? arrowModifier : 0)}px`;\n maxHeight = availableSpace.top - distanceFromBound;\n if (position === PopoverPosition.TOP_RIGHT) {\n maxWidth = availableSpace.right + boundElementWidth * offsetModifier;\n }\n break;\n\n case PopoverPosition.TOP_LEFT:\n hostStyle.right = `${rightBase - arrowModifier}px`;\n hostStyle.bottom = `${bottomBase}px`;\n maxWidth = availableSpace.left + boundElementWidth * offsetModifier;\n maxHeight = availableSpace.top - distanceFromBound;\n break;\n\n case PopoverPosition.BOTTOM:\n case PopoverPosition.BOTTOM_RIGHT:\n hostStyle.top = `${topBase}px`;\n hostStyle.left = `${leftBase - (position === PopoverPosition.BOTTOM_RIGHT ? arrowModifier : 0)}px`;\n maxHeight = availableSpace.bottom - distanceFromBound;\n if (position === PopoverPosition.BOTTOM_RIGHT) {\n maxWidth = availableSpace.right + boundElementWidth * offsetModifier;\n }\n break;\n\n case PopoverPosition.BOTTOM_LEFT:\n hostStyle.top = `${topBase}px`;\n hostStyle.right = `${rightBase - arrowModifier}px`;\n maxWidth = availableSpace.left + boundElementWidth * offsetModifier;\n maxHeight = availableSpace.bottom - distanceFromBound;\n break;\n\n case PopoverPosition.RIGHT:\n case PopoverPosition.RIGHT_BOTTOM:\n hostStyle.top = `${sideTopBase - (position === PopoverPosition.RIGHT_BOTTOM ? arrowModifier : 0)}px`;\n hostStyle.left = `${positionOffsets.left + boundElementWidth}px`;\n maxWidth = availableSpace.right - distanceFromBound;\n if (position === PopoverPosition.RIGHT) {\n maxHeight = availableSpace.top + availableSpace.bottom + boundElementHeight;\n } else {\n maxHeight = availableSpace.bottom + boundElementHeight * offsetModifier;\n }\n break;\n\n case PopoverPosition.RIGHT_TOP:\n hostStyle.bottom = `${sideBottomBase - arrowModifier}px`;\n hostStyle.left = `${positionOffsets.left + boundElementWidth}px`;\n maxWidth = availableSpace.right - distanceFromBound;\n maxHeight = availableSpace.top + boundElementHeight * offsetModifier;\n break;\n\n case PopoverPosition.LEFT:\n case PopoverPosition.LEFT_BOTTOM:\n hostStyle.top = `${sideTopBase - (position === PopoverPosition.LEFT_BOTTOM ? arrowModifier : 0)}px`;\n hostStyle.right = `${positionOffsets.right + boundElementWidth}px`;\n maxWidth = availableSpace.left - distanceFromBound;\n if (position === PopoverPosition.LEFT_BOTTOM) {\n maxHeight = availableSpace.bottom + boundElementHeight * offsetModifier;\n }\n break;\n\n case PopoverPosition.LEFT_TOP:\n hostStyle.right = `${positionOffsets.right + boundElementWidth}px`;\n hostStyle.bottom = `${sideBottomBase - arrowModifier}px`;\n maxWidth = availableSpace.left - distanceFromBound;\n maxHeight = availableSpace.top + boundElementHeight * offsetModifier;\n break;\n }\n\n if (getDevice() !== Device.MOBILE) {\n // Only force max sizes on non-mobile viewports\n Object.assign(hostStyle, {\n maxWidth: maxWidth ? `${maxWidth}px` : \"\",\n maxHeight: maxHeight ? `${maxHeight}px` : \"\",\n });\n }\n }\n\n /** Set the position of the popover. */\n private setPosition(): void {\n if (!this.boundElement) {\n return;\n }\n\n if (!isElementVisibleInContainer(this.boundElement, this.findScrollableAncestor(this.boundElement))) {\n // If the bound element is not visible, hide the popover too\n this.open = false;\n\n return;\n }\n\n Object.assign(this.host.style, {\n // Reset all positioning properties\n top: \"auto\",\n right: \"auto\",\n bottom: \"auto\",\n left: \"auto\",\n maxWidth: \"\",\n maxHeight: \"\",\n // Set initial visibility to hidden while calculating position...\n visibility: \"hidden\",\n });\n\n const availableSpace = this.calculateAvailableSpace();\n const position = this.getOptimalPopoverPosition(this.position, availableSpace);\n\n this.applyPositionStyles(position, availableSpace);\n this.currentPosition = position;\n this.positionChange.emit({position: this.currentPosition});\n\n // ...then restore the visibility\n this.host.style.visibility = \"visible\";\n }\n\n componentWillLoad(): void {\n this.validatePosition(this.position);\n }\n\n componentDidLoad(): void {\n this.findBoundElement();\n if (this.open) {\n this.onOpen();\n }\n }\n\n disconnectedCallback(): void {\n cancelAnimationFrame(this.animationFrameRequestId);\n }\n\n render(): HTMLZPopoverElement {\n return (\n <Host current-position={this.currentPosition}>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,a as i,g as o}from"./p-75c4a726.js";import{x as s,D as r}from"./p-86618221.js";const a=':host{--z-section-title--divider-color:var(--red500);display:flex;width:fit-content;flex-direction:column;align-items:flex-start;font-family:var(--font-family-sans)}:host,:host ::slotted(*){box-sizing:border-box}::slotted(*){margin:0}::slotted([slot="secondary-title"]){padding-bottom:calc(var(--space-unit) / 2);border-bottom:var(--border-size-large) solid var(--z-section-title--divider-color);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5rem;text-transform:uppercase}::slotted([slot="primary-title"]){font-size:var(--font-size-6);font-weight:var(--font-sb);line-height:2rem}:host([uppercase]:not([uppercase="false"])) ::slotted([slot="primary-title"]){text-transform:uppercase}@media (min-width: 1152px){::slotted([slot="primary-title"]){font-size:var(--font-size-7);line-height:2.25rem}}';const d=a;const l=class{constructor(e){t(this,e);this.dividerPosition=s.BEFORE;this.uppercase=true}componentWillRender(){this.hasSecondaryTitle=!!this.host.querySelector("[slot=secondary-title]")}render(){return e(i,{key:"b42238fc6f9ecdd6b773746c1d97d2ac2d3d5c31"},e("slot",{key:"da33aa876ed2469b5cddf5f1dc34914afb87110f",name:"secondary-title"}),!this.hasSecondaryTitle&&this.dividerPosition===s.BEFORE&&e("z-divider",{key:"e8c76d87a57c34b802e467cd9e5b4212a3464350",size:r.LARGE,color:"z-section-title--divider-color"}),e("slot",{key:"d65a8312c2b71b0976c63c2de93d7a35bf675736",name:"primary-title"}),!this.hasSecondaryTitle&&this.dividerPosition===s.AFTER&&e("z-divider",{key:"9e70bb6279e893957314eda5344ffc1a7289315a",size:r.LARGE,color:"z-section-title--divider-color"}))}get host(){return o(this)}};l.style=d;export{l as z_section_title};
|
|
2
|
-
//# sourceMappingURL=p-252893a8.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["stylesCss","ZSectionTitleStyle0","ZSectionTitle","ZSectionTitleDividerPosition","BEFORE","componentWillRender","this","hasSecondaryTitle","host","querySelector","render","h","Host","key","name","dividerPosition","size","DividerSize","LARGE","color","AFTER"],"sources":["src/components/deprecated/z-section-title/styles.css?tag=z-section-title&encapsulation=shadow","src/components/deprecated/z-section-title/index.tsx"],"sourcesContent":[":host {\n --z-section-title--divider-color: var(--red500);\n\n display: flex;\n width: fit-content;\n flex-direction: column;\n align-items: flex-start;\n font-family: var(--font-family-sans);\n}\n\n:host,\n:host ::slotted(*) {\n box-sizing: border-box;\n}\n\n::slotted(*) {\n margin: 0;\n}\n\n::slotted([slot=\"secondary-title\"]) {\n padding-bottom: calc(var(--space-unit) / 2);\n border-bottom: var(--border-size-large) solid var(--z-section-title--divider-color);\n font-size: var(--font-size-3);\n font-weight: var(--font-sb);\n line-height: 1.5rem;\n text-transform: uppercase;\n}\n\n::slotted([slot=\"primary-title\"]) {\n font-size: var(--font-size-6);\n font-weight: var(--font-sb);\n line-height: 2rem;\n}\n\n:host([uppercase]:not([uppercase=\"false\"])) ::slotted([slot=\"primary-title\"]) {\n text-transform: uppercase;\n}\n\n/* Desktop breakpoint */\n@media (min-width: 1152px) {\n ::slotted([slot=\"primary-title\"]) {\n font-size: var(--font-size-7);\n line-height: 2.25rem;\n }\n}\n","import {Component, Element, h, Host, Prop} from \"@stencil/core\";\nimport {DividerSize, ZSectionTitleDividerPosition} from \"../../../beans\";\n\n/**\n * Section title component.\n * An optional secondary title can be put over the primary one.\n *\n * @slot secondary-title - Slot for the secondary title. When present, the divider is always displayed under it,\n * following its width and removing the one for the primary title.\n * @slot primary-title - Slot for the primary title.\n * @cssprop --z-section-title--divider-color - Color of the divider. Use a CSS prop string like `\"--red500\"`. Default is `\"--red500\"`.\n */\n@Component({\n tag: \"z-section-title\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZSectionTitle {\n /**\n * Divider position for the primary title.\n * This prop only works if the secondary title is not set.\n */\n @Prop()\n dividerPosition: ZSectionTitleDividerPosition = ZSectionTitleDividerPosition.BEFORE;\n\n /**\n * Whether the primary title text is uppercase.\n */\n @Prop({reflect: true})\n uppercase = true;\n\n @Element() host: HTMLZSectionTitleElement;\n\n private hasSecondaryTitle: boolean;\n\n componentWillRender(): void {\n this.hasSecondaryTitle = !!this.host.querySelector(\"[slot=secondary-title]\");\n }\n\n render(): HTMLZSectionTitleElement {\n return (\n <Host>\n <slot name=\"secondary-title\" />\n {!this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.BEFORE && (\n <z-divider\n size={DividerSize.LARGE}\n color=\"z-section-title--divider-color\"\n />\n )}\n <slot name=\"primary-title\" />\n {!this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.AFTER && (\n <z-divider\n size={DividerSize.LARGE}\n color=\"z-section-title--divider-color\"\n />\n )}\n </Host>\n );\n }\n}\n"],"mappings":"oGAAA,MAAMA,EAAY,ozBAClB,MAAAC,EAAeD,E,MCgBFE,EAAa,M,8CAMwBC,EAA6BC,O,eAMjE,I,CAMZ,mBAAAC,GACEC,KAAKC,oBAAsBD,KAAKE,KAAKC,cAAc,yB,CAGrD,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,QAAAE,IAAA,2CAAMC,KAAK,qBACTR,KAAKC,mBAAqBD,KAAKS,kBAAoBZ,EAA6BC,QAChFO,EAAA,aAAAE,IAAA,2CACEG,KAAMC,EAAYC,MAClBC,MAAM,mCAGVR,EAAA,QAAAE,IAAA,2CAAMC,KAAK,mBACTR,KAAKC,mBAAqBD,KAAKS,kBAAoBZ,EAA6BiB,OAChFT,EAAA,aAAAE,IAAA,2CACEG,KAAMC,EAAYC,MAClBC,MAAM,mC","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as a}from"./p-75c4a726.js";import{B as i,d as s}from"./p-86618221.js";const o=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host z-myz-card{--card-overflow:visible}:host>div{position:relative;width:100%;height:522px;transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out,\n -webkit-transform 0.5s ease-out}:host>div .content{position:relative;z-index:2;width:100%;height:522px;transform-style:preserve-3d;transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out,\n -webkit-transform 0.5s ease-out}:host>div .content.flipped{margin-top:-2px;transform:rotateY(180deg)}:host>div .front,:host>div .back{position:absolute;top:0;left:0;width:100%;height:100%;backface-visibility:hidden}:host>div .front{z-index:2;top:0;left:0;transform:rotateY(0deg)}:host>div .front z-button{position:absolute;z-index:3;top:calc(var(--space-unit) * 0.5);left:calc(-1 * var(--space-unit))}:host>div .back{z-index:1;top:0;left:0;display:flex;justify-content:center;padding:0 var(--space-unit);margin-left:calc(-1 * var(--space-unit));transform:rotateY(180deg)}.hide-info{display:none}";const n=o;const r=class{constructor(a){t(this,a);this.cardFlipped=e(this,"cardFlipped",7);this.name=undefined;this.cover=undefined;this.disabled=false;this.flipped=false;this.flipbuttonlabel="INFO";this.hideinfobtn=false}handleFlipCard(t){this.flipCard(t.detail)}flipCard(t=true){this.flipped=t;this.cardFlipped.emit(t)}render(){return a("div",{key:"e6ec0b5054975547584bbee8759d987b72134d29"},a("z-myz-card",{key:"b074508d5e487ab311aab750a9595c65d0bb182f"},a("z-myz-card-header",{key:"eace632cf520eac6a109790acb47d08f03f7f88c",titolo:this.name}),a("div",{key:"9fc66378a96351d6251e0d700c3f93046343cb64",class:`content ${this.flipped?"flipped":""}`},a("div",{key:"9a90a3b496bdb8dbbe53820536f41f91aca5fe8f",class:"front"},a("z-myz-card-body",{key:"b1a8aee7f1b172fb8070e06b5d929c9c726c870e"},a("z-myz-card-cover",{key:"8e51755d66e3d0b1081f34cfbbcff860b325ac52",slot:"cover",titolo:this.name,img:this.cover,faded:this.disabled})),a("z-button",{key:"9ebd9fcb0bf970b3ae9250048809a5427d7f7586",class:{"hide-info":this.hideinfobtn},variant:i.SECONDARY,icon:"informationsource",size:s.X_SMALL,onClick:()=>this.flipCard(true),disabled:this.flipped},this.flipbuttonlabel)),a("div",{key:"03cc1ad4636d1cf4d36ef062f9f66d07a2960d38",class:"back"},a("slot",{key:"2b766a05250d41a648cb07e072707a16fa45c484",name:"info"}))),a("slot",{key:"288e7018302b221aa6244b01fc5f4b8140297078"})))}};r.style=n;export{r as z_myz_card_dictionary};
|
|
2
|
-
//# sourceMappingURL=p-30a78a06.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["stylesCss","ZMyzCardDictionaryStyle0","ZMyzCardDictionary","handleFlipCard","e","this","flipCard","detail","showBack","flipped","cardFlipped","emit","render","h","key","titolo","name","class","slot","img","cover","faded","disabled","hideinfobtn","variant","ButtonVariant","SECONDARY","icon","size","ButtonSize","X_SMALL","onClick","flipbuttonlabel"],"sources":["src/snowflakes/myz/card/z-myz-card-dictionary/styles.css?tag=z-myz-card-dictionary&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-dictionary/index.tsx"],"sourcesContent":[":host {\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host z-myz-card {\n --card-overflow: visible;\n}\n\n:host > div {\n position: relative;\n width: 100%;\n height: 522px;\n transition: -webkit-transform 0.5s ease-out;\n transition: transform 0.5s ease-out;\n transition:\n transform 0.5s ease-out,\n -webkit-transform 0.5s ease-out;\n}\n\n:host > div .content {\n position: relative;\n z-index: 2;\n width: 100%;\n height: 522px;\n transform-style: preserve-3d;\n transition: -webkit-transform 0.5s ease-out;\n transition: transform 0.5s ease-out;\n transition:\n transform 0.5s ease-out,\n -webkit-transform 0.5s ease-out;\n}\n\n:host > div .content.flipped {\n margin-top: -2px;\n transform: rotateY(180deg);\n}\n\n:host > div .front,\n:host > div .back {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n backface-visibility: hidden;\n}\n\n:host > div .front {\n z-index: 2;\n top: 0;\n left: 0;\n transform: rotateY(0deg);\n}\n\n:host > div .front z-button {\n position: absolute;\n z-index: 3;\n top: calc(var(--space-unit) * 0.5);\n left: calc(-1 * var(--space-unit));\n}\n\n:host > div .back {\n z-index: 1;\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n padding: 0 var(--space-unit);\n margin-left: calc(-1 * var(--space-unit));\n transform: rotateY(180deg);\n}\n\n.hide-info {\n display: none;\n}\n","import {Component, Event, EventEmitter, Listen, Prop, h} from \"@stencil/core\";\nimport {ButtonSize, ButtonVariant} from \"../../../../beans\";\n\n/**\n * @slot - generic card slot\n * @slot info - flipped card info\n */\n@Component({\n tag: \"z-myz-card-dictionary\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardDictionary {\n /** card title */\n @Prop()\n name: string;\n\n /** card cover */\n @Prop()\n cover: string;\n\n /** card is disabled */\n @Prop()\n disabled = false;\n\n /** card is flipped */\n @Prop({mutable: true})\n flipped = false;\n\n /** flip button label */\n @Prop()\n flipbuttonlabel = \"INFO\";\n\n /** hide info button */\n @Prop()\n hideinfobtn = false;\n\n @Listen(\"flipCard\")\n handleFlipCard(e: CustomEvent): void {\n this.flipCard(e.detail);\n }\n\n /** when card is flipped */\n @Event()\n cardFlipped: EventEmitter;\n\n private flipCard(showBack = true): void {\n this.flipped = showBack;\n this.cardFlipped.emit(showBack);\n }\n\n render(): HTMLDivElement {\n return (\n <div>\n <z-myz-card>\n <z-myz-card-header titolo={this.name}></z-myz-card-header>\n <div class={`content ${this.flipped ? \"flipped\" : \"\"}`}>\n <div class=\"front\">\n <z-myz-card-body>\n <z-myz-card-cover\n slot=\"cover\"\n titolo={this.name}\n img={this.cover}\n faded={this.disabled}\n />\n </z-myz-card-body>\n <z-button\n class={{\"hide-info\": this.hideinfobtn}}\n variant={ButtonVariant.SECONDARY}\n icon=\"informationsource\"\n size={ButtonSize.X_SMALL}\n onClick={() => this.flipCard(true)}\n disabled={this.flipped}\n >\n {this.flipbuttonlabel}\n </z-button>\n </div>\n <div class=\"back\">\n <slot name=\"info\" />\n </div>\n </div>\n <slot />\n </z-myz-card>\n </div>\n );\n }\n}\n"],"mappings":"6FAAA,MAAMA,EAAY,ymCAClB,MAAAC,EAAeD,E,MCWFE,EAAkB,M,yHAWlB,M,aAID,M,qBAIQ,O,iBAIJ,K,CAGd,cAAAC,CAAeC,GACbC,KAAKC,SAASF,EAAEG,O,CAOV,QAAAD,CAASE,EAAW,MAC1BH,KAAKI,QAAUD,EACfH,KAAKK,YAAYC,KAAKH,E,CAGxB,MAAAI,GACE,OACEC,EAAA,OAAAC,IAAA,4CACED,EAAA,cAAAC,IAAA,4CACED,EAAA,qBAAAC,IAAA,2CAAmBC,OAAQV,KAAKW,OAChCH,EAAA,OAAAC,IAAA,2CAAKG,MAAO,WAAWZ,KAAKI,QAAU,UAAY,MAChDI,EAAA,OAAAC,IAAA,2CAAKG,MAAM,SACTJ,EAAA,mBAAAC,IAAA,4CACED,EAAA,oBAAAC,IAAA,2CACEI,KAAK,QACLH,OAAQV,KAAKW,KACbG,IAAKd,KAAKe,MACVC,MAAOhB,KAAKiB,YAGhBT,EAAA,YAAAC,IAAA,2CACEG,MAAO,CAAC,YAAaZ,KAAKkB,aAC1BC,QAASC,EAAcC,UACvBC,KAAK,oBACLC,KAAMC,EAAWC,QACjBC,QAAS,IAAM1B,KAAKC,SAAS,MAC7BgB,SAAUjB,KAAKI,SAEdJ,KAAK2B,kBAGVnB,EAAA,OAAAC,IAAA,2CAAKG,MAAM,QACTJ,EAAA,QAAAC,IAAA,2CAAME,KAAK,WAGfH,EAAA,QAAAC,IAAA,8C","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as i,h as e,a as t,g as o}from"./p-75c4a726.js";const r=":host,*{box-sizing:border-box}:host{display:flex;overflow:hidden;min-width:0;height:11.125rem;padding:var(--space-unit);border:var(--border-size-medium) solid var(--color-surface02);background-color:var(--color-surface01);border-radius:var(--border-size-large);cursor:pointer;font-family:var(--font-family-sans);gap:calc(var(--space-unit) * 2)}z-book-cover{--z-book-cover-stack-shift-x:6px;--z-book-cover-stack-shift-y:8px;--z-book-cover-height:158px;--z-book-cover-border-radius:0}.info-container{display:flex;overflow:hidden;min-width:0;flex:1;flex-direction:column}.authors-label{overflow:hidden;color:var(--color-default-text);font-size:var(--font-size-2);font-weight:var(--font-rg);text-overflow:ellipsis;white-space:nowrap}.card-title{display:-webkit-box;overflow:hidden;margin:0;-webkit-box-orient:vertical;font-size:var(--font-size-3);font-weight:var(--font-bd);-webkit-line-clamp:2;line-clamp:2;line-height:1.5;word-break:break-word}.card-subtitle{overflow:hidden;color:var(--color-default-text);text-overflow:ellipsis;white-space:nowrap}.tags-container{display:flex;max-width:100%;flex-wrap:wrap;margin-top:calc(var(--space-unit) * 2);gap:var(--space-unit)}.volumes-label{display:flex;flex-grow:1;align-items:end;color:var(--color-default-text);font-size:var(--font-size-1)}:host(.info-card){height:5rem;gap:calc(var(--space-unit) * 1.5)}:host(.info-card) .info-icon-container{display:flex;align-items:center;align-self:flex-start;justify-content:center;padding:var(--space-unit);margin-bottom:calc(var(--space-unit) * 3);background-color:var(--gray50);border-radius:var(--border-size-large)}:host(.info-card) .info-icon{--z-icon-width:1.125rem;--z-icon-height:1.125rem;fill:var(--color-default-icon)}:host(.info-card) .card-title{display:-webkit-box;overflow:hidden;min-width:0;max-width:100%;max-height:2.4em;margin-top:0;margin-bottom:calc(var(--space-unit) / 2);-webkit-box-orient:vertical;font-size:var(--font-size-3);font-weight:var(--font-bd);-webkit-line-clamp:1;line-clamp:1;line-height:1.2;word-break:break-word}:host(.info-card) .card-subtitle{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;line-height:1.2;white-space:normal;word-break:break-word}@media (max-width: 767px){.card-title{display:block;overflow:hidden;line-height:normal;text-overflow:ellipsis;white-space:nowrap}}";const a=r;const s=class{constructor(o){i(this,o);this.resizeHandler=()=>{this.setTooltipTitle(this.authorsRef);this.setTooltipTitle(this.titleRef);this.setTooltipTitle(this.subtitleRef)};this.renderTitle=()=>{const i=this.titleHtmlTag||"div";return e(i,{class:"card-title",ref:i=>this.titleRef=i},this.cardTitle)};this.renderSubtitle=()=>e("span",{class:"card-subtitle",ref:i=>this.subtitleRef=i},this.cardSubtitle);this.renderOperaCard=()=>e(t,null,e("z-book-cover",{cover:this.cover,fallbackCover:this.fallbackCover,multiple:this.hasMultipleCovers,bordered:true}),e("div",{class:"info-container"},this.authors&&e("span",{class:"authors-label",ref:i=>this.authorsRef=i},this.authors),this.renderTitle(),this.renderSubtitle(),e("div",{class:"tags-container"},e("slot",{name:"tags"})),e("div",{class:"volumes-label"},e("slot",{name:"volumes"}))));this.renderInfoCard=()=>e(t,{class:"info-card"},e("div",{class:"info-icon-container"},e("z-icon",{class:"info-icon",name:"link"})),e("div",{class:"info-container"},this.renderTitle(),this.renderSubtitle()));this.cardTitle=undefined;this.cardSubtitle=undefined;this.authors=undefined;this.cover=undefined;this.fallbackCover=undefined;this.hasMultipleCovers=false;this.isInfoCard=false;this.titleHtmlTag=undefined}setTooltipTitle(i){if(!i){return}const e=window.getComputedStyle(i);const t=e.getPropertyValue("-webkit-line-clamp")!=="none";let o;if(t){const t=parseInt(e.lineHeight);const r=parseInt(e.getPropertyValue("-webkit-line-clamp"));const a=t*r;o=i.scrollHeight>a}else{o=i.scrollWidth>i.clientWidth||i.scrollHeight>i.clientHeight}if(o){i.setAttribute("title",i.textContent.trim())}else{i.removeAttribute("title")}}componentDidRender(){this.setTooltipTitle(this.authorsRef);this.setTooltipTitle(this.titleRef);this.setTooltipTitle(this.subtitleRef)}componentDidLoad(){window.addEventListener("resize",this.resizeHandler)}disconnectedCallback(){window.removeEventListener("resize",this.resizeHandler)}render(){return this.isInfoCard?this.renderInfoCard():this.renderOperaCard()}get hostElement(){return o(this)}};s.style=a;export{s as z_result_card};
|
|
2
|
-
//# sourceMappingURL=p-31bd2a1c.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["stylesCss","ZResultCardStyle0","ZResultCard","this","resizeHandler","setTooltipTitle","authorsRef","titleRef","subtitleRef","renderTitle","TitleTag","titleHtmlTag","h","class","ref","el","cardTitle","renderSubtitle","cardSubtitle","renderOperaCard","Host","cover","fallbackCover","multiple","hasMultipleCovers","bordered","authors","name","renderInfoCard","style","window","getComputedStyle","hasLineClamp","getPropertyValue","isTruncated","lineHeight","parseInt","maxLines","maxHeight","scrollHeight","scrollWidth","clientWidth","clientHeight","setAttribute","textContent","trim","removeAttribute","componentDidRender","componentDidLoad","addEventListener","disconnectedCallback","removeEventListener","render","isInfoCard"],"sources":["src/components/z-result-card/styles.css?tag=z-result-card&encapsulation=shadow","src/components/z-result-card/index.tsx"],"sourcesContent":[":host,\n* {\n box-sizing: border-box;\n}\n\n:host {\n display: flex;\n overflow: hidden;\n min-width: 0;\n height: 11.125rem;\n padding: var(--space-unit);\n border: var(--border-size-medium) solid var(--color-surface02);\n background-color: var(--color-surface01);\n border-radius: var(--border-size-large);\n cursor: pointer;\n font-family: var(--font-family-sans);\n gap: calc(var(--space-unit) * 2);\n}\n\nz-book-cover {\n --z-book-cover-stack-shift-x: 6px;\n --z-book-cover-stack-shift-y: 8px;\n --z-book-cover-height: 158px;\n --z-book-cover-border-radius: 0;\n}\n\n.info-container {\n display: flex;\n overflow: hidden;\n min-width: 0;\n flex: 1;\n flex-direction: column;\n}\n\n.authors-label {\n overflow: hidden;\n color: var(--color-default-text);\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.card-title {\n display: -webkit-box;\n overflow: hidden;\n margin: 0;\n -webkit-box-orient: vertical;\n font-size: var(--font-size-3);\n font-weight: var(--font-bd);\n -webkit-line-clamp: 2;\n line-clamp: 2;\n line-height: 1.5;\n word-break: break-word;\n}\n\n.card-subtitle {\n overflow: hidden;\n color: var(--color-default-text);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.tags-container {\n display: flex;\n max-width: 100%;\n flex-wrap: wrap;\n margin-top: calc(var(--space-unit) * 2);\n gap: var(--space-unit);\n}\n\n.volumes-label {\n display: flex;\n flex-grow: 1;\n align-items: end;\n color: var(--color-default-text);\n font-size: var(--font-size-1);\n}\n\n/* info-card */\n:host(.info-card) {\n height: 5rem;\n gap: calc(var(--space-unit) * 1.5);\n}\n\n:host(.info-card) .info-icon-container {\n display: flex;\n align-items: center;\n align-self: flex-start;\n justify-content: center;\n padding: var(--space-unit);\n margin-bottom: calc(var(--space-unit) * 3);\n background-color: var(--gray50);\n border-radius: var(--border-size-large);\n}\n\n:host(.info-card) .info-icon {\n --z-icon-width: 1.125rem;\n --z-icon-height: 1.125rem;\n\n fill: var(--color-default-icon);\n}\n\n:host(.info-card) .card-title {\n display: -webkit-box;\n overflow: hidden;\n min-width: 0;\n max-width: 100%;\n max-height: 2.4em;\n margin-top: 0;\n margin-bottom: calc(var(--space-unit) / 2);\n -webkit-box-orient: vertical;\n font-size: var(--font-size-3);\n font-weight: var(--font-bd);\n -webkit-line-clamp: 1;\n line-clamp: 1;\n line-height: 1.2;\n word-break: break-word;\n}\n\n:host(.info-card) .card-subtitle {\n display: -webkit-box;\n overflow: hidden;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n line-clamp: 2;\n line-height: 1.2;\n white-space: normal;\n word-break: break-word;\n}\n\n@media (max-width: 767px) {\n .card-title {\n display: block;\n overflow: hidden;\n line-height: normal;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n}\n","import {Component, Element, Host, Prop, h} from \"@stencil/core\";\n\n/**\n * @slot tags - slot containing the descriptors for the opera variant\n * @slot volumes - slot containing the volume count to be displayed in the opera variant\n */\n@Component({\n tag: \"z-result-card\",\n styleUrls: [\"styles.css\"],\n shadow: true,\n})\nexport class ZResultCard {\n @Element() hostElement: HTMLZResultCardElement;\n\n /** The title of the card. */\n @Prop()\n cardTitle: string;\n\n /** The subtitle of the card. */\n @Prop()\n cardSubtitle: string;\n\n /** The authors of the opera. */\n @Prop()\n authors?: string;\n\n /** The URL of the cover image of the opera. */\n @Prop()\n cover?: string;\n\n /** [optional] Fallback cover URL. */\n @Prop()\n fallbackCover?: string;\n\n /** Whether to show a stack of covers to represent multiple books. */\n @Prop()\n hasMultipleCovers = false;\n\n /** Enables the \"info\" variant of the card. */\n @Prop()\n isInfoCard = false;\n\n /** [optional] Set a specific heading level as html tag for the title. */\n @Prop()\n titleHtmlTag?: string;\n\n private authorsRef: HTMLElement;\n\n private titleRef: HTMLElement;\n\n private subtitleRef: HTMLElement;\n\n private setTooltipTitle(el: HTMLElement): void {\n if (!el) {\n return;\n }\n\n // Check if element uses line-clamp\n const style = window.getComputedStyle(el);\n const hasLineClamp = style.getPropertyValue(\"-webkit-line-clamp\") !== \"none\";\n\n let isTruncated;\n if (hasLineClamp) {\n // For elements with line-clamp, check if content height exceeds line-clamp height\n const lineHeight = parseInt(style.lineHeight);\n const maxLines = parseInt(style.getPropertyValue(\"-webkit-line-clamp\"));\n const maxHeight = lineHeight * maxLines;\n\n isTruncated = el.scrollHeight > maxHeight;\n } else {\n // Original check for elements without line-clamp\n isTruncated = el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight;\n }\n\n if (isTruncated) {\n el.setAttribute(\"title\", el.textContent.trim());\n } else {\n el.removeAttribute(\"title\");\n }\n }\n\n componentDidRender(): void {\n this.setTooltipTitle(this.authorsRef);\n this.setTooltipTitle(this.titleRef);\n this.setTooltipTitle(this.subtitleRef);\n }\n\n private resizeHandler = (): void => {\n this.setTooltipTitle(this.authorsRef);\n this.setTooltipTitle(this.titleRef);\n this.setTooltipTitle(this.subtitleRef);\n };\n\n componentDidLoad(): void {\n window.addEventListener(\"resize\", this.resizeHandler);\n }\n\n disconnectedCallback(): void {\n window.removeEventListener(\"resize\", this.resizeHandler);\n }\n\n private renderTitle = (): HTMLElement => {\n const TitleTag = this.titleHtmlTag || \"div\";\n\n return (\n <TitleTag\n class=\"card-title\"\n ref={(el) => (this.titleRef = el as HTMLElement)}\n >\n {this.cardTitle}\n </TitleTag>\n );\n };\n\n private renderSubtitle = (): HTMLSpanElement => {\n return (\n <span\n class=\"card-subtitle\"\n ref={(el) => (this.subtitleRef = el as HTMLElement)}\n >\n {this.cardSubtitle}\n </span>\n );\n };\n\n private renderOperaCard = (): HTMLZResultCardElement => {\n return (\n <Host>\n <z-book-cover\n cover={this.cover}\n fallbackCover={this.fallbackCover}\n multiple={this.hasMultipleCovers}\n bordered={true}\n ></z-book-cover>\n <div class=\"info-container\">\n {this.authors && (\n <span\n class=\"authors-label\"\n ref={(el) => (this.authorsRef = el as HTMLElement)}\n >\n {this.authors}\n </span>\n )}\n {this.renderTitle()}\n {this.renderSubtitle()}\n <div class=\"tags-container\">\n <slot name=\"tags\"></slot>\n </div>\n <div class=\"volumes-label\">\n <slot name=\"volumes\"></slot>\n </div>\n </div>\n </Host>\n );\n };\n\n private renderInfoCard = (): HTMLZResultCardElement => {\n return (\n <Host class=\"info-card\">\n <div class=\"info-icon-container\">\n <z-icon\n class=\"info-icon\"\n name=\"link\"\n />\n </div>\n <div class=\"info-container\">\n {this.renderTitle()}\n {this.renderSubtitle()}\n </div>\n </Host>\n );\n };\n\n render(): HTMLZResultCardElement {\n return this.isInfoCard ? this.renderInfoCard() : this.renderOperaCard();\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAY,izEAClB,MAAAC,EAAeD,E,MCUFE,EAAW,M,yBA4EdC,KAAAC,cAAgB,KACtBD,KAAKE,gBAAgBF,KAAKG,YAC1BH,KAAKE,gBAAgBF,KAAKI,UAC1BJ,KAAKE,gBAAgBF,KAAKK,YAAY,EAWhCL,KAAAM,YAAc,KACpB,MAAMC,EAAWP,KAAKQ,cAAgB,MAEtC,OACEC,EAACF,EAAQ,CACPG,MAAM,aACNC,IAAMC,GAAQZ,KAAKI,SAAWQ,GAE7BZ,KAAKa,UACG,EAIPb,KAAAc,eAAiB,IAErBL,EAAA,QACEC,MAAM,gBACNC,IAAMC,GAAQZ,KAAKK,YAAcO,GAEhCZ,KAAKe,cAKJf,KAAAgB,gBAAkB,IAEtBP,EAACQ,EAAI,KACHR,EAAA,gBACES,MAAOlB,KAAKkB,MACZC,cAAenB,KAAKmB,cACpBC,SAAUpB,KAAKqB,kBACfC,SAAU,OAEZb,EAAA,OAAKC,MAAM,kBACRV,KAAKuB,SACJd,EAAA,QACEC,MAAM,gBACNC,IAAMC,GAAQZ,KAAKG,WAAaS,GAE/BZ,KAAKuB,SAGTvB,KAAKM,cACLN,KAAKc,iBACNL,EAAA,OAAKC,MAAM,kBACTD,EAAA,QAAMe,KAAK,UAEbf,EAAA,OAAKC,MAAM,iBACTD,EAAA,QAAMe,KAAK,eAObxB,KAAAyB,eAAiB,IAErBhB,EAACQ,EAAI,CAACP,MAAM,aACVD,EAAA,OAAKC,MAAM,uBACTD,EAAA,UACEC,MAAM,YACNc,KAAK,UAGTf,EAAA,OAAKC,MAAM,kBACRV,KAAKM,cACLN,KAAKc,mB,qJAnIM,M,gBAIP,M,4BAYL,eAAAZ,CAAgBU,GACtB,IAAKA,EAAI,CACP,M,CAIF,MAAMc,EAAQC,OAAOC,iBAAiBhB,GACtC,MAAMiB,EAAeH,EAAMI,iBAAiB,wBAA0B,OAEtE,IAAIC,EACJ,GAAIF,EAAc,CAEhB,MAAMG,EAAaC,SAASP,EAAMM,YAClC,MAAME,EAAWD,SAASP,EAAMI,iBAAiB,uBACjD,MAAMK,EAAYH,EAAaE,EAE/BH,EAAcnB,EAAGwB,aAAeD,C,KAC3B,CAELJ,EAAcnB,EAAGyB,YAAczB,EAAG0B,aAAe1B,EAAGwB,aAAexB,EAAG2B,Y,CAGxE,GAAIR,EAAa,CACfnB,EAAG4B,aAAa,QAAS5B,EAAG6B,YAAYC,O,KACnC,CACL9B,EAAG+B,gBAAgB,Q,EAIvB,kBAAAC,GACE5C,KAAKE,gBAAgBF,KAAKG,YAC1BH,KAAKE,gBAAgBF,KAAKI,UAC1BJ,KAAKE,gBAAgBF,KAAKK,Y,CAS5B,gBAAAwC,GACElB,OAAOmB,iBAAiB,SAAU9C,KAAKC,c,CAGzC,oBAAA8C,GACEpB,OAAOqB,oBAAoB,SAAUhD,KAAKC,c,CA2E5C,MAAAgD,GACE,OAAOjD,KAAKkD,WAAalD,KAAKyB,iBAAmBzB,KAAKgB,iB","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as a,c as o,h as r,g as i}from"./p-75c4a726.js";import{e as s,_ as e}from"./p-86618221.js";const t=':host,:host *,:host ::slotted(*){box-sizing:border-box}:host{--z-accordion-highlight-color:transparent;--z-accordion-bg:var(--color-surface01);--z-accordion-label-color:var(--color-default-text);--z-accordion-disabled-label-color:var(--color-text03);--z-accordion-content-bg:var(--color-surface01);--z-accordion-content-fg:var(--color-default-text);--z-accordion-hover-color:var(--color-surface02);--z-accordion-left-padding:calc(var(--space-unit) * 2);--z-accordion-right-padding:var(--space-unit);--z-accordion-label-font-weight:var(--font-sb);display:block;border-top:var(--border-size-small) solid var(--color-surface03);border-bottom:var(--border-size-small) solid var(--color-surface03);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host([variant="background"]){border:var(--border-size-small) solid var(--color-surface03);border-radius:var(--border-radius)}:host([variant="background"][shadow]){box-shadow:var(--shadow-2)}details{background-color:transparent}summary{--summary-x-small-height:32px;--summary-small-height:36px;--summary-big-height:44px;--summary-height:var(--summary-big-height);--summary-y-padding:var(--space-unit);position:relative;display:flex;min-height:var(--summary-height);align-items:center;padding:var(--summary-y-padding) var(--z-accordion-right-padding) var(--summary-y-padding)\n var(--z-accordion-left-padding);background-color:var(--z-accordion-bg);column-gap:var(--space-unit);cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}:host([size="x-small"]) summary{--summary-height:var(--summary-x-small-height)}:host([size="small"]) summary{--summary-height:var(--summary-small-height)}:host(:is([size="x-small"],[size="small"])) summary{--summary-y-padding:calc(var(--space-unit) / 2)}:host([variant="background"]) summary{padding-right:calc(var(--space-unit) * 2);border-radius:calc(var(--border-radius) - var(--border-size-small))}:host([variant="background"][open]) summary{border-bottom-left-radius:0;border-bottom-right-radius:0}:host([is-disabled]) summary{cursor:default}summary:focus:focus-visible{background-color:var(--z-accordion-hover-color);box-shadow:var(--shadow-focus-primary);outline:none}summary::before,:host([highlight][variant="background"]) .z-accordion-content::before{position:absolute;top:0;left:0;display:block;width:var(--space-unit);height:100%;content:""}:host([highlight][variant="background"]) summary::before{border-top-left-radius:calc(var(--border-radius) - var(--border-size-small))}:host([highlight][variant="background"]:not([open])) summary::before,:host([highlight][variant="background"][open]) .z-accordion-content::before{border-bottom-left-radius:calc(var(--border-radius) - var(--border-size-small))}:host([highlight]) summary::before,:host([highlight][variant="background"]) .z-accordion-content::before{background-color:var(--z-accordion-highlight-color, transparent)}:host([is-disabled][highlight]) summary::before,:host([is-disabled][highlight][variant="background"]) .z-accordion-content::before{background-color:var(--z-accordion-disabled-label-color)}summary>z-icon{fill:var(--z-accordion-label-color)}:host([is-disabled]) summary>z-icon{fill:var(--z-accordion-disabled-label-color)}.z-accordion-label{color:var(--z-accordion-label-color);font-size:var(--font-size-3);font-weight:var(--z-accordion-label-font-weight)}:host([size="x-small"]) .z-accordion-label{font-size:var(--font-size-2)}:host([size="x-small"]) :is(.z-accordion-label-icon,.z-accordion-chevron){--z-icon-width:16px;--z-icon-height:16px}.z-accordion-tags{display:flex;align-items:center;column-gap:calc(var(--space-unit) / 2)}summary z-icon.z-accordion-chevron{margin-left:auto}.z-accordion-content{position:relative;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2) calc(var(--space-unit) * 2);background-color:var(--z-accordion-content-bg);color:var(--z-accordion-content-fg);font-size:var(--font-size-2);}:host(:is([size="x-small"],[size="small"])) .z-accordion-content{padding-bottom:var(--space-unit)}:host([size="x-small"]) .z-accordion-content{font-size:var(--font-size-1)}:host([variant="background"]) .z-accordion-content{padding-right:calc(var(--space-unit) * 2);border-bottom-left-radius:calc(var(--border-radius) - var(--border-size-small));border-bottom-right-radius:calc(var(--border-radius) - var(--border-size-small))}:host([is-disabled]) .z-accordion-label{color:var(--z-accordion-disabled-label-color)}:host([is-disabled]) .z-accordion-tags ::slotted(z-tag[slot="tag"]){--z-tag-bg:var(--z-accordion-disabled-label-color) !important;--z-tag-text-color:var(--color-text-inverse) !important}@media (hover: hover){summary:focus:focus-visible{position:relative;z-index:1}:host(:not([is-disabled])) summary:hover{background-color:var(--z-accordion-hover-color)}:host(:not([is-disabled])) summary:hover .z-accordion-label{text-decoration:underline}}@media (hover: none){:host([size]) summary{--summary-height:var(--summary-big-height);--summary-y-padding:var(--space-unit)}:host([size]) .z-accordion-label{font-size:var(--font-size-3)}:host([size]) .z-accordion-content{font-size:var(--font-size-2)}:host([size]) :is(.z-accordion-label-icon,.z-accordion-chevron){--z-icon-width:18px;--z-icon-height:18px}}';const c=t;const n=class{constructor(r){a(this,r);this.toggled=o(this,"toggled",7);this.label=undefined;this.icon=undefined;this.size=s.BIG;this.isDisabled=false;this.open=false;this.highlight=false;this.variant=e.DEFAULT;this.shadow=true;this.hasSlottedTags=false}onDisabledChange(){if(this.isDisabled){this.open=false}}checkSlottedTags(){this.hasSlottedTags=!!this.host.querySelector('[slot="tag"]')}onDetailsToggle(){if(this.isDisabled){this.open=false;this.detailsElm.open=false;return}this.open=this.detailsElm.open;this.toggled.emit(this.open)}componentWillLoad(){this.checkSlottedTags()}render(){return r("details",{key:"f7e5933db8c37cfe6e39d2ff41a0d1611784e668",ref:a=>this.detailsElm=a,onToggle:this.onDetailsToggle.bind(this),open:this.open},r("summary",{key:"6109ae145d22b879326c0b6493886e8e93587157",tabIndex:this.isDisabled?-1:null,part:"summary"},this.icon&&r("z-icon",{key:"aa81dc1a116fb11a36e3f3339e02f2206a0b1ce4",class:"z-accordion-label-icon",name:this.icon}),r("span",{key:"c7473044308125b98ec5df1774023b0bf51170bb",class:"z-accordion-label"},this.label),this.hasSlottedTags&&r("span",{key:"1f991e11f91086616d7eb03ea6b4fdc8b8e6d424",class:"z-accordion-tags"},r("slot",{key:"9d38da3a3809a5fbc5484b05f22a53fe4e448e76",name:"tag",onSlotchange:()=>this.checkSlottedTags()})),r("z-icon",{key:"248043a90d91b3fe718314f006aa2b2f32629b2c",class:"z-accordion-chevron",name:this.open?"chevron-up":"chevron-down"})),!this.isDisabled&&r("div",{key:"815910f6f281bfe790576ffe4c179ad01a3b23ae",class:"z-accordion-content",part:"content"},r("slot",{key:"8b7a54bbec50cc7c6034f184f08307f2697a39f3"})))}get host(){return i(this)}static get watchers(){return{isDisabled:["onDisabledChange"]}}};n.style=c;export{n as z_accordion};
|
|
2
|
-
//# sourceMappingURL=p-32bc8a40.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["stylesCss","ZAccordionStyle0","ZAccordion","ControlSize","BIG","AccordionVariant","DEFAULT","onDisabledChange","this","isDisabled","open","checkSlottedTags","hasSlottedTags","host","querySelector","onDetailsToggle","detailsElm","toggled","emit","componentWillLoad","render","h","key","ref","elm","onToggle","bind","tabIndex","part","icon","class","name","label","onSlotchange"],"sources":["src/components/z-accordion/styles.css?tag=z-accordion&encapsulation=shadow","src/components/z-accordion/index.tsx"],"sourcesContent":[":host,\n:host *,\n:host ::slotted(*) {\n box-sizing: border-box;\n}\n\n:host {\n --z-accordion-highlight-color: transparent;\n --z-accordion-bg: var(--color-surface01);\n --z-accordion-label-color: var(--color-default-text);\n --z-accordion-disabled-label-color: var(--color-text03);\n --z-accordion-content-bg: var(--color-surface01);\n --z-accordion-content-fg: var(--color-default-text);\n --z-accordion-hover-color: var(--color-surface02);\n --z-accordion-left-padding: calc(var(--space-unit) * 2);\n --z-accordion-right-padding: var(--space-unit);\n --z-accordion-label-font-weight: var(--font-sb);\n\n display: block;\n border-top: var(--border-size-small) solid var(--color-surface03);\n border-bottom: var(--border-size-small) solid var(--color-surface03);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host([variant=\"background\"]) {\n border: var(--border-size-small) solid var(--color-surface03);\n border-radius: var(--border-radius);\n}\n\n:host([variant=\"background\"][shadow]) {\n box-shadow: var(--shadow-2);\n}\n\ndetails {\n background-color: transparent;\n}\n\nsummary {\n --summary-x-small-height: 32px;\n --summary-small-height: 36px;\n --summary-big-height: 44px;\n --summary-height: var(--summary-big-height);\n --summary-y-padding: var(--space-unit);\n\n position: relative;\n display: flex;\n min-height: var(--summary-height);\n align-items: center;\n padding: var(--summary-y-padding) var(--z-accordion-right-padding) var(--summary-y-padding)\n var(--z-accordion-left-padding);\n background-color: var(--z-accordion-bg);\n column-gap: var(--space-unit);\n cursor: pointer;\n list-style: none;\n}\n\n/* remove marker on safari */\nsummary::-webkit-details-marker {\n display: none;\n}\n\n:host([size=\"x-small\"]) summary {\n --summary-height: var(--summary-x-small-height);\n}\n\n:host([size=\"small\"]) summary {\n --summary-height: var(--summary-small-height);\n}\n\n:host(:is([size=\"x-small\"], [size=\"small\"])) summary {\n --summary-y-padding: calc(var(--space-unit) / 2);\n}\n\n:host([variant=\"background\"]) summary {\n padding-right: calc(var(--space-unit) * 2);\n\n /* border-radius of the accordion - width of the accordion's border */\n border-radius: calc(var(--border-radius) - var(--border-size-small));\n}\n\n:host([variant=\"background\"][open]) summary {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n:host([is-disabled]) summary {\n cursor: default;\n}\n\nsummary:focus:focus-visible {\n background-color: var(--z-accordion-hover-color);\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\nsummary::before,\n:host([highlight][variant=\"background\"]) .z-accordion-content::before {\n position: absolute;\n top: 0;\n left: 0;\n display: block;\n width: var(--space-unit);\n height: 100%;\n content: \"\";\n}\n\n:host([highlight][variant=\"background\"]) summary::before {\n /* border-radius of the accordion - width of the accordion's border */\n border-top-left-radius: calc(var(--border-radius) - var(--border-size-small));\n}\n\n:host([highlight][variant=\"background\"]:not([open])) summary::before,\n:host([highlight][variant=\"background\"][open]) .z-accordion-content::before {\n /* border-radius of the accordion - width of the accordion's border */\n border-bottom-left-radius: calc(var(--border-radius) - var(--border-size-small));\n}\n\n:host([highlight]) summary::before,\n:host([highlight][variant=\"background\"]) .z-accordion-content::before {\n background-color: var(--z-accordion-highlight-color, transparent);\n}\n\n:host([is-disabled][highlight]) summary::before,\n:host([is-disabled][highlight][variant=\"background\"]) .z-accordion-content::before {\n background-color: var(--z-accordion-disabled-label-color);\n}\n\nsummary > z-icon {\n fill: var(--z-accordion-label-color);\n}\n\n:host([is-disabled]) summary > z-icon {\n fill: var(--z-accordion-disabled-label-color);\n}\n\n.z-accordion-label {\n color: var(--z-accordion-label-color);\n font-size: var(--font-size-3); /* for \"small\" and \"big\" sizes */\n font-weight: var(--z-accordion-label-font-weight);\n}\n\n:host([size=\"x-small\"]) .z-accordion-label {\n font-size: var(--font-size-2);\n}\n\n:host([size=\"x-small\"]) :is(.z-accordion-label-icon, .z-accordion-chevron) {\n --z-icon-width: 16px;\n --z-icon-height: 16px;\n}\n\n.z-accordion-tags {\n display: flex;\n align-items: center;\n column-gap: calc(var(--space-unit) / 2);\n}\n\nsummary z-icon.z-accordion-chevron {\n margin-left: auto;\n}\n\n.z-accordion-content {\n position: relative;\n padding: var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2) calc(var(--space-unit) * 2);\n background-color: var(--z-accordion-content-bg);\n color: var(--z-accordion-content-fg);\n font-size: var(--font-size-2); /* for \"small\" and \"big\" sizes */\n}\n\n:host(:is([size=\"x-small\"], [size=\"small\"])) .z-accordion-content {\n padding-bottom: var(--space-unit);\n}\n\n:host([size=\"x-small\"]) .z-accordion-content {\n font-size: var(--font-size-1);\n}\n\n:host([variant=\"background\"]) .z-accordion-content {\n padding-right: calc(var(--space-unit) * 2);\n border-bottom-left-radius: calc(var(--border-radius) - var(--border-size-small));\n border-bottom-right-radius: calc(var(--border-radius) - var(--border-size-small));\n}\n\n:host([is-disabled]) .z-accordion-label {\n color: var(--z-accordion-disabled-label-color);\n}\n\n:host([is-disabled]) .z-accordion-tags ::slotted(z-tag[slot=\"tag\"]) {\n --z-tag-bg: var(--z-accordion-disabled-label-color) !important;\n --z-tag-text-color: var(--color-text-inverse) !important;\n}\n\n@media (hover: hover) {\n summary:focus:focus-visible {\n /* prevents the focus shadow to be covered by the background of an hovered sibling accordion */\n position: relative;\n z-index: 1;\n }\n\n :host(:not([is-disabled])) summary:hover {\n background-color: var(--z-accordion-hover-color);\n }\n\n :host(:not([is-disabled])) summary:hover .z-accordion-label {\n text-decoration: underline;\n }\n}\n\n/* force \"big\" variant on touch devices */\n@media (hover: none) {\n :host([size]) summary {\n --summary-height: var(--summary-big-height);\n --summary-y-padding: var(--space-unit);\n }\n\n :host([size]) .z-accordion-label {\n font-size: var(--font-size-3);\n }\n\n :host([size]) .z-accordion-content {\n font-size: var(--font-size-2);\n }\n\n :host([size]) :is(.z-accordion-label-icon, .z-accordion-chevron) {\n --z-icon-width: 18px;\n --z-icon-height: 18px;\n }\n}\n","import {Component, Element, Event, EventEmitter, Prop, State, Watch, h} from \"@stencil/core\";\nimport {AccordionVariant, ControlSize} from \"../../beans\";\n\n/**\n * Accordion component.\n *\n * @slot - Slot for the main content.\n * @slot tag - Slot for tags.\n * @cssprop --z-accordion-highlight-color - Color of the highlight band on the summary's left edge. Only applies when `highlight` is true. Default: `transparent`.\n * @cssprop --z-accordion-bg - Background color of the summary. Default: `--color-surface02`.\n * @cssprop --z-accordion-label-color - Label color. Default: `--color-default-text`.\n * @cssprop --z-accordion-disabled-label-color - Label color when disabled. Default: `--color-text03`.\n * @cssprop --z-accordion-content-bg - Background color of the accordion. Default: `--color-surface02`.\n * @cssprop --z-accordion-content-fg - Content text color. Default: `--color-default-text`.\n * @cssprop --z-accordion-hover-color - Hover color of the summary. Default: `--color-surface03`.\n * @cssprop --z-accordion-left-padding - Left padding of the summary. Default: `--space-unit` * 2.\n * @cssprop --z-accordion-right-padding - Right padding of the summary. Default: `--space-unit`.\n * @cssprop --z-accordion-label-font-weight - Font weight of the summary label. Default: `--font-sb`.\n */\n@Component({\n tag: \"z-accordion\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZAccordion {\n @Element() host: HTMLZAccordionElement;\n\n /**\n * Text label.\n */\n @Prop()\n label: string;\n\n /**\n * Name of the z-icon to display before the label's text.\n */\n @Prop()\n icon: string;\n\n /**\n * Size of the component.\n */\n @Prop({reflect: true})\n size = ControlSize.BIG;\n\n /**\n * Disabled state of the accordion.\n */\n @Prop({reflect: true})\n isDisabled = false;\n\n /**\n * The open state of the accordion.\n */\n @Prop({reflect: true, mutable: true})\n open = false;\n\n /**\n * Enable highlight band on the `summary`'s left edge.\n */\n @Prop({reflect: true})\n highlight = false;\n\n /**\n * Accordion variant.\n */\n @Prop({reflect: true})\n variant: AccordionVariant = AccordionVariant.DEFAULT;\n\n /**\n * Enable box-shadow on the accordion. Only applies when `variant` is `BACKGROUND`.\n */\n @Prop({reflect: true})\n shadow = true;\n\n @State()\n private hasSlottedTags = false;\n\n /**\n * Event fired when the accordion is toggled.\n */\n @Event()\n toggled: EventEmitter<boolean>;\n\n @Watch(\"isDisabled\")\n protected onDisabledChange(): void {\n if (this.isDisabled) {\n this.open = false;\n }\n }\n\n private detailsElm: HTMLDetailsElement;\n\n /** Check if there is any content in the \"tag\" slot. */\n private checkSlottedTags(): void {\n this.hasSlottedTags = !!this.host.querySelector('[slot=\"tag\"]');\n }\n\n /**\n * Handle `details` element toggle.\n * If currently disabled, prevent toggling by forcing the `open` state to `false`.\n * Unfortunately the \"toggle\" event is not cancelable and when catched, the `open` state is already changed.\n */\n private onDetailsToggle(): void {\n if (this.isDisabled) {\n this.open = false;\n this.detailsElm.open = false;\n\n return;\n }\n\n this.open = this.detailsElm.open;\n this.toggled.emit(this.open);\n }\n\n componentWillLoad(): void {\n this.checkSlottedTags();\n }\n\n render(): HTMLDetailsElement {\n return (\n <details\n ref={(elm: HTMLDetailsElement) => (this.detailsElm = elm)}\n onToggle={this.onDetailsToggle.bind(this)}\n open={this.open}\n >\n <summary\n tabIndex={this.isDisabled ? -1 : null}\n part=\"summary\"\n >\n {this.icon && (\n <z-icon\n class=\"z-accordion-label-icon\"\n name={this.icon}\n />\n )}\n <span class=\"z-accordion-label\">{this.label}</span>\n {this.hasSlottedTags && (\n <span class=\"z-accordion-tags\">\n <slot\n name=\"tag\"\n onSlotchange={() => this.checkSlottedTags()}\n />\n </span>\n )}\n <z-icon\n class=\"z-accordion-chevron\"\n name={this.open ? \"chevron-up\" : \"chevron-down\"}\n />\n </summary>\n {!this.isDisabled && (\n <div\n class=\"z-accordion-content\"\n part=\"content\"\n >\n <slot />\n </div>\n )}\n </details>\n );\n }\n}\n"],"mappings":"oGAAA,MAAMA,EAAY,unKAClB,MAAAC,EAAeD,E,MCuBFE,EAAU,M,6GAmBdC,EAAYC,I,gBAMN,M,UAMN,M,eAMK,M,aAMgBC,EAAiBC,Q,YAMpC,K,oBAGgB,K,CASf,gBAAAC,GACR,GAAIC,KAAKC,WAAY,CACnBD,KAAKE,KAAO,K,EAOR,gBAAAC,GACNH,KAAKI,iBAAmBJ,KAAKK,KAAKC,cAAc,e,CAQ1C,eAAAC,GACN,GAAIP,KAAKC,WAAY,CACnBD,KAAKE,KAAO,MACZF,KAAKQ,WAAWN,KAAO,MAEvB,M,CAGFF,KAAKE,KAAOF,KAAKQ,WAAWN,KAC5BF,KAAKS,QAAQC,KAAKV,KAAKE,K,CAGzB,iBAAAS,GACEX,KAAKG,kB,CAGP,MAAAS,GACE,OACEC,EAAA,WAAAC,IAAA,2CACEC,IAAMC,GAA6BhB,KAAKQ,WAAaQ,EACrDC,SAAUjB,KAAKO,gBAAgBW,KAAKlB,MACpCE,KAAMF,KAAKE,MAEXW,EAAA,WAAAC,IAAA,2CACEK,SAAUnB,KAAKC,YAAc,EAAI,KACjCmB,KAAK,WAEJpB,KAAKqB,MACJR,EAAA,UAAAC,IAAA,2CACEQ,MAAM,yBACNC,KAAMvB,KAAKqB,OAGfR,EAAA,QAAAC,IAAA,2CAAMQ,MAAM,qBAAqBtB,KAAKwB,OACrCxB,KAAKI,gBACJS,EAAA,QAAAC,IAAA,2CAAMQ,MAAM,oBACVT,EAAA,QAAAC,IAAA,2CACES,KAAK,MACLE,aAAc,IAAMzB,KAAKG,sBAI/BU,EAAA,UAAAC,IAAA,2CACEQ,MAAM,sBACNC,KAAMvB,KAAKE,KAAO,aAAe,mBAGnCF,KAAKC,YACLY,EAAA,OAAAC,IAAA,2CACEQ,MAAM,sBACNF,KAAK,WAELP,EAAA,QAAAC,IAAA,8C","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as s,a as c}from"./p-75c4a726.js";import{k as i}from"./p-86618221.js";import{r as a}from"./p-061e28d6.js";import"./p-5145a606.js";const l='.sc-z-toggle-switch-h{position:relative;display:inline-flex;font-family:var(--font-family-sans);font-weight:var(--font-rg)}label.sc-z-toggle-switch{display:flex;flex-direction:row;align-items:center;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{color:var(--color-default-text);letter-spacing:0}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{position:relative;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 4);height:18px;align-items:center;background-color:var(--gray500);border-radius:var(--space-unit);color:var(--gray500);cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){box-shadow:var(--shadow-focus-primary);outline:none}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{position:absolute;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 2);height:calc(var(--space-unit) * 2);align-items:center;justify-content:center;margin:0;background-color:var(--color-white);border-radius:7px;box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type="checkbox"].sc-z-toggle-switch{position:absolute;z-index:-1;opacity:0;pointer-events:none}';const o=l;const r=class{constructor(s){e(this,s);this.toggleClick=t(this,"toggleClick",7);this.disabled=false;this.labelPosition=i.LEFT;this.checked=false;this.htmlid=`toggle-switch-id-${a()}`}emitToggleClick(){this.toggleClick.emit({id:this.htmlid,checked:this.checked})}handleClick(e){if(this.disabled){return}this.checked=e.target.checked;this.emitToggleClick()}render(){return s(c,{key:"b572a91e4ed2f91cbe0b7a393371425a5b9b896a"},s("input",{key:"acff3447044eba6dd7622feb954a03d5503111f1",id:this.htmlid,type:"checkbox",checked:this.checked,disabled:this.disabled,onChange:this.handleClick.bind(this)}),s("label",{key:"58b70932d34e39bb1c078947eea614d6384b9660",htmlFor:this.htmlid,class:{[this.labelPosition]:true,disabled:this.disabled}},s("span",{key:"824e029aeb434813b35f72891d991f19a90daded"},s("slot",{key:"37e8bad4378c65f4a3411fee47a960b9220af5d3"})),s("span",{key:"55eaf2b824ce8e91b77b5f8f2677724b2834fad6",class:{container:true,disabled:this.disabled,checked:this.checked}},s("span",{key:"41b7660f89b5ba9829782d3e6b041323357fdefa",class:"circle"},this.checked&&s("z-icon",{key:"ae68c35e2765c6eece7dcee8f7ad570a6fc0aa34",width:12,height:12,name:"checkmark"})))))}};r.style=o;export{r as z_toggle_switch};
|
|
2
|
-
//# sourceMappingURL=p-35d73edf.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["stylesCss","ZToggleSwitchStyle0","ZToggleSwitch","LabelPosition","LEFT","randomId","emitToggleClick","this","toggleClick","emit","id","htmlid","checked","handleClick","ev","disabled","target","render","h","Host","key","type","onChange","bind","htmlFor","class","labelPosition","container","width","height","name"],"sources":["src/components/z-toggle-switch/styles.css?tag=z-toggle-switch&encapsulation=scoped","src/components/z-toggle-switch/index.tsx"],"sourcesContent":[":host {\n position: relative;\n display: inline-flex;\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\nlabel {\n display: flex;\n flex-direction: row;\n align-items: center;\n cursor: pointer;\n}\n\nlabel.disabled {\n cursor: default;\n}\n\nlabel.right {\n flex-direction: row-reverse;\n}\n\nlabel > span:first-child {\n color: var(--color-default-text);\n letter-spacing: 0;\n}\n\nlabel.left > span:first-child {\n margin-right: var(--space-unit);\n}\n\nlabel.right > span:first-child {\n margin-left: var(--space-unit);\n}\n\nlabel > span.container {\n position: relative;\n top: 1px;\n left: 1px;\n display: flex;\n width: calc(var(--space-unit) * 4);\n height: 18px;\n align-items: center;\n background-color: var(--gray500);\n border-radius: var(--space-unit);\n color: var(--gray500);\n cursor: pointer;\n}\n\nlabel > span.container.disabled,\nlabel > span.container.checked.disabled {\n background-color: var(--color-disabled01);\n cursor: default;\n}\n\nlabel > span.container.checked.disabled > span.circle > z-icon {\n fill: var(--color-disabled01);\n}\n\nlabel > span.container.checked {\n background-color: var(--color-primary01);\n fill: var(--color-primary01);\n}\n\ninput:focus:focus-visible + label > span.container:not(.disabled) {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\ninput:focus:focus-visible + label > span.container.disabled {\n outline: none;\n}\n\nlabel > span.container:not(.disabled):hover {\n background-color: var(--color-hover-primary);\n fill: var(--color-hover-primary);\n}\n\nlabel > span.container > span.circle {\n position: absolute;\n top: 1px;\n left: 1px;\n display: flex;\n width: calc(var(--space-unit) * 2);\n height: calc(var(--space-unit) * 2);\n align-items: center;\n justify-content: center;\n margin: 0;\n background-color: var(--color-white);\n border-radius: 7px;\n box-shadow: var(--shadow-1);\n transition: transform 0.3s ease;\n}\n\nlabel > span.container.checked > span.circle {\n transform: translateX(calc(100% - 2px));\n}\n\ninput[type=\"checkbox\"] {\n position: absolute;\n z-index: -1;\n opacity: 0;\n pointer-events: none;\n}\n","import {Component, Event, EventEmitter, Host, Prop, h} from \"@stencil/core\";\nimport {LabelPosition} from \"../../beans\";\nimport {randomId} from \"../../utils/utils\";\n\n@Component({\n tag: \"z-toggle-switch\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZToggleSwitch {\n /** Disabled flag */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /** Label position */\n @Prop({reflect: true})\n labelPosition? = LabelPosition.LEFT;\n\n /** Checked state */\n @Prop({mutable: true})\n checked?: boolean = false;\n\n /** HTML id attribute to set to the internal checkbox */\n @Prop()\n htmlid = `toggle-switch-id-${randomId()}`;\n\n /** Toggle click event */\n @Event()\n toggleClick: EventEmitter;\n\n private emitToggleClick(): void {\n this.toggleClick.emit({\n id: this.htmlid,\n checked: this.checked,\n });\n }\n\n private handleClick(ev): void {\n if (this.disabled) {\n return;\n }\n\n this.checked = ev.target.checked;\n this.emitToggleClick();\n }\n\n render(): HTMLZToggleSwitchElement {\n return (\n <Host>\n <input\n id={this.htmlid}\n type=\"checkbox\"\n checked={this.checked}\n disabled={this.disabled}\n onChange={this.handleClick.bind(this)}\n />\n <label\n htmlFor={this.htmlid}\n class={{\n [this.labelPosition]: true,\n disabled: this.disabled,\n }}\n >\n <span>\n <slot />\n </span>\n <span\n class={{\n container: true,\n disabled: this.disabled,\n checked: this.checked,\n }}\n >\n <span class=\"circle\">\n {this.checked && (\n <z-icon\n width={12}\n height={12}\n name=\"checkmark\"\n ></z-icon>\n )}\n </span>\n </span>\n </label>\n </Host>\n );\n }\n}\n"],"mappings":"yJAAA,MAAMA,EAAY,05EAClB,MAAAC,EAAeD,E,MCSFE,EAAa,M,gFAGH,M,mBAIJC,EAAcC,K,aAIX,M,YAIX,oBAAoBC,K,CAMrB,eAAAC,GACNC,KAAKC,YAAYC,KAAK,CACpBC,GAAIH,KAAKI,OACTC,QAASL,KAAKK,S,CAIV,WAAAC,CAAYC,GAClB,GAAIP,KAAKQ,SAAU,CACjB,M,CAGFR,KAAKK,QAAUE,EAAGE,OAAOJ,QACzBL,KAAKD,iB,CAGP,MAAAW,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,SAAAE,IAAA,2CACEV,GAAIH,KAAKI,OACTU,KAAK,WACLT,QAASL,KAAKK,QACdG,SAAUR,KAAKQ,SACfO,SAAUf,KAAKM,YAAYU,KAAKhB,QAElCW,EAAA,SAAAE,IAAA,2CACEI,QAASjB,KAAKI,OACdc,MAAO,CACL,CAAClB,KAAKmB,eAAgB,KACtBX,SAAUR,KAAKQ,WAGjBG,EAAA,QAAAE,IAAA,4CACEF,EAAA,QAAAE,IAAA,8CAEFF,EAAA,QAAAE,IAAA,2CACEK,MAAO,CACLE,UAAW,KACXZ,SAAUR,KAAKQ,SACfH,QAASL,KAAKK,UAGhBM,EAAA,QAAAE,IAAA,2CAAMK,MAAM,UACTlB,KAAKK,SACJM,EAAA,UAAAE,IAAA,2CACEQ,MAAO,GACPC,OAAQ,GACRC,KAAK,iB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"mappings":"","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as a,a as n,g as o}from"./p-75c4a726.js";import{I as s}from"./p-86618221.js";const e="z-pagination{--z-pagination--page-button-width:64px;--z-pagination--pages-container-max-width:100%;--z-pagination-background-color:var(--color-background);--z-pagination-background-color-hover:var(--color-surface01);display:flex;max-width:100%;flex-flow:column wrap;font-family:var(--font-family-sans);font-weight:var(--font-rg);gap:calc(var(--space-unit) * 2) calc(var(--space-unit) * 4)}z-pagination,z-pagination *{box-sizing:border-box}z-pagination button{height:100%}z-pagination z-icon{fill:var(--color-primary01-icon)}z-pagination *:disabled z-icon{fill:var(--color-disabled03)}z-pagination .page-label{margin-right:calc(var(--space-unit) * 3);color:var(--color-default-text)}z-pagination .pagination-bar{display:flex;max-width:100%;height:48px;align-items:center}z-pagination .pagination-bar button{display:flex;align-items:center;justify-content:center;border:none;margin:0;background-color:var(--z-pagination-background-color);color:var(--color-primary01);cursor:pointer;font-family:inherit;font-weight:inherit;transition:background-color 0.15s ease-out,\n color 0.15s ease-out,\n border-bottom-color 0.15s ease-out,\n font-size 0.15s ease-in-out,\n font-weight 0.15s ease-in-out}z-pagination .pagination-bar button:focus-visible{background-color:var(--color-surface01);outline:none}z-pagination .pagination-bar .pagination-button{padding:calc(var(--space-unit) * 2);font-weight:var(--font-sb);text-transform:uppercase;white-space:nowrap}z-pagination .pagination-bar .navigation-button{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 1.5)}z-pagination .pagination-bar .pagination-button:disabled,z-pagination .pagination-bar .navigation-button:disabled{color:var(--color-disabled03);cursor:default;fill:var(--color-disabled03);pointer-events:none}z-pagination .pagination-bar .page-button,z-pagination .pagination-bar .ellipsis-button{width:var(--z-pagination--page-button-width)}z-pagination .pages-container{position:relative;display:inline-flex;max-width:100%;height:100%;overflow-x:auto;scroll-behavior:smooth;scroll-snap-align:center;scrollbar-width:none}z-pagination .pages-container::-webkit-scrollbar{display:none}z-pagination .pages-chunk{display:flex;scroll-snap-align:center}z-pagination .pagination-bar .page-button{padding-top:var(--border-size-large) solid transparent;border-bottom:var(--border-size-large) solid transparent;font-size:var(--font-size-2);font-weight:var(--font-sb)}z-pagination .pagination-bar .page-button[data-current]{border-bottom-color:var(--color-primary01);font-size:var(--font-size-7)}z-pagination .go-to-page{display:flex;flex-direction:column}z-pagination .go-to-page .inputs{display:flex;column-gap:var(--space-unit)}z-pagination .go-to-page .inputs z-input{width:calc(var(--space-unit) * 11)}z-pagination .go-to-page .inputs z-input input,z-pagination .mobile-go-to-page z-input input{padding:0 calc(var(--space-unit) * 1.5) !important;appearance:none}z-pagination .mobile-go-to-page{display:flex;height:100%;flex:1 auto;align-items:center;justify-content:center;background-color:var(--color-surface02)}z-pagination .mobile-go-to-page z-input{width:var(--z-pagination--page-button-width);margin-right:var(--space-unit)}z-pagination .mobile-go-to-page z-input input{text-align:center}z-pagination .mobile-go-to-page z-input input::-webkit-outer-spin-button,z-pagination .mobile-go-to-page z-input input::-webkit-inner-spin-button{appearance:none}z-pagination .mobile-go-to-page>span{font-size:var(--font-size-2)}@media (hover: hover){z-pagination .pagination-bar button:hover{background-color:var(--z-pagination-background-color-hover)}z-pagination .pagination-bar .page-button:hover{border-bottom-color:var(--color-hover-primary);color:var(--color-hover-primary)}}@media (min-width: 768px){z-pagination{--z-pagination--page-button-width:88px;flex-direction:row;align-items:flex-end}z-pagination .pages-container{max-width:var(--z-pagination--pages-container-max-width)}}";const r=e;const l=class{constructor(a){t(this,a);this.pageChanged=i(this,"pageChanged",7);this.label=undefined;this.navArrows=true;this.totalPages=undefined;this.skip=0;this.edges=false;this.split=undefined;this.visiblePages=undefined;this.currentPage=1;this.goToPage=undefined;this._visiblePages=this.visiblePages;this.isMobile=false;this.goToPageValue=null}setPagesContainerWidth(){if(!this._visiblePages||this.split){this.host.style.setProperty("--z-pagination--pages-container-max-width","100%");return}const t=window.getComputedStyle(this.host);const i=t.getPropertyValue("--z-pagination--page-button-width");this.host.style.setProperty("--z-pagination--pages-container-max-width",`calc(${i} * ${this._visiblePages})`)}setVisiblePages(){this._visiblePages=Math.min(this.visiblePages||this.totalPages,this.totalPages)}onPageChanged(){this.pageChanged.emit(this.currentPage);this.scrollToPage()}onSplitChanged(){if(this.split){this.edges=false}}onResize(){this.setMobile()}setMobile(){const t="screen and (max-width: 767px)";this.isMobile=window.matchMedia(t).matches}getPagesChunks(){const t=Array.from({length:this.totalPages},((t,i)=>i+1));const i=[];const a=Math.ceil(t.length/this._visiblePages);for(let n=0;n<a;n++){i.push(t.slice(n*this._visiblePages,(n+1)*this._visiblePages))}return i}scrollToPage(){var t,i;const a=this.host.querySelector(".pages-container");const n=this.host.querySelector(`[data-page="${this.currentPage}"]`);const o=this.host.querySelector(".navigation-button");if(!n||!a){return}const s=a.getBoundingClientRect().width;const e=n.getBoundingClientRect().width;const r=(i=(t=o===null||o===void 0?void 0:o.getBoundingClientRect())===null||t===void 0?void 0:t.width)!==null&&i!==void 0?i:0;a.scrollLeft=this.currentPage*e-r-s/2}selectPage(t){this.currentPage=Math.min(Math.max(t,1),this.totalPages)}renderPage(t){return a("button",{class:"page-button",type:"button","aria-current":this.currentPage===t?"page":"false",title:`Vai alla pagina ${t}`,"data-page":t,"data-current":this.currentPage===t,onClick:()=>this.selectPage(t)},t)}renderEllipsisButton(t){return a("button",{class:"ellipsis-button",type:"button",title:`Vai alla pagina ${t}`,onClick:()=>this.selectPage(t)},"…")}renderPages(){const t=this.getPagesChunks();if(t.length<=0){return}return t.map((t=>a("div",{class:"pages-chunk"},t.map((t=>this.renderPage(t))))))}renderSplitPages(){if(this.totalPages<=this.split*2+5){return Array.from({length:this.totalPages},((t,i)=>this.renderPage(i+1)))}if(this.currentPage<=this.split*2+2){return[...Array.from({length:this.split*2+3},((t,i)=>this.renderPage(i+1))),this.renderEllipsisButton(this.split*2+4),this.renderPage(this.totalPages)]}if(this.currentPage>this.split*2+2&&this.currentPage<this.totalPages-this.split*2-1){return[this.renderPage(1),this.renderEllipsisButton(this.currentPage-this.split-1),...Array.from({length:this.split*2+1},((t,i)=>this.renderPage(this.currentPage-this.split+i))),this.renderEllipsisButton(this.currentPage+this.split+1),this.renderPage(this.totalPages)]}return[this.renderPage(1),this.renderEllipsisButton(this.totalPages-this.split*2-3),...Array.from({length:this.split*2+3},((t,i)=>this.renderPage(this.totalPages-this.split*2-2+i)))]}renderBackButton(){return a("button",{class:"navigation-button",type:"button",title:"Vai alla pagina precedente",disabled:this.currentPage===1,onClick:()=>this.selectPage(this.currentPage-1)},a("z-icon",{name:"chevron-left"}))}renderForwardButton(){return a("button",{class:"navigation-button",type:"button",title:"Vai alla prossima pagina",disabled:this.currentPage===this.totalPages,onClick:()=>this.selectPage(this.currentPage+1)},a("z-icon",{name:"chevron-right"}))}renderMobile(){const t=this.getPagesChunks();return[this.label&&a("span",{class:"page-label body-1-sb"},this.label),a("div",{class:"pagination-bar"},this.renderBackButton(),!this.goToPage&&a("div",{class:"pages-container",role:"navigation",tabIndex:-1},t.length>0&&t.map((t=>a("div",{class:"pages-chunk"},t.map((t=>this.renderPage(t))))))),this.goToPage&&a("form",{class:"mobile-go-to-page",onSubmit:t=>{t.preventDefault();this.selectPage(this.goToPageValue)}},a("z-input",{class:"go-to-page-input",type:s.NUMBER,min:1,max:this.totalPages,message:false,onInput:t=>{this.goToPageValue=t.target.value},placeholder:this.currentPage.toString(),hasclearicon:false}),a("span",null,`/${this.totalPages}`)),this.renderForwardButton())]}componentDidLoad(){this.setVisiblePages()}componentDidRender(){if(this.split){this.edges=false}this.setPagesContainerWidth();this.setMobile();this.scrollToPage()}render(){if(this.isMobile){return a(n,null,this.renderMobile())}return a(n,null,a("div",{class:"pagination-bar"},this.label&&a("span",{class:"page-label body-1-sb"},this.label),this.edges&&a("button",{class:"pagination-button",type:"button",title:"Vai alla pagina 1",disabled:this.currentPage===1,onClick:()=>this.selectPage(1)},"Pagina 1"),this.skip<this.totalPages&&this.skip>1&&a("button",{class:"pagination-button",type:"button",title:`Vai alla pagina ${this.currentPage-this.skip}`,disabled:this.currentPage<=this.skip,onClick:()=>this.selectPage(this.currentPage-this.skip)},"-",this.skip),this.navArrows&&this.renderBackButton(),a("div",{class:"pages-container",role:"navigation",tabIndex:-1},this.split?this.renderSplitPages():this.renderPages()),this.navArrows&&this.renderForwardButton(),this.skip<this.totalPages&&this.skip>1&&a("button",{class:"pagination-button",type:"button",title:`Vai alla pagina ${this.currentPage+this.skip}`,disabled:this.currentPage>this.totalPages-this.skip,onClick:()=>this.selectPage(this.currentPage+this.skip)},"+",this.skip),this.edges&&a("button",{class:"pagination-button",type:"button",title:`Vai alla pagina ${this.totalPages}`,disabled:this.currentPage===this.totalPages,onClick:()=>this.selectPage(this.totalPages)},"Pagina ",this.totalPages)),this.goToPage&&a("div",{class:"go-to-page"},a("span",{class:"z-label body-5-sb"},"Vai a pagina:"),a("div",{class:"inputs"},a("z-input",{class:"go-to-page-input",type:s.NUMBER,min:1,max:this.totalPages,message:false,placeholder:"2",hasclearicon:false,onInput:t=>{this.goToPageValue=t.target.value},onKeyDown:t=>t.key==="Enter"&&this.selectPage(this.goToPageValue)}),a("z-button",{disabled:!this.goToPageValue,title:"Vai alla pagina inserita",onClick:()=>this.selectPage(this.goToPageValue)},"vai"))))}get host(){return o(this)}static get watchers(){return{_visiblePages:["setPagesContainerWidth"],visiblePages:["setVisiblePages"],currentPage:["onPageChanged"],split:["onSplitChanged"]}}};l.style=r;export{l as z_pagination};
|
|
2
|
-
//# sourceMappingURL=p-41891d34.entry.js.map
|