@zanichelli/albe-web-components 6.6.2 → 6.6.4
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/LICENSE +21 -21
- package/dist/cjs/{breakpoints-776c8868.js → breakpoints-88c4fd6c.js} +1 -1
- package/dist/cjs/{icons-720194b9.js → icons-9e555ff7.js} +746 -746
- package/dist/cjs/index-e3299e0a.js +10 -6
- package/dist/cjs/{index-6a738538.js → index-fa110f37.js} +308 -308
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-a905de7a.js → utils-600bad93.js} +87 -87
- package/dist/cjs/{utils-f48efb50.js → utils-8bc9056f.js} +75 -75
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +8 -8
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +42 -42
- package/dist/cjs/z-app-header_2.cjs.entry.js +137 -137
- package/dist/cjs/z-app-switcher.cjs.entry.js +18 -18
- package/dist/cjs/z-aria-alert.cjs.entry.js +10 -10
- package/dist/cjs/z-avatar.cjs.entry.js +33 -33
- package/dist/cjs/z-body_2.cjs.entry.js +28 -28
- package/dist/cjs/z-button-sort.cjs.entry.js +42 -42
- package/dist/cjs/z-button.cjs.entry.js +32 -32
- package/dist/cjs/z-card.cjs.entry.js +55 -55
- package/dist/cjs/z-carousel.cjs.entry.js +135 -135
- package/dist/cjs/z-chip.cjs.entry.js +26 -26
- package/dist/cjs/z-combobox.cjs.entry.js +186 -186
- package/dist/cjs/z-contextual-menu.cjs.entry.js +35 -35
- package/dist/cjs/z-cover-hero.cjs.entry.js +29 -29
- package/dist/cjs/z-date-picker.cjs.entry.js +164 -164
- package/dist/cjs/z-divider.cjs.entry.js +15 -15
- package/dist/cjs/z-dragdrop-area_3.cjs.entry.js +57 -57
- package/dist/cjs/z-file-upload.cjs.entry.js +174 -174
- package/dist/cjs/z-file.cjs.entry.js +37 -37
- package/dist/cjs/z-ghost-loading.cjs.entry.js +9 -9
- package/dist/cjs/z-info-box.cjs.entry.js +14 -14
- package/dist/cjs/z-info-reveal.cjs.entry.js +54 -54
- package/dist/cjs/z-input_2.cjs.entry.js +237 -237
- package/dist/cjs/z-link.cjs.entry.js +63 -63
- package/dist/cjs/z-list_3.cjs.entry.js +240 -240
- package/dist/cjs/z-logo.cjs.entry.js +15 -15
- package/dist/cjs/z-menu-section.cjs.entry.js +35 -35
- package/dist/cjs/z-menu.cjs.entry.js +96 -96
- package/dist/cjs/z-messages-pocket.cjs.entry.js +36 -36
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +52 -52
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +25 -25
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +8 -8
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +46 -46
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +12 -12
- package/dist/cjs/z-myz-card-info.cjs.entry.js +118 -118
- package/dist/cjs/z-myz-card-list.cjs.entry.js +27 -27
- package/dist/cjs/z-myz-card_4.cjs.entry.js +82 -82
- package/dist/cjs/z-myz-list-item.cjs.entry.js +26 -26
- package/dist/cjs/z-myz-list.cjs.entry.js +24 -24
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +60 -60
- package/dist/cjs/z-navigation-tab.cjs.entry.js +62 -62
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +115 -115
- package/dist/cjs/z-notification.cjs.entry.js +30 -30
- package/dist/cjs/z-offcanvas.cjs.entry.js +55 -55
- package/dist/cjs/z-otp.cjs.entry.js +30 -30
- package/dist/cjs/z-pagination.cjs.entry.js +219 -219
- package/dist/cjs/z-panel-elem.cjs.entry.js +19 -19
- package/dist/cjs/z-pocket-message.cjs.entry.js +8 -8
- package/dist/cjs/z-pocket_3.cjs.entry.js +102 -102
- package/dist/cjs/z-popover.cjs.entry.js +316 -309
- package/dist/cjs/z-range-picker.cjs.entry.js +331 -331
- package/dist/cjs/z-searchbar.cjs.entry.js +225 -0
- package/dist/cjs/z-section-title.cjs.entry.js +22 -22
- package/dist/cjs/z-select.cjs.entry.js +273 -273
- package/dist/cjs/z-skip-to-content.cjs.entry.js +55 -55
- package/dist/cjs/z-slideshow.cjs.entry.js +118 -118
- package/dist/cjs/z-stepper-item.cjs.entry.js +11 -11
- package/dist/cjs/z-stepper.cjs.entry.js +8 -8
- package/dist/cjs/z-table-body.cjs.entry.js +13 -13
- package/dist/cjs/z-table-cell.cjs.entry.js +25 -25
- package/dist/cjs/z-table-empty-box.cjs.entry.js +21 -21
- package/dist/cjs/z-table-expanded-row.cjs.entry.js +8 -8
- package/dist/cjs/z-table-footer.cjs.entry.js +12 -12
- package/dist/cjs/z-table-head.cjs.entry.js +12 -12
- package/dist/cjs/z-table-header-row.cjs.entry.js +11 -11
- package/dist/cjs/z-table-header.cjs.entry.js +71 -71
- package/dist/cjs/z-table-row.cjs.entry.js +32 -32
- package/dist/cjs/z-table-sticky-footer.cjs.entry.js +8 -8
- package/dist/cjs/z-table.cjs.entry.js +69 -69
- package/dist/cjs/z-tag.cjs.entry.js +11 -11
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +45 -45
- package/dist/cjs/z-toast-notification.cjs.entry.js +187 -187
- package/dist/cjs/z-toggle-button.cjs.entry.js +23 -23
- package/dist/cjs/z-toggle-switch.cjs.entry.js +40 -40
- package/dist/cjs/z-tooltip.cjs.entry.js +20 -20
- package/dist/cjs/z-visually-hidden.cjs.entry.js +8 -8
- package/dist/collection/beans/index.js +309 -309
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/buttons/z-button/index.js +241 -241
- package/dist/collection/components/buttons/z-button/styles.css +149 -149
- package/dist/collection/components/buttons/z-button-sort/index.js +220 -220
- package/dist/collection/components/buttons/z-button-sort/styles.css +101 -101
- package/dist/collection/components/buttons/z-chip/index.js +133 -133
- package/dist/collection/components/buttons/z-chip/styles.css +131 -131
- package/dist/collection/components/buttons/z-toggle-button/index.js +126 -126
- package/dist/collection/components/buttons/z-toggle-button/styles.css +62 -62
- package/dist/collection/components/buttons/z-toggle-switch/index.js +144 -144
- package/dist/collection/components/buttons/z-toggle-switch/styles.css +104 -104
- package/dist/collection/components/date-picker/styles.css +436 -436
- package/dist/collection/components/date-picker/utils.js +76 -76
- package/dist/collection/components/date-picker/z-date-picker/index.js +295 -295
- package/dist/collection/components/date-picker/z-range-picker/index.js +499 -499
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js +53 -53
- package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +51 -51
- package/dist/collection/components/file-upload/z-file/index.js +131 -131
- package/dist/collection/components/file-upload/z-file/styles.css +23 -23
- package/dist/collection/components/file-upload/z-file-upload/index.js +363 -363
- package/dist/collection/components/file-upload/z-file-upload/styles.css +84 -84
- package/dist/collection/components/icons/icons.js +747 -747
- package/dist/collection/components/icons/z-icon/index.js +114 -114
- package/dist/collection/components/icons/z-icon/styles.css +14 -14
- package/dist/collection/components/index.js +8 -8
- package/dist/collection/components/indicators/z-stepper/index.js +21 -21
- package/dist/collection/components/indicators/z-stepper/styles.css +19 -19
- package/dist/collection/components/indicators/z-stepper-item/index.js +93 -93
- package/dist/collection/components/indicators/z-stepper-item/styles.css +114 -114
- package/dist/collection/components/inputs/z-combobox/index.js +525 -525
- package/dist/collection/components/inputs/z-combobox/styles.css +142 -142
- package/dist/collection/components/inputs/z-input/index.js +731 -731
- package/dist/collection/components/inputs/z-input/styles.css +327 -327
- package/dist/collection/components/inputs/z-input-message/index.js +68 -68
- package/dist/collection/components/inputs/z-input-message/styles.css +33 -33
- package/dist/collection/components/inputs/z-searchbar/index.js +506 -0
- package/dist/collection/components/inputs/z-searchbar/styles.css +182 -0
- package/dist/collection/components/inputs/z-select/index.js +633 -633
- package/dist/collection/components/inputs/z-select/styles.css +88 -88
- package/dist/collection/components/list/z-list/index.js +91 -91
- package/dist/collection/components/list/z-list/styles.css +6 -6
- package/dist/collection/components/list/z-list-element/index.js +508 -508
- package/dist/collection/components/list/z-list-element/styles.css +121 -121
- package/dist/collection/components/list/z-list-group/index.js +175 -175
- package/dist/collection/components/list/z-list-group/styles.css +21 -21
- package/dist/collection/components/list/z-toast-notification-list/index.js +105 -105
- package/dist/collection/components/list/z-toast-notification-list/styles.css +100 -100
- package/dist/collection/components/logo/z-logo/index.js +131 -131
- package/dist/collection/components/logo/z-logo/styles.css +29 -29
- package/dist/collection/components/modal/z-modal/index.js +156 -156
- package/dist/collection/components/modal/z-modal/styles.css +179 -179
- package/dist/collection/components/navigation/tabs/navigation-tab.css +136 -136
- package/dist/collection/components/navigation/tabs/z-navigation-tab/index.js +242 -242
- package/dist/collection/components/navigation/tabs/z-navigation-tab-link/index.js +264 -264
- package/dist/collection/components/navigation/tabs/z-navigation-tabs/index.js +200 -200
- package/dist/collection/components/navigation/tabs/z-navigation-tabs/styles.css +104 -104
- package/dist/collection/components/navigation/z-app-header/index.js +306 -306
- package/dist/collection/components/navigation/z-app-header/styles.css +420 -420
- package/dist/collection/components/navigation/z-app-switcher/index.js +79 -79
- package/dist/collection/components/navigation/z-app-switcher/styles.css +23 -23
- package/dist/collection/components/navigation/z-link/index.js +317 -317
- package/dist/collection/components/navigation/z-link/styles.css +167 -167
- package/dist/collection/components/navigation/z-menu/index.js +225 -225
- package/dist/collection/components/navigation/z-menu/styles.css +146 -146
- package/dist/collection/components/navigation/z-menu-section/index.js +116 -116
- package/dist/collection/components/navigation/z-menu-section/styles.css +91 -91
- package/dist/collection/components/notification/z-info-box/index.js +85 -85
- package/dist/collection/components/notification/z-info-box/styles.css +23 -23
- package/dist/collection/components/notification/z-notification/index.js +195 -195
- package/dist/collection/components/notification/z-notification/styles.css +114 -114
- package/dist/collection/components/notification/z-toast-notification/index.js +399 -399
- package/dist/collection/components/notification/z-toast-notification/styles.css +254 -254
- package/dist/collection/components/notification/z-tooltip/index.js +133 -133
- package/dist/collection/components/notification/z-tooltip/styles.css +16 -16
- package/dist/collection/components/panel/z-panel-elem/index.js +193 -193
- package/dist/collection/components/panel/z-panel-elem/styles.css +39 -39
- package/dist/collection/components/typography/z-body/index.js +68 -68
- package/dist/collection/components/typography/z-heading/index.js +68 -68
- package/dist/collection/components/typography/z-typography/index.js +91 -91
- package/dist/collection/components/typography/z-typography/styles.css +65 -65
- package/dist/collection/components/z-anchor-navigation/index.js +95 -95
- package/dist/collection/components/z-anchor-navigation/styles.css +129 -129
- package/dist/collection/components/z-aria-alert/index.js +39 -39
- package/dist/collection/components/z-avatar/index.js +142 -142
- package/dist/collection/components/z-avatar/styles.css +32 -32
- package/dist/collection/components/z-card/index.js +177 -177
- package/dist/collection/components/z-card/styles.css +206 -206
- package/dist/collection/components/z-carousel/index.js +300 -300
- package/dist/collection/components/z-carousel/styles.css +129 -129
- package/dist/collection/components/z-contextual-menu/index.js +126 -126
- package/dist/collection/components/z-contextual-menu/styles.css +60 -60
- package/dist/collection/components/z-cover-hero/index.js +102 -102
- package/dist/collection/components/z-cover-hero/styles.css +77 -77
- package/dist/collection/components/z-divider/index.js +95 -95
- package/dist/collection/components/z-divider/styles.css +37 -37
- package/dist/collection/components/z-ghost-loading/index.js +18 -18
- package/dist/collection/components/z-ghost-loading/styles.css +34 -34
- package/dist/collection/components/z-info-reveal/index.js +147 -147
- package/dist/collection/components/z-info-reveal/styles.css +103 -103
- package/dist/collection/components/z-offcanvas/index.js +158 -158
- package/dist/collection/components/z-offcanvas/styles.css +186 -186
- package/dist/collection/components/z-pagination/index.js +435 -435
- package/dist/collection/components/z-pagination/styles.css +199 -199
- package/dist/collection/components/z-popover/index.js +512 -504
- package/dist/collection/components/z-popover/styles.css +147 -147
- package/dist/collection/components/z-section-title/index.js +88 -88
- package/dist/collection/components/z-section-title/styles.css +44 -44
- package/dist/collection/components/z-skip-to-content/index.js +139 -139
- package/dist/collection/components/z-skip-to-content/styles.css +80 -80
- package/dist/collection/components/z-table/z-table/index.js +352 -352
- package/dist/collection/components/z-table/z-table/styles.css +115 -115
- package/dist/collection/components/z-table/z-table-body/index.js +23 -23
- package/dist/collection/components/z-table/z-table-body/styles.css +9 -9
- package/dist/collection/components/z-table/z-table-cell/index.js +86 -86
- package/dist/collection/components/z-table/z-table-cell/styles.css +58 -58
- package/dist/collection/components/z-table/z-table-empty-box/index.js +72 -72
- package/dist/collection/components/z-table/z-table-empty-box/styles.css +38 -38
- package/dist/collection/components/z-table/z-table-expanded-row/index.js +39 -39
- package/dist/collection/components/z-table/z-table-expanded-row/styles.css +9 -9
- package/dist/collection/components/z-table/z-table-footer/index.js +22 -22
- package/dist/collection/components/z-table/z-table-footer/styles.css +5 -5
- package/dist/collection/components/z-table/z-table-head/index.js +22 -22
- package/dist/collection/components/z-table/z-table-head/styles.css +5 -5
- package/dist/collection/components/z-table/z-table-header/index.js +238 -238
- package/dist/collection/components/z-table/z-table-header/styles.css +71 -71
- package/dist/collection/components/z-table/z-table-header-row/index.js +41 -41
- package/dist/collection/components/z-table/z-table-header-row/styles.css +13 -13
- package/dist/collection/components/z-table/z-table-row/index.js +92 -92
- package/dist/collection/components/z-table/z-table-row/styles.css +45 -45
- package/dist/collection/components/z-table/z-table-sticky-footer/index.js +21 -21
- package/dist/collection/components/z-table/z-table-sticky-footer/styles.css +11 -11
- package/dist/collection/components/z-tag/index.js +65 -65
- package/dist/collection/components/z-tag/styles.css +46 -46
- package/dist/collection/components/z-visually-hidden/index.js +18 -18
- package/dist/collection/components/z-visually-hidden/styles.css +12 -12
- package/dist/collection/constants/breakpoints.js +3 -3
- package/dist/collection/constants/icons.js +6 -6
- package/dist/collection/index.js +7 -7
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +129 -129
- package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +44 -44
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +151 -151
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/styles.css +62 -62
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +22 -22
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/styles.css +13 -13
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +93 -93
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/styles.css +11 -11
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +177 -177
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +72 -72
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +207 -207
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +182 -182
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +22 -22
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/styles.css +20 -20
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +109 -109
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +47 -47
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +81 -81
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +69 -69
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +199 -199
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +93 -93
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +60 -60
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/styles.css +41 -41
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +78 -78
- package/dist/collection/snowflakes/myz/list/z-myz-list/styles.css +4 -4
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +192 -192
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +47 -47
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +120 -120
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/styles.css +102 -102
- package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +191 -191
- package/dist/collection/snowflakes/myz/pocket/z-pocket/styles.css +44 -44
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +84 -84
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/styles.css +41 -41
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +93 -93
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/styles.css +27 -27
- package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.js +22 -22
- package/dist/collection/snowflakes/myz/pocket/z-pocket-message/styles.css +44 -44
- package/dist/collection/snowflakes/myz/z-alert/index.js +47 -47
- package/dist/collection/snowflakes/myz/z-alert/styles.css +28 -28
- package/dist/collection/snowflakes/myz/z-otp/index.js +120 -120
- package/dist/collection/snowflakes/myz/z-otp/styles.css +47 -47
- package/dist/collection/snowflakes/myz/z-slideshow/index.js +180 -180
- package/dist/collection/snowflakes/myz/z-slideshow/styles.css +127 -127
- package/dist/collection/utils/storybook-utils.js +51 -51
- package/dist/collection/utils/utils.js +106 -106
- package/dist/esm/{breakpoints-14432d05.js → breakpoints-c386984e.js} +1 -1
- package/dist/esm/{icons-345d7772.js → icons-85e529a3.js} +746 -746
- package/dist/esm/{index-825aebda.js → index-968a240f.js} +308 -308
- package/dist/esm/index-a2ca4b97.js +10 -6
- package/dist/esm/index.js +5 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{utils-49435e79.js → utils-151f0ab4.js} +75 -75
- package/dist/esm/{utils-16c71210.js → utils-6cf7efe2.js} +87 -87
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-alert.entry.js +8 -8
- package/dist/esm/z-anchor-navigation.entry.js +42 -42
- package/dist/esm/z-app-header_2.entry.js +137 -137
- package/dist/esm/z-app-switcher.entry.js +18 -18
- package/dist/esm/z-aria-alert.entry.js +10 -10
- package/dist/esm/z-avatar.entry.js +33 -33
- package/dist/esm/z-body_2.entry.js +28 -28
- package/dist/esm/z-button-sort.entry.js +42 -42
- package/dist/esm/z-button.entry.js +32 -32
- package/dist/esm/z-card.entry.js +55 -55
- package/dist/esm/z-carousel.entry.js +135 -135
- package/dist/esm/z-chip.entry.js +26 -26
- package/dist/esm/z-combobox.entry.js +186 -186
- package/dist/esm/z-contextual-menu.entry.js +35 -35
- package/dist/esm/z-cover-hero.entry.js +29 -29
- package/dist/esm/z-date-picker.entry.js +164 -164
- package/dist/esm/z-divider.entry.js +15 -15
- package/dist/esm/z-dragdrop-area_3.entry.js +57 -57
- package/dist/esm/z-file-upload.entry.js +174 -174
- package/dist/esm/z-file.entry.js +37 -37
- package/dist/esm/z-ghost-loading.entry.js +9 -9
- package/dist/esm/z-info-box.entry.js +14 -14
- package/dist/esm/z-info-reveal.entry.js +54 -54
- package/dist/esm/z-input_2.entry.js +237 -237
- package/dist/esm/z-link.entry.js +63 -63
- package/dist/esm/z-list_3.entry.js +240 -240
- package/dist/esm/z-logo.entry.js +15 -15
- package/dist/esm/z-menu-section.entry.js +35 -35
- package/dist/esm/z-menu.entry.js +96 -96
- package/dist/esm/z-messages-pocket.entry.js +36 -36
- package/dist/esm/z-myz-card-alert.entry.js +52 -52
- package/dist/esm/z-myz-card-dictionary.entry.js +25 -25
- package/dist/esm/z-myz-card-footer-sections.entry.js +8 -8
- package/dist/esm/z-myz-card-footer.entry.js +46 -46
- package/dist/esm/z-myz-card-icon.entry.js +12 -12
- package/dist/esm/z-myz-card-info.entry.js +118 -118
- package/dist/esm/z-myz-card-list.entry.js +27 -27
- package/dist/esm/z-myz-card_4.entry.js +82 -82
- package/dist/esm/z-myz-list-item.entry.js +26 -26
- package/dist/esm/z-myz-list.entry.js +24 -24
- package/dist/esm/z-navigation-tab-link.entry.js +60 -60
- package/dist/esm/z-navigation-tab.entry.js +62 -62
- package/dist/esm/z-navigation-tabs.entry.js +115 -115
- package/dist/esm/z-notification.entry.js +30 -30
- package/dist/esm/z-offcanvas.entry.js +55 -55
- package/dist/esm/z-otp.entry.js +30 -30
- package/dist/esm/z-pagination.entry.js +219 -219
- package/dist/esm/z-panel-elem.entry.js +19 -19
- package/dist/esm/z-pocket-message.entry.js +8 -8
- package/dist/esm/z-pocket_3.entry.js +102 -102
- package/dist/esm/z-popover.entry.js +316 -309
- package/dist/esm/z-range-picker.entry.js +331 -331
- package/dist/esm/z-searchbar.entry.js +221 -0
- package/dist/esm/z-section-title.entry.js +22 -22
- package/dist/esm/z-select.entry.js +273 -273
- package/dist/esm/z-skip-to-content.entry.js +55 -55
- package/dist/esm/z-slideshow.entry.js +118 -118
- package/dist/esm/z-stepper-item.entry.js +11 -11
- package/dist/esm/z-stepper.entry.js +8 -8
- package/dist/esm/z-table-body.entry.js +13 -13
- package/dist/esm/z-table-cell.entry.js +25 -25
- package/dist/esm/z-table-empty-box.entry.js +21 -21
- package/dist/esm/z-table-expanded-row.entry.js +8 -8
- package/dist/esm/z-table-footer.entry.js +12 -12
- package/dist/esm/z-table-head.entry.js +12 -12
- package/dist/esm/z-table-header-row.entry.js +11 -11
- package/dist/esm/z-table-header.entry.js +71 -71
- package/dist/esm/z-table-row.entry.js +32 -32
- package/dist/esm/z-table-sticky-footer.entry.js +8 -8
- package/dist/esm/z-table.entry.js +69 -69
- package/dist/esm/z-tag.entry.js +11 -11
- package/dist/esm/z-toast-notification-list.entry.js +45 -45
- package/dist/esm/z-toast-notification.entry.js +187 -187
- package/dist/esm/z-toggle-button.entry.js +23 -23
- package/dist/esm/z-toggle-switch.entry.js +40 -40
- package/dist/esm/z-tooltip.entry.js +20 -20
- package/dist/esm/z-visually-hidden.entry.js +8 -8
- package/dist/types/beans/index.d.ts +366 -351
- package/dist/types/components/buttons/z-button/index.d.ts +29 -29
- package/dist/types/components/buttons/z-button-sort/index.d.ts +28 -28
- package/dist/types/components/buttons/z-chip/index.d.ts +18 -18
- package/dist/types/components/buttons/z-toggle-button/index.d.ts +15 -15
- package/dist/types/components/buttons/z-toggle-switch/index.d.ts +17 -17
- package/dist/types/components/date-picker/utils.d.ts +4 -4
- package/dist/types/components/date-picker/z-date-picker/index.d.ts +29 -29
- package/dist/types/components/date-picker/z-range-picker/index.d.ts +42 -42
- package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +9 -9
- package/dist/types/components/file-upload/z-file/index.d.ts +22 -22
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +52 -52
- package/dist/types/components/icons/icons.d.ts +1328 -1328
- package/dist/types/components/icons/z-icon/index.d.ts +14 -14
- package/dist/types/components/indicators/z-stepper/index.d.ts +6 -6
- package/dist/types/components/indicators/z-stepper-item/index.d.ts +19 -19
- package/dist/types/components/inputs/z-combobox/index.d.ts +67 -67
- package/dist/types/components/inputs/z-input/index.d.ts +84 -84
- package/dist/types/components/inputs/z-input-message/index.d.ts +9 -9
- package/dist/types/components/inputs/z-searchbar/index.d.ts +65 -0
- package/dist/types/components/inputs/z-select/index.d.ts +71 -71
- package/dist/types/components/list/z-list/index.d.ts +15 -15
- package/dist/types/components/list/z-list-element/index.d.ts +95 -95
- package/dist/types/components/list/z-list-group/index.d.ts +28 -28
- package/dist/types/components/list/z-toast-notification-list/index.d.ts +14 -14
- package/dist/types/components/logo/z-logo/index.d.ts +15 -15
- package/dist/types/components/modal/z-modal/index.d.ts +25 -25
- package/dist/types/components/navigation/tabs/z-navigation-tab/index.d.ts +52 -52
- package/dist/types/components/navigation/tabs/z-navigation-tab-link/index.d.ts +60 -60
- package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +70 -70
- package/dist/types/components/navigation/z-app-header/index.d.ts +113 -113
- package/dist/types/components/navigation/z-app-switcher/index.d.ts +12 -12
- package/dist/types/components/navigation/z-link/index.d.ts +40 -40
- package/dist/types/components/navigation/z-menu/index.d.ts +52 -52
- package/dist/types/components/navigation/z-menu-section/index.d.ts +25 -25
- package/dist/types/components/notification/z-info-box/index.d.ts +14 -14
- package/dist/types/components/notification/z-notification/index.d.ts +32 -32
- package/dist/types/components/notification/z-toast-notification/index.d.ts +56 -56
- package/dist/types/components/notification/z-tooltip/index.d.ts +26 -26
- package/dist/types/components/panel/z-panel-elem/index.d.ts +25 -25
- package/dist/types/components/typography/z-body/index.d.ts +9 -9
- package/dist/types/components/typography/z-heading/index.d.ts +9 -9
- package/dist/types/components/typography/z-typography/index.d.ts +11 -11
- package/dist/types/components/z-anchor-navigation/index.d.ts +39 -39
- package/dist/types/components/z-aria-alert/index.d.ts +6 -6
- package/dist/types/components/z-avatar/index.d.ts +16 -16
- package/dist/types/components/z-card/index.d.ts +35 -35
- package/dist/types/components/z-carousel/index.d.ts +63 -63
- package/dist/types/components/z-contextual-menu/index.d.ts +26 -26
- package/dist/types/components/z-cover-hero/index.d.ts +29 -29
- package/dist/types/components/z-divider/index.d.ts +10 -10
- package/dist/types/components/z-ghost-loading/index.d.ts +3 -3
- package/dist/types/components/z-info-reveal/index.d.ts +29 -29
- package/dist/types/components/z-offcanvas/index.d.ts +26 -26
- package/dist/types/components/z-pagination/index.d.ts +109 -109
- package/dist/types/components/z-popover/index.d.ts +68 -62
- package/dist/types/components/z-section-title/index.d.ts +25 -25
- package/dist/types/components/z-skip-to-content/index.d.ts +21 -21
- package/dist/types/components/z-table/z-table/index.d.ts +48 -48
- package/dist/types/components/z-table/z-table-body/index.d.ts +5 -5
- package/dist/types/components/z-table/z-table-cell/index.d.ts +12 -12
- package/dist/types/components/z-table/z-table-empty-box/index.d.ts +12 -12
- package/dist/types/components/z-table/z-table-expanded-row/index.d.ts +5 -5
- package/dist/types/components/z-table/z-table-footer/index.d.ts +5 -5
- package/dist/types/components/z-table/z-table-head/index.d.ts +5 -5
- package/dist/types/components/z-table/z-table-header/index.d.ts +29 -29
- package/dist/types/components/z-table/z-table-header-row/index.d.ts +6 -6
- package/dist/types/components/z-table/z-table-row/index.d.ts +13 -13
- package/dist/types/components/z-table/z-table-sticky-footer/index.d.ts +6 -6
- package/dist/types/components/z-tag/index.d.ts +13 -13
- package/dist/types/components/z-visually-hidden/index.d.ts +3 -3
- package/dist/types/components.d.ts +118 -1
- package/dist/types/constants/breakpoints.d.ts +3 -3
- package/dist/types/constants/icons.d.ts +6 -6
- package/dist/types/index.d.ts +7 -7
- package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +16 -16
- package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +19 -19
- package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +7 -7
- package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +12 -12
- package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +24 -24
- package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +32 -32
- package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +7 -7
- package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +19 -19
- package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +9 -9
- package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +36 -36
- package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +9 -9
- package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +11 -11
- package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +25 -25
- package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +16 -16
- package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +25 -25
- package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +12 -12
- package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +18 -18
- package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +7 -7
- package/dist/types/snowflakes/myz/z-alert/index.d.ts +9 -9
- package/dist/types/snowflakes/myz/z-otp/index.d.ts +17 -17
- package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +30 -30
- package/dist/types/utils/utils.d.ts +23 -23
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-33896a0b.entry.js → p-009c9f67.entry.js} +1 -1
- package/{www/build/p-7aa59e10.entry.js → dist/web-components-library/p-01f001fd.entry.js} +1 -1
- package/dist/web-components-library/{p-7c20a0f2.entry.js → p-07e18572.entry.js} +1 -1
- package/dist/web-components-library/{p-173eacdd.entry.js → p-0843b0e7.entry.js} +1 -1
- package/dist/web-components-library/{p-64632e22.entry.js → p-0fa4b50b.entry.js} +1 -1
- package/dist/web-components-library/{p-7c5e89ea.entry.js → p-1d66b265.entry.js} +1 -1
- package/dist/web-components-library/{p-77ccb171.entry.js → p-214b6cee.entry.js} +1 -1
- package/dist/web-components-library/{p-3c367ac9.entry.js → p-26033729.entry.js} +1 -1
- package/{www/build/p-b8485631.entry.js → dist/web-components-library/p-26f834e5.entry.js} +1 -1
- package/dist/web-components-library/{p-cbee517d.entry.js → p-2acd6a51.entry.js} +1 -1
- package/{www/build/p-c0b724ce.entry.js → dist/web-components-library/p-2d1b6c3c.entry.js} +1 -1
- package/dist/web-components-library/p-32509af7.entry.js +1 -0
- package/dist/web-components-library/{p-4d8df655.entry.js → p-33352f9e.entry.js} +1 -1
- package/dist/web-components-library/{p-15e6963b.entry.js → p-34c26207.entry.js} +1 -1
- package/dist/web-components-library/{p-23126023.entry.js → p-38a3cf3b.entry.js} +1 -1
- package/dist/web-components-library/{p-803e4fe1.entry.js → p-3a468aa9.entry.js} +1 -1
- package/dist/web-components-library/p-47251a0f.entry.js +1 -0
- package/dist/web-components-library/{p-81431678.entry.js → p-475ca461.entry.js} +1 -1
- package/dist/web-components-library/{p-331053f9.entry.js → p-51e308ca.entry.js} +1 -1
- package/dist/web-components-library/{p-8164ac17.entry.js → p-53065788.entry.js} +1 -1
- package/dist/web-components-library/{p-14a7e730.entry.js → p-5624a127.entry.js} +1 -1
- package/dist/web-components-library/{p-8a2446ef.entry.js → p-56d2b76d.entry.js} +1 -1
- package/dist/web-components-library/{p-75c3ebe5.entry.js → p-59cfee8d.entry.js} +1 -1
- package/dist/web-components-library/{p-2366372d.entry.js → p-5c62387a.entry.js} +1 -1
- package/dist/web-components-library/{p-0a25e1b5.entry.js → p-5dd9a2c6.entry.js} +1 -1
- package/{www/build/p-f237877c.entry.js → dist/web-components-library/p-6289c4bd.entry.js} +1 -1
- package/dist/web-components-library/{p-c0b9eebd.entry.js → p-67d6cfcb.entry.js} +1 -1
- package/dist/web-components-library/{p-4b1125a6.entry.js → p-6b1a5309.entry.js} +1 -1
- package/dist/web-components-library/{p-f909c6ba.entry.js → p-6c163539.entry.js} +1 -1
- package/dist/web-components-library/{p-5e40537a.entry.js → p-735bdfa3.entry.js} +1 -1
- package/dist/web-components-library/{p-7c35a21c.entry.js → p-7b3b99ee.entry.js} +1 -1
- package/{www/build/p-a73d64f5.entry.js → dist/web-components-library/p-7ea553e9.entry.js} +1 -1
- package/dist/web-components-library/{p-ebcf6b92.entry.js → p-8c105bd1.entry.js} +1 -1
- package/dist/web-components-library/p-8ebe4adf.js +1 -0
- package/dist/web-components-library/{p-7955f833.entry.js → p-91a74348.entry.js} +1 -1
- package/dist/web-components-library/{p-2af9d427.entry.js → p-93142fac.entry.js} +1 -1
- package/{www/build/p-94678cc3.entry.js → dist/web-components-library/p-95b8f109.entry.js} +1 -1
- package/dist/web-components-library/{p-d2f05124.entry.js → p-9a613586.entry.js} +1 -1
- package/dist/web-components-library/{p-0b324997.entry.js → p-9c28b8fc.entry.js} +1 -1
- package/dist/web-components-library/{p-56cc0fe2.entry.js → p-9c338aeb.entry.js} +1 -1
- package/dist/web-components-library/{p-25678da1.entry.js → p-9d57a84c.entry.js} +1 -1
- package/{www/build/p-861de919.entry.js → dist/web-components-library/p-a05ce0a6.entry.js} +1 -1
- package/dist/web-components-library/{p-09d66c4b.entry.js → p-a0e2715e.entry.js} +1 -1
- package/dist/web-components-library/{p-a123c813.js → p-a23e9115.js} +0 -0
- package/dist/web-components-library/{p-13b6c879.entry.js → p-a6c0f149.entry.js} +1 -1
- package/dist/web-components-library/{p-b5cb8682.entry.js → p-a82ea410.entry.js} +1 -1
- package/dist/web-components-library/{p-b3c399fa.entry.js → p-b33f5e6a.entry.js} +1 -1
- package/dist/web-components-library/{p-6e22217c.js → p-b3c29822.js} +1 -1
- package/{www/build/p-8de2f917.entry.js → dist/web-components-library/p-b6f36170.entry.js} +1 -1
- package/dist/web-components-library/{p-cde789ac.entry.js → p-ba28accb.entry.js} +1 -1
- package/dist/web-components-library/{p-edd7ba9e.entry.js → p-bdefe224.entry.js} +1 -1
- package/dist/web-components-library/{p-e5108bc0.entry.js → p-beba3e67.entry.js} +1 -1
- package/dist/web-components-library/{p-22eda39d.entry.js → p-d2127d84.entry.js} +1 -1
- package/dist/web-components-library/{p-e35d3552.js → p-d69e14fb.js} +0 -0
- package/dist/web-components-library/{p-bffbb373.entry.js → p-ede9fbf5.entry.js} +1 -1
- package/dist/web-components-library/{p-29d897a2.js → p-f425f188.js} +0 -0
- package/dist/web-components-library/web-components-library.css +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +106 -106
- package/react/components.d.ts +91 -90
- package/react/components.js +97 -96
- package/react/components.js.map +1 -1
- package/react/index.d.ts +1 -1
- package/react/index.js +13 -13
- package/react/react-component-lib/createComponent.d.ts +10 -10
- package/react/react-component-lib/createComponent.js +97 -97
- package/react/react-component-lib/createOverlayComponent.d.ts +21 -21
- package/react/react-component-lib/createOverlayComponent.js +115 -115
- package/react/react-component-lib/index.d.ts +2 -2
- package/react/react-component-lib/index.js +7 -7
- package/react/react-component-lib/interfaces.d.ts +29 -29
- package/react/react-component-lib/interfaces.js +2 -2
- package/react/react-component-lib/utils/attachProps.d.ts +12 -12
- package/react/react-component-lib/utils/attachProps.js +104 -104
- package/react/react-component-lib/utils/case.d.ts +2 -2
- package/react/react-component-lib/utils/case.js +11 -11
- package/react/react-component-lib/utils/dev.d.ts +2 -2
- package/react/react-component-lib/utils/dev.js +17 -17
- package/react/react-component-lib/utils/index.d.ts +10 -10
- package/react/react-component-lib/utils/index.js +53 -53
- package/readme.md +281 -281
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-33896a0b.entry.js → p-009c9f67.entry.js} +1 -1
- package/{dist/web-components-library/p-7aa59e10.entry.js → www/build/p-01f001fd.entry.js} +1 -1
- package/www/build/{p-7c20a0f2.entry.js → p-07e18572.entry.js} +1 -1
- package/www/build/{p-173eacdd.entry.js → p-0843b0e7.entry.js} +1 -1
- package/www/build/{p-64632e22.entry.js → p-0fa4b50b.entry.js} +1 -1
- package/www/build/{p-7c5e89ea.entry.js → p-1d66b265.entry.js} +1 -1
- package/www/build/{p-77ccb171.entry.js → p-214b6cee.entry.js} +1 -1
- package/www/build/{p-3c367ac9.entry.js → p-26033729.entry.js} +1 -1
- package/{dist/web-components-library/p-b8485631.entry.js → www/build/p-26f834e5.entry.js} +1 -1
- package/www/build/{p-cbee517d.entry.js → p-2acd6a51.entry.js} +1 -1
- package/{dist/web-components-library/p-c0b724ce.entry.js → www/build/p-2d1b6c3c.entry.js} +1 -1
- package/www/build/p-32509af7.entry.js +1 -0
- package/www/build/{p-4d8df655.entry.js → p-33352f9e.entry.js} +1 -1
- package/www/build/{p-15e6963b.entry.js → p-34c26207.entry.js} +1 -1
- package/www/build/{p-23126023.entry.js → p-38a3cf3b.entry.js} +1 -1
- package/www/build/{p-803e4fe1.entry.js → p-3a468aa9.entry.js} +1 -1
- package/www/build/p-47251a0f.entry.js +1 -0
- package/www/build/{p-81431678.entry.js → p-475ca461.entry.js} +1 -1
- package/www/build/{p-331053f9.entry.js → p-51e308ca.entry.js} +1 -1
- package/www/build/{p-8164ac17.entry.js → p-53065788.entry.js} +1 -1
- package/www/build/{p-14a7e730.entry.js → p-5624a127.entry.js} +1 -1
- package/www/build/{p-8a2446ef.entry.js → p-56d2b76d.entry.js} +1 -1
- package/www/build/{p-75c3ebe5.entry.js → p-59cfee8d.entry.js} +1 -1
- package/www/build/{p-2366372d.entry.js → p-5c62387a.entry.js} +1 -1
- package/www/build/{p-0a25e1b5.entry.js → p-5dd9a2c6.entry.js} +1 -1
- package/{dist/web-components-library/p-f237877c.entry.js → www/build/p-6289c4bd.entry.js} +1 -1
- package/www/build/{p-c0b9eebd.entry.js → p-67d6cfcb.entry.js} +1 -1
- package/www/build/{p-4b1125a6.entry.js → p-6b1a5309.entry.js} +1 -1
- package/www/build/{p-f909c6ba.entry.js → p-6c163539.entry.js} +1 -1
- package/www/build/{p-5e40537a.entry.js → p-735bdfa3.entry.js} +1 -1
- package/www/build/{p-7c35a21c.entry.js → p-7b3b99ee.entry.js} +1 -1
- package/{dist/web-components-library/p-a73d64f5.entry.js → www/build/p-7ea553e9.entry.js} +1 -1
- package/www/build/{p-ebcf6b92.entry.js → p-8c105bd1.entry.js} +1 -1
- package/www/build/p-8ebe4adf.js +1 -0
- package/www/build/{p-7955f833.entry.js → p-91a74348.entry.js} +1 -1
- package/www/build/{p-2af9d427.entry.js → p-93142fac.entry.js} +1 -1
- package/{dist/web-components-library/p-94678cc3.entry.js → www/build/p-95b8f109.entry.js} +1 -1
- package/www/build/{p-d2f05124.entry.js → p-9a613586.entry.js} +1 -1
- package/www/build/{p-0b324997.entry.js → p-9c28b8fc.entry.js} +1 -1
- package/www/build/{p-56cc0fe2.entry.js → p-9c338aeb.entry.js} +1 -1
- package/www/build/{p-25678da1.entry.js → p-9d57a84c.entry.js} +1 -1
- package/{dist/web-components-library/p-861de919.entry.js → www/build/p-a05ce0a6.entry.js} +1 -1
- package/www/build/{p-09d66c4b.entry.js → p-a0e2715e.entry.js} +1 -1
- package/www/build/{p-a123c813.js → p-a23e9115.js} +0 -0
- package/www/build/{p-13b6c879.entry.js → p-a6c0f149.entry.js} +1 -1
- package/www/build/{p-b5cb8682.entry.js → p-a82ea410.entry.js} +1 -1
- package/www/build/p-ada08699.js +1 -0
- package/www/build/{p-b3c399fa.entry.js → p-b33f5e6a.entry.js} +1 -1
- package/www/build/{p-6e22217c.js → p-b3c29822.js} +1 -1
- package/{dist/web-components-library/p-8de2f917.entry.js → www/build/p-b6f36170.entry.js} +1 -1
- package/www/build/{p-cde789ac.entry.js → p-ba28accb.entry.js} +1 -1
- package/www/build/{p-edd7ba9e.entry.js → p-bdefe224.entry.js} +1 -1
- package/www/build/{p-e5108bc0.entry.js → p-beba3e67.entry.js} +1 -1
- package/www/build/{p-22eda39d.entry.js → p-d2127d84.entry.js} +1 -1
- package/www/build/{p-e35d3552.js → p-d69e14fb.js} +0 -0
- package/www/build/{p-bffbb373.entry.js → p-ede9fbf5.entry.js} +1 -1
- package/www/build/{p-29d897a2.js → p-f425f188.js} +0 -0
- package/www/build/web-components-library.css +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/www/pages/file-upload.html +258 -258
- package/www/pages/notification.html +299 -299
- package/dist/web-components-library/p-bafa5bb6.entry.js +0 -1
- package/dist/web-components-library/p-be750145.js +0 -1
- package/www/build/p-2625fb69.js +0 -1
- package/www/build/p-bafa5bb6.entry.js +0 -1
- package/www/build/p-be750145.js +0 -1
|
@@ -1,248 +1,248 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-a2ca4b97.js';
|
|
2
|
-
import { j as LabelPosition, I as InputType } from './index-
|
|
3
|
-
import { r as randomId, b as boolean } from './utils-
|
|
4
|
-
import './breakpoints-
|
|
2
|
+
import { j as LabelPosition, I as InputType } from './index-968a240f.js';
|
|
3
|
+
import { r as randomId, b as boolean } from './utils-6cf7efe2.js';
|
|
4
|
+
import './breakpoints-c386984e.js';
|
|
5
5
|
|
|
6
6
|
const stylesCss$1 = ".sc-z-input-h{display:inline-block;width:inherit}input.sc-z-input::-ms-clear,input.sc-z-input::-ms-reveal{display:none}.sc-z-input-h input.sc-z-input::-ms-clear,.sc-z-input-h input.sc-z-input::-ms-reveal{display:none}input.sc-z-input,textarea.sc-z-input,.textarea-wrapper.sc-z-input{box-sizing:border-box;border:var(--border-size-small) solid var(--color-surface04);background:var(--color-input-field01);border-radius:var(--border-radius-small);color:var(--color-text01);fill:var(--color-icon02);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg);outline:none}input.sc-z-input:focus:focus-visible,.textarea-wrapper.sc-z-input:focus-within{box-shadow:var(--shadow-focus-primary)}input.sc-z-input:focus:focus-visible,textarea.sc-z-input:focus:focus-visible{color:var(--color-primary02)}.filled.sc-z-input{border-color:var(--color-surface05)}.input-success.sc-z-input{border-color:var(--color-success01);background:var(--color-success-inverse);fill:var(--color-success01)}.input-error.sc-z-input{border-color:var(--color-error01);background:var(--color-error-inverse);fill:var(--color-error01)}.input-warning.sc-z-input{border-color:var(--color-warning01);background:var(--color-warning-inverse);fill:var(--color-warning01)}input.sc-z-input:hover,.textarea-wrapper.sc-z-input:hover{outline:var(--border-size-medium) solid var(--color-surface04);outline-offset:-2px}input[readonly].sc-z-input,.readonly.sc-z-input{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) .textarea-wrapper.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) z-icon.sc-z-input{border-color:var(--color-disabled01);box-shadow:none;color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input:hover{border-width:var(--border-size-small)}input.sc-z-input::placeholder,textarea.sc-z-input::placeholder{color:var(--color-text05)}.sc-z-input::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input::placeholder{color:var(--color-text05)}.sc-z-input:placeholder{color:var(--color-text05)}label.input-label.sc-z-input{display:block;padding-bottom:var(--space-unit);color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);text-align:left;text-transform:uppercase}[disabled].sc-z-input-h:not([disabled=\"false\"]) label.input-label.sc-z-input{color:var(--color-disabled02)}.text-wrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1;fill:var(--color-icon02)}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);box-sizing:border-box;padding:0 calc(var(--space-unit) * 1.5);margin:0}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.sc-z-input,.text-wrapper.sc-z-input>div.sc-z-input>input.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 5.25)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 8)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input{position:absolute;z-index:2;top:50%;right:calc(var(--space-unit) * 1.5);display:flex;pointer-events:none;transform:translateY(-50%)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input{padding:0;border:0;background:none;color:inherit;font:inherit;pointer-events:initial}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input+button.icon-button.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.reset-icon.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.toggle-password-icon.sc-z-input{cursor:pointer}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill,.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:hover,.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:focus,.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:active{background:var(--color-white) !important;background-clip:text !important;-webkit-transition-delay:99999s !important}.textarea-wrapper.sc-z-input{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input{width:100%;min-height:132px;padding:0;border:none;margin:0;resize:none}.radio-wrapper.sc-z-input,.checkbox-wrapper.sc-z-input{position:relative;display:inline-flex;flex-direction:row;align-items:center;color:var(--color-text01);fill:var(--color-primary01);font-family:var(--font-family-sans)}.radio-wrapper.sc-z-input:hover,.checkbox-wrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:currentcolor}.radio-wrapper.sc-z-input>input.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input{position:absolute;z-index:-1;opacity:0;pointer-events:none}.radio-wrapper.sc-z-input .radio-label.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{display:inline-flex;align-items:center;margin:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1;text-transform:inherit}.radio-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkbox-label.sc-z-input{cursor:pointer}.radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{cursor:pointer;fill:inherit}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input{flex-direction:row}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input{flex-direction:row-reverse}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}.radio-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkbox-label.sc-z-input>z-icon.sc-z-input{border-radius:var(--border-radius-small);box-shadow:var(--shadow-focus-primary)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input{color:var(--color-disabled02)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input>z-icon.sc-z-input{cursor:default;fill:var(--color-disabled01)}";
|
|
7
7
|
|
|
8
|
-
const ZInput = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.inputChange = createEvent(this, "inputChange", 7);
|
|
12
|
-
this.startTyping = createEvent(this, "startTyping", 7);
|
|
13
|
-
this.stopTyping = createEvent(this, "stopTyping", 7);
|
|
14
|
-
this.inputCheck = createEvent(this, "inputCheck", 7);
|
|
15
|
-
/** the id of the input element */
|
|
16
|
-
this.htmlid = `id-${randomId()}`;
|
|
17
|
-
/** the input aria-label */
|
|
18
|
-
this.ariaLabel = "";
|
|
19
|
-
/** the input is disabled */
|
|
20
|
-
this.disabled = false;
|
|
21
|
-
/** the input is readonly */
|
|
22
|
-
this.readonly = false;
|
|
23
|
-
/** the input is required (optional): available for text, password, number, email, textarea, checkbox */
|
|
24
|
-
this.required = false;
|
|
25
|
-
/** checked: available for checkbox, radio */
|
|
26
|
-
this.checked = false;
|
|
27
|
-
/** input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed */
|
|
28
|
-
this.message = true;
|
|
29
|
-
/** the input label position: available for checkbox, radio */
|
|
30
|
-
this.labelPosition = LabelPosition.RIGHT;
|
|
31
|
-
/** render clear icon when typing (optional): available for text */
|
|
32
|
-
this.hasclearicon = true;
|
|
33
|
-
this.isTyping = false;
|
|
34
|
-
this.passwordHidden = true;
|
|
35
|
-
this.typingtimeout = 300;
|
|
36
|
-
}
|
|
37
|
-
inputCheckListener(e) {
|
|
38
|
-
const data = e.detail;
|
|
39
|
-
switch (this.type) {
|
|
40
|
-
case InputType.RADIO:
|
|
41
|
-
if (data.type === InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {
|
|
42
|
-
this.checked = false;
|
|
43
|
-
}
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
/** get checked status */
|
|
48
|
-
async isChecked() {
|
|
49
|
-
switch (this.type) {
|
|
50
|
-
case InputType.CHECKBOX:
|
|
51
|
-
case InputType.RADIO:
|
|
52
|
-
return this.checked;
|
|
53
|
-
default:
|
|
54
|
-
console.warn("`isChecked` method is only available for type `checkbox` and `radio`");
|
|
55
|
-
return false;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
emitInputChange(value) {
|
|
59
|
-
if (!this.isTyping) {
|
|
60
|
-
this.emitStartTyping();
|
|
61
|
-
}
|
|
62
|
-
let validity;
|
|
63
|
-
if (this.type === InputType.TEXTAREA) {
|
|
64
|
-
validity = this.getValidity("textarea");
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
validity = this.getValidity("input");
|
|
68
|
-
}
|
|
69
|
-
this.value = value;
|
|
70
|
-
this.inputChange.emit({ value, validity });
|
|
71
|
-
clearTimeout(this.timer);
|
|
72
|
-
this.timer = setTimeout(() => {
|
|
73
|
-
this.emitStopTyping(this.value, validity);
|
|
74
|
-
}, this.typingtimeout);
|
|
75
|
-
}
|
|
76
|
-
emitStartTyping() {
|
|
77
|
-
this.isTyping = true;
|
|
78
|
-
this.startTyping.emit();
|
|
79
|
-
}
|
|
80
|
-
emitStopTyping(value, validity) {
|
|
81
|
-
this.isTyping = false;
|
|
82
|
-
this.stopTyping.emit({
|
|
83
|
-
value: value,
|
|
84
|
-
validity: validity,
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
emitInputCheck(checked) {
|
|
88
|
-
this.inputCheck.emit({
|
|
89
|
-
id: this.htmlid,
|
|
90
|
-
checked: checked,
|
|
91
|
-
type: this.type,
|
|
92
|
-
name: this.name,
|
|
93
|
-
value: this.value,
|
|
94
|
-
validity: this.getValidity("input"),
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
getValidity(type) {
|
|
98
|
-
const input = this.hostElement.querySelector(type);
|
|
99
|
-
return input.validity;
|
|
100
|
-
}
|
|
101
|
-
/* START text/password/email/number */
|
|
102
|
-
getTextAttributes() {
|
|
103
|
-
return {
|
|
104
|
-
id: this.htmlid,
|
|
105
|
-
name: this.name,
|
|
106
|
-
placeholder: this.placeholder,
|
|
107
|
-
value: this.value,
|
|
108
|
-
disabled: this.disabled,
|
|
109
|
-
readonly: this.readonly,
|
|
110
|
-
required: this.required,
|
|
111
|
-
title: this.htmltitle,
|
|
112
|
-
class: {
|
|
113
|
-
[`input-${this.status}`]: !!this.status,
|
|
114
|
-
filled: !!this.value,
|
|
115
|
-
},
|
|
116
|
-
autocomplete: this.autocomplete,
|
|
117
|
-
onInput: (e) => this.emitInputChange(e.target.value),
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
getNumberAttributes(type) {
|
|
121
|
-
if (type != InputType.NUMBER) {
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
return {
|
|
125
|
-
min: this.min,
|
|
126
|
-
max: this.max,
|
|
127
|
-
step: this.step,
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
getPatternAttribute(type) {
|
|
131
|
-
if (type != InputType.PASSWORD &&
|
|
132
|
-
type != InputType.TEXT &&
|
|
133
|
-
type != InputType.TEL &&
|
|
134
|
-
type != InputType.SEARCH &&
|
|
135
|
-
type != InputType.URL &&
|
|
136
|
-
type != InputType.EMAIL) {
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
return {
|
|
140
|
-
pattern: this.pattern,
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
renderInputText(type = InputType.TEXT) {
|
|
144
|
-
const attr = Object.assign(Object.assign(Object.assign({}, this.getTextAttributes()), this.getNumberAttributes(type)), this.getPatternAttribute(type));
|
|
145
|
-
if (this.icon || type === InputType.PASSWORD) {
|
|
146
|
-
Object.assign(attr.class, { "has-icon": true });
|
|
147
|
-
}
|
|
148
|
-
if (this.hasclearicon && type != InputType.NUMBER) {
|
|
149
|
-
Object.assign(attr.class, { "has-clear-icon": true });
|
|
150
|
-
}
|
|
151
|
-
return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type === InputType.PASSWORD && !this.passwordHidden ? InputType.TEXT : type }, attr, { "aria-label": this.ariaLabel || this.label })), this.renderIcons()), this.renderMessage()));
|
|
152
|
-
}
|
|
153
|
-
renderLabel() {
|
|
154
|
-
if (!this.label) {
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
return (h("label", { class: "input-label body-5-sb", id: `${this.htmlid}_label`, htmlFor: this.htmlid, "aria-label": this.label }, this.label));
|
|
158
|
-
}
|
|
159
|
-
renderIcons() {
|
|
160
|
-
return (h("span", { class: "icons-wrapper" }, this.renderResetIcon(), this.renderIcon()));
|
|
161
|
-
}
|
|
162
|
-
renderIcon() {
|
|
163
|
-
if (this.type === InputType.PASSWORD) {
|
|
164
|
-
return this.renderShowHidePassword();
|
|
165
|
-
}
|
|
166
|
-
if (!this.icon) {
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
return (h("button", { type: "button", class: "icon-button input-icon", tabIndex: -1 }, h("z-icon", { name: this.icon })));
|
|
170
|
-
}
|
|
171
|
-
renderResetIcon() {
|
|
172
|
-
if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == InputType.NUMBER) {
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
return (h("button", { type: "button", class: "icon-button reset-icon", "aria-label": "cancella il contenuto dell'input", onClick: () => this.emitInputChange("") }, h("z-icon", { name: "multiply" })));
|
|
176
|
-
}
|
|
177
|
-
renderShowHidePassword() {
|
|
178
|
-
return (h("button", { type: "button", class: "icon-button toggle-password-icon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled" })));
|
|
179
|
-
}
|
|
180
|
-
renderMessage() {
|
|
181
|
-
if (boolean(this.message) === false) {
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status }));
|
|
185
|
-
}
|
|
186
|
-
/* END text/password/email/number */
|
|
187
|
-
/* START textarea */
|
|
188
|
-
renderTextarea() {
|
|
189
|
-
const attributes = this.getTextAttributes();
|
|
190
|
-
return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", { class: Object.assign(Object.assign({}, attributes.class), { "textarea-wrapper": true, "readonly": attributes.readonly }) }, h("textarea", Object.assign({}, attributes, { "aria-label": this.ariaLabel || this.label }))), this.renderMessage()));
|
|
191
|
-
}
|
|
192
|
-
/* END textarea */
|
|
193
|
-
handleCheck(ev) {
|
|
194
|
-
this.checked = ev.target.checked;
|
|
195
|
-
this.emitInputCheck(this.checked);
|
|
196
|
-
}
|
|
197
|
-
/* START checkbox */
|
|
198
|
-
renderCheckbox() {
|
|
199
|
-
return (h("div", { class: "checkbox-wrapper" }, h("input", { id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }), h("label", { htmlFor: this.htmlid, class: {
|
|
200
|
-
"checkbox-label": true,
|
|
201
|
-
"after": this.labelPosition === LabelPosition.RIGHT,
|
|
202
|
-
"before": this.labelPosition === LabelPosition.LEFT,
|
|
203
|
-
} }, h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
|
|
204
|
-
}
|
|
205
|
-
/* END checkbox */
|
|
206
|
-
/* START radio */
|
|
207
|
-
renderRadio() {
|
|
208
|
-
return (h("div", { class: "radio-wrapper" }, h("input", { id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }), h("label", { htmlFor: this.htmlid, class: {
|
|
209
|
-
"radio-label": true,
|
|
210
|
-
"after": this.labelPosition === LabelPosition.RIGHT,
|
|
211
|
-
"before": this.labelPosition === LabelPosition.LEFT,
|
|
212
|
-
} }, h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
|
|
213
|
-
}
|
|
214
|
-
/* END radio */
|
|
215
|
-
render() {
|
|
216
|
-
switch (this.type) {
|
|
217
|
-
case InputType.TEXTAREA:
|
|
218
|
-
return this.renderTextarea();
|
|
219
|
-
case InputType.CHECKBOX:
|
|
220
|
-
return this.renderCheckbox();
|
|
221
|
-
case InputType.RADIO:
|
|
222
|
-
return this.renderRadio();
|
|
223
|
-
default:
|
|
224
|
-
return this.renderInputText(this.type);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
get hostElement() { return getElement(this); }
|
|
228
|
-
};
|
|
8
|
+
const ZInput = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.inputChange = createEvent(this, "inputChange", 7);
|
|
12
|
+
this.startTyping = createEvent(this, "startTyping", 7);
|
|
13
|
+
this.stopTyping = createEvent(this, "stopTyping", 7);
|
|
14
|
+
this.inputCheck = createEvent(this, "inputCheck", 7);
|
|
15
|
+
/** the id of the input element */
|
|
16
|
+
this.htmlid = `id-${randomId()}`;
|
|
17
|
+
/** the input aria-label */
|
|
18
|
+
this.ariaLabel = "";
|
|
19
|
+
/** the input is disabled */
|
|
20
|
+
this.disabled = false;
|
|
21
|
+
/** the input is readonly */
|
|
22
|
+
this.readonly = false;
|
|
23
|
+
/** the input is required (optional): available for text, password, number, email, textarea, checkbox */
|
|
24
|
+
this.required = false;
|
|
25
|
+
/** checked: available for checkbox, radio */
|
|
26
|
+
this.checked = false;
|
|
27
|
+
/** input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed */
|
|
28
|
+
this.message = true;
|
|
29
|
+
/** the input label position: available for checkbox, radio */
|
|
30
|
+
this.labelPosition = LabelPosition.RIGHT;
|
|
31
|
+
/** render clear icon when typing (optional): available for text */
|
|
32
|
+
this.hasclearicon = true;
|
|
33
|
+
this.isTyping = false;
|
|
34
|
+
this.passwordHidden = true;
|
|
35
|
+
this.typingtimeout = 300;
|
|
36
|
+
}
|
|
37
|
+
inputCheckListener(e) {
|
|
38
|
+
const data = e.detail;
|
|
39
|
+
switch (this.type) {
|
|
40
|
+
case InputType.RADIO:
|
|
41
|
+
if (data.type === InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {
|
|
42
|
+
this.checked = false;
|
|
43
|
+
}
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/** get checked status */
|
|
48
|
+
async isChecked() {
|
|
49
|
+
switch (this.type) {
|
|
50
|
+
case InputType.CHECKBOX:
|
|
51
|
+
case InputType.RADIO:
|
|
52
|
+
return this.checked;
|
|
53
|
+
default:
|
|
54
|
+
console.warn("`isChecked` method is only available for type `checkbox` and `radio`");
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
emitInputChange(value) {
|
|
59
|
+
if (!this.isTyping) {
|
|
60
|
+
this.emitStartTyping();
|
|
61
|
+
}
|
|
62
|
+
let validity;
|
|
63
|
+
if (this.type === InputType.TEXTAREA) {
|
|
64
|
+
validity = this.getValidity("textarea");
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
validity = this.getValidity("input");
|
|
68
|
+
}
|
|
69
|
+
this.value = value;
|
|
70
|
+
this.inputChange.emit({ value, validity });
|
|
71
|
+
clearTimeout(this.timer);
|
|
72
|
+
this.timer = setTimeout(() => {
|
|
73
|
+
this.emitStopTyping(this.value, validity);
|
|
74
|
+
}, this.typingtimeout);
|
|
75
|
+
}
|
|
76
|
+
emitStartTyping() {
|
|
77
|
+
this.isTyping = true;
|
|
78
|
+
this.startTyping.emit();
|
|
79
|
+
}
|
|
80
|
+
emitStopTyping(value, validity) {
|
|
81
|
+
this.isTyping = false;
|
|
82
|
+
this.stopTyping.emit({
|
|
83
|
+
value: value,
|
|
84
|
+
validity: validity,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
emitInputCheck(checked) {
|
|
88
|
+
this.inputCheck.emit({
|
|
89
|
+
id: this.htmlid,
|
|
90
|
+
checked: checked,
|
|
91
|
+
type: this.type,
|
|
92
|
+
name: this.name,
|
|
93
|
+
value: this.value,
|
|
94
|
+
validity: this.getValidity("input"),
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
getValidity(type) {
|
|
98
|
+
const input = this.hostElement.querySelector(type);
|
|
99
|
+
return input.validity;
|
|
100
|
+
}
|
|
101
|
+
/* START text/password/email/number */
|
|
102
|
+
getTextAttributes() {
|
|
103
|
+
return {
|
|
104
|
+
id: this.htmlid,
|
|
105
|
+
name: this.name,
|
|
106
|
+
placeholder: this.placeholder,
|
|
107
|
+
value: this.value,
|
|
108
|
+
disabled: this.disabled,
|
|
109
|
+
readonly: this.readonly,
|
|
110
|
+
required: this.required,
|
|
111
|
+
title: this.htmltitle,
|
|
112
|
+
class: {
|
|
113
|
+
[`input-${this.status}`]: !!this.status,
|
|
114
|
+
filled: !!this.value,
|
|
115
|
+
},
|
|
116
|
+
autocomplete: this.autocomplete,
|
|
117
|
+
onInput: (e) => this.emitInputChange(e.target.value),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
getNumberAttributes(type) {
|
|
121
|
+
if (type != InputType.NUMBER) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
min: this.min,
|
|
126
|
+
max: this.max,
|
|
127
|
+
step: this.step,
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
getPatternAttribute(type) {
|
|
131
|
+
if (type != InputType.PASSWORD &&
|
|
132
|
+
type != InputType.TEXT &&
|
|
133
|
+
type != InputType.TEL &&
|
|
134
|
+
type != InputType.SEARCH &&
|
|
135
|
+
type != InputType.URL &&
|
|
136
|
+
type != InputType.EMAIL) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
return {
|
|
140
|
+
pattern: this.pattern,
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
renderInputText(type = InputType.TEXT) {
|
|
144
|
+
const attr = Object.assign(Object.assign(Object.assign({}, this.getTextAttributes()), this.getNumberAttributes(type)), this.getPatternAttribute(type));
|
|
145
|
+
if (this.icon || type === InputType.PASSWORD) {
|
|
146
|
+
Object.assign(attr.class, { "has-icon": true });
|
|
147
|
+
}
|
|
148
|
+
if (this.hasclearicon && type != InputType.NUMBER) {
|
|
149
|
+
Object.assign(attr.class, { "has-clear-icon": true });
|
|
150
|
+
}
|
|
151
|
+
return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type === InputType.PASSWORD && !this.passwordHidden ? InputType.TEXT : type }, attr, { "aria-label": this.ariaLabel || this.label })), this.renderIcons()), this.renderMessage()));
|
|
152
|
+
}
|
|
153
|
+
renderLabel() {
|
|
154
|
+
if (!this.label) {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
return (h("label", { class: "input-label body-5-sb", id: `${this.htmlid}_label`, htmlFor: this.htmlid, "aria-label": this.label }, this.label));
|
|
158
|
+
}
|
|
159
|
+
renderIcons() {
|
|
160
|
+
return (h("span", { class: "icons-wrapper" }, this.renderResetIcon(), this.renderIcon()));
|
|
161
|
+
}
|
|
162
|
+
renderIcon() {
|
|
163
|
+
if (this.type === InputType.PASSWORD) {
|
|
164
|
+
return this.renderShowHidePassword();
|
|
165
|
+
}
|
|
166
|
+
if (!this.icon) {
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
return (h("button", { type: "button", class: "icon-button input-icon", tabIndex: -1 }, h("z-icon", { name: this.icon })));
|
|
170
|
+
}
|
|
171
|
+
renderResetIcon() {
|
|
172
|
+
if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == InputType.NUMBER) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
return (h("button", { type: "button", class: "icon-button reset-icon", "aria-label": "cancella il contenuto dell'input", onClick: () => this.emitInputChange("") }, h("z-icon", { name: "multiply" })));
|
|
176
|
+
}
|
|
177
|
+
renderShowHidePassword() {
|
|
178
|
+
return (h("button", { type: "button", class: "icon-button toggle-password-icon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled" })));
|
|
179
|
+
}
|
|
180
|
+
renderMessage() {
|
|
181
|
+
if (boolean(this.message) === false) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status }));
|
|
185
|
+
}
|
|
186
|
+
/* END text/password/email/number */
|
|
187
|
+
/* START textarea */
|
|
188
|
+
renderTextarea() {
|
|
189
|
+
const attributes = this.getTextAttributes();
|
|
190
|
+
return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", { class: Object.assign(Object.assign({}, attributes.class), { "textarea-wrapper": true, "readonly": attributes.readonly }) }, h("textarea", Object.assign({}, attributes, { "aria-label": this.ariaLabel || this.label }))), this.renderMessage()));
|
|
191
|
+
}
|
|
192
|
+
/* END textarea */
|
|
193
|
+
handleCheck(ev) {
|
|
194
|
+
this.checked = ev.target.checked;
|
|
195
|
+
this.emitInputCheck(this.checked);
|
|
196
|
+
}
|
|
197
|
+
/* START checkbox */
|
|
198
|
+
renderCheckbox() {
|
|
199
|
+
return (h("div", { class: "checkbox-wrapper" }, h("input", { id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }), h("label", { htmlFor: this.htmlid, class: {
|
|
200
|
+
"checkbox-label": true,
|
|
201
|
+
"after": this.labelPosition === LabelPosition.RIGHT,
|
|
202
|
+
"before": this.labelPosition === LabelPosition.LEFT,
|
|
203
|
+
} }, h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
|
|
204
|
+
}
|
|
205
|
+
/* END checkbox */
|
|
206
|
+
/* START radio */
|
|
207
|
+
renderRadio() {
|
|
208
|
+
return (h("div", { class: "radio-wrapper" }, h("input", { id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }), h("label", { htmlFor: this.htmlid, class: {
|
|
209
|
+
"radio-label": true,
|
|
210
|
+
"after": this.labelPosition === LabelPosition.RIGHT,
|
|
211
|
+
"before": this.labelPosition === LabelPosition.LEFT,
|
|
212
|
+
} }, h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
|
|
213
|
+
}
|
|
214
|
+
/* END radio */
|
|
215
|
+
render() {
|
|
216
|
+
switch (this.type) {
|
|
217
|
+
case InputType.TEXTAREA:
|
|
218
|
+
return this.renderTextarea();
|
|
219
|
+
case InputType.CHECKBOX:
|
|
220
|
+
return this.renderCheckbox();
|
|
221
|
+
case InputType.RADIO:
|
|
222
|
+
return this.renderRadio();
|
|
223
|
+
default:
|
|
224
|
+
return this.renderInputText(this.type);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
get hostElement() { return getElement(this); }
|
|
228
|
+
};
|
|
229
229
|
ZInput.style = stylesCss$1;
|
|
230
230
|
|
|
231
231
|
const stylesCss = ":host{display:flex;min-height:calc(var(--space-unit) * 2.5);align-items:start;margin-top:var(--space-unit);color:var(--color-text05);fill:currentcolor;font-family:var(--font-family-sans);font-size:var(--font-size-2);letter-spacing:0.16px}:host([status=\"success\"]){color:var(--color-text-success)}:host([status=\"error\"]){color:var(--color-text-error)}:host([status=\"warning\"]){color:var(--color-warning02)}:host(:focus){outline:none}:host>z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);--z-icon-right-margin:var(--space-unit)}";
|
|
232
232
|
|
|
233
|
-
const ZInputMessage = class {
|
|
234
|
-
constructor(hostRef) {
|
|
235
|
-
registerInstance(this, hostRef);
|
|
236
|
-
this.statusIcons = {
|
|
237
|
-
success: "checkmark-circle",
|
|
238
|
-
error: "multiply-circled",
|
|
239
|
-
warning: "exclamation-circle",
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
render() {
|
|
243
|
-
return (h(Host, { role: "alert", "aria-label": this.message, tabindex: this.message ? 0 : -1 }, this.statusIcons[this.status] && this.message && h("z-icon", { name: this.statusIcons[this.status] }), h("span", { innerHTML: this.message })));
|
|
244
|
-
}
|
|
245
|
-
};
|
|
233
|
+
const ZInputMessage = class {
|
|
234
|
+
constructor(hostRef) {
|
|
235
|
+
registerInstance(this, hostRef);
|
|
236
|
+
this.statusIcons = {
|
|
237
|
+
success: "checkmark-circle",
|
|
238
|
+
error: "multiply-circled",
|
|
239
|
+
warning: "exclamation-circle",
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
render() {
|
|
243
|
+
return (h(Host, { role: "alert", "aria-label": this.message, tabindex: this.message ? 0 : -1 }, this.statusIcons[this.status] && this.message && h("z-icon", { name: this.statusIcons[this.status] }), h("span", { innerHTML: this.message })));
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
246
|
ZInputMessage.style = stylesCss;
|
|
247
247
|
|
|
248
248
|
export { ZInput as z_input, ZInputMessage as z_input_message };
|
package/dist/esm/z-link.entry.js
CHANGED
|
@@ -2,69 +2,69 @@ import { r as registerInstance, c as createEvent, h, g as getElement } from './i
|
|
|
2
2
|
|
|
3
3
|
const stylesCss = ":host{--font-size-link:inherit;--font-weight-link:inherit;font-family:var(--font-family-sans);font-size:var(--font-size-link);font-weight:var(--font-weight-link);line-height:inherit;outline:none}:host([big]){--font-size-link:16px;--font-weight-link:var(--font-sb)}a{display:inline-flex;align-items:center;padding:calc(var(--space-unit) * 0.5) 0;border-top:var(--border-size-medium) solid transparent;border-bottom:var(--border-size-medium) solid transparent;color:var(--color-link-primary);cursor:pointer;fill:var(--color-link-primary);text-decoration:none}a:hover,a:focus,a:active{text-decoration:underline}a.active{color:var(--color-active-link);fill:var(--color-active-link)}a:hover,a:focus{color:var(--color-hover-link);fill:var(--color-hover-link)}a:active{color:var(--color-pressed-link);fill:var(--color-pressed-link)}a:visited{color:var(--color-visited-link);fill:var(--color-visited-link)}a.disabled,a.inverse.disabled{color:var(--color-disabled03);cursor:default;fill:var(--color-disabled03);pointer-events:none}a.underline,a.underline:active,a.underline:hover,a.underline:visited,a.underline.disabled,a.underline.black,a.underline.white{text-decoration:underline}a.disabled,a.disabled:active,a.disabled:visited,a.disabled:hover{text-decoration:none}a.inverse{color:var(--color-inverse-link);fill:var(--color-inverse-link)}a.inverse.active{color:var(--color-inverse-active-link);fill:var(--color-inverse-active-link)}a.inverse:hover,a.inverse:focus{color:var(--color-inverse-hover-link);fill:var(--color-inverse-hover-link)}a.inverse:active{color:var(--color-inverse-pressed-link);fill:var(--color-inverse-pressed-link)}a.inverse:visited{color:var(--color-inverse-visited-link);fill:var(--color-inverse-visited-link)}a.black{color:var(--gray800);fill:var(--gray800);text-decoration:none}a.black:hover,a.black.active{color:var(--color-black);fill:var(--color-black)}a.black:visited{color:var(--gray800);fill:var(--gray800)}a.black:hover,a.black:focus,a.black:active{text-decoration:underline}a.black:active{color:var(--gray700);fill:var(--gray700)}a.white,a.white:active,a.white:hover,a.white.active{color:var(--bg-white);fill:var(--bg-white);text-decoration:none}a.white:visited{color:var(--bg-white);fill:var(--bg-white)}a.white:hover,a.white:focus,a.white:active{text-decoration:underline}a.white.disabled,a.black.disabled{color:var(--gray500);fill:var(--gray500)}a>z-icon:first-child{margin-right:var(--space-unit)}a>z-icon:last-child{margin-left:var(--space-unit)}";
|
|
4
4
|
|
|
5
|
-
const ZLink = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.zLinkClick = createEvent(this, "zLinkClick", 7);
|
|
9
|
-
/** link target (optional) */
|
|
10
|
-
this.target = "_self";
|
|
11
|
-
/** tabindex link attribute (optional) */
|
|
12
|
-
this.htmltabindex = 0;
|
|
13
|
-
/** disable link flag (optional) */
|
|
14
|
-
this.isdisabled = false;
|
|
15
|
-
/** active link flag (optional) */
|
|
16
|
-
this.isactive = false;
|
|
17
|
-
/** white variant flag (optional) */
|
|
18
|
-
this.iswhite = false;
|
|
19
|
-
/** link text variant (optional) */
|
|
20
|
-
this.textcolor = "primary";
|
|
21
|
-
/** big link version */
|
|
22
|
-
this.big = false;
|
|
23
|
-
/** link icon position (optional) */
|
|
24
|
-
this.iconposition = "left";
|
|
25
|
-
/** draw underline on text (optional) */
|
|
26
|
-
this.underline = false;
|
|
27
|
-
this.iconSize = 18;
|
|
28
|
-
this.emitZLinkClick = this.emitZLinkClick.bind(this);
|
|
29
|
-
this.emitZLinkInteraction = this.emitZLinkInteraction.bind(this);
|
|
30
|
-
}
|
|
31
|
-
componentWillLoad() {
|
|
32
|
-
if (this.iswhite) {
|
|
33
|
-
console.warn("z-link iswhite prop is deprecated and will be dropped in a next release, please use textcolor prop instead");
|
|
34
|
-
}
|
|
35
|
-
if (this.big) {
|
|
36
|
-
console.warn("z-link big prop is deprecated and will be dropped in a next release, please override --font-size-link and --font-weight-link variables instead");
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
emitZLinkClick(e, linkId) {
|
|
40
|
-
this.emitZLinkInteraction(e, linkId);
|
|
41
|
-
}
|
|
42
|
-
emitZLinkInteraction(e, linkId) {
|
|
43
|
-
this.zLinkClick.emit({ e, linkId });
|
|
44
|
-
}
|
|
45
|
-
componentDidLoad() {
|
|
46
|
-
if (this.icon) {
|
|
47
|
-
const height = parseFloat(window.getComputedStyle(this.hostElement).getPropertyValue("font-size"));
|
|
48
|
-
const currentSize = this.big ? 18 : Math.round(height * 1.125);
|
|
49
|
-
if (!Number.isNaN(currentSize) && this.iconSize !== currentSize) {
|
|
50
|
-
this.iconSize = currentSize;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
render() {
|
|
55
|
-
return (h("a", { id: this.htmlid, href: this.href ? this.href : null, class: {
|
|
56
|
-
disabled: this.isdisabled,
|
|
57
|
-
active: this.isactive,
|
|
58
|
-
white: this.iswhite,
|
|
59
|
-
[this.textcolor || ""]: true,
|
|
60
|
-
underline: this.underline,
|
|
61
|
-
}, target: this.target, role: this.href ? "link" : "button", tabindex: this.isdisabled ? -1 : this.htmltabindex, onClick: (e) => this.emitZLinkClick(e, this.htmlid) }, this.iconposition === "right" && h("slot", null), this.icon && (h("z-icon", { style: {
|
|
62
|
-
"--z-icon-width": `${this.iconSize}px`,
|
|
63
|
-
"--z-icon-height": `${this.iconSize}px`,
|
|
64
|
-
}, name: this.icon })), this.iconposition === "left" && h("slot", null)));
|
|
65
|
-
}
|
|
66
|
-
get hostElement() { return getElement(this); }
|
|
67
|
-
};
|
|
5
|
+
const ZLink = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.zLinkClick = createEvent(this, "zLinkClick", 7);
|
|
9
|
+
/** link target (optional) */
|
|
10
|
+
this.target = "_self";
|
|
11
|
+
/** tabindex link attribute (optional) */
|
|
12
|
+
this.htmltabindex = 0;
|
|
13
|
+
/** disable link flag (optional) */
|
|
14
|
+
this.isdisabled = false;
|
|
15
|
+
/** active link flag (optional) */
|
|
16
|
+
this.isactive = false;
|
|
17
|
+
/** white variant flag (optional) */
|
|
18
|
+
this.iswhite = false;
|
|
19
|
+
/** link text variant (optional) */
|
|
20
|
+
this.textcolor = "primary";
|
|
21
|
+
/** big link version */
|
|
22
|
+
this.big = false;
|
|
23
|
+
/** link icon position (optional) */
|
|
24
|
+
this.iconposition = "left";
|
|
25
|
+
/** draw underline on text (optional) */
|
|
26
|
+
this.underline = false;
|
|
27
|
+
this.iconSize = 18;
|
|
28
|
+
this.emitZLinkClick = this.emitZLinkClick.bind(this);
|
|
29
|
+
this.emitZLinkInteraction = this.emitZLinkInteraction.bind(this);
|
|
30
|
+
}
|
|
31
|
+
componentWillLoad() {
|
|
32
|
+
if (this.iswhite) {
|
|
33
|
+
console.warn("z-link iswhite prop is deprecated and will be dropped in a next release, please use textcolor prop instead");
|
|
34
|
+
}
|
|
35
|
+
if (this.big) {
|
|
36
|
+
console.warn("z-link big prop is deprecated and will be dropped in a next release, please override --font-size-link and --font-weight-link variables instead");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
emitZLinkClick(e, linkId) {
|
|
40
|
+
this.emitZLinkInteraction(e, linkId);
|
|
41
|
+
}
|
|
42
|
+
emitZLinkInteraction(e, linkId) {
|
|
43
|
+
this.zLinkClick.emit({ e, linkId });
|
|
44
|
+
}
|
|
45
|
+
componentDidLoad() {
|
|
46
|
+
if (this.icon) {
|
|
47
|
+
const height = parseFloat(window.getComputedStyle(this.hostElement).getPropertyValue("font-size"));
|
|
48
|
+
const currentSize = this.big ? 18 : Math.round(height * 1.125);
|
|
49
|
+
if (!Number.isNaN(currentSize) && this.iconSize !== currentSize) {
|
|
50
|
+
this.iconSize = currentSize;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
return (h("a", { id: this.htmlid, href: this.href ? this.href : null, class: {
|
|
56
|
+
disabled: this.isdisabled,
|
|
57
|
+
active: this.isactive,
|
|
58
|
+
white: this.iswhite,
|
|
59
|
+
[this.textcolor || ""]: true,
|
|
60
|
+
underline: this.underline,
|
|
61
|
+
}, target: this.target, role: this.href ? "link" : "button", tabindex: this.isdisabled ? -1 : this.htmltabindex, onClick: (e) => this.emitZLinkClick(e, this.htmlid) }, this.iconposition === "right" && h("slot", null), this.icon && (h("z-icon", { style: {
|
|
62
|
+
"--z-icon-width": `${this.iconSize}px`,
|
|
63
|
+
"--z-icon-height": `${this.iconSize}px`,
|
|
64
|
+
}, name: this.icon })), this.iconposition === "left" && h("slot", null)));
|
|
65
|
+
}
|
|
66
|
+
get hostElement() { return getElement(this); }
|
|
67
|
+
};
|
|
68
68
|
ZLink.style = stylesCss;
|
|
69
69
|
|
|
70
70
|
export { ZLink as z_link };
|