@zanichelli/albe-web-components 2.24.10 → 2.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1048 -0
- package/LICENSE +21 -21
- package/dist/cjs/{breakpoints-88c4fd6c.js → breakpoints-776c8868.js} +1 -1
- package/dist/cjs/{index-8f4b351d.js → index-8f7af00e.js} +248 -248
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-6d6841cc.js → utils-98538463.js} +63 -63
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/{z-alert_65.cjs.entry.js → z-alert_66.cjs.entry.js} +3419 -3388
- package/dist/cjs/z-app-header.cjs.entry.js +133 -133
- package/dist/cjs/z-candybar.cjs.entry.js +8 -8
- package/dist/cjs/z-cookiebar.cjs.entry.js +31 -31
- package/dist/cjs/z-heading.cjs.entry.js +8 -8
- package/dist/cjs/z-messages-pocket.cjs.entry.js +36 -36
- package/dist/cjs/z-modal-login.cjs.entry.js +71 -71
- 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-info.cjs.entry.js +109 -109
- package/dist/cjs/z-myz-topbar.cjs.entry.js +183 -183
- package/dist/cjs/z-navigation-tab.cjs.entry.js +34 -34
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +90 -90
- package/dist/cjs/z-otp.cjs.entry.js +30 -30
- 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-registro-table-footer.cjs.entry.js +12 -12
- package/dist/cjs/z-slideshow.cjs.entry.js +101 -101
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +45 -45
- package/dist/cjs/z-toast-notification.cjs.entry.js +190 -190
- package/dist/collection/beans/index.js +249 -249
- package/dist/collection/components/buttons/z-button/index.js +219 -219
- package/dist/collection/components/buttons/z-button/styles.css +231 -231
- package/dist/collection/components/buttons/z-button-filter/index.js +155 -155
- package/dist/collection/components/buttons/z-button-filter/styles.css +74 -74
- package/dist/collection/components/buttons/z-button-sort/index.js +216 -216
- package/dist/collection/components/buttons/z-button-sort/styles.css +101 -101
- package/dist/collection/components/buttons/z-chip/index.js +59 -59
- package/dist/collection/components/buttons/z-chip/styles.css +17 -17
- package/dist/collection/components/buttons/z-toggle-button/index.js +122 -122
- package/dist/collection/components/buttons/z-toggle-button/styles.css +62 -62
- package/dist/collection/components/footer/z-footer/index.js +144 -144
- package/dist/collection/components/footer/z-footer/styles.css +180 -180
- package/dist/collection/components/footer/z-footer-link/index.js +37 -37
- package/dist/collection/components/footer/z-footer-link/styles.css +33 -33
- package/dist/collection/components/footer/z-footer-section/index.js +51 -51
- package/dist/collection/components/footer/z-footer-section/styles.css +164 -164
- package/dist/collection/components/footer/z-footer-social/index.js +68 -68
- package/dist/collection/components/footer/z-footer-social/styles.css +23 -23
- package/dist/collection/components/icons/icons.js +435 -435
- package/dist/collection/components/icons/z-icon/index.js +110 -110
- package/dist/collection/components/icons/z-icon/styles.css +14 -14
- package/dist/collection/components/icons/z-icon-package/index.js +20 -20
- package/dist/collection/components/icons/z-icon-package/styles.css +16 -16
- package/dist/collection/components/indicators/z-stepper/index.js +17 -17
- 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 +115 -115
- package/dist/collection/components/inputs/z-combobox/index.js +480 -480
- package/dist/collection/components/inputs/z-combobox/styles.css +148 -148
- package/dist/collection/components/inputs/z-input/index.js +804 -804
- package/dist/collection/components/inputs/z-input/styles.css +304 -304
- package/dist/collection/components/inputs/z-input-label/index.js +72 -55
- package/dist/collection/components/inputs/z-input-label/styles.css +16 -16
- package/dist/collection/components/inputs/z-input-message/index.js +64 -64
- package/dist/collection/components/inputs/z-input-message/styles.css +33 -33
- package/dist/collection/components/inputs/z-select/index.js +628 -628
- package/dist/collection/components/inputs/z-select/styles.css +131 -131
- package/dist/collection/components/list/z-list/index.js +57 -57
- package/dist/collection/components/list/z-list/styles.css +7 -7
- package/dist/collection/components/list/z-list-element/index.js +439 -439
- package/dist/collection/components/list/z-list-element/styles.css +133 -133
- package/dist/collection/components/list/z-list-group/index.js +144 -144
- package/dist/collection/components/list/z-list-group/styles.css +22 -22
- package/dist/collection/components/list/z-toast-notification-list/index.js +97 -97
- package/dist/collection/components/list/z-toast-notification-list/styles.css +107 -107
- package/dist/collection/components/logo/z-logo/index.js +124 -124
- package/dist/collection/components/logo/z-logo/styles.css +18 -18
- package/dist/collection/components/modal/z-modal/index.js +160 -160
- package/dist/collection/components/modal/z-modal/styles.css +185 -185
- package/dist/collection/components/modal/z-modal-login/index.js +272 -272
- package/dist/collection/components/modal/z-modal-login/styles.css +159 -159
- package/dist/collection/components/navigation/z-app-header/index.js +267 -267
- package/dist/collection/components/navigation/z-app-header/styles.css +422 -422
- package/dist/collection/components/navigation/z-app-switcher/index.js +70 -70
- package/dist/collection/components/navigation/z-app-switcher/styles.css +35 -35
- package/dist/collection/components/navigation/z-app-topbar/index.js +134 -134
- package/dist/collection/components/navigation/z-app-topbar/styles.css +92 -96
- package/dist/collection/components/navigation/z-link/index.js +309 -309
- package/dist/collection/components/navigation/z-link/styles.css +160 -160
- package/dist/collection/components/navigation/z-menu/index.js +223 -223
- package/dist/collection/components/navigation/z-menu/styles.css +145 -145
- package/dist/collection/components/navigation/z-menu-dropdown/index.js +125 -125
- package/dist/collection/components/navigation/z-menu-dropdown/styles.css +146 -146
- package/dist/collection/components/navigation/z-menu-section/index.js +109 -109
- package/dist/collection/components/navigation/z-menu-section/styles.css +85 -85
- package/dist/collection/components/navigation/z-navigation-tab/index.js +151 -151
- package/dist/collection/components/navigation/z-navigation-tab/styles.css +113 -113
- package/dist/collection/components/navigation/z-navigation-tabs/index.js +179 -179
- package/dist/collection/components/navigation/z-navigation-tabs/styles.css +117 -117
- package/dist/collection/components/navigation/z-user-dropdown/index.js +236 -236
- package/dist/collection/components/navigation/z-user-dropdown/styles.css +182 -183
- package/dist/collection/components/notification/z-candybar/index.js +18 -18
- package/dist/collection/components/notification/z-candybar/styles.css +61 -61
- package/dist/collection/components/notification/z-cookiebar/index.js +111 -111
- package/dist/collection/components/notification/z-cookiebar/styles.css +109 -109
- package/dist/collection/components/notification/z-info-box/index.js +79 -79
- package/dist/collection/components/notification/z-info-box/styles.css +23 -23
- package/dist/collection/components/notification/z-notification/index.js +171 -171
- package/dist/collection/components/notification/z-notification/styles.css +93 -93
- package/dist/collection/components/notification/z-toast-notification/index.js +402 -402
- package/dist/collection/components/notification/z-toast-notification/styles.css +247 -247
- package/dist/collection/components/notification/z-tooltip/index.js +379 -379
- package/dist/collection/components/notification/z-tooltip/styles.css +128 -128
- package/dist/collection/components/pagination/z-pagination-bar/index.js +278 -278
- package/dist/collection/components/pagination/z-pagination-bar/styles.css +23 -23
- package/dist/collection/components/pagination/z-pagination-page/index.js +129 -129
- package/dist/collection/components/pagination/z-pagination-page/styles.css +57 -57
- 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 +66 -66
- package/dist/collection/components/typography/z-heading/index.js +66 -66
- package/dist/collection/components/typography/z-typography/index.js +84 -84
- package/dist/collection/components/typography/z-typography/styles.css +61 -61
- package/dist/collection/components/z-avatar/index.js +137 -137
- package/dist/collection/components/z-avatar/styles.css +35 -35
- package/dist/collection/components/z-card/index.js +153 -153
- package/dist/collection/components/z-card/styles.css +188 -188
- package/dist/collection/components/z-contextual-menu/index.js +122 -122
- package/dist/collection/components/z-contextual-menu/styles.css +45 -45
- package/dist/collection/components/z-divider/index.js +89 -89
- package/dist/collection/components/z-divider/styles.css +37 -37
- package/dist/collection/components/z-ghost-loading/index.js +14 -14
- package/dist/collection/components/z-ghost-loading/styles.css +34 -34
- package/dist/collection/components/z-popover/index.js +274 -274
- package/dist/collection/components/z-popover/styles.css +236 -236
- package/dist/collection/components/z-status-tag/index.js +125 -125
- package/dist/collection/components/z-status-tag/styles.css +133 -133
- package/dist/collection/constants/breakpoints.js +3 -3
- package/dist/collection/constants/icons.js +6 -6
- package/dist/collection/index.js +5 -5
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +119 -119
- package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +38 -38
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +148 -148
- 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 +20 -20
- 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 +87 -87
- 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 +85 -85
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +190 -190
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +137 -137
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +23 -23
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/styles.css +32 -32
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +101 -101
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +46 -46
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +57 -57
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +70 -70
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +213 -213
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +124 -124
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +53 -53
- 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 +70 -70
- 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 +188 -188
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +48 -48
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +121 -121
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/styles.css +106 -106
- package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +181 -181
- package/dist/collection/snowflakes/myz/pocket/z-pocket/styles.css +56 -56
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +77 -77
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/styles.css +49 -49
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +86 -86
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/styles.css +40 -40
- package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.js +23 -23
- package/dist/collection/snowflakes/myz/pocket/z-pocket-message/styles.css +53 -53
- package/dist/collection/snowflakes/myz/topbar/index.js +428 -428
- package/dist/collection/snowflakes/myz/topbar/styles.css +594 -594
- package/dist/collection/snowflakes/myz/z-alert/index.js +42 -42
- package/dist/collection/snowflakes/myz/z-alert/styles.css +28 -28
- package/dist/collection/snowflakes/myz/z-otp/index.js +114 -114
- package/dist/collection/snowflakes/myz/z-otp/styles.css +47 -47
- package/dist/collection/snowflakes/myz/z-slideshow/index.js +165 -165
- package/dist/collection/snowflakes/myz/z-slideshow/styles.css +128 -128
- package/dist/collection/snowflakes/registro-table/z-registro-table/index.js +360 -360
- package/dist/collection/snowflakes/registro-table/z-registro-table/styles.css +163 -163
- package/dist/collection/snowflakes/registro-table/z-registro-table-body/index.js +19 -19
- package/dist/collection/snowflakes/registro-table/z-registro-table-body/styles.css +9 -9
- package/dist/collection/snowflakes/registro-table/z-registro-table-cell/index.js +58 -58
- package/dist/collection/snowflakes/registro-table/z-registro-table-cell/styles.css +39 -39
- package/dist/collection/snowflakes/registro-table/z-registro-table-empty-box/index.js +64 -64
- package/dist/collection/snowflakes/registro-table/z-registro-table-empty-box/styles.css +24 -24
- package/dist/collection/snowflakes/registro-table/z-registro-table-expanded-row/index.js +36 -36
- package/dist/collection/snowflakes/registro-table/z-registro-table-expanded-row/styles.css +14 -14
- package/dist/collection/snowflakes/registro-table/z-registro-table-footer/index.js +18 -18
- package/dist/collection/snowflakes/registro-table/z-registro-table-footer/styles.css +5 -5
- package/dist/collection/snowflakes/registro-table/z-registro-table-head/index.js +18 -18
- package/dist/collection/snowflakes/registro-table/z-registro-table-head/styles.css +5 -5
- package/dist/collection/snowflakes/registro-table/z-registro-table-header/index.js +214 -213
- package/dist/collection/snowflakes/registro-table/z-registro-table-header/styles.css +67 -67
- package/dist/collection/snowflakes/registro-table/z-registro-table-header-row/index.js +37 -37
- package/dist/collection/snowflakes/registro-table/z-registro-table-header-row/styles.css +13 -13
- package/dist/collection/snowflakes/registro-table/z-registro-table-row/index.js +83 -83
- package/dist/collection/snowflakes/registro-table/z-registro-table-row/styles.css +54 -54
- package/dist/collection/snowflakes/registro-table/z-registro-table-sticky-footer/index.js +17 -17
- package/dist/collection/snowflakes/registro-table/z-registro-table-sticky-footer/styles.css +10 -10
- package/dist/collection/themes/index.story.js +18 -18
- package/dist/collection/utils/utils.js +82 -82
- package/dist/esm/{breakpoints-c386984e.js → breakpoints-14432d05.js} +1 -1
- package/dist/esm/{index-ac6e10aa.js → index-aab05c5f.js} +248 -248
- 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-4da869b8.js → utils-26d012eb.js} +63 -63
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/{z-alert_65.entry.js → z-alert_66.entry.js} +3419 -3389
- package/dist/esm/z-app-header.entry.js +133 -133
- package/dist/esm/z-candybar.entry.js +8 -8
- package/dist/esm/z-cookiebar.entry.js +31 -31
- package/dist/esm/z-heading.entry.js +8 -8
- package/dist/esm/z-messages-pocket.entry.js +36 -36
- package/dist/esm/z-modal-login.entry.js +71 -71
- 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-info.entry.js +109 -109
- package/dist/esm/z-myz-topbar.entry.js +183 -183
- package/dist/esm/z-navigation-tab.entry.js +34 -34
- package/dist/esm/z-navigation-tabs.entry.js +90 -90
- package/dist/esm/z-otp.entry.js +30 -30
- package/dist/esm/z-pocket-message.entry.js +8 -8
- package/dist/esm/z-pocket_3.entry.js +102 -102
- package/dist/esm/z-registro-table-footer.entry.js +12 -12
- package/dist/esm/z-slideshow.entry.js +101 -101
- package/dist/esm/z-toast-notification-list.entry.js +45 -45
- package/dist/esm/z-toast-notification.entry.js +190 -190
- package/dist/types/beans/index.d.ts +334 -334
- package/dist/types/components/buttons/z-button/index.d.ts +29 -29
- package/dist/types/components/buttons/z-button-filter/index.d.ts +22 -22
- package/dist/types/components/buttons/z-button-sort/index.d.ts +28 -28
- package/dist/types/components/buttons/z-chip/index.d.ts +6 -6
- package/dist/types/components/buttons/z-toggle-button/index.d.ts +16 -16
- package/dist/types/components/footer/z-footer/index.d.ts +25 -25
- package/dist/types/components/footer/z-footer-link/index.d.ts +8 -8
- package/dist/types/components/footer/z-footer-section/index.d.ts +10 -10
- package/dist/types/components/footer/z-footer-social/index.d.ts +9 -9
- package/dist/types/components/icons/icons.d.ts +405 -405
- package/dist/types/components/icons/z-icon/index.d.ts +14 -14
- package/dist/types/components/icons/z-icon-package/index.d.ts +3 -3
- 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 +62 -62
- package/dist/types/components/inputs/z-input/index.d.ts +100 -100
- package/dist/types/components/inputs/z-input-label/index.d.ts +9 -7
- package/dist/types/components/inputs/z-input-message/index.d.ts +9 -9
- package/dist/types/components/inputs/z-select/index.d.ts +71 -71
- package/dist/types/components/list/z-list/index.d.ts +11 -11
- package/dist/types/components/list/z-list-element/index.d.ts +79 -79
- package/dist/types/components/list/z-list-group/index.d.ts +24 -24
- package/dist/types/components/list/z-toast-notification-list/index.d.ts +14 -14
- package/dist/types/components/logo/z-logo/index.d.ts +14 -14
- package/dist/types/components/modal/z-modal/index.d.ts +25 -25
- package/dist/types/components/modal/z-modal-login/index.d.ts +42 -42
- package/dist/types/components/navigation/z-app-header/index.d.ts +67 -67
- package/dist/types/components/navigation/z-app-switcher/index.d.ts +12 -12
- package/dist/types/components/navigation/z-app-topbar/index.d.ts +18 -18
- package/dist/types/components/navigation/z-link/index.d.ts +41 -41
- package/dist/types/components/navigation/z-menu/index.d.ts +52 -52
- package/dist/types/components/navigation/z-menu-dropdown/index.d.ts +19 -19
- package/dist/types/components/navigation/z-menu-section/index.d.ts +24 -24
- package/dist/types/components/navigation/z-navigation-tab/index.d.ts +16 -16
- package/dist/types/components/navigation/z-navigation-tabs/index.d.ts +32 -32
- package/dist/types/components/navigation/z-user-dropdown/index.d.ts +40 -40
- package/dist/types/components/notification/z-candybar/index.d.ts +6 -6
- package/dist/types/components/notification/z-cookiebar/index.d.ts +16 -16
- package/dist/types/components/notification/z-info-box/index.d.ts +14 -14
- package/dist/types/components/notification/z-notification/index.d.ts +24 -24
- package/dist/types/components/notification/z-toast-notification/index.d.ts +56 -56
- package/dist/types/components/notification/z-tooltip/index.d.ts +41 -41
- package/dist/types/components/pagination/z-pagination-bar/index.d.ts +42 -42
- package/dist/types/components/pagination/z-pagination-page/index.d.ts +15 -15
- package/dist/types/components/panel/z-panel-elem/index.d.ts +25 -25
- package/dist/types/components/typography/z-body/index.d.ts +6 -6
- package/dist/types/components/typography/z-heading/index.d.ts +6 -6
- package/dist/types/components/typography/z-typography/index.d.ts +8 -8
- package/dist/types/components/z-avatar/index.d.ts +16 -16
- package/dist/types/components/z-card/index.d.ts +29 -29
- package/dist/types/components/z-contextual-menu/index.d.ts +22 -22
- 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-popover/index.d.ts +29 -29
- package/dist/types/components/z-status-tag/index.d.ts +15 -15
- package/dist/types/components.d.ts +8 -0
- package/dist/types/constants/breakpoints.d.ts +3 -3
- package/dist/types/constants/icons.d.ts +6 -6
- package/dist/types/index.d.ts +5 -5
- 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 +20 -20
- 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 +34 -34
- 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 +23 -23
- package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +7 -7
- 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 +10 -10
- 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/topbar/index.d.ts +61 -61
- package/dist/types/snowflakes/myz/z-alert/index.d.ts +9 -9
- package/dist/types/snowflakes/myz/z-otp/index.d.ts +13 -13
- package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +30 -30
- package/dist/types/snowflakes/registro-table/z-registro-table/index.d.ts +48 -48
- package/dist/types/snowflakes/registro-table/z-registro-table-body/index.d.ts +5 -5
- package/dist/types/snowflakes/registro-table/z-registro-table-cell/index.d.ts +9 -9
- package/dist/types/snowflakes/registro-table/z-registro-table-empty-box/index.d.ts +7 -7
- package/dist/types/snowflakes/registro-table/z-registro-table-expanded-row/index.d.ts +5 -5
- package/dist/types/snowflakes/registro-table/z-registro-table-footer/index.d.ts +5 -5
- package/dist/types/snowflakes/registro-table/z-registro-table-head/index.d.ts +5 -5
- package/dist/types/snowflakes/registro-table/z-registro-table-header/index.d.ts +25 -25
- package/dist/types/snowflakes/registro-table/z-registro-table-header-row/index.d.ts +5 -5
- package/dist/types/snowflakes/registro-table/z-registro-table-row/index.d.ts +11 -11
- package/dist/types/snowflakes/registro-table/z-registro-table-sticky-footer/index.d.ts +6 -6
- package/dist/types/utils/utils.d.ts +11 -11
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-418044b0.entry.js → p-12b32f04.entry.js} +1 -1
- package/dist/web-components-library/{p-cfa47b41.entry.js → p-18420d63.entry.js} +1 -1
- package/dist/web-components-library/{p-fbfde057.entry.js → p-18b20ab5.entry.js} +1 -1
- package/dist/web-components-library/{p-3ad9ef65.entry.js → p-29d690fb.entry.js} +1 -1
- package/dist/web-components-library/p-2be4e3cb.js +1 -0
- package/{www/build/p-5ff2bb78.entry.js → dist/web-components-library/p-40de2454.entry.js} +1 -1
- package/{www/build/p-8f5eaf9d.entry.js → dist/web-components-library/p-71635ac7.entry.js} +1 -1
- package/dist/web-components-library/p-8039b5ff.entry.js +7 -0
- package/{www/build/p-6fed64d8.entry.js → dist/web-components-library/p-8d349aa2.entry.js} +1 -1
- package/dist/web-components-library/{p-ccf4d1e7.entry.js → p-929edfe7.entry.js} +1 -1
- package/dist/web-components-library/{p-ba400b3b.entry.js → p-9c4afb16.entry.js} +1 -1
- package/dist/web-components-library/{p-e86e2a5f.entry.js → p-b0f780b9.entry.js} +1 -1
- package/dist/web-components-library/{p-44de8dac.entry.js → p-d28fa333.entry.js} +1 -1
- package/dist/web-components-library/{p-8dfa676e.js → p-da365fd4.js} +0 -0
- package/dist/web-components-library/{p-d69e14fb.js → p-e35d3552.js} +0 -0
- package/dist/web-components-library/{p-cfd7f25f.entry.js → p-f1602514.entry.js} +1 -1
- package/dist/web-components-library/{p-6b7ee18b.entry.js → p-f45e8412.entry.js} +1 -1
- 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 +90 -90
- package/react/components.d.ts +89 -89
- package/react/components.js +95 -95
- 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 +65 -65
- package/react/react-component-lib/createOverlayComponent.d.ts +20 -20
- package/react/react-component-lib/createOverlayComponent.js +95 -95
- 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 +102 -102
- 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 +7 -7
- package/react/react-component-lib/utils/index.js +38 -38
- package/readme.md +236 -236
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-418044b0.entry.js → p-12b32f04.entry.js} +1 -1
- package/www/build/{p-cfa47b41.entry.js → p-18420d63.entry.js} +1 -1
- package/www/build/{p-fbfde057.entry.js → p-18b20ab5.entry.js} +1 -1
- package/www/build/{p-3ad9ef65.entry.js → p-29d690fb.entry.js} +1 -1
- package/www/build/p-2be4e3cb.js +1 -0
- package/{dist/web-components-library/p-5ff2bb78.entry.js → www/build/p-40de2454.entry.js} +1 -1
- package/{dist/web-components-library/p-8f5eaf9d.entry.js → www/build/p-71635ac7.entry.js} +1 -1
- package/www/build/p-8039b5ff.entry.js +7 -0
- package/{dist/web-components-library/p-6fed64d8.entry.js → www/build/p-8d349aa2.entry.js} +1 -1
- package/www/build/{p-ccf4d1e7.entry.js → p-929edfe7.entry.js} +1 -1
- package/www/build/{p-ba400b3b.entry.js → p-9c4afb16.entry.js} +1 -1
- package/www/build/{p-e86e2a5f.entry.js → p-b0f780b9.entry.js} +1 -1
- package/www/build/p-c6932a85.css +789 -0
- package/www/build/{p-44de8dac.entry.js → p-d28fa333.entry.js} +1 -1
- package/www/build/{p-8dfa676e.js → p-da365fd4.js} +0 -0
- package/www/build/{p-d69e14fb.js → p-e35d3552.js} +0 -0
- package/www/build/{p-cfd7f25f.entry.js → p-f1602514.entry.js} +1 -1
- package/www/build/{p-6b7ee18b.entry.js → p-f45e8412.entry.js} +1 -1
- package/www/build/p-f7a507f5.js +122 -0
- package/www/build/web-components-library.css +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +11 -5
- package/www/pages/notification.html +247 -247
- package/dist/cjs/z-modal.cjs.entry.js +0 -36
- package/dist/esm/z-modal.entry.js +0 -32
- package/dist/web-components-library/p-097b45d8.entry.js +0 -7
- package/dist/web-components-library/p-139b1c56.entry.js +0 -1
- package/dist/web-components-library/p-feb1a4a6.js +0 -1
- package/www/build/p-097b45d8.entry.js +0 -7
- package/www/build/p-139b1c56.entry.js +0 -1
- package/www/build/p-7263c89d.css +0 -1
- package/www/build/p-932d9b31.js +0 -1
- package/www/build/p-feb1a4a6.js +0 -1
package/readme.md
CHANGED
|
@@ -1,236 +1,236 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
# Zanichelli - Web Components Library
|
|
4
|
-
|
|
5
|
-
Zanichelli's design system is widely documented on Zeroheight at this [link](https://zeroheight.com/485b31545).
|
|
6
|
-
|
|
7
|
-
## Install
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
yarn add @zanichelli/albe-web-components
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Start Library Development Server
|
|
14
|
-
```
|
|
15
|
-
yarn start
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## Create a component:
|
|
21
|
-
|
|
22
|
-
```
|
|
23
|
-
yarn generate component my-component
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
##### NB: component name must have a dash (`-`)
|
|
27
|
-
|
|
28
|
-
----
|
|
29
|
-
|
|
30
|
-
## Symlink Local Development
|
|
31
|
-
|
|
32
|
-
#### Run
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
yarn link
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
#### In the destination project folder run
|
|
39
|
-
|
|
40
|
-
```
|
|
41
|
-
yarn link @zanichelli/albe-web-components
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
----
|
|
45
|
-
|
|
46
|
-
## Tests
|
|
47
|
-
|
|
48
|
-
#### Run all tests
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
yarn test
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
#### Run single test
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
yarn test --spec {componentPath}
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
#### Run e2e tests
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
yarn test.e2e
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
----
|
|
67
|
-
|
|
68
|
-
## Release
|
|
69
|
-
|
|
70
|
-
In this repository we follow the [Conventional Commits Specification](https://www.conventionalcommits.org/) and we use [standard-version](https://github.com/conventional-changelog/standard-version) to update the [CHANGELOG.md](./CHANGELOG.md) when publishing a new version of the package to NPM.
|
|
71
|
-
|
|
72
|
-
Standard-version automatically detects the type of the update (patch, minor or major) following the [Semantic Versioning](https://semver.org/) specification.
|
|
73
|
-
|
|
74
|
-
**Publish a new version on NPM registry**
|
|
75
|
-
|
|
76
|
-
* Make sure you are logged in NPM
|
|
77
|
-
* Run standard-version:
|
|
78
|
-
|
|
79
|
-
```
|
|
80
|
-
yarn release
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
**Specify a version**
|
|
84
|
-
|
|
85
|
-
If you want to select a version or the update type, you can use the `--release-as` flag:
|
|
86
|
-
|
|
87
|
-
```
|
|
88
|
-
yarn release --release-as path
|
|
89
|
-
yarn release --release-as 1.1.0
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
In general, you can pass any flag supported by standard-version, please refer to their [CLI usage](https://github.com/conventional-changelog/standard-version#cli-usage) documentation.
|
|
93
|
-
|
|
94
|
-
**Publish the new release on GitHub**
|
|
95
|
-
|
|
96
|
-
You need to [manually create the GitHub release](https://github.com/ZanichelliEditore/design-system/releases/new) in order to update the Storybook documentation.
|
|
97
|
-
|
|
98
|
-
----
|
|
99
|
-
|
|
100
|
-
## Documentation
|
|
101
|
-
|
|
102
|
-
In order to correctly import Stencil Components into the Storybook, we need to build the library first. Stencil will generate properties documentation and it will store them in the `custom-elements.json` which is loaded by Storybook. At the moment, everytime you edit the library sources, you need to rebuild them to get the Storybook updated.
|
|
103
|
-
|
|
104
|
-
#### Plugins
|
|
105
|
-
|
|
106
|
-
* [@storybook/addon-a11y](https://www.npmjs.com/package/@storybook/addon-a11y)
|
|
107
|
-
* [@storybook/addon-docs](https://www.npmjs.com/package/@storybook/addon-docs)
|
|
108
|
-
* [@storybook/addon-knobs](https://www.npmjs.com/package/@storybook/addon-knobs)
|
|
109
|
-
* [@storybook/addon-viewport](https://www.npmjs.com/package/@storybook/addon-viewport)
|
|
110
|
-
* [storybook-addons-abstract](https://www.npmjs.com/package/storybook-addons-abstract)
|
|
111
|
-
|
|
112
|
-
#### Start Storybook:
|
|
113
|
-
|
|
114
|
-
```sh
|
|
115
|
-
# Build the library
|
|
116
|
-
yarn build
|
|
117
|
-
# Start the Storybook
|
|
118
|
-
yarn start-storybook
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
#### Build Storybook:
|
|
122
|
-
|
|
123
|
-
```sh
|
|
124
|
-
# Build the library
|
|
125
|
-
yarn build
|
|
126
|
-
# Build the Storybook
|
|
127
|
-
yarn build-storybook
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
#### Developing with Storybook:
|
|
131
|
-
|
|
132
|
-
Start the Stencil dev server:
|
|
133
|
-
```sh
|
|
134
|
-
yarn start
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
and, in a separate terminal window, run the Storybook:
|
|
138
|
-
|
|
139
|
-
```sh
|
|
140
|
-
yarn start-storybook
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
----
|
|
144
|
-
|
|
145
|
-
## Build Library package
|
|
146
|
-
```
|
|
147
|
-
yarn build
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
# Environment Support
|
|
151
|
-
|
|
152
|
-
- Modern browsers
|
|
153
|
-
- Chromium Edge and Safari 10 with [polyfills](https://stackoverflow.com/questions/57020976/polyfills-in-2019-for-ie11)
|
|
154
|
-
|
|
155
|
-
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br> Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Safari |
|
|
156
|
-
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
157
|
-
| > 16.16 | > 48 | > 69 | > 10.0 |
|
|
158
|
-
|
|
159
|
-
## Usage
|
|
160
|
-
|
|
161
|
-
### CSS Custom Properties
|
|
162
|
-
|
|
163
|
-
The library provides a global css variables export. You can import the styles by ES6 import:
|
|
164
|
-
|
|
165
|
-
```javascript
|
|
166
|
-
import '@zanichelli/albe-web-components/www/build/web-components-library.css';
|
|
167
|
-
```
|
|
168
|
-
or via link tag:
|
|
169
|
-
|
|
170
|
-
```html
|
|
171
|
-
<link type="text/css" rel="stylesheet" href="https://unpkg.com/@zanichelli/albe-web-components/www/build/web-components-library.css" />
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
### Custom Elements
|
|
176
|
-
|
|
177
|
-
You can use the library by importing the custom elements from npm package:
|
|
178
|
-
|
|
179
|
-
```javascript
|
|
180
|
-
import { defineCustomElements, applyPolyfills } from '@zanichelli/albe-web-components/loader';
|
|
181
|
-
|
|
182
|
-
applyPolyfills().then(() => {
|
|
183
|
-
defineCustomElements(window);
|
|
184
|
-
});
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
or via a script tag:
|
|
188
|
-
|
|
189
|
-
```html
|
|
190
|
-
<script src="https://unpkg.com/@zanichelli/albe-web-components/dist/web-components-library/web-components-library.esm.js"></script>
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
Then use the relative tag as a usual component in your markup.
|
|
194
|
-
|
|
195
|
-
```html
|
|
196
|
-
<section>
|
|
197
|
-
<z-button label="button" type="primary">Click me!</z-button>
|
|
198
|
-
</section>
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
### Using React bindings
|
|
202
|
-
|
|
203
|
-
Albe's Web Components come with automatically generated React bindings. This means that you can use Web Components in a React application without the need to wrap component references, with full intellisense support thanks to TypeScript definition files for bindings.
|
|
204
|
-
|
|
205
|
-
You still need to import and run polyfills, then you can import Component references from the React submodule:
|
|
206
|
-
|
|
207
|
-
```javascript
|
|
208
|
-
import React from 'react';
|
|
209
|
-
import ReactDOM from 'react-dom';
|
|
210
|
-
import '@zanichelli/albe-web-components/www/build/web-components-library.css';
|
|
211
|
-
import { defineCustomElements, applyPolyfills } from '@zanichelli/albe-web-components/loader';
|
|
212
|
-
import { ZButton } from '@zanichelli/albe-web-components/react';
|
|
213
|
-
|
|
214
|
-
applyPolyfills().then(() => {
|
|
215
|
-
defineCustomElements(window);
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
ReactDOM.render(<ZButton>Click me</ZButton>, document.getElementById('root'));
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
## Component definition
|
|
222
|
-
|
|
223
|
-
Each component is structured as follows:
|
|
224
|
-
|
|
225
|
-
| File name | Description |
|
|
226
|
-
| --------------- | ------------------------------ |
|
|
227
|
-
| `index-ts` | Component markup and UI logics |
|
|
228
|
-
| `styles.css` | Component styles |
|
|
229
|
-
| `index.spec.ts` | Component tests |
|
|
230
|
-
| `index.stories.mdx` | Component storybook file |
|
|
231
|
-
| `README.md` | Stencil documentation |
|
|
232
|
-
|
|
233
|
-
## Roadmap
|
|
234
|
-
|
|
235
|
-
- 12 6 2020: Publishing repo v 1.0.0
|
|
236
|
-
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# Zanichelli - Web Components Library
|
|
4
|
+
|
|
5
|
+
Zanichelli's design system is widely documented on Zeroheight at this [link](https://zeroheight.com/485b31545).
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
yarn add @zanichelli/albe-web-components
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Start Library Development Server
|
|
14
|
+
```
|
|
15
|
+
yarn start
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Create a component:
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
yarn generate component my-component
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
##### NB: component name must have a dash (`-`)
|
|
27
|
+
|
|
28
|
+
----
|
|
29
|
+
|
|
30
|
+
## Symlink Local Development
|
|
31
|
+
|
|
32
|
+
#### Run
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
yarn link
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
#### In the destination project folder run
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
yarn link @zanichelli/albe-web-components
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
----
|
|
45
|
+
|
|
46
|
+
## Tests
|
|
47
|
+
|
|
48
|
+
#### Run all tests
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
yarn test
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
#### Run single test
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
yarn test --spec {componentPath}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
#### Run e2e tests
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
yarn test.e2e
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
----
|
|
67
|
+
|
|
68
|
+
## Release
|
|
69
|
+
|
|
70
|
+
In this repository we follow the [Conventional Commits Specification](https://www.conventionalcommits.org/) and we use [standard-version](https://github.com/conventional-changelog/standard-version) to update the [CHANGELOG.md](./CHANGELOG.md) when publishing a new version of the package to NPM.
|
|
71
|
+
|
|
72
|
+
Standard-version automatically detects the type of the update (patch, minor or major) following the [Semantic Versioning](https://semver.org/) specification.
|
|
73
|
+
|
|
74
|
+
**Publish a new version on NPM registry**
|
|
75
|
+
|
|
76
|
+
* Make sure you are logged in NPM
|
|
77
|
+
* Run standard-version:
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
yarn release
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**Specify a version**
|
|
84
|
+
|
|
85
|
+
If you want to select a version or the update type, you can use the `--release-as` flag:
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
yarn release --release-as path
|
|
89
|
+
yarn release --release-as 1.1.0
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
In general, you can pass any flag supported by standard-version, please refer to their [CLI usage](https://github.com/conventional-changelog/standard-version#cli-usage) documentation.
|
|
93
|
+
|
|
94
|
+
**Publish the new release on GitHub**
|
|
95
|
+
|
|
96
|
+
You need to [manually create the GitHub release](https://github.com/ZanichelliEditore/design-system/releases/new) in order to update the Storybook documentation.
|
|
97
|
+
|
|
98
|
+
----
|
|
99
|
+
|
|
100
|
+
## Documentation
|
|
101
|
+
|
|
102
|
+
In order to correctly import Stencil Components into the Storybook, we need to build the library first. Stencil will generate properties documentation and it will store them in the `custom-elements.json` which is loaded by Storybook. At the moment, everytime you edit the library sources, you need to rebuild them to get the Storybook updated.
|
|
103
|
+
|
|
104
|
+
#### Plugins
|
|
105
|
+
|
|
106
|
+
* [@storybook/addon-a11y](https://www.npmjs.com/package/@storybook/addon-a11y)
|
|
107
|
+
* [@storybook/addon-docs](https://www.npmjs.com/package/@storybook/addon-docs)
|
|
108
|
+
* [@storybook/addon-knobs](https://www.npmjs.com/package/@storybook/addon-knobs)
|
|
109
|
+
* [@storybook/addon-viewport](https://www.npmjs.com/package/@storybook/addon-viewport)
|
|
110
|
+
* [storybook-addons-abstract](https://www.npmjs.com/package/storybook-addons-abstract)
|
|
111
|
+
|
|
112
|
+
#### Start Storybook:
|
|
113
|
+
|
|
114
|
+
```sh
|
|
115
|
+
# Build the library
|
|
116
|
+
yarn build
|
|
117
|
+
# Start the Storybook
|
|
118
|
+
yarn start-storybook
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
#### Build Storybook:
|
|
122
|
+
|
|
123
|
+
```sh
|
|
124
|
+
# Build the library
|
|
125
|
+
yarn build
|
|
126
|
+
# Build the Storybook
|
|
127
|
+
yarn build-storybook
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
#### Developing with Storybook:
|
|
131
|
+
|
|
132
|
+
Start the Stencil dev server:
|
|
133
|
+
```sh
|
|
134
|
+
yarn start
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
and, in a separate terminal window, run the Storybook:
|
|
138
|
+
|
|
139
|
+
```sh
|
|
140
|
+
yarn start-storybook
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
----
|
|
144
|
+
|
|
145
|
+
## Build Library package
|
|
146
|
+
```
|
|
147
|
+
yarn build
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
# Environment Support
|
|
151
|
+
|
|
152
|
+
- Modern browsers
|
|
153
|
+
- Chromium Edge and Safari 10 with [polyfills](https://stackoverflow.com/questions/57020976/polyfills-in-2019-for-ie11)
|
|
154
|
+
|
|
155
|
+
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br> Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Safari |
|
|
156
|
+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
157
|
+
| > 16.16 | > 48 | > 69 | > 10.0 |
|
|
158
|
+
|
|
159
|
+
## Usage
|
|
160
|
+
|
|
161
|
+
### CSS Custom Properties
|
|
162
|
+
|
|
163
|
+
The library provides a global css variables export. You can import the styles by ES6 import:
|
|
164
|
+
|
|
165
|
+
```javascript
|
|
166
|
+
import '@zanichelli/albe-web-components/www/build/web-components-library.css';
|
|
167
|
+
```
|
|
168
|
+
or via link tag:
|
|
169
|
+
|
|
170
|
+
```html
|
|
171
|
+
<link type="text/css" rel="stylesheet" href="https://unpkg.com/@zanichelli/albe-web-components/www/build/web-components-library.css" />
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### Custom Elements
|
|
176
|
+
|
|
177
|
+
You can use the library by importing the custom elements from npm package:
|
|
178
|
+
|
|
179
|
+
```javascript
|
|
180
|
+
import { defineCustomElements, applyPolyfills } from '@zanichelli/albe-web-components/loader';
|
|
181
|
+
|
|
182
|
+
applyPolyfills().then(() => {
|
|
183
|
+
defineCustomElements(window);
|
|
184
|
+
});
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
or via a script tag:
|
|
188
|
+
|
|
189
|
+
```html
|
|
190
|
+
<script src="https://unpkg.com/@zanichelli/albe-web-components/dist/web-components-library/web-components-library.esm.js"></script>
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
Then use the relative tag as a usual component in your markup.
|
|
194
|
+
|
|
195
|
+
```html
|
|
196
|
+
<section>
|
|
197
|
+
<z-button label="button" type="primary">Click me!</z-button>
|
|
198
|
+
</section>
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### Using React bindings
|
|
202
|
+
|
|
203
|
+
Albe's Web Components come with automatically generated React bindings. This means that you can use Web Components in a React application without the need to wrap component references, with full intellisense support thanks to TypeScript definition files for bindings.
|
|
204
|
+
|
|
205
|
+
You still need to import and run polyfills, then you can import Component references from the React submodule:
|
|
206
|
+
|
|
207
|
+
```javascript
|
|
208
|
+
import React from 'react';
|
|
209
|
+
import ReactDOM from 'react-dom';
|
|
210
|
+
import '@zanichelli/albe-web-components/www/build/web-components-library.css';
|
|
211
|
+
import { defineCustomElements, applyPolyfills } from '@zanichelli/albe-web-components/loader';
|
|
212
|
+
import { ZButton } from '@zanichelli/albe-web-components/react';
|
|
213
|
+
|
|
214
|
+
applyPolyfills().then(() => {
|
|
215
|
+
defineCustomElements(window);
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
ReactDOM.render(<ZButton>Click me</ZButton>, document.getElementById('root'));
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
## Component definition
|
|
222
|
+
|
|
223
|
+
Each component is structured as follows:
|
|
224
|
+
|
|
225
|
+
| File name | Description |
|
|
226
|
+
| --------------- | ------------------------------ |
|
|
227
|
+
| `index-ts` | Component markup and UI logics |
|
|
228
|
+
| `styles.css` | Component styles |
|
|
229
|
+
| `index.spec.ts` | Component tests |
|
|
230
|
+
| `index.stories.mdx` | Component storybook file |
|
|
231
|
+
| `README.md` | Stencil documentation |
|
|
232
|
+
|
|
233
|
+
## Roadmap
|
|
234
|
+
|
|
235
|
+
- 12 6 2020: Publishing repo v 1.0.0
|
|
236
|
+
|
package/www/build/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o}from"./p-
|
|
1
|
+
import{c as o}from"./p-2be4e3cb.js";import"./p-da365fd4.js";import"./p-e35d3552.js";const p={colorFromId:o};export{p as Utils}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,g as s}from"./p-904a85e4.js";import{p as o}from"./p-
|
|
1
|
+
import{r as t,c as i,h as e,g as s}from"./p-904a85e4.js";import{p as o}from"./p-da365fd4.js";import{h as a}from"./p-2be4e3cb.js";import{h as r}from"./p-9912e411.js";import"./p-e35d3552.js";const n=class{constructor(e){t(this,e),this.pocketToggle=i(this,"pocketToggle",7),this.status=o.preview}async open(){this.status=o.open}async close(){this.status=o.closed}emitPocketToggle(t,i){this.pocketToggle.emit({id:t,status:i})}handlePocketHeaderClick(t){if(t.detail.id&&t.detail.id===this.pocketid)switch(this.status){case o.preview:case o.closed:this.status=o.open;break;case o.open:this.status=o.closed}}handlePocketHeaderPan(t){t.detail.id&&t.detail.id===this.pocketid&&("up"===t.detail.direction?this.status=o.open:"down"===t.detail.direction&&(this.status=o.closed))}watchStatusHandler(t){this.emitPocketToggle(this.pocketid,t)}componentWillLoad(){this.emitPocketToggle(this.pocketid,this.status)}handleBackgroundClick(t){"pocketBackground"==t.target.dataset.action&&this.close()}render(){return e("div",null,e("div",{"data-action":"pocketBackground","data-pocket":this.pocketid,class:`background ${this.status}`,onClick:t=>this.handleBackgroundClick(t)}),e("div",{id:this.pocketid,class:"contentWrapper"},e("div",null,e("slot",null))))}get hostElement(){return s(this)}static get watchers(){return{status:["watchStatusHandler"]}}};n.style=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);width:inherit;height:100%;margin:inherit}:host>div{width:inherit;height:100%;margin:inherit}:host>div>div.background{position:fixed;left:0;right:0;top:0;bottom:0;z-index:998;width:0;height:0}:host>div>div.background.open{height:100%;width:100%}:host>div>div.contentWrapper{position:fixed;z-index:999;bottom:0;left:0;width:inherit;margin:inherit}:host>div>div.contentWrapper>div{border-radius:var(--space-unit) var(--space-unit) 0px 0px;box-shadow:0px -2px calc(var(--space-unit) * 0.5) 0px rgba(66, 69, 72, 0.4);margin:calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 0.5) 0 calc(var(--space-unit) * 0.5)}";const h=class{constructor(i){t(this,i),this.status=o.preview}handlePocketToggle(t){t.detail.id&&t.detail.id===this.pocketid&&(this.status=t.detail.status)}render(){return e("main",{class:this.status},e("slot",null))}};h.style=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:block;width:100%;box-sizing:border-box}:host>main{background:var(--color-surface01);border-left:var(--border-size-small) solid var(--color-surface03);border-right:var(--border-size-small) solid var(--color-surface03);overflow:auto;scrollbar-width:none}:host>main.preview{max-height:225px;transition:all 200ms ease-in-out, top 200ms ease-in-out}:host>main.open{max-height:calc(100vh - 48px);transition:all 200ms ease-in-out, top 200ms ease-in-out}:host>main.closed{height:0px;transition:all 200ms ease-in-out, top 200ms ease-in-out}:host ::-webkit-scrollbar{width:0}@media only screen and (min-width: 768px){:host>main.preview{max-height:157px}}";const c=class{constructor(e){t(this,e),this.pocketHeaderClick=i(this,"pocketHeaderClick",7),this.pocketHeaderPan=i(this,"pocketHeaderPan",7),this.emitPocketHeaderClick=this.emitPocketHeaderClick.bind(this)}emitPocketHeaderClick(){this.pocketHeaderClick.emit({id:this.pocketid})}emitPocketHeaderPan(t){this.pocketHeaderPan.emit({id:this.pocketid,direction:t})}componentDidLoad(){const t=new r(this.swipeWrap);t.get("pan").set({direction:r.DIRECTION_VERTICAL}),t.on("panup",(()=>this.emitPocketHeaderPan("up"))),t.on("pandown",(()=>this.emitPocketHeaderPan("down")))}render(){return e("header",{role:"button",tabindex:0,onClick:()=>this.emitPocketHeaderClick(),onKeyPress:t=>a(t,this.emitPocketHeaderClick),ref:t=>this.swipeWrap=t},e("slot",null))}};c.style=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:block;width:100%;box-sizing:border-box}:host>header{background:var(--color-surface01);border:var(--border-size-small) solid var(--color-surface03);border-radius:var(--space-unit) var(--space-unit) 0px 0px;height:36px;cursor:pointer;display:flex;flex-wrap:nowrap;flex-direction:row;justify-content:center;align-items:center}:host>header:focus{outline:none}:host>header::-moz-focus-inner{border:0}";export{n as z_pocket,h as z_pocket_body,c as z_pocket_header}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o,H as s,g as e}from"./p-904a85e4.js";import{t as i}from"./p-
|
|
1
|
+
import{r as t,h as o,H as s,g as e}from"./p-904a85e4.js";import{t as i}from"./p-da365fd4.js";const n=class{constructor(o){t(this,o),this.newestontop=!0,this.slotChangeHandler=()=>{const t=Array.from(this.hostElement.children).filter((t=>!this.notificationArray.includes(t)));t&&t.forEach((t=>{this.notificationArray.push(t);const o=t;t.remove(),this.hostElement.prepend(o)}))}}watchPropNewestontop(t){this.hostElement.append(...this.notificationArray.reverse()),t?this.hostElement.shadowRoot.addEventListener("slotchange",this.slotChangeHandler):this.hostElement.shadowRoot.removeEventListener("slotchange",this.slotChangeHandler)}componentWillLoad(){this.newestontop&&this.handleNewestOnTop()}handleNewestOnTop(){this.notificationArray=Array.from(this.hostElement.children),this.hostElement.append(...this.notificationArray.reverse()),this.hostElement.shadowRoot.addEventListener("slotchange",this.slotChangeHandler)}render(){return o(s,{class:this.position?this.position:i.topRight},o("slot",{name:"toasts"}))}get hostElement(){return e(this)}static get watchers(){return{newestontop:["watchPropNewestontop"]}}};n.style=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);position:fixed;display:flex;flex-direction:column;flex-wrap:nowrap;z-index:10000;margin-bottom:calc(var(--space-unit) * 2);margin-top:calc(var(--space-unit) * 2)}::slotted(z-toast-notification){width:100vw}::slotted(:not(:last-child)){margin-bottom:calc(var(--space-unit) * 1)}:host(.bottom-centre),:host(.bottom-right),:host(.bottom-left){justify-content:flex-end;align-items:flex-end;bottom:0}:host(.top-left),:host(.top-right),:host(.top-centre){justify-content:flex-start;align-items:flex-start;top:0}@media only screen and (min-width: 768px){:host{margin:calc(var(--space-unit) * 3)}:host(.top-centre){justify-content:flex-start;align-items:center;top:0;left:50%;transform:translateX(-50%)}:host(.top-left){justify-content:flex-start;align-items:flex-start;top:0;left:0}:host(.top-right){justify-content:flex-start;align-items:flex-end;top:0;right:0}:host(.bottom-centre){justify-content:flex-end;align-items:center;bottom:0;left:50%;transform:translateX(-50%)}:host(.bottom-right){justify-content:flex-end;align-items:flex-end;bottom:0;right:0}:host(.bottom-left){justify-content:flex-end;align-items:flex-start;bottom:0;left:0}::slotted(z-toast-notification){width:50vw}}@media only screen and (min-width: 1366px){:host{margin:calc(var(--space-unit) * 4)}::slotted(z-toast-notification){width:33vw}}";export{n as z_toast_notification_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c as t,h as n}from"./p-904a85e4.js";import{o as e}from"./p-
|
|
1
|
+
import{r as i,c as t,h as n}from"./p-904a85e4.js";import{o as e}from"./p-da365fd4.js";import{h as s}from"./p-2be4e3cb.js";import"./p-e35d3552.js";const o=class{constructor(n){i(this,n),this.flipCard=t(this,"flipCard",7),this.htmltabindex=0,this.hiddenContent=!1,this.tooltip=!1,this.emitFlipCard=this.emitFlipCard.bind(this)}emitFlipCard(i=!1){this.flipCard.emit(i)}componentWillLoad(){this.setStringOrArray()}componentWillUpdate(){this.setStringOrArray()}componentDidRender(){this.handleContentHeight()}handleContentHeight(){return(this.contentWrapper||this.infoWrapper)&&(this.contentWrapper.scrollHeight>this.contentWrapper.offsetHeight||this.infoWrapper.scrollHeight>this.infoWrapper.offsetHeight)?(this.infoWrapper.style.height=this.contentWrapper.offsetHeight-this.onlineLicenseWrapper.offsetHeight-this.offlineLicenseWrapper.offsetHeight+"px",this.hiddenContent=!0):this.hiddenContent=!1}setStringOrArray(){this.cardData="string"==typeof this.data?JSON.parse(this.data):this.data}renderCloseIcon(){return n("z-icon",{name:"multiply-circled-filled",height:18,width:18,onClick:()=>this.emitFlipCard(!1),tabindex:this.htmltabindex,onKeyUp:i=>{s(i,this.emitFlipCard,!1)}})}renderGeneralSection(){var i,t;const e=null===(i=null==this?void 0:this.cardData)||void 0===i?void 0:i.title,s=null===(t=null==this?void 0:this.cardData)||void 0===t?void 0:t.description;return n("section",{class:"info-wrapper "+(this.hiddenContent?"hidden":""),onClick:()=>{this.hiddenContent&&(this.tooltip=!this.tooltip)},ref:i=>this.infoWrapper=i},this.renderAuthor(),this.renderYear(),e,n("br",null),s)}renderAuthor(){var i;const t=null===(i=null==this?void 0:this.cardData)||void 0===i?void 0:i.author;return t?n("span",null,"Autore: ",n("b",null,t),n("br",null)):null}renderYear(){var i;const t=null===(i=null==this?void 0:this.cardData)||void 0===i?void 0:i.year;return t?n("span",null,"Anno: ",n("b",null,t),n("br",null)):null}renderTooltip(){if(!this.tooltip)return;if(!this.cardData)return;const{title:i,year:t,author:s,description:o}=this.cardData;return n("z-tooltip",{content:`${i} ${t} ${s} ${o}`,type:e.RIGHT,onClick:()=>this.tooltip=!1})}setExpirationLicenseMessage(i){return"online"===i&&this.cardData.onlineLicense.expired||"offline"===i&&this.cardData.offlineLicense.expired?n("span",{class:"expired"},"SCADUTA"):"online"===i&&this.cardData.onlineLicense.expiring||"offline"===i&&this.cardData.offlineLicense.expiring?n("span",{class:"expiring"},"IN SCADENZA"):void 0}renderOnlineLicenseSection(){var i;if(null===(i=null==this?void 0:this.cardData)||void 0===i?void 0:i.onlineLicense)return n("section",{ref:i=>this.onlineLicenseWrapper=i},n("span",{class:"license-heading"},n("span",null,"Licenza online"),this.setExpirationLicenseMessage("online")),"Scadenza il ",n("b",null,this.cardData.onlineLicense.expiration),n("br",null))}renderOfflineLicenseSection(){var i;if(null===(i=null==this?void 0:this.cardData)||void 0===i?void 0:i.offlineLicense)return n("section",{ref:i=>this.offlineLicenseWrapper=i},n("span",{class:"license-heading"},n("span",null,"Licenza offline"),this.setExpirationLicenseMessage("offline")),"Scadenza il ",n("b",null,this.cardData.offlineLicense.expiration),n("br",null),"Installazioni disponibili:"," ",n("b",null,this.cardData.offlineLicense.installations))}render(){return n("div",null,this.renderCloseIcon(),n("div",{class:"content-wrapper",ref:i=>this.contentWrapper=i},this.renderGeneralSection(),this.renderTooltip(),this.renderOnlineLicenseSection(),this.renderOfflineLicenseSection()),n("div",{class:"cta-wrapper"},n("slot",null)))}};o.style=':host{font-family:var(--font-family-sans);font-weight:var(--font-rg);width:100%}:host>div{background:var(--color-surface01);width:calc(100% + calc(var(--space-unit) * 2));margin-left:calc(-1 * var(--space-unit));height:402px;border:var(--border-size-small) solid var(--color-primary01);box-shadow:0px 2px 4px 0px rgba(66, 69, 72, 0.35);border-radius:0px;box-sizing:border-box;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);position:relative}:host>div>z-icon{fill:var(--color-primary01);cursor:pointer;position:absolute;top:var(--space-unit);right:var(--space-unit)}:host>div{display:grid}:host>div>div.cta-wrapper{align-self:end;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-between}:host>div>div.content-wrapper{overflow:hidden;position:relative;align-self:stretch}:host>div>div.content-wrapper>section{border-bottom:var(--border-size-small) solid var(--color-surface04);color:var(--color-surface05);padding:var(--space-unit) 0;font-size:14px;line-height:20px;box-sizing:border-box}:host>div>div.content-wrapper>section:last-child{border-bottom:none}:host>div>div.content-wrapper>section.info-wrapper{position:relative;overflow:hidden;box-sizing:border-box}:host>div>div.content-wrapper>section.info-wrapper.hidden:after{background:linear-gradient(\r\n 180deg,\r\n rgba(255, 0, 0, 0),\r\n rgba(255, 0, 0, 0) 60%,\r\n white\r\n );content:"";position:absolute;pointer-events:none;top:0;left:0;right:0;bottom:0}:host>div>div.content-wrapper>section>span.license-heading{display:flex;justify-content:space-between}:host>div>div.content-wrapper>section>span.license-heading>span.expired{color:var(--color-secondary02);font-size:12px;font-weight:600}:host>div>div.content-wrapper>section>span.license-heading>span.expiring{color:var(--color-warning01);font-size:12px;font-weight:600}:host>div>div.content-wrapper>z-tooltip{position:absolute;top:0px;left:calc(var(--space-unit) * 4)}';export{o as z_myz_card_info}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,H as a,g as o}from"./p-904a85e4.js";import{q as e,r as s}from"./p-
|
|
1
|
+
import{r as t,h as i,H as a,g as o}from"./p-904a85e4.js";import{q as e,r as s}from"./p-da365fd4.js";const r=class{constructor(i){t(this,i),this.orientation=e.horizontal,this.size=s.big,this.direction=this.orientation==e.vertical?"Top":"Left",this.dimension=this.orientation==e.vertical?"Height":"Width"}setChildrenSize(){const t=this.host.children;for(let i=0;i<t.length;i++)t[i].setAttribute("size",this.size)}setChildrenOrientation(){const t=this.host.children;for(let i=0;i<t.length;i++)t[i].setAttribute("orientation",this.orientation)}checkScrollVisible(){this.tabsNav&&(this.canNavigate=this.tabsNav[`scroll${this.dimension}`]>this.tabsNav[`client${this.dimension}`],this.checkScrollEnabled())}checkScrollEnabled(){this.tabsNav&&(this.canNavigateNext=this.tabsNav[`scroll${this.direction}`]+this.tabsNav[`client${this.dimension}`]<this.tabsNav[`scroll${this.dimension}`],this.canNavigatePrev=this.tabsNav[`scroll${this.direction}`]>0)}selectedTabHandler(t){this.select(t.target)}select(t){const i=this.host.children;for(let a=0;a<i.length;a++){const o=i[a];"Z-NAVIGATION-TAB"===o.tagName&&o!==t&&(o.selected=!1)}}navigatePrevious(){this.tabsNav.scrollBy({[this.direction.toLowerCase()]:0-this.tabsNav[`client${this.dimension}`]/2,behavior:"smooth"})}navigateNext(){this.tabsNav.scrollBy({[this.direction.toLowerCase()]:this.tabsNav.scrollTop+this.tabsNav[`client${this.dimension}`]/2,behavior:"smooth"})}componentDidLoad(){this.setChildrenSize(),this.setChildrenOrientation(),this.checkScrollVisible()}render(){return i(a,{class:{"interactive-2":"small"===this.size,"interactive-1":"small"!==this.size},scrollable:this.canNavigate},this.canNavigate&&i("button",{class:"navigation",onClick:()=>this.navigatePrevious(),tabindex:"-1",disabled:!this.canNavigatePrev},i("z-icon",{name:"horizontal"==this.orientation?"chevron-left":"chevron-up",width:16,height:16})),i("nav",{role:"tablist",ref:t=>this.tabsNav=null!=t?t:this.tabsNav,onScroll:this.checkScrollEnabled.bind(this)},i("slot",null)),this.canNavigate&&i("button",{class:"navigation",onClick:()=>{this.navigateNext()},tabindex:"-1",disabled:!this.canNavigateNext},i("z-icon",{name:"horizontal"==this.orientation?"chevron-right":"chevron-down",width:16,height:16})))}get host(){return o(this)}static get watchers(){return{size:["setChildrenSize"],orientation:["setChildrenOrientation"],direction:["checkScrollEnabled"],dimension:["checkScrollEnabled"]}}};r.style=":host{--safe-scroll-area:4px;--negative-safe-scroll-area:calc(-1 * var(--safe-scroll-area));position:relative;display:flex;flex-direction:row;z-index:0;margin:var(--negative-safe-scroll-area);padding:var(--safe-scroll-area);font-family:var(--font-family-sans);font-weight:var(--font-rg);overflow:hidden}:host,:host *,::slotted(*){box-sizing:border-box}::-webkit-scrollbar{display:none}button.navigation{position:absolute;display:flex;align-items:center;justify-content:center;margin:0;padding:0;background:var(--color-white);border:none;outline:none;fill:var(--color-primary01);border-radius:var(--border-no-radius);cursor:pointer;z-index:1}button.navigation:focus{fill:var(--color-primary01);box-shadow:var(--shadow-focus-primary)}button.navigation:disabled{display:none}nav{display:flex;align-items:center;justify-content:flex-start;overflow:auto;margin:var(--negative-safe-scroll-area);padding:var(--safe-scroll-area);scroll-padding:var(--safe-scroll-area);scrollbar-width:none}:host([orientation='horizontal']) nav{width:100%}:host([orientation='horizontal']) button.navigation{top:0;height:100%;width:calc((var(--space-unit) * 4) + var(--safe-scroll-area))}:host([orientation='horizontal']) button.navigation:first-child{left:0;padding-left:var(--safe-scroll-area);box-shadow:5px 0px var(--safe-scroll-area) var(--negative-safe-scroll-area) rgba(66, 69, 72, 0.40)}:host([orientation='horizontal']) button.navigation:last-child{right:0;padding-right:4px;box-shadow:-5px 0px var(--safe-scroll-area) var(--negative-safe-scroll-area) rgba(66, 69, 72, 0.40)}:host([orientation='vertical']){flex-direction:column}:host([orientation='vertical']) nav{flex-direction:column;align-items:stretch;height:100%}:host([orientation='vertical']) button.navigation{left:0;width:100%;height:calc((var(--space-unit) * 4) + var(--safe-scroll-area))}:host([orientation='vertical']) button.navigation:first-child{top:0;padding-top:var(--safe-scroll-area);box-shadow:0px 5px var(--safe-scroll-area) var(--negative-safe-scroll-area) rgba(66, 69, 72, 0.40)}:host([orientation='vertical']) button.navigation:last-child{bottom:0;padding-bottom:var(--safe-scroll-area);box-shadow:0px -5px var(--safe-scroll-area) var(--negative-safe-scroll-area) rgba(66, 69, 72, 0.40)}:host([size='small'][orientation='vertical']) button.navigation{height:calc(var(--space-unit) * 4)}";export{r as z_navigation_tabs}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as t,D as n}from"./p-da365fd4.js";import{t as r,m as a}from"./p-e35d3552.js";function u(){return Math.random().toString(36).replace("0.","")}function s(n,r,...a){n.keyCode!==t.ENTER&&n.keyCode!==t.SPACE||(n.preventDefault(),r(...a))}function e(t=null){return t||(t=document.activeElement),t&&t.shadowRoot&&t.shadowRoot.activeElement?e(t=t.shadowRoot.activeElement):t}function o(t,n=[]){return n.push(t),t.parentElement?o(t=t.parentElement,n):t.parentNode&&t.parentNode.host?o(t=t.parentNode.host,n):n}function c(){switch(!0){case window.innerWidth<=a:return n.mobile;case window.innerWidth<=r:return n.tablet;default:return n.desktop}}function i(t){try{return JSON.parse(t)}catch(t){return!1}}function f(t){const n=Math.ceil(2**31-1)*parseFloat(`0.${t}`);let r=Math.ceil(n%1*19);return 0===r&&(r=1),`avatar-C${r.toString().padStart(2,"0")}`}export{e as a,i as b,f as c,c as d,o as g,s as h,u as r}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as
|
|
1
|
+
import{r as o,h as r}from"./p-904a85e4.js";import{p as e}from"./p-da365fd4.js";const t=class{constructor(r){o(this,r),this.status=e.preview}handlePocketToggle(o){o.detail.id===this.pocketid&&(this.status=o.detail.status)}renderHeader(){let o,t;switch(this.status){case e.preview:case e.closed:o=r("span",null,"Messaggi ",r("span",{class:"badge"},this.messages)),t="chevron-up";break;case e.open:o=r("span",null,"Riduci"),t="chevron-down"}return r("z-pocket-header",{pocketid:this.pocketid},o,r("z-icon",{name:t,width:14,height:14}))}renderBody(){return r("z-pocket-body",{pocketid:this.pocketid},r("div",{class:"body"},r("slot",null)),r("div",{class:"gradient"}))}render(){return r("z-pocket",{pocketid:this.pocketid,status:this.status,class:this.status},this.renderHeader(),this.renderBody())}};t.style=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>z-pocket{width:100%}:host>z-pocket.closed{width:158px}:host>z-pocket>z-pocket-header{font-size:12px;font-weight:var(--font-sb);color:var(--color-primary01);fill:var(--color-primary01)}:host>z-pocket>z-pocket-header span.badge{background:var(--color-secondary02);color:var(--color-surface01);border-radius:50%;padding:0 calc(var(--space-unit)* 0.5);display:inline-block;margin-left:var(--space-unit)}:host>z-pocket>z-pocket-header>z-icon{margin-left:var(--space-unit)}:host>z-pocket>z-pocket-body>div.body{overflow:hidden;margin:0 var(--space-unit);padding:var(--space-unit)}:host>z-pocket.preview>z-pocket-body{position:relative}:host>z-pocket.preview>z-pocket-body>div.gradient{background-image:linear-gradient(rgba(255, 0, 0, 0), white);position:absolute;top:0;left:0;right:0;bottom:0}:host>z-pocket.open>z-pocket-body>div.body{max-height:calc(100vh - 166px);overflow:auto;scrollbar-width:none}:host ::-webkit-scrollbar{width:0}@media only screen and (min-width: 768px){:host>z-pocket{width:768px;margin:0 calc((100% - 768px) / 2)}:host>z-pocket.closed{margin:0 calc((100% - 158px) / 2)}:host>z-pocket.open>z-pocket-body>div.body{max-height:326px}}@media only screen and (min-width: 1152px){:host>z-pocket.open>z-pocket-body>div.body{scrollbar-width:thin;scrollbar-color:var(--color-primary01) var(--color-surface03)}:host ::-webkit-scrollbar{background:linear-gradient(\r\n 90deg,\r\n var(--color-surface01) 2px,\r\n var(--color-surface03) 4px,\r\n var(--color-surface01) 8px\r\n );border-radius:var(--radius-base);width:10px}:host ::-webkit-scrollbar-thumb{background-color:var(--color-primary01);border-radius:var(--radius-base);width:var(--space-unit)}}";export{t as z_messages_pocket}
|