@zanichelli/albe-web-components 2.46.3 → 2.47.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 +1564 -0
- package/dist/cjs/{index-155b2ec5.js → index-d326c919.js} +11 -9
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-4bbd782c.js → utils-cd6b9038.js} +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-switcher_11.cjs.entry.js +1 -1
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-avatar.cjs.entry.js +1 -1
- package/dist/cjs/z-button-filter_5.cjs.entry.js +2 -2
- package/dist/cjs/z-chip-deprecated.cjs.entry.js +24 -0
- package/dist/cjs/z-chip.cjs.entry.js +15 -14
- package/dist/cjs/z-combobox.cjs.entry.js +2 -2
- package/dist/cjs/z-contextual-menu.cjs.entry.js +1 -1
- package/dist/cjs/z-cookiebar.cjs.entry.js +1 -1
- package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-file-upload.cjs.entry.js +3 -3
- package/dist/cjs/z-file.cjs.entry.js +7 -12
- package/dist/cjs/z-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-list_3.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +2 -2
- package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
- package/dist/cjs/z-modal-login.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +7 -3
- package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card_4.cjs.entry.js +8 -5
- package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-topbar.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +1 -1
- package/dist/cjs/z-pagination-bar.cjs.entry.js +2 -2
- package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +2 -2
- package/dist/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
- package/dist/cjs/z-status-tag.cjs.entry.js +1 -1
- package/dist/cjs/z-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/z-table-header.cjs.entry.js +2 -2
- package/dist/cjs/z-table-row.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +1 -1
- package/dist/cjs/z-tag.cjs.entry.js +22 -0
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-toggle-switch.cjs.entry.js +2 -2
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/collection/beans/index.js +11 -9
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/buttons/z-chip/index.js +48 -50
- package/dist/collection/components/buttons/z-chip/styles.css +90 -32
- package/dist/collection/components/file-upload/z-file/index.js +15 -16
- package/dist/collection/components/file-upload/z-file/styles.css +2 -27
- package/dist/collection/components/file-upload/z-file-upload/index.js +1 -1
- package/dist/collection/components/z-tag/index.js +62 -0
- package/dist/collection/components/z-tag/styles.css +51 -0
- package/dist/collection/{components/buttons → deprecated}/z-button-filter/index.js +0 -0
- package/dist/collection/{components/buttons → deprecated}/z-button-filter/styles.css +0 -0
- package/dist/collection/deprecated/z-chip-deprecated/index.js +59 -0
- package/dist/collection/deprecated/z-chip-deprecated/styles.css +17 -0
- package/dist/collection/{components → deprecated}/z-status-tag/index.js +0 -0
- package/dist/collection/{components → deprecated}/z-status-tag/styles.css +0 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +3 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +3 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +28 -5
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +45 -2
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +4 -3
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +4 -2
- package/dist/esm/{index-22f4a844.js → index-96aade4f.js} +11 -9
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-259e2dd9.js → utils-d06fbb4a.js} +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-switcher_11.entry.js +1 -1
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +1 -1
- package/dist/esm/z-button-filter_5.entry.js +2 -2
- package/dist/esm/z-chip-deprecated.entry.js +20 -0
- package/dist/esm/z-chip.entry.js +16 -15
- package/dist/esm/z-combobox.entry.js +2 -2
- package/dist/esm/z-contextual-menu.entry.js +1 -1
- package/dist/esm/z-cookiebar.entry.js +1 -1
- package/dist/esm/z-date-picker.entry.js +1 -1
- package/dist/esm/z-file-upload.entry.js +3 -3
- package/dist/esm/z-file.entry.js +7 -12
- package/dist/esm/z-footer.entry.js +1 -1
- package/dist/esm/z-list_3.entry.js +1 -1
- package/dist/esm/z-menu-dropdown_2.entry.js +2 -2
- package/dist/esm/z-messages-pocket.entry.js +1 -1
- package/dist/esm/z-modal-login.entry.js +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +7 -3
- package/dist/esm/z-myz-card-info.entry.js +2 -2
- package/dist/esm/z-myz-card_4.entry.js +8 -5
- package/dist/esm/z-myz-list-item.entry.js +2 -2
- package/dist/esm/z-myz-topbar.entry.js +1 -1
- package/dist/esm/z-navigation-tab-link.entry.js +1 -1
- package/dist/esm/z-navigation-tab.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +1 -1
- package/dist/esm/z-otp.entry.js +1 -1
- package/dist/esm/z-pagination-bar.entry.js +2 -2
- package/dist/esm/z-pocket_3.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +2 -2
- package/dist/esm/z-section-title.entry.js +1 -1
- package/dist/esm/z-slideshow.entry.js +2 -2
- package/dist/esm/z-status-tag.entry.js +1 -1
- package/dist/esm/z-table-cell.entry.js +1 -1
- package/dist/esm/z-table-header.entry.js +2 -2
- package/dist/esm/z-table-row.entry.js +1 -1
- package/dist/esm/z-table.entry.js +1 -1
- package/dist/esm/z-tag.entry.js +18 -0
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +1 -1
- package/dist/esm/z-toggle-switch.entry.js +2 -2
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/types/beans/index.d.ts +11 -9
- package/dist/types/components/buttons/z-chip/index.d.ts +7 -6
- package/dist/types/components/file-upload/z-file/index.d.ts +2 -1
- package/dist/types/components/z-tag/index.d.ts +13 -0
- package/dist/types/components.d.ts +59 -6
- package/dist/types/{components/buttons → deprecated}/z-button-filter/index.d.ts +1 -1
- package/dist/types/deprecated/z-chip-deprecated/index.d.ts +6 -0
- package/dist/types/{components → deprecated}/z-status-tag/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +4 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +1 -0
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-c196c340.entry.js → p-01b13704.entry.js} +1 -1
- package/dist/web-components-library/{p-ef22d940.entry.js → p-031b6b83.entry.js} +1 -1
- package/dist/web-components-library/{p-35c4d277.entry.js → p-059fc87d.entry.js} +1 -1
- package/dist/web-components-library/{p-298d324a.entry.js → p-12ae4164.entry.js} +1 -1
- package/dist/web-components-library/{p-88bc3cf2.entry.js → p-142dc712.entry.js} +1 -1
- package/{www/build/p-01a23d8c.entry.js → dist/web-components-library/p-211c8001.entry.js} +1 -1
- package/{www/build/p-ec361ccf.entry.js → dist/web-components-library/p-2182f383.entry.js} +1 -1
- package/dist/web-components-library/p-2f9c9ed9.entry.js +1 -0
- package/dist/web-components-library/p-3ecebf0c.entry.js +1 -0
- package/dist/web-components-library/{p-e4dce41a.entry.js → p-422d2691.entry.js} +1 -1
- package/dist/web-components-library/p-42c37977.js +1 -0
- package/{www/build/p-7efeb668.entry.js → dist/web-components-library/p-4434207b.entry.js} +1 -1
- package/dist/web-components-library/{p-58091e1c.entry.js → p-4fa3a1f5.entry.js} +1 -1
- package/{www/build/p-d4440420.entry.js → dist/web-components-library/p-5ad5d409.entry.js} +1 -1
- package/dist/web-components-library/{p-0b0a358a.entry.js → p-61b6ab7e.entry.js} +1 -1
- package/dist/web-components-library/{p-4a360730.entry.js → p-62a79ada.entry.js} +1 -1
- package/dist/web-components-library/{p-eafa01a1.entry.js → p-62a7b6cb.entry.js} +1 -1
- package/dist/web-components-library/{p-61ba9cc7.entry.js → p-66a027c2.entry.js} +1 -1
- package/dist/web-components-library/{p-782d01c1.entry.js → p-67e56d43.entry.js} +1 -1
- package/dist/web-components-library/{p-9777ec0b.entry.js → p-77d2db66.entry.js} +1 -1
- package/dist/web-components-library/{p-4ef4c8ef.entry.js → p-8e554778.entry.js} +1 -1
- package/dist/web-components-library/{p-904375ec.entry.js → p-8fb44da3.entry.js} +1 -1
- package/dist/web-components-library/{p-5b2d0ccb.entry.js → p-9045dc92.entry.js} +1 -1
- package/dist/web-components-library/p-981f5b41.entry.js +1 -0
- package/dist/web-components-library/{p-9d279248.entry.js → p-9baa6b96.entry.js} +1 -1
- package/dist/web-components-library/{p-10a2a9fe.entry.js → p-a184c4a4.entry.js} +1 -1
- package/dist/web-components-library/{p-d34e101f.js → p-a4049c7f.js} +1 -1
- package/dist/web-components-library/{p-814d6b43.entry.js → p-aaee84f0.entry.js} +1 -1
- package/dist/web-components-library/p-ab5f212d.entry.js +1 -0
- package/{www/build/p-feb6ee16.entry.js → dist/web-components-library/p-b3059f74.entry.js} +1 -1
- package/dist/web-components-library/{p-157885b1.entry.js → p-b3cab405.entry.js} +1 -1
- package/dist/web-components-library/p-ba7e61fe.entry.js +1 -0
- package/dist/web-components-library/{p-30c0f3f2.entry.js → p-c7f70e76.entry.js} +1 -1
- package/dist/web-components-library/{p-4f64af13.entry.js → p-c806d6e4.entry.js} +1 -1
- package/dist/web-components-library/{p-0177caf2.entry.js → p-c8578954.entry.js} +1 -1
- package/dist/web-components-library/{p-02145727.entry.js → p-c9722a45.entry.js} +1 -1
- package/dist/web-components-library/{p-b77a6115.entry.js → p-d0c956ff.entry.js} +1 -1
- package/dist/web-components-library/{p-240561e7.entry.js → p-dd928b6f.entry.js} +1 -1
- package/dist/web-components-library/p-e17ca1a1.entry.js +1 -0
- package/{www/build/p-c3771cc7.entry.js → dist/web-components-library/p-e3d1b621.entry.js} +1 -1
- package/dist/web-components-library/{p-4e270984.entry.js → p-e559f4d3.entry.js} +1 -1
- package/dist/web-components-library/p-e8df0a5e.entry.js +1 -0
- package/dist/web-components-library/p-edc05acf.entry.js +1 -0
- package/dist/web-components-library/{p-4c7250a9.entry.js → p-eedd3f14.entry.js} +1 -1
- package/{www/build/p-95846ba7.entry.js → dist/web-components-library/p-f85e38d3.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +2 -0
- package/react/components.js +4 -2
- package/react/components.js.map +1 -1
- package/src-react/index.ts +1 -0
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-c196c340.entry.js → p-01b13704.entry.js} +1 -1
- package/www/build/{p-ef22d940.entry.js → p-031b6b83.entry.js} +1 -1
- package/www/build/{p-35c4d277.entry.js → p-059fc87d.entry.js} +1 -1
- package/www/build/{p-298d324a.entry.js → p-12ae4164.entry.js} +1 -1
- package/www/build/{p-88bc3cf2.entry.js → p-142dc712.entry.js} +1 -1
- package/{dist/web-components-library/p-01a23d8c.entry.js → www/build/p-211c8001.entry.js} +1 -1
- package/{dist/web-components-library/p-ec361ccf.entry.js → www/build/p-2182f383.entry.js} +1 -1
- package/www/build/p-2f9c9ed9.entry.js +1 -0
- package/www/build/p-3ecebf0c.entry.js +1 -0
- package/www/build/{p-e4dce41a.entry.js → p-422d2691.entry.js} +1 -1
- package/www/build/p-42c37977.js +1 -0
- package/{dist/web-components-library/p-7efeb668.entry.js → www/build/p-4434207b.entry.js} +1 -1
- package/www/build/{p-58091e1c.entry.js → p-4fa3a1f5.entry.js} +1 -1
- package/{dist/web-components-library/p-d4440420.entry.js → www/build/p-5ad5d409.entry.js} +1 -1
- package/www/build/{p-0b0a358a.entry.js → p-61b6ab7e.entry.js} +1 -1
- package/www/build/{p-4a360730.entry.js → p-62a79ada.entry.js} +1 -1
- package/www/build/{p-eafa01a1.entry.js → p-62a7b6cb.entry.js} +1 -1
- package/www/build/{p-61ba9cc7.entry.js → p-66a027c2.entry.js} +1 -1
- package/www/build/{p-782d01c1.entry.js → p-67e56d43.entry.js} +1 -1
- package/www/build/{p-9777ec0b.entry.js → p-77d2db66.entry.js} +1 -1
- package/www/build/{p-4ef4c8ef.entry.js → p-8e554778.entry.js} +1 -1
- package/www/build/{p-904375ec.entry.js → p-8fb44da3.entry.js} +1 -1
- package/www/build/{p-5b2d0ccb.entry.js → p-9045dc92.entry.js} +1 -1
- package/www/build/p-981f5b41.entry.js +1 -0
- package/www/build/{p-9d279248.entry.js → p-9baa6b96.entry.js} +1 -1
- package/www/build/{p-10a2a9fe.entry.js → p-a184c4a4.entry.js} +1 -1
- package/www/build/{p-d34e101f.js → p-a4049c7f.js} +1 -1
- package/www/build/{p-814d6b43.entry.js → p-aaee84f0.entry.js} +1 -1
- package/www/build/p-ab5f212d.entry.js +1 -0
- package/{dist/web-components-library/p-feb6ee16.entry.js → www/build/p-b3059f74.entry.js} +1 -1
- package/www/build/{p-157885b1.entry.js → p-b3cab405.entry.js} +1 -1
- package/www/build/p-ba7e61fe.entry.js +1 -0
- package/www/build/{p-30c0f3f2.entry.js → p-c7f70e76.entry.js} +1 -1
- package/www/build/{p-4f64af13.entry.js → p-c806d6e4.entry.js} +1 -1
- package/www/build/{p-0177caf2.entry.js → p-c8578954.entry.js} +1 -1
- package/www/build/{p-02145727.entry.js → p-c9722a45.entry.js} +1 -1
- package/www/build/{p-b77a6115.entry.js → p-d0c956ff.entry.js} +1 -1
- package/www/build/{p-240561e7.entry.js → p-dd928b6f.entry.js} +1 -1
- package/www/build/p-e17ca1a1.entry.js +1 -0
- package/{dist/web-components-library/p-c3771cc7.entry.js → www/build/p-e3d1b621.entry.js} +1 -1
- package/www/build/{p-4e270984.entry.js → p-e559f4d3.entry.js} +1 -1
- package/www/build/p-e8df0a5e.entry.js +1 -0
- package/www/build/p-edc05acf.entry.js +1 -0
- package/www/build/{p-4c7250a9.entry.js → p-eedd3f14.entry.js} +1 -1
- package/www/build/p-f5e5ade5.js +1 -0
- package/{dist/web-components-library/p-95846ba7.entry.js → www/build/p-f85e38d3.entry.js} +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/web-components-library/p-2d325b9b.entry.js +0 -1
- package/dist/web-components-library/p-3bc3f32e.entry.js +0 -1
- package/dist/web-components-library/p-a6c68018.entry.js +0 -1
- package/dist/web-components-library/p-b260e143.entry.js +0 -1
- package/dist/web-components-library/p-c5d6450e.entry.js +0 -1
- package/dist/web-components-library/p-d2da11f4.js +0 -1
- package/dist/web-components-library/p-d502063b.entry.js +0 -1
- package/www/build/p-2d325b9b.entry.js +0 -1
- package/www/build/p-3bc3f32e.entry.js +0 -1
- package/www/build/p-46892774.js +0 -1
- package/www/build/p-a6c68018.entry.js +0 -1
- package/www/build/p-b260e143.entry.js +0 -1
- package/www/build/p-c5d6450e.entry.js +0 -1
- package/www/build/p-d2da11f4.js +0 -1
- package/www/build/p-d502063b.entry.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t,n,e,o,a,i,s,r,c,u,l,f,d,m,g,h,b,w,p,E,v,A,x,T,k,y,D,S,_,C,O,R,N,P,z,B,W,I,K,L,M,U,j,q;!function(t){t.real="reale",t.virtual="virtuale",t.trial="saggio"}(t||(t={})),function(t){t.border="border",t.shadow="shadow",t.overlay="overlay",t.text="text"}(n||(n={})),function(t){t.horizontal="horizontal",t.vertical="vertical"}(e||(e={})),function(t){t.big="big",t.small="small"}(o||(o={})),function(t){t.primary="primary",t.secondary="secondary",t.tertiary="tertiary",t["dark-bg"]="dark-bg"}(a||(a={})),function(t){t.submit="submit",t.reset="reset",t.button="button"}(i||(i={})),function(t){t.big="big",t.small="small",t["x-small"]="x-small"}(s||(s={})),function(t){t.text="text",t.password="password",t.number="number",t.email="email",t.textarea="textarea",t.checkbox="checkbox",t.radio="radio",t.select="select"}(r||(r={})),function(t){t.success="success",t.error="error",t.warning="warning",t.selecting="selecting"}(c||(c={})),function(t){t.AUTO="auto",t.TOP="top",t.RIGHT="right",t.BOTTOM="bottom",t.LEFT="left",t.TOP_RIGHT="top_right",t.TOP_LEFT="top_left",t.BOTTOM_RIGHT="bottom_right",t.BOTTOM_LEFT="bottom_left"}(u||(u={})),function(t){t[t.TAB=9]="TAB",t[t.SPACE=32]="SPACE",t[t.ESC=27]="ESC",t[t.ENTER=13]="ENTER",t[t.ARROW_UP=38]="ARROW_UP",t[t.ARROW_DOWN=40]="ARROW_DOWN",t[t.BACKSPACE=8]="BACKSPACE",t[t.DELETE=46]="DELETE"}(l||(l={})),function(t){t.ARROW_DOWN="ArrowDown",t.ARROW_UP="ArrowUp",t.ENTER="Enter",t.ESC="Escape",t.SPACE="Space"}(f||(f={})),function(t){t.dark="dark",t.light="light"}(d||(d={})),function(t){t["after-down"]="after-down",t["after-center"]="after-center",t["after-up"]="after-up",t["below-right"]="below-right",t["below-center"]="below-center",t["below-left"]="below-left",t["before-down"]="before-down",t["before-center"]="before-center",t["before-up"]="before-up",t["above-right"]="above-right",t["above-center"]="above-center",t["above-left"]="above-left"}(m||(m={})),function(t){t.none="none",t.small="small",t.medium="medium"}(g||(g={})),function(t){t["shadow-1"]="shadow-1",t["shadow-2"]="shadow-2",t["shadow-3"]="shadow-3",t["shadow-4"]="shadow-4",t["shadow-6"]="shadow-6",t["shadow-8"]="shadow-8",t["shadow-12"]="shadow-12",t["shadow-16"]="shadow-16",t["shadow-24"]="shadow-24"}(h||(h={})),function(t){t.small="small",t.medium="medium",t.large="large"}(b||(b={})),function(t){t.horizontal="horizontal",t.vertical="vertical"}(w||(w={})),function(t){t.asc="asc",t.desc="desc",t.none="none"}(p||(p={})),function(t){t.small="small",t.medium="medium",t.large="large"}(E||(E={})),function(t){t.warning="warning",t.error="error",t.success="success",t.neutral="neutral",t.default="default"}(v||(v={})),function(t){t.small="small",t.medium="medium",t.large="large",t["x-large"]="x-large"}(A||(A={})),function(t){t["x-small"]="x-small",t.small="small",t.medium="medium",t.large="large",t.special="special"}(x||(x={})),function(t){t.accordion="accordion",t.menu="menu"}(T||(T={})),function(t){t.right="right",t.left="left"}(k||(k={})),function(t){t.right="right",t.left="left"}(y||(y={})),function(t){t.none="none",t.header="header",t.element="element"}(D||(D={})),function(t){t.success="success",t.warning="warning",t.error="error"}(S||(S={})),function(t){t.success="success",t.warning="warning",t.error="error"}(_||(_={})),function(t){t.mobile="mobile",t.tablet="tablet",t.desktop="desktop"}(C||(C={})),function(t){t.preview="preview",t.open="open",t.closed="closed"}(O||(O={})),function(t){t.dark="dark",t.light="light",t.accent="accent",t.error="error",t.success="success",t.warning="warning"}(R||(R={})),function(t){t.slideInLeft="slide-in-left",t.slideInRight="slide-in-right",t.slideInDown="slide-in-down",t.slideInUp="slide-in-up",t.slideOutLeft="slide-out-left",t.slideOutRight="slide-out-right",t.slideOutDown="slide-out-down",t.slideOutUp="slide-out-up"}(N||(N={})),function(t){t.topRight="top-right",t.topLeft="top-left",t.topCentre="top-centre",t.bottomRight="bottom-right",t.bottomLeft="bottom-left",t.bottomCentre="bottom-centre"}(P||(P={})),function(t){t.expandable="expandable",t.padding="padding",t.none="none"}(z||(z={})),function(t){t.polite="polite",t.assertive="assertive"}(B||(B={})),function(t){t.left="left",t.right="right"}(W||(W={})),function(t){t.overlay="overlay",t.pushcontent="pushcontent"}(I||(I={})),function(t){t.default="default",t.dragdrop="dragdrop"}(K||(K={})),function(t){t.default="default",t.mini="mini"}(L||(L={})),function(t){t.before="before",t.after="after"}(M||(M={})),function(t){t.date="date",t.dateTime="date-time",t.months="months"}(U||(U={})),function(t){t[t.DATE=401]="DATE",t[t.DATETIME=523]="DATETIME",t[t.MONTHS=288]="MONTHS"}(j||(j={})),function(t){t.top="top",t.bottom="bottom"}(q||(q={}));export{E as A,i as B,n as C,C as D,k as E,g as F,h as G,r as I,f as K,t as L,e as N,I as O,m as P,v as S,d as T,B as Z,w as a,a as b,s as c,b as d,W as e,U as f,q as g,j as h,L as i,u as j,l as k,K as l,O as m,c as n,_ as o,o as p,M as q,z as r,N as s,P as t,y as u,A as v,D as w,T as x,x as y,p as z}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,c as e,h as l,g as t}from"./p-98268a57.js";import{l as a,D as s,d as n}from"./p-d2da11f4.js";import{g as o}from"./p-d34e101f.js";import"./p-d69e14fb.js";const r=class{constructor(l){i(this,l),this.fileInput=e(this,"fileInput",7),this.type=a.default,this.filesNumber=0,this.inputAttributes={type:"file",id:"fileElem",multiple:!0}}removeFileListener(){this.filesNumber--}fileDroppedListener(i){this.input.files=i.detail,this.fileInputHandler()}componentDidUpdate(){this.handleAccessibility(),this.invalidFiles.size&&this.errorModal.focus()}componentWillLoad(){this.invalidFiles=new Map,this.type===a.dragdrop&&o()!==s.desktop&&(this.type=a.default)}fileInputHandler(){this.input.files.length&&(this.invalidFiles=this.checkFiles(Array.from(this.input.files)))}handleAccessibility(){this.filesNumber>0?this.el.querySelector("z-file:last-child > z-chip").shadowRoot.querySelector("button").focus():this.type===a.default?this.button.shadowRoot.querySelector("button").focus():this.uploadLink.focus()}checkFiles(i){let e=new Map;const l=`supera i ${this.fileMaxSize}MB`;return i.forEach((i=>{const t=i.size/1024/1024,a=this.acceptedFormat.split(",").some((e=>i.name.toLowerCase().endsWith(e.trim()))),s=t<=this.fileMaxSize;if(s&&a)return this.fileInput.emit(i),this.filesNumber++,void(this.input.value="");e.set(i.name,[]),s||e.get(i.name).push(l),a||e.get(i.name).push(" ha un'estensione non prevista")})),e}renderTitle(){return l("z-heading",{id:"title",variant:"semibold",level:2},this.mainTitle)}renderDescription(i,e){return l("z-body",{variant:i,level:e},this.description)}renderAllowedFileExtensions(){let i="",e="";return this.acceptedFormat&&(i=` nei formati ${this.acceptedFormat.split(", ").map((i=>i.substring(1).toUpperCase())).join(", ")}`),this.fileMaxSize&&(e=` per un massimo di ${this.fileMaxSize}MB di peso`),l("z-body",{level:3},i||e?`Puoi allegare file${i}${e}.`:null)}renderFileSection(){return this.filesNumber>0&&l("section",{class:"files-container"},l("z-heading",{variant:"semibold",level:4},"File appena caricati"),l("div",{class:"files"},l("slot",{name:"files"})),l("z-divider",{size:n.medium}))}renderInput(){return l("input",Object.assign({},this.inputAttributes,{onChange:()=>this.fileInputHandler(),accept:this.acceptedFormat,ref:i=>this.input=i}))}renderUploadButton(){return[this.renderInput(),l("z-button",{onClick:()=>this.input.click(),onKeyPress:i=>{"Space"!=i.code&&"Enter"!=i.code||(i.preventDefault(),this.input.click())},id:"fileSelect",variant:this.buttonVariant,icon:"upload",ref:i=>this.button=i},"Allega")]}renderUploadLink(){return[this.renderInput(),l("z-body",{class:"upload-link-text",variant:"regular",level:1},"Trascinalo qui o"," ",l("z-body",{tabIndex:0,class:"upload-link",onClick:()=>this.input.click(),onKeyPress:i=>{"Space"!=i.code&&"Enter"!=i.code||(i.preventDefault(),this.input.click())},variant:"semibold",level:1,ref:i=>this.uploadLink=i},"caricalo")," ","dal tuo computer")]}renderDefaultMode(){return[this.renderDescription("semibold",3),this.renderAllowedFileExtensions(),this.renderFileSection(),this.renderUploadButton()]}renderDragDropMode(){return[this.renderFileSection(),l("z-dragdrop-area",null,l("div",{class:"text-container"},this.renderDescription("regular",1),this.renderUploadLink(),this.renderAllowedFileExtensions()))]}formatErrorString(i,e){var l,t;return`Il file ${i} ${null!==(l=e[0])&&void 0!==l?l:""}${e[0]&&e[1]?", ":""} ${null!==(t=e[1])&&void 0!==t?t:""} e non può quindi essere caricato.`}handleErrorModalContent(){return l("div",{slot:"modalContent"},l("div",{class:"modalWrapper"},l("div",{class:"files"},Array.from(this.invalidFiles).map((([i,e])=>l("z-body",{variant:"regular",level:3},this.formatErrorString(i,e)))))))}render(){return[l("div",{tabIndex:0,class:`container ${this.type}`},this.renderTitle(),this.type==a.default?this.renderDefaultMode():this.renderDragDropMode()),!!this.invalidFiles.size&&l("z-modal",{tabIndex:0,ref:i=>this.errorModal=i,modaltitle:"Attenzione",onModalClose:()=>this.invalidFiles=new Map,onModalBackgroundClick:()=>this.invalidFiles=new Map},this.handleErrorModalContent())]}get el(){return t(this)}};r.style=".sc-z-file-upload-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);color:var(--color-text01)}.sc-z-file-upload-h>.container.sc-z-file-upload{display:flex;flex-direction:column}.sc-z-file-upload-h .modalWrapper.sc-z-file-upload{display:flex;justify-content:center;align-items:center}.sc-z-file-upload-h .modalWrapper.sc-z-file-upload>.files.sc-z-file-upload{margin:calc(var(--space-unit) * 4);display:flex;flex-direction:column;gap:var(--space-unit)}.sc-z-file-upload-h .text-container.sc-z-file-upload{display:flex;flex-direction:column;margin:auto}.sc-z-file-upload-h .text-container.sc-z-file-upload z-body.sc-z-file-upload{text-align:center}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link.sc-z-file-upload{color:var(--color-link-primary);cursor:pointer}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link-text.sc-z-file-upload{margin-bottom:var(--space-unit)}input#fileElem.sc-z-file-upload{display:none}#title.sc-z-file-upload{display:inline-block;margin-bottom:var(--space-unit)}.sc-z-file-upload-h>.container.sc-z-file-upload>z-button.sc-z-file-upload{display:inline-block;margin-top:calc(var(--space-unit) * 3)}.sc-z-file-upload-h>.container.sc-z-file-upload>.files-container.sc-z-file-upload>z-heading.sc-z-file-upload{display:inline-block;margin:calc(var(--space-unit) * 3) 0}.sc-z-file-upload-h>.container.sc-z-file-upload>.files-container.sc-z-file-upload>.files.sc-z-file-upload{display:flex;flex-wrap:wrap;row-gap:calc(var(--space-unit) * 2);column-gap:calc(var(--space-unit) * 2)}.sc-z-file-upload-h>.container.sc-z-file-upload>.files-container.sc-z-file-upload>z-divider.sc-z-file-upload{margin-top:calc(var(--space-unit) * 3);margin-bottom:0}@media only screen and (min-width: 768px){.sc-z-file-upload-h>.container.sc-z-file-upload>z-button.sc-z-file-upload{align-self:flex-start}}";export{r as z_file_upload}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as r,H as t}from"./p-98268a57.js";import{Z as s}from"./p-d2da11f4.js";const i=class{constructor(r){a(this,r),this.mode=s.polite}render(){return r(t,{"aria-live":this.mode,"aria-atomic":"true","aria-relevant":"additions"},r("slot",null))}};export{i as z_aria_alert}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as i}from"./p-98268a57.js";import{L as e}from"./p-d2da11f4.js";const o=class{constructor(i){t(this,i),this.opened=!1,this.isOpen=!1,this.allowTooltipAuthors=!1}handleToggle(){this.isOpen=!this.isOpen}getTitleAuthors(){return this.allowTooltipAuthors?this.autori:""}componentWillLoad(){this.opened&&(this.isOpen=!0)}elementsEllipsis(){this.allowTooltipAuthors=!!this.elementAuthorsHasEllipsis()}elementAuthorsHasEllipsis(){return this.ellipsisAuthors.offsetWidth<this.ellipsisAuthors.scrollWidth}retrieveClass(){return{isopen:this.isOpen,real:this.cardtype===e.real,trial:this.cardtype===e.trial}}footerTransitionHandler(t){["visibility","height"].includes(t.propertyName)&&this.elementsEllipsis()}render(){return i("div",{class:this.faded&&"faded"},i("footer",{class:this.retrieveClass(),onTransitionEnd:t=>this.footerTransitionHandler(t)},i("span",{class:"toggle"},i("slot",{name:"toggle"})),this.titolo&&i("p",null,this.titolo),i("div",{class:"content"},i("div",null,i("p",{class:"authors",ref:t=>this.ellipsisAuthors=t},i("span",{title:this.getTitleAuthors()},i("span",{class:"bold"},this.autori))),i("p",{class:"year_isbn"},i("span",{class:"isbn"},i("span",null,i("span",{class:"bold"},this.isbn)," (ed. cartacea)")))),i("div",{class:"slot-handler "+(this.isOpen?"visible":"hidden")},i("slot",{name:"list"})))))}};o.style="footer{font-family:var(--font-family-sans);font-weight:var(--font-rg);color:var(--color-surface05);background-color:var(--color-surface01);margin:0px;padding:0px;position:relative;z-index:5;height:calc(var(--space-unit) * 6);width:auto;top:0px;transition:height 500ms ease-in-out, top 500ms ease-in-out;border-radius:0px 0px var(--border-radius) var(--border-radius);border-top:var(--border-size-medium) solid var(--color-surface03)}footer.real,footer.trial{border-top:var(--border-size-medium) solid var(--accent)}footer .bold{font-family:var(--font-family-sans);font-weight:var(--font-sb)}footer>p{font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:16px;line-height:22px;height:40px;margin:0px;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 2)\n var(--space-unit) calc(var(--space-unit) * 2);overflow:hidden;background-color:var(--color-surface01);transition:all 200ms linear}footer.isopen>p{font-size:14px;font-weight:var(--font-sb);transition:all 200ms linear;background-color:var(--bg-neutral-200)}footer.isopen.real>p,footer.isopen.trial>p{background-color:var(--accent)}footer .visible{display:block}footer .hidden{display:none}footer>div.content{height:60px;overflow:hidden}footer>div.content>div:not(.slot-handler){padding:var(--space-unit) calc(var(--space-unit) * 2)}footer>div.content>div>p{font-size:14px;height:20px;line-height:20px;margin:0px;padding:0px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}footer>div.content>div>p.year_isbn{padding-top:var(--space-unit);display:flex;flex-direction:row;justify-content:space-between}footer>div.content>div>p.year_isbn>span.isbn{text-overflow:ellipsis;overflow:hidden}footer.isopen>div.content>div:not(.slot-handler){height:68px}footer.isopen>div.content>div>p.authors{height:40px;white-space:initial;text-overflow:initial}footer.isopen>div.content>div>p.year_isbn{flex-direction:column;height:50px;padding-left:0px}footer.isopen>div.content>div>p.year_isbn>span.isbn{display:inline-grid;padding-left:0px}footer.isopen{height:295px;top:-212px;transition:height 500ms ease-in-out, top 500ms ease-in-out}footer.isopen>div.content{height:280px;transition:height 500ms ease-in-out, top 500ms ease-in-out}.toggle{position:absolute;top:-24px;left:16px;z-index:10}.faded{opacity:0.3;pointer-events:none}";export{o as z_myz_card_footer}
|
package/www/build/p-46892774.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-98268a57.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t(JSON.parse('[["p-ef22d940",[[1,"z-app-topbar",{"theme":[1],"contentMaxWidth":[2,"content-max-width"],"topbarContent":[1,"topbar-content"],"logoLink":[1,"logo-link"],"showAppSwitcher":[4,"show-app-switcher"],"isMobile":[32]},[[9,"resize","handleResize"]]],[1,"z-card",{"variant":[513],"coverIcon":[1,"cover-icon"],"clickable":[516],"showshadow":[516],"hasCoverImage":[32]},[[0,"click","onClick"]]],[4,"z-carousel",{"isloading":[4],"ghostloadingheight":[1]}],[6,"z-offcanvas",{"variant":[513],"open":[1540],"transitiondirection":[513]}],[1,"z-app-switcher",{"theme":[1],"isopen":[32]}],[1,"z-ghost-loading"],[1,"z-logo",{"width":[2],"height":[2],"imageAlt":[1,"image-alt"],"link":[1],"targetBlank":[4,"target-blank"],"mobileLogo":[4,"mobile-logo"]}],[1,"z-link",{"htmlid":[1],"href":[1],"target":[1],"htmltabindex":[2],"isdisabled":[4],"isactive":[4],"iswhite":[4],"textcolor":[1],"icon":[1],"big":[4],"iconposition":[1],"underline":[4],"iconSize":[32]}],[2,"z-divider",{"size":[1],"color":[1],"orientation":[1]}],[1,"z-button",{"htmlid":[1],"name":[1],"disabled":[516],"type":[1],"variant":[513],"icon":[1],"size":[513],"issmall":[516],"square":[516]}],[1,"z-icon",{"name":[1],"height":[2],"width":[2],"iconid":[1],"fill":[1]}]]],["p-c3771cc7",[[6,"z-modal-login",{"forgotPasswordUrl":[1,"forgot-password-url"],"heading":[1],"status":[1025],"message":[1025],"pwdmessage":[1025],"externalProviderCheck":[32]}]]],["p-0177caf2",[[1,"z-footer",{"data":[1],"productName":[1,"product-name"],"productVersion":[1,"product-version"],"productCreditsLink":[1,"product-credits-link"],"showReportAProblemButton":[4,"show-report-a-problem-button"],"contentMaxWidth":[2,"content-max-width"]},[[0,"zLinkClick","zLinkClickListener"]]]]],["p-01a23d8c",[[1,"z-combobox",{"inputid":[1],"items":[1],"label":[1],"hassearch":[4],"searchlabel":[1],"searchplaceholder":[1],"searchtitle":[1],"noresultslabel":[1],"isopen":[1028],"isfixed":[4],"closesearchtext":[1],"hascheckall":[4],"checkalltext":[1],"uncheckalltext":[1],"maxcheckableitems":[2],"searchValue":[32],"selectedCounter":[32],"renderItemsList":[32]},[[0,"inputCheck","inputCheckListener"]]]]],["p-d502063b",[[6,"z-file-upload",{"type":[1537],"buttonVariant":[1,"button-variant"],"acceptedFormat":[1,"accepted-format"],"fileMaxSize":[2,"file-max-size"],"mainTitle":[1,"main-title"],"description":[1],"filesNumber":[32],"invalidFiles":[32]},[[0,"removeFile","removeFileListener"],[0,"fileDropped","fileDroppedListener"]]]]],["p-9777ec0b",[[1,"z-myz-topbar",{"intlinkdata":[1],"extlinkdata":[1],"userdata":[1],"ismyz":[4],"logolink":[1],"imagealt":[1],"activeintlinkid":[1],"activesublinkid":[1],"hideloginbutton":[4],"activeMenuItem":[32],"currentMenuItem":[32],"isMobile":[32],"isMenuMobileOpen":[32]},[[9,"resize","handleResize"],[2,"zListItemLinkClick","handleZListItemLinkClick"],[2,"zListItemClick","handleZListItemClick"]]]]],["p-9d279248",[[1,"z-contextual-menu",{"elements":[1],"color":[1],"popoverPosition":[1,"popover-position"]}]]],["p-4e270984",[[4,"z-date-picker",{"datepickerid":[1],"mode":[1],"flatpickrPosition":[32]}]]],["p-88bc3cf2",[[1,"z-myz-card-dictionary",{"name":[1],"cover":[1],"disabled":[4],"flipped":[1028],"flipbuttonlabel":[1],"hideinfobtn":[4]},[[0,"flipCard","handleFlipCard"]]]]],["p-4c7250a9",[[4,"z-table",{"lines":[514],"errorMessage":[1,"error-message"],"bordered":[4],"callToActionLabel":[1,"call-to-action-label"],"callToActionTwoLabel":[1,"call-to-action-two-label"],"columnSticky":[4,"column-sticky"],"empty":[4],"error":[4],"errorLink":[1,"error-link"],"headerSticky":[4,"header-sticky"],"message":[1],"subtitle":[1],"hasTableBody":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]]]],["p-58091e1c",[[1,"z-messages-pocket",{"pocketid":[1],"messages":[2],"status":[1025]},[[16,"pocketToggle","handlePocketToggle"]]]]],["p-4d9667dc",[[4,"z-table-header-row",{"expandable":[516]}]]],["p-0b0a358a",[[1,"z-cookiebar",{"cookiepolicyurl":[1],"hide":[4],"callback":[16]}]]],["p-b260e143",[[6,"z-file",{"fileNumber":[2,"file-number"],"allowTooltip":[32],"tooltipVisible":[32]},[[1,"mouseover","onMouseOver"],[1,"mouseleave","onMouseLeave"]]]]],["p-02145727",[[4,"z-table-row",{"expandedType":[513,"expanded-type"],"expanded":[32]}]]],["p-35c4d277",[[1,"z-myz-card-alert",{"iconname":[1],"contenttext":[1],"actiontext":[1],"type":[1]}]]],["p-eafa01a1",[[1,"z-myz-card-info",{"data":[1],"htmltabindex":[2],"hiddenContent":[32],"tooltip":[32]}]]],["p-904375ec",[[1,"z-otp",{"inputNum":[2,"input-num"],"status":[1],"message":[1]}]]],["p-782d01c1",[[1,"z-pagination-bar",{"pages":[2],"visiblepages":[2],"currentpage":[1026],"startpage":[1026],"historyraw":[1],"listhistoryrow":[1040],"currentPages":[32]}]]],["p-71e8c2af",[[1,"z-panel-elem",{"elemid":[1],"imgurl":[1],"imgalt":[1],"linkicon":[1],"linklabel":[1],"url":[1],"target":[1],"isdisabled":[4],"descr_slot_name":[1]}]]],["p-104b70e5",[[1,"z-user-dropdown",{"logged":[4],"userFullName":[1,"user-full-name"],"userEmail":[1,"user-email"],"menuContent":[1,"menu-content"],"useInverseColors":[4,"use-inverse-colors"],"isMenuOpen":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"],[8,"click","handleClickOutside"]]]]],["p-d39c0372",[[1,"z-app-header",{"stuck":[516],"hero":[1],"overlay":[516],"flow":[513],"drawerOpen":[516,"drawer-open"],"stucked":[32],"menuLength":[32]}]]],["p-7ebb03d8",[[1,"z-button-sort",{"buttonid":[1],"label":[1],"desclabel":[1],"counter":[2],"sortlabelasc":[1],"sortlabeldesc":[1],"isselected":[1028],"sortasc":[1028],"allowTooltip":[32]}]]],["p-64b2b415",[[1,"z-icon-package"]]],["p-9260abad",[[1,"z-info-box",{"boxid":[1],"isclosable":[4]}]]],["p-9c7cf598",[[1,"z-menu",{"active":[516],"floating":[516],"open":[1540],"hasHeader":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["p-41c5beec",[[1,"z-menu-section",{"active":[516],"open":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["p-6375f662",[[1,"z-myz-card-icon",{"icon":[1],"isdisabled":[4],"ariaLabel":[1,"aria-label"]}]]],["p-95846ba7",[[1,"z-navigation-tab",{"selected":[1540],"disabled":[516],"orientation":[513],"size":[513],"icon":[1],"label":[1],"htmlTitle":[1,"html-title"]},[[0,"focus","onFocus"],[0,"click","onClick"]]]]],["p-b77a6115",[[1,"z-navigation-tab-link",{"selected":[1540],"disabled":[516],"orientation":[513],"size":[513],"htmlTitle":[1,"html-title"],"target":[1],"href":[1],"icon":[1],"label":[1]},[[0,"focus","onFocus"],[0,"click","onClick"]]]]],["p-298d324a",[[1,"z-navigation-tabs",{"orientation":[513],"size":[513],"canNavigate":[32],"canNavigatePrev":[32],"canNavigateNext":[32]},[[9,"resize","checkScrollVisible"],[0,"selected","onTabSelected"]]]]],["p-33f74396",[[1,"z-notification",{"contenticonname":[1],"actiontext":[1],"type":[513],"showclose":[4],"showshadow":[516],"sticky":[516]}]]],["p-c284139b",[[1,"z-pocket-message"]]],["p-4f64af13",[[1,"z-section-title",{"dividerPosition":[1,"divider-position"],"uppercase":[516]}]]],["p-30c0f3f2",[[1,"z-slideshow",{"slideshowid":[1],"data":[1],"device":[32],"currentSlide":[32]}]]],["p-61ba9cc7",[[1,"z-status-tag",{"icon":[1],"text":[1],"expandable":[4],"status":[513],"variant":[1]}]]],["p-feb6ee16",[[1,"z-toast-notification",{"heading":[1],"message":[1],"closebutton":[4],"autoclose":[2],"pauseonfocusloss":[4],"type":[1],"isdraggable":[4],"draggablepercentage":[2],"transition":[1],"percentage":[32],"isTextLong":[32]}]]],["p-02474663",[[1,"z-toggle-button",{"label":[1],"isdisabled":[4],"avoidclick":[4],"opened":[1028]}]]],["p-4a360730",[[6,"z-toggle-switch",{"disabled":[516],"labelPosition":[513,"label-position"],"checked":[1028],"htmlid":[1]}]]],["p-2d325b9b",[[4,"z-aria-alert",{"mode":[1]}]]],["p-240561e7",[[1,"z-avatar",{"size":[1],"text":[1],"textColor":[1,"text-color"],"backgroundColor":[1,"background-color"],"image":[1025]}]]],["p-3bc3f32e",[[1,"z-myz-card-footer",{"titolo":[1],"autori":[1],"isbn":[1],"faded":[4],"cardtype":[1],"opened":[4],"isOpen":[32],"allowTooltipAuthors":[32]},[[0,"toggleClick","handleToggle"]]]]],["p-578a5ad1",[[1,"z-myz-card-footer-sections"]]],["p-7f2fa336",[[1,"z-myz-card-list",{"listdata":[1]}]]],["p-e2560604",[[1,"z-stepper"]]],["p-9352da73",[[1,"z-stepper-item",{"index":[2],"href":[1],"pressed":[4],"disabled":[4]}]]],["p-105b82a6",[[6,"z-table-body"]]],["p-d4927410",[[1,"z-table-expanded-row",{"colSpan":[2,"col-span"]}]]],["p-4aaf3433",[[6,"z-table-footer"]]],["p-6baa8e33",[[6,"z-table-head"]]],["p-6bb8de3e",[[6,"z-table-sticky-footer"]]],["p-5b2d0ccb",[[1,"z-toast-notification-list",{"position":[1],"newestontop":[4]}]]],["p-f6a11970",[[1,"z-visually-hidden"]]],["p-c196c340",[[1,"z-table-header",{"columnId":[1,"column-id"],"padding":[513],"sortable":[4],"showButton":[4,"show-button"],"defaultSortDirection":[1,"default-sort-direction"],"sortDirection":[1025,"sort-direction"],"isMenuOpened":[32]},[[18,"click","handleOutsideClick"],[18,"click","handleClickHeaders"]]]]],["p-157885b1",[[1,"z-table-cell",{"showButton":[4,"show-button"],"padding":[513],"isMenuOpened":[32]}]]],["p-2de00f19",[[6,"z-table-empty-box",{"message":[1],"subtitle":[1]}]]],["p-a9eea65b",[[1,"z-alert",{"type":[1]}]]],["p-a759ab46",[[1,"z-candybar"]]],["p-a6c68018",[[1,"z-chip",{"regulartext":[1],"boldtext":[2],"type":[513],"disabled":[516],"filter":[516]}]]],["p-78e26102",[[1,"z-pagination-page",{"pageid":[1],"value":[2],"isselected":[4],"isdisabled":[4],"isvisited":[4],"ariaLabel":[1,"aria-label"]}]]],["p-814d6b43",[[1,"z-myz-list-item",{"text":[1],"link":[1],"linktarget":[1],"icon":[1],"listitemid":[1],"action":[1],"underlined":[4]}]]],["p-d4440420",[[1,"z-menu-dropdown",{"nomeutente":[1],"menucontent":[1],"buttonid":[1],"ismenuopen":[32]}],[1,"z-myz-list",{"inputrawdata":[1025],"list":[1040]}]]],["p-2c836d42",[[1,"z-body",{"level":[2],"variant":[1],"component":[1]}],[1,"z-typography",{"component":[1],"variant":[1],"level":[1]}]]],["p-a785ff38",[[6,"z-dragdrop-area"],[1,"z-heading",{"level":[2],"variant":[1],"component":[1]}]]],["p-3fc438b7",[[1,"z-modal",{"modalid":[1],"modaltitle":[1],"modalsubtitle":[1],"closeButtonLabel":[1,"close-button-label"]}]]],["p-e4dce41a",[[1,"z-tooltip",{"content":[1],"type":[1025],"open":[1540],"bindTo":[1,"bind-to"],"position":[32]}]]],["p-7efeb668",[[1,"z-list-element",{"alignButton":[513,"align-button"],"clickable":[516],"dividerColor":[1,"divider-color"],"dividerType":[1,"divider-type"],"dividerSize":[1,"divider-size"],"expandable":[516],"expandableStyle":[1,"expandable-style"],"listElementId":[514,"list-element-id"],"size":[513],"color":[513],"disabled":[516],"isContextualMenu":[516,"is-contextual-menu"],"showInnerContent":[32]},[[4,"accessibleFocus","accessibleFocusHandler"]]],[1,"z-list-group",{"size":[513],"dividerType":[513,"divider-type"],"dividerSize":[513,"divider-size"],"dividerColor":[513,"divider-color"]}],[1,"z-list",{"size":[513]}]]],["p-cb13d050",[[1,"z-footer-section",{"name":[1],"isOpen":[32]}],[1,"z-footer-link",{"href":[1]}],[1,"z-footer-social",{"icon":[1],"href":[1],"description":[1]}]]],["p-10a2a9fe",[[1,"z-pocket",{"pocketid":[1],"status":[1025],"open":[64],"close":[64]},[[0,"pocketHeaderClick","handlePocketHeaderClick"],[0,"pocketHeaderPan","handlePocketHeaderPan"]]],[1,"z-pocket-body",{"pocketid":[1],"status":[1025]},[[16,"pocketToggle","handlePocketToggle"]]],[1,"z-pocket-header",{"pocketid":[1]}]]],["p-4ef4c8ef",[[6,"z-popover",{"position":[1],"backgroundColor":[1,"background-color"],"borderRadius":[1,"border-radius"],"boxShadow":[1,"box-shadow"],"showArrow":[4,"show-arrow"],"padding":[1],"isVisible":[32],"popoverPosition":[32]},[[0,"closePopover","closePopover"],[8,"keyup","closePopoverWithKeyboard"],[18,"click","handleOutsideClick"]]]]],["p-c5d6450e",[[1,"z-myz-card",{"faded":[4],"cardtype":[1],"ispressed":[4],"ishighlighted":[4]}],[1,"z-myz-card-body"],[1,"z-myz-card-cover",{"img":[1],"titolo":[1],"faded":[4],"defaultimg":[1]}],[1,"z-myz-card-header",{"titolo":[1],"faded":[4],"cardtype":[1],"allowTooltip":[32]}]]],["p-ec361ccf",[[2,"z-input",{"htmlid":[1],"type":[1],"name":[1],"label":[1],"ariaLabel":[1,"aria-label"],"value":[1025],"disabled":[4],"readonly":[4],"required":[4],"checked":[1028],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"labelafter":[4],"typingtimeout":[2],"items":[1],"autocomplete":[8],"multiple":[4],"hasclearicon":[4],"icon":[1],"isTyping":[32],"textareaWrapperHover":[32],"textareaWrapperFocus":[32],"passwordHidden":[32],"getValue":[64],"setValue":[64],"isChecked":[64]},[[4,"inputCheck","inputCheckListener"]]],[2,"z-select",{"htmlid":[1],"items":[1],"name":[1],"label":[1],"ariaLabel":[1,"aria-label"],"disabled":[4],"readonly":[4],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"autocomplete":[8],"multiple":[4],"noresultslabel":[1],"isOpen":[32],"selectedItems":[32],"searchString":[32],"getSelectedItems":[64],"getValue":[64],"setValue":[64]}],[1,"z-button-filter",{"filtername":[1],"isfixed":[4],"hasicon":[4],"filterid":[1],"issmall":[4]}],[1,"z-input-label",{"value":[1],"disabled":[4],"htmlfor":[1]}],[1,"z-input-message",{"message":[1],"status":[513]}]]]]'),e)));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as i,g as o}from"./p-98268a57.js";import{i as r}from"./p-d2da11f4.js";const e=class{constructor(i){t(this,i),this.disabled=!1,this.filter=!1}renderLegacyChip(){return i("div",null,i("span",{class:"boldtext"},this.boldtext)," ",this.regulartext)}renderFilterChip(){return this.filter?i("button",{class:this.type?this.type:r.default,disabled:this.disabled,tabindex:"0"},i("slot",null)):i("div",{class:this.type?this.type:""},i("slot",null))}render(){return null!=this.boldtext||null!=this.regulartext?this.renderLegacyChip():this.renderFilterChip()}get hostElement(){return o(this)}};e.style=":host>button{display:inline-block;padding:0 calc(var(--space-unit) * 1.5);background-color:var(--bg-white);border:var(--border-size-medium) solid var(--bg-grey-200);color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-size:14px}:host>div{display:inline-block;min-height:28px;line-height:28px;padding:0 calc(var(--space-unit) * 1.5);background-color:var(--bg-white);border:var(--border-size-small) solid var(--bg-grey-200);border-radius:14px;color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-size:12px}.boldtext{font-weight:bold}:host>button:hover{color:var(--myz-blue-dark)}:host>button:disabled{border:var(--border-size-medium) solid var(--bg-grey-200);color:rgb(149, 153, 157);box-shadow:none}:host>button.default:focus:focus-visible,:host>button.mini:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host>button:not(:disabled):active{background-color:var(--gray50)}:host>button.default,:host>div.default{min-height:44px;border-radius:22px;line-height:44px}:host>button.mini,:host>div.mini{min-height:36px;border-radius:22px;line-height:36px}@media only screen and (min-width: 1152px){:host>button{font-size:12px}:host>button.default,:host>div.default{min-height:32px;border-radius:16px;line-height:32px}:host>button.mini,:host>div.mini{min-height:24px;border-radius:16px;line-height:24px}}";export{e as z_chip}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,c as e,h as s,H as t,g as l}from"./p-98268a57.js";import{i as n,D as o,j as c}from"./p-d2da11f4.js";import{t as h}from"./p-d69e14fb.js";import{g as a}from"./p-d34e101f.js";const r=class{constructor(s){i(this,s),this.removeFile=e(this,"removeFile",7),this.allowTooltip=!1,this.tooltipVisible=!1}removeFileHandler(){this.removeFile.emit(),this.el.remove()}onMouseOver(){this.tooltipVisible=!0}onMouseLeave(){this.tooltipVisible=!1}componentDidLoad(){var i,e;this.elementHasEllipsis()&&window.innerWidth>h&&(this.allowTooltip=!0),null===(e=null===(i=this.icon)||void 0===i?void 0:i.focus)||void 0===e||e.call(i)}elementHasEllipsis(){return this.ellipsis.offsetWidth<this.ellipsis.scrollWidth}render(){return s(t,null,this.allowTooltip&&s("z-tooltip",{open:this.tooltipVisible,type:c.AUTO,"bind-to":`#chip-${this.fileNumber}`},s("span",{class:"body-5 tootip-content"},this.ellipsis.innerText)),s("z-chip",{id:`chip-${this.fileNumber}`,filter:!0,type:n.default},s("div",{class:"chip-content"},s("span",{ref:i=>this.ellipsis=i,tabIndex:-1,class:{"body-3-sb":a()==o.desktop,"body-2-sb":a()!==o.desktop}},s("slot",null)),s("z-icon",{"aria-label":"Elimina file",tabIndex:0,onClick:()=>this.removeFileHandler(),onKeyPress:i=>{"Space"!=i.code&&"Enter"!=i.code||(i.preventDefault(),this.removeFileHandler())},name:"multiply-circled",height:a()!==o.desktop?20:15,width:a()!==o.desktop?20:15,ref:i=>this.icon=i}))))}get el(){return l(this)}};r.style=".sc-z-file-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);position:relative}.sc-z-file-h .chip-content.sc-z-file{display:flex;align-items:center}.sc-z-file-h>z-tooltip.sc-z-file{z-index:10}.sc-z-file-h>z-tooltip.sc-z-file>.tootip-content.sc-z-file{white-space:nowrap}.sc-z-file-h>z-chip.sc-z-file>.chip-content.sc-z-file>span.sc-z-file{max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.33;letter-spacing:0.32px}.sc-z-file-h>z-chip.sc-z-file>.chip-content.sc-z-file>span.regular.sc-z-file{font-weight:var(--font-rg)}.sc-z-file-h>z-chip.sc-z-file>.chip-content.sc-z-file>span.bold.sc-z-file{font-weight:var(--font-sb)}.sc-z-file-h .chip-content.sc-z-file>z-icon.sc-z-file:last-child{margin-left:var(--space-unit);cursor:pointer;fill:var(--color-icon01)}@media only screen and (min-width: 1152px){.sc-z-file-h{border-radius:16px}.sc-z-file-h>z-chip.sc-z-file>.chip-content.sc-z-file>span.sc-z-file{font-size:12px}}";export{r as z_file}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,h as e}from"./p-98268a57.js";import{L as t}from"./p-d2da11f4.js";const i=class{constructor(e){r(this,e),this.ispressed=!1,this.ishighlighted=!1}retrieveClass(){let r="";return this.cardtype===t.real?r+="real":this.cardtype===t.trial&&(r+="trial"),this.faded?r+=" faded":this.ispressed?r+=" pressed":this.ishighlighted&&(r+=" highlighted"),r}render(){return e("div",{class:this.retrieveClass(),tabindex:"0"},e("slot",null))}};i.style="div{background-color:var(--color-surface01);display:flex;flex-direction:column;width:auto;box-sizing:border-box;width:256px;height:522px;border:var(--border-size-medium) solid var(--color-surface03);border-radius:var(--border-radius)}div.real,div.trial{border-color:var(--accent)}div.faded{border:var(--border-size-medium) solid var(--color-surface02)}div.highlighted{box-shadow:var(--shadow-4);outline:none}div.pressed{box-shadow:var(--shadow-8);outline:none}div:focus{box-shadow:var(--shadow-focus-primary);outline:none}";const a=class{constructor(e){r(this,e)}render(){return e("div",null,e("slot",{name:"alert"}),e("slot",{name:"cover"}))}};a.style=":host{height:340px;width:auto}:host>div{height:340px;width:auto;display:flex;align-items:center;justify-content:center;position:relative}";const o=class{constructor(e){r(this,e)}hadleOnImageError(){this.img=this.defaultimg}render(){return e("img",{class:this.faded&&"faded",onError:this.hadleOnImageError.bind(this),alt:this.titolo,src:this.img})}};o.style="img{display:block;margin:auto auto;height:340px;max-width:100%;object-fit:cover}img.faded{opacity:0.3}";const s=class{constructor(e){r(this,e),this.allowTooltip=!1}getTitle(){return this.allowTooltip?this.titolo:""}componentDidLoad(){this.elementHasEllipsis()&&(this.allowTooltip=!0)}elementHasEllipsis(){return this.ellipsis.offsetWidth<this.ellipsis.scrollWidth}retrieveClass(){return{real:this.cardtype===t.real,trial:this.cardtype===t.trial,faded:this.faded}}render(){return e("header",{class:this.retrieveClass()},e("h2",{ref:r=>this.ellipsis=r,title:this.getTitle()},this.titolo),e("slot",{name:"icon"}))}};s.style="header{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:auto;height:calc(var(--space-unit) * 6);position:relative;border-bottom:var(--border-size-medium) solid var(--color-surface03);border-radius:var(--border-radius) var(--border-radius)\n var(--border-no-radius) var(--border-no-radius);background-color:var(--color-surface01)}header.real,header.trial{background-color:var(--accent-lighter);border-bottom:var(--border-size-medium) solid var(--accent)}h2{font-family:var(--font-family-sans);font-weight:var(--font-sb);color:var(--color-surface05);height:calc(var(--space-unit) * 2);font-size:12px;text-transform:uppercase;letter-spacing:0.22px;line-height:calc(var(--space-unit) * 2);margin:0px;padding:calc(var(--space-unit) * 2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.faded{border-bottom:var(--border-size-medium) solid var(--color-surface02)}.faded.real,.faded.trial{border-top:var(--border-size-medium) solid var(--accent);border-right:var(--border-size-medium) solid var(--accent);border-left:var(--border-size-medium) solid var(--accent)}";export{i as z_myz_card,a as z_myz_card_body,o as z_myz_card_cover,s as z_myz_card_header}
|
package/www/build/p-d2da11f4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t,n,e,o,a,i,s,r,c,u,l,f,d,m,g,h,b,w,p,E,v,A,x,T,k,y,D,S,_,C,O,R,N,P,z,B,W,I,K,L,M,U,j,q;!function(t){t.real="reale",t.virtual="virtuale",t.trial="saggio"}(t||(t={})),function(t){t.border="border",t.shadow="shadow",t.overlay="overlay",t.text="text"}(n||(n={})),function(t){t.horizontal="horizontal",t.vertical="vertical"}(e||(e={})),function(t){t.big="big",t.small="small"}(o||(o={})),function(t){t.primary="primary",t.secondary="secondary",t.tertiary="tertiary",t["dark-bg"]="dark-bg"}(a||(a={})),function(t){t.submit="submit",t.reset="reset",t.button="button"}(i||(i={})),function(t){t.big="big",t.small="small",t["x-small"]="x-small"}(s||(s={})),function(t){t.text="text",t.password="password",t.number="number",t.email="email",t.textarea="textarea",t.checkbox="checkbox",t.radio="radio",t.select="select"}(r||(r={})),function(t){t.success="success",t.error="error",t.warning="warning",t.selecting="selecting"}(c||(c={})),function(t){t.AUTO="auto",t.TOP="top",t.RIGHT="right",t.BOTTOM="bottom",t.LEFT="left",t.TOP_RIGHT="top_right",t.TOP_LEFT="top_left",t.BOTTOM_RIGHT="bottom_right",t.BOTTOM_LEFT="bottom_left"}(u||(u={})),function(t){t[t.TAB=9]="TAB",t[t.SPACE=32]="SPACE",t[t.ESC=27]="ESC",t[t.ENTER=13]="ENTER",t[t.ARROW_UP=38]="ARROW_UP",t[t.ARROW_DOWN=40]="ARROW_DOWN",t[t.BACKSPACE=8]="BACKSPACE",t[t.DELETE=46]="DELETE"}(l||(l={})),function(t){t.ARROW_DOWN="ArrowDown",t.ARROW_UP="ArrowUp",t.ENTER="Enter",t.ESC="Escape",t.SPACE="Space"}(f||(f={})),function(t){t.dark="dark",t.light="light"}(d||(d={})),function(t){t["after-down"]="after-down",t["after-center"]="after-center",t["after-up"]="after-up",t["below-right"]="below-right",t["below-center"]="below-center",t["below-left"]="below-left",t["before-down"]="before-down",t["before-center"]="before-center",t["before-up"]="before-up",t["above-right"]="above-right",t["above-center"]="above-center",t["above-left"]="above-left"}(m||(m={})),function(t){t.none="none",t.small="small",t.medium="medium"}(g||(g={})),function(t){t["shadow-1"]="shadow-1",t["shadow-2"]="shadow-2",t["shadow-3"]="shadow-3",t["shadow-4"]="shadow-4",t["shadow-6"]="shadow-6",t["shadow-8"]="shadow-8",t["shadow-12"]="shadow-12",t["shadow-16"]="shadow-16",t["shadow-24"]="shadow-24"}(h||(h={})),function(t){t.small="small",t.medium="medium",t.large="large"}(b||(b={})),function(t){t.horizontal="horizontal",t.vertical="vertical"}(w||(w={})),function(t){t.asc="asc",t.desc="desc",t.none="none"}(p||(p={})),function(t){t.small="small",t.medium="medium",t.large="large"}(E||(E={})),function(t){t.warning="warning",t.error="error",t.success="success",t.neutral="neutral",t.default="default"}(v||(v={})),function(t){t.small="small",t.medium="medium",t.large="large",t["x-large"]="x-large"}(A||(A={})),function(t){t["x-small"]="x-small",t.small="small",t.medium="medium",t.large="large",t.special="special"}(x||(x={})),function(t){t.accordion="accordion",t.menu="menu"}(T||(T={})),function(t){t.right="right",t.left="left"}(k||(k={})),function(t){t.right="right",t.left="left"}(y||(y={})),function(t){t.none="none",t.header="header",t.element="element"}(D||(D={})),function(t){t.success="success",t.warning="warning",t.error="error"}(S||(S={})),function(t){t.success="success",t.warning="warning",t.error="error"}(_||(_={})),function(t){t.mobile="mobile",t.tablet="tablet",t.desktop="desktop"}(C||(C={})),function(t){t.preview="preview",t.open="open",t.closed="closed"}(O||(O={})),function(t){t.dark="dark",t.light="light",t.accent="accent",t.error="error",t.success="success",t.warning="warning"}(R||(R={})),function(t){t.slideInLeft="slide-in-left",t.slideInRight="slide-in-right",t.slideInDown="slide-in-down",t.slideInUp="slide-in-up",t.slideOutLeft="slide-out-left",t.slideOutRight="slide-out-right",t.slideOutDown="slide-out-down",t.slideOutUp="slide-out-up"}(N||(N={})),function(t){t.topRight="top-right",t.topLeft="top-left",t.topCentre="top-centre",t.bottomRight="bottom-right",t.bottomLeft="bottom-left",t.bottomCentre="bottom-centre"}(P||(P={})),function(t){t.expandable="expandable",t.padding="padding",t.none="none"}(z||(z={})),function(t){t.polite="polite",t.assertive="assertive"}(B||(B={})),function(t){t.left="left",t.right="right"}(W||(W={})),function(t){t.overlay="overlay",t.pushcontent="pushcontent"}(I||(I={})),function(t){t.default="default",t.dragdrop="dragdrop"}(K||(K={})),function(t){t.default="default",t.mini="mini"}(L||(L={})),function(t){t.before="before",t.after="after"}(M||(M={})),function(t){t.date="date",t.dateTime="date-time",t.months="months"}(U||(U={})),function(t){t[t.DATE=401]="DATE",t[t.DATETIME=523]="DATETIME",t[t.MONTHS=288]="MONTHS"}(j||(j={})),function(t){t.top="top",t.bottom="bottom"}(q||(q={}));export{E as A,i as B,n as C,C as D,k as E,g as F,h as G,r as I,f as K,t as L,e as N,I as O,m as P,v as S,d as T,B as Z,w as a,a as b,s as c,b as d,W as e,U as f,q as g,j as h,L as i,u as j,l as k,K as l,O as m,c as n,_ as o,o as p,M as q,z as r,N as s,P as t,y as u,A as v,D as w,T as x,x as y,p as z}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,c as e,h as l,g as t}from"./p-98268a57.js";import{l as a,D as s,d as n}from"./p-d2da11f4.js";import{g as o}from"./p-d34e101f.js";import"./p-d69e14fb.js";const r=class{constructor(l){i(this,l),this.fileInput=e(this,"fileInput",7),this.type=a.default,this.filesNumber=0,this.inputAttributes={type:"file",id:"fileElem",multiple:!0}}removeFileListener(){this.filesNumber--}fileDroppedListener(i){this.input.files=i.detail,this.fileInputHandler()}componentDidUpdate(){this.handleAccessibility(),this.invalidFiles.size&&this.errorModal.focus()}componentWillLoad(){this.invalidFiles=new Map,this.type===a.dragdrop&&o()!==s.desktop&&(this.type=a.default)}fileInputHandler(){this.input.files.length&&(this.invalidFiles=this.checkFiles(Array.from(this.input.files)))}handleAccessibility(){this.filesNumber>0?this.el.querySelector("z-file:last-child > z-chip").shadowRoot.querySelector("button").focus():this.type===a.default?this.button.shadowRoot.querySelector("button").focus():this.uploadLink.focus()}checkFiles(i){let e=new Map;const l=`supera i ${this.fileMaxSize}MB`;return i.forEach((i=>{const t=i.size/1024/1024,a=this.acceptedFormat.split(",").some((e=>i.name.toLowerCase().endsWith(e.trim()))),s=t<=this.fileMaxSize;if(s&&a)return this.fileInput.emit(i),this.filesNumber++,void(this.input.value="");e.set(i.name,[]),s||e.get(i.name).push(l),a||e.get(i.name).push(" ha un'estensione non prevista")})),e}renderTitle(){return l("z-heading",{id:"title",variant:"semibold",level:2},this.mainTitle)}renderDescription(i,e){return l("z-body",{variant:i,level:e},this.description)}renderAllowedFileExtensions(){let i="",e="";return this.acceptedFormat&&(i=` nei formati ${this.acceptedFormat.split(", ").map((i=>i.substring(1).toUpperCase())).join(", ")}`),this.fileMaxSize&&(e=` per un massimo di ${this.fileMaxSize}MB di peso`),l("z-body",{level:3},i||e?`Puoi allegare file${i}${e}.`:null)}renderFileSection(){return this.filesNumber>0&&l("section",{class:"files-container"},l("z-heading",{variant:"semibold",level:4},"File appena caricati"),l("div",{class:"files"},l("slot",{name:"files"})),l("z-divider",{size:n.medium}))}renderInput(){return l("input",Object.assign({},this.inputAttributes,{onChange:()=>this.fileInputHandler(),accept:this.acceptedFormat,ref:i=>this.input=i}))}renderUploadButton(){return[this.renderInput(),l("z-button",{onClick:()=>this.input.click(),onKeyPress:i=>{"Space"!=i.code&&"Enter"!=i.code||(i.preventDefault(),this.input.click())},id:"fileSelect",variant:this.buttonVariant,icon:"upload",ref:i=>this.button=i},"Allega")]}renderUploadLink(){return[this.renderInput(),l("z-body",{class:"upload-link-text",variant:"regular",level:1},"Trascinalo qui o"," ",l("z-body",{tabIndex:0,class:"upload-link",onClick:()=>this.input.click(),onKeyPress:i=>{"Space"!=i.code&&"Enter"!=i.code||(i.preventDefault(),this.input.click())},variant:"semibold",level:1,ref:i=>this.uploadLink=i},"caricalo")," ","dal tuo computer")]}renderDefaultMode(){return[this.renderDescription("semibold",3),this.renderAllowedFileExtensions(),this.renderFileSection(),this.renderUploadButton()]}renderDragDropMode(){return[this.renderFileSection(),l("z-dragdrop-area",null,l("div",{class:"text-container"},this.renderDescription("regular",1),this.renderUploadLink(),this.renderAllowedFileExtensions()))]}formatErrorString(i,e){var l,t;return`Il file ${i} ${null!==(l=e[0])&&void 0!==l?l:""}${e[0]&&e[1]?", ":""} ${null!==(t=e[1])&&void 0!==t?t:""} e non può quindi essere caricato.`}handleErrorModalContent(){return l("div",{slot:"modalContent"},l("div",{class:"modalWrapper"},l("div",{class:"files"},Array.from(this.invalidFiles).map((([i,e])=>l("z-body",{variant:"regular",level:3},this.formatErrorString(i,e)))))))}render(){return[l("div",{tabIndex:0,class:`container ${this.type}`},this.renderTitle(),this.type==a.default?this.renderDefaultMode():this.renderDragDropMode()),!!this.invalidFiles.size&&l("z-modal",{tabIndex:0,ref:i=>this.errorModal=i,modaltitle:"Attenzione",onModalClose:()=>this.invalidFiles=new Map,onModalBackgroundClick:()=>this.invalidFiles=new Map},this.handleErrorModalContent())]}get el(){return t(this)}};r.style=".sc-z-file-upload-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);color:var(--color-text01)}.sc-z-file-upload-h>.container.sc-z-file-upload{display:flex;flex-direction:column}.sc-z-file-upload-h .modalWrapper.sc-z-file-upload{display:flex;justify-content:center;align-items:center}.sc-z-file-upload-h .modalWrapper.sc-z-file-upload>.files.sc-z-file-upload{margin:calc(var(--space-unit) * 4);display:flex;flex-direction:column;gap:var(--space-unit)}.sc-z-file-upload-h .text-container.sc-z-file-upload{display:flex;flex-direction:column;margin:auto}.sc-z-file-upload-h .text-container.sc-z-file-upload z-body.sc-z-file-upload{text-align:center}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link.sc-z-file-upload{color:var(--color-link-primary);cursor:pointer}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link-text.sc-z-file-upload{margin-bottom:var(--space-unit)}input#fileElem.sc-z-file-upload{display:none}#title.sc-z-file-upload{display:inline-block;margin-bottom:var(--space-unit)}.sc-z-file-upload-h>.container.sc-z-file-upload>z-button.sc-z-file-upload{display:inline-block;margin-top:calc(var(--space-unit) * 3)}.sc-z-file-upload-h>.container.sc-z-file-upload>.files-container.sc-z-file-upload>z-heading.sc-z-file-upload{display:inline-block;margin:calc(var(--space-unit) * 3) 0}.sc-z-file-upload-h>.container.sc-z-file-upload>.files-container.sc-z-file-upload>.files.sc-z-file-upload{display:flex;flex-wrap:wrap;row-gap:calc(var(--space-unit) * 2);column-gap:calc(var(--space-unit) * 2)}.sc-z-file-upload-h>.container.sc-z-file-upload>.files-container.sc-z-file-upload>z-divider.sc-z-file-upload{margin-top:calc(var(--space-unit) * 3);margin-bottom:0}@media only screen and (min-width: 768px){.sc-z-file-upload-h>.container.sc-z-file-upload>z-button.sc-z-file-upload{align-self:flex-start}}";export{r as z_file_upload}
|