@zanichelli/albe-web-components 12.6.1-rc1 → 13.0.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 +2939 -0
- package/dist/cjs/index-dc60bee7.js +10 -58
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-9573c34a.js → utils-2b313a8e.js} +1 -1
- package/dist/cjs/{utils-9573c34a.js.map → utils-2b313a8e.js.map} +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/{esm/icons-f212e30c.js → cjs/z-app-header_12.cjs.entry.js} +1019 -2
- package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -0
- package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
- package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +1024 -0
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -0
- package/dist/cjs/z-file-upload.cjs.entry.js +194 -0
- package/dist/cjs/z-file-upload.cjs.entry.js.map +1 -0
- package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
- package/dist/cjs/z-link.cjs.entry.js +1 -1
- package/dist/cjs/z-messages-pocket.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-sections.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/cjs/z-pocket-message.cjs.entry.js +1 -1
- package/dist/cjs/z-pocket_3.cjs.entry.js +3 -3
- package/dist/cjs/z-popover.cjs.entry.js +1 -1
- package/dist/cjs/z-range-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
- package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +0 -14
- package/dist/collection/components/file-upload/z-file-upload/index.js +1 -23
- package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -1
- package/dist/collection/components/inputs/z-searchbar/index.js +3 -1
- package/dist/collection/components/inputs/z-searchbar/index.js.map +1 -1
- package/dist/collection/components/inputs/z-searchbar/styles.css +5 -2
- package/dist/collection/components/list/z-list-element/index.js +1 -26
- package/dist/collection/components/list/z-list-element/index.js.map +1 -1
- package/dist/collection/components/list/z-list-element/styles.css +12 -37
- package/dist/collection/components/z-cover-hero/index.js +2 -2
- package/dist/collection/components/z-divider/index.js +1 -1
- package/dist/collection/components/z-ghost-loading/index.js +1 -1
- package/dist/collection/components/z-info-reveal/index.js +1 -1
- package/dist/collection/components/z-offcanvas/index.js +1 -1
- package/dist/collection/components/z-offcanvas/styles.css +1 -1
- package/dist/collection/components/z-popover/index.js +1 -1
- package/dist/collection/components/z-section-title/index.js +1 -1
- package/dist/collection/components/z-skip-to-content/index.js +1 -1
- package/dist/collection/components/z-tag/index.js +2 -2
- package/dist/collection/components/z-visually-hidden/index.js +1 -1
- package/dist/collection/deprecated/z-link/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +1 -1
- package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +1 -1
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +1 -1
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
- package/dist/components/index.d.ts +0 -28
- package/dist/components/index.js +0 -14
- package/dist/components/index.js.map +1 -1
- package/dist/components/index13.js +2 -10
- package/dist/components/index13.js.map +1 -1
- package/dist/components/index16.js +1 -1
- package/dist/components/index17.js +1 -1
- package/dist/components/index18.js +1 -1
- package/dist/components/index19.js +1 -1
- package/dist/components/index21.js +2 -2
- package/dist/components/index21.js.map +1 -1
- package/dist/components/index22.js +1 -1
- package/dist/components/index23.js +1 -1
- package/dist/components/index24.js +1 -1
- package/dist/components/index25.js +1 -1
- package/dist/components/index26.js +3 -3
- package/dist/components/index26.js.map +1 -1
- package/dist/components/index27.js +17 -37
- package/dist/components/index27.js.map +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/index6.js +1 -1
- package/dist/components/index8.js +1 -1
- package/dist/components/z-app-header.js +1 -1
- package/dist/components/z-cover-hero.js +2 -2
- package/dist/components/z-file-upload.js +1 -6
- package/dist/components/z-file-upload.js.map +1 -1
- package/dist/components/z-info-reveal.js +1 -1
- package/dist/components/z-link.js +1 -1
- package/dist/components/z-messages-pocket.js +1 -1
- package/dist/components/z-myz-card-alert.js +1 -1
- package/dist/components/z-myz-card-dictionary.js +1 -1
- package/dist/components/z-myz-card-footer-sections.js +1 -1
- package/dist/components/z-myz-card-footer.js +1 -1
- package/dist/components/z-myz-card-icon.js +1 -1
- package/dist/components/z-myz-card-info.js +1 -1
- package/dist/components/z-myz-card-list.js +1 -1
- package/dist/components/z-myz-list.js +1 -1
- package/dist/components/z-otp.js +2 -2
- package/dist/components/z-pocket-message.js +1 -1
- package/dist/components/z-section-title.js +1 -1
- package/dist/components/z-skip-to-content.js +1 -1
- package/dist/components/z-tag.js +1 -1
- package/dist/components/z-visually-hidden.js +1 -1
- package/dist/esm/index-f16bc2ca.js +10 -58
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-d29ea23d.js → utils-cd008fbc.js} +1 -1
- package/dist/esm/{utils-d29ea23d.js.map → utils-cd008fbc.js.map} +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-alert.entry.js +1 -1
- package/dist/{cjs/icons-be077181.js → esm/z-app-header_12.entry.js} +1003 -3
- package/dist/esm/z-app-header_12.entry.js.map +1 -0
- package/dist/esm/z-cover-hero.entry.js +2 -2
- package/dist/esm/z-date-picker.entry.js +1 -1
- package/dist/esm/z-dragdrop-area_2.entry.js +1019 -0
- package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -0
- package/dist/esm/z-file-upload.entry.js +190 -0
- package/dist/esm/z-file-upload.entry.js.map +1 -0
- package/dist/esm/z-ghost-loading.entry.js +1 -1
- package/dist/esm/z-info-reveal.entry.js +1 -1
- package/dist/esm/z-link.entry.js +1 -1
- package/dist/esm/z-messages-pocket.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-sections.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +1 -1
- package/dist/esm/z-myz-card-list.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +4 -4
- package/dist/esm/z-myz-list.entry.js +1 -1
- package/dist/esm/z-otp.entry.js +2 -2
- package/dist/esm/z-pocket-message.entry.js +1 -1
- package/dist/esm/z-pocket_3.entry.js +3 -3
- package/dist/esm/z-popover.entry.js +1 -1
- package/dist/esm/z-range-picker.entry.js +1 -1
- package/dist/esm/z-section-title.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +1 -1
- package/dist/esm/z-visually-hidden.entry.js +1 -1
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +0 -2
- package/dist/types/components/inputs/z-searchbar/index.d.ts +2 -0
- package/dist/types/components/list/z-list-element/index.d.ts +0 -5
- package/dist/types/components.d.ts +10 -893
- package/dist/web-components-library/{p-6d0bb567.entry.js → p-00d7315a.entry.js} +2 -2
- package/dist/web-components-library/{p-10c29fb4.entry.js → p-04755b76.entry.js} +2 -2
- package/dist/web-components-library/{p-7d4cd2e8.entry.js → p-05b39597.entry.js} +2 -2
- package/dist/web-components-library/{p-5a174821.entry.js → p-0d799f83.entry.js} +2 -2
- package/dist/web-components-library/{p-83657b33.entry.js → p-120a809e.entry.js} +2 -2
- package/dist/web-components-library/{p-fa4a2862.entry.js → p-239fb968.entry.js} +2 -2
- package/dist/web-components-library/{p-378b2bbf.entry.js → p-24ab494d.entry.js} +2 -2
- package/dist/web-components-library/{p-f97c093d.entry.js → p-2637ab23.entry.js} +2 -2
- package/{www/build/p-af78542a.js → dist/web-components-library/p-49a35cf0.js} +1 -1
- package/dist/web-components-library/p-4c40561d.entry.js +2 -0
- package/dist/web-components-library/p-5023f7d5.entry.js +2 -0
- package/dist/web-components-library/p-5023f7d5.entry.js.map +1 -0
- package/dist/web-components-library/p-52fa5f80.entry.js +2 -0
- package/dist/web-components-library/p-52fa5f80.entry.js.map +1 -0
- package/dist/web-components-library/p-5d67d311.entry.js +2 -0
- package/dist/web-components-library/{p-ae71256f.entry.js → p-5eb0a064.entry.js} +2 -2
- package/dist/web-components-library/{p-2f72475d.entry.js → p-6edd5dbe.entry.js} +2 -2
- package/dist/web-components-library/{p-402bd7f6.entry.js → p-8d81a5c8.entry.js} +2 -2
- package/dist/web-components-library/p-91a7c5a9.entry.js +2 -0
- package/dist/web-components-library/p-91a7c5a9.entry.js.map +1 -0
- package/dist/web-components-library/{p-210fbe0f.entry.js → p-942e5126.entry.js} +2 -2
- package/{www/build/p-af27423a.entry.js → dist/web-components-library/p-95104b91.entry.js} +2 -2
- package/dist/web-components-library/{p-9e71d6b3.entry.js → p-996c1471.entry.js} +2 -2
- package/{www/build/p-bb8037c4.entry.js → dist/web-components-library/p-a53ab86e.entry.js} +2 -2
- package/dist/web-components-library/{p-ac497c80.entry.js → p-b57362ef.entry.js} +2 -2
- package/dist/web-components-library/{p-97bba1f2.entry.js → p-b670ffa5.entry.js} +2 -2
- package/dist/web-components-library/{p-38c63f28.entry.js → p-d1f8ca38.entry.js} +2 -2
- package/dist/web-components-library/{p-9882e8a5.entry.js → p-d251f105.entry.js} +2 -2
- package/dist/web-components-library/{p-e3e48e64.entry.js → p-d92765b6.entry.js} +2 -2
- package/dist/web-components-library/{p-5d220bbc.entry.js → p-dbc437d8.entry.js} +2 -2
- package/{www/build/p-d83dfde7.entry.js → dist/web-components-library/p-fe6f5926.entry.js} +2 -2
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/dist/web-components-library/web-components-library.esm.js.map +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +0 -14
- package/react/components.js +2 -16
- package/react/components.js.map +1 -1
- package/src-react/index.ts +1 -0
- package/www/build/{p-6d0bb567.entry.js → p-00d7315a.entry.js} +2 -2
- package/www/build/{p-10c29fb4.entry.js → p-04755b76.entry.js} +2 -2
- package/www/build/{p-7d4cd2e8.entry.js → p-05b39597.entry.js} +2 -2
- package/www/build/{p-5a174821.entry.js → p-0d799f83.entry.js} +2 -2
- package/www/build/{p-83657b33.entry.js → p-120a809e.entry.js} +2 -2
- package/www/build/{p-fa4a2862.entry.js → p-239fb968.entry.js} +2 -2
- package/www/build/{p-378b2bbf.entry.js → p-24ab494d.entry.js} +2 -2
- package/www/build/{p-f97c093d.entry.js → p-2637ab23.entry.js} +2 -2
- package/{dist/web-components-library/p-af78542a.js → www/build/p-49a35cf0.js} +1 -1
- package/www/build/p-4c40561d.entry.js +2 -0
- package/www/build/p-5023f7d5.entry.js +2 -0
- package/www/build/p-5023f7d5.entry.js.map +1 -0
- package/www/build/p-52fa5f80.entry.js +2 -0
- package/www/build/p-52fa5f80.entry.js.map +1 -0
- package/www/build/p-56810079.js +2 -0
- package/www/build/p-5d67d311.entry.js +2 -0
- package/www/build/{p-ae71256f.entry.js → p-5eb0a064.entry.js} +2 -2
- package/www/build/{p-2f72475d.entry.js → p-6edd5dbe.entry.js} +2 -2
- package/www/build/{p-402bd7f6.entry.js → p-8d81a5c8.entry.js} +2 -2
- package/www/build/p-91a7c5a9.entry.js +2 -0
- package/www/build/p-91a7c5a9.entry.js.map +1 -0
- package/www/build/{p-210fbe0f.entry.js → p-942e5126.entry.js} +2 -2
- package/{dist/web-components-library/p-af27423a.entry.js → www/build/p-95104b91.entry.js} +2 -2
- package/www/build/{p-9e71d6b3.entry.js → p-996c1471.entry.js} +2 -2
- package/{dist/web-components-library/p-bb8037c4.entry.js → www/build/p-a53ab86e.entry.js} +2 -2
- package/www/build/{p-ac497c80.entry.js → p-b57362ef.entry.js} +2 -2
- package/www/build/{p-97bba1f2.entry.js → p-b670ffa5.entry.js} +2 -2
- package/www/build/{p-38c63f28.entry.js → p-d1f8ca38.entry.js} +2 -2
- package/www/build/{p-9882e8a5.entry.js → p-d251f105.entry.js} +2 -2
- package/www/build/{p-e3e48e64.entry.js → p-d92765b6.entry.js} +2 -2
- package/www/build/{p-5d220bbc.entry.js → p-dbc437d8.entry.js} +2 -2
- package/{dist/web-components-library/p-d83dfde7.entry.js → www/build/p-fe6f5926.entry.js} +2 -2
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.esm.js.map +1 -1
- package/www/index.html +1 -1
- package/dist/cjs/icons-be077181.js.map +0 -1
- package/dist/cjs/index-0a7baee3.js +0 -24
- package/dist/cjs/index-0a7baee3.js.map +0 -1
- package/dist/cjs/index-37180b8d.js +0 -24
- package/dist/cjs/index-37180b8d.js.map +0 -1
- package/dist/cjs/index-4468a6b7.js +0 -24
- package/dist/cjs/index-4468a6b7.js.map +0 -1
- package/dist/cjs/index-715aa3be.js +0 -21
- package/dist/cjs/index-715aa3be.js.map +0 -1
- package/dist/cjs/index-7a1c32d4.js +0 -30
- package/dist/cjs/index-7a1c32d4.js.map +0 -1
- package/dist/cjs/index-7f3e61f0.js +0 -82
- package/dist/cjs/index-7f3e61f0.js.map +0 -1
- package/dist/cjs/index-96c2bc8f.js +0 -25
- package/dist/cjs/index-96c2bc8f.js.map +0 -1
- package/dist/cjs/index-a30259f3.js +0 -37
- package/dist/cjs/index-a30259f3.js.map +0 -1
- package/dist/cjs/index-a7aedd7c.js +0 -20
- package/dist/cjs/index-a7aedd7c.js.map +0 -1
- package/dist/cjs/index-d669dfd0.js +0 -43
- package/dist/cjs/index-d669dfd0.js.map +0 -1
- package/dist/cjs/z-app-header_15.cjs.entry.js +0 -2230
- package/dist/cjs/z-app-header_15.cjs.entry.js.map +0 -1
- package/dist/cjs/z-contextual-menu.cjs.entry.js +0 -44
- package/dist/cjs/z-contextual-menu.cjs.entry.js.map +0 -1
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +0 -72
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js.map +0 -1
- package/dist/cjs/z-navigation-tab.cjs.entry.js +0 -69
- package/dist/cjs/z-navigation-tab.cjs.entry.js.map +0 -1
- package/dist/cjs/z-table-body.cjs.entry.js +0 -12
- package/dist/cjs/z-table-body.cjs.entry.js.map +0 -1
- package/dist/cjs/z-table-cell.cjs.entry.js +0 -13
- package/dist/cjs/z-table-cell.cjs.entry.js.map +0 -1
- package/dist/cjs/z-table-deprecated.cjs.entry.js +0 -92
- package/dist/cjs/z-table-deprecated.cjs.entry.js.map +0 -1
- package/dist/cjs/z-table-empty-box.cjs.entry.js +0 -12
- package/dist/cjs/z-table-empty-box.cjs.entry.js.map +0 -1
- package/dist/cjs/z-table-expanded-row.cjs.entry.js +0 -12
- package/dist/cjs/z-table-expanded-row.cjs.entry.js.map +0 -1
- package/dist/cjs/z-table-footer.cjs.entry.js +0 -12
- package/dist/cjs/z-table-footer.cjs.entry.js.map +0 -1
- package/dist/cjs/z-table-head.cjs.entry.js +0 -12
- package/dist/cjs/z-table-head.cjs.entry.js.map +0 -1
- package/dist/cjs/z-table-header-row.cjs.entry.js +0 -12
- package/dist/cjs/z-table-header-row.cjs.entry.js.map +0 -1
- package/dist/cjs/z-table-header.cjs.entry.js +0 -15
- package/dist/cjs/z-table-header.cjs.entry.js.map +0 -1
- package/dist/cjs/z-table-row.cjs.entry.js +0 -13
- package/dist/cjs/z-table-row.cjs.entry.js.map +0 -1
- package/dist/cjs/z-table-sticky-footer.cjs.entry.js +0 -12
- package/dist/cjs/z-table-sticky-footer.cjs.entry.js.map +0 -1
- package/dist/collection/components/z-contextual-menu/index.js +0 -123
- package/dist/collection/components/z-contextual-menu/index.js.map +0 -1
- package/dist/collection/components/z-contextual-menu/index.spec.js +0 -74
- package/dist/collection/components/z-contextual-menu/index.spec.js.map +0 -1
- package/dist/collection/components/z-contextual-menu/styles.css +0 -60
- package/dist/collection/components/z-contextual-menu/test.e2e.js +0 -11
- package/dist/collection/components/z-contextual-menu/test.e2e.js.map +0 -1
- package/dist/collection/deprecated/navigation-tab.css +0 -138
- package/dist/collection/deprecated/z-navigation-tab/index.js +0 -286
- package/dist/collection/deprecated/z-navigation-tab/index.js.map +0 -1
- package/dist/collection/deprecated/z-navigation-tab-link/index.js +0 -321
- package/dist/collection/deprecated/z-navigation-tab-link/index.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-body/index.js +0 -27
- package/dist/collection/deprecated/z-table-deprecated/z-table-body/index.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-body/index.spec.js +0 -21
- package/dist/collection/deprecated/z-table-deprecated/z-table-body/index.spec.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-body/styles.css +0 -9
- package/dist/collection/deprecated/z-table-deprecated/z-table-cell/index.js +0 -85
- package/dist/collection/deprecated/z-table-deprecated/z-table-cell/index.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-cell/index.spec.js +0 -50
- package/dist/collection/deprecated/z-table-deprecated/z-table-cell/index.spec.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-cell/styles.css +0 -58
- package/dist/collection/deprecated/z-table-deprecated/z-table-deprecated/index.js +0 -362
- package/dist/collection/deprecated/z-table-deprecated/z-table-deprecated/index.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-deprecated/styles.css +0 -115
- package/dist/collection/deprecated/z-table-deprecated/z-table-empty-box/index.js +0 -74
- package/dist/collection/deprecated/z-table-deprecated/z-table-empty-box/index.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-empty-box/index.spec.js +0 -46
- package/dist/collection/deprecated/z-table-deprecated/z-table-empty-box/index.spec.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-empty-box/styles.css +0 -38
- package/dist/collection/deprecated/z-table-deprecated/z-table-expanded-row/index.js +0 -46
- package/dist/collection/deprecated/z-table-deprecated/z-table-expanded-row/index.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-expanded-row/index.spec.js +0 -13
- package/dist/collection/deprecated/z-table-deprecated/z-table-expanded-row/index.spec.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-expanded-row/styles.css +0 -9
- package/dist/collection/deprecated/z-table-deprecated/z-table-footer/index.js +0 -26
- package/dist/collection/deprecated/z-table-deprecated/z-table-footer/index.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-footer/index.spec.js +0 -23
- package/dist/collection/deprecated/z-table-deprecated/z-table-footer/index.spec.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-footer/styles.css +0 -5
- package/dist/collection/deprecated/z-table-deprecated/z-table-head/index.js +0 -26
- package/dist/collection/deprecated/z-table-deprecated/z-table-head/index.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-head/index.spec.js +0 -23
- package/dist/collection/deprecated/z-table-deprecated/z-table-head/index.spec.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-head/styles.css +0 -5
- package/dist/collection/deprecated/z-table-deprecated/z-table-header/index.js +0 -227
- package/dist/collection/deprecated/z-table-deprecated/z-table-header/index.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-header/index.spec.js +0 -227
- package/dist/collection/deprecated/z-table-deprecated/z-table-header/index.spec.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-header/styles.css +0 -71
- package/dist/collection/deprecated/z-table-deprecated/z-table-header-row/index.js +0 -48
- package/dist/collection/deprecated/z-table-deprecated/z-table-header-row/index.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-header-row/index.spec.js +0 -28
- package/dist/collection/deprecated/z-table-deprecated/z-table-header-row/index.spec.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-header-row/styles.css +0 -13
- package/dist/collection/deprecated/z-table-deprecated/z-table-row/index.js +0 -96
- package/dist/collection/deprecated/z-table-deprecated/z-table-row/index.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-row/index.spec.js +0 -23
- package/dist/collection/deprecated/z-table-deprecated/z-table-row/index.spec.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-row/styles.css +0 -45
- package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/index.js +0 -23
- package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/index.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/index.spec.js +0 -16
- package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/index.spec.js.map +0 -1
- package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/styles.css +0 -11
- package/dist/components/index28.js +0 -45
- package/dist/components/index28.js.map +0 -1
- package/dist/components/index29.js +0 -120
- package/dist/components/index29.js.map +0 -1
- package/dist/components/index30.js +0 -46
- package/dist/components/index30.js.map +0 -1
- package/dist/components/z-contextual-menu.d.ts +0 -11
- package/dist/components/z-contextual-menu.js +0 -98
- package/dist/components/z-contextual-menu.js.map +0 -1
- package/dist/components/z-navigation-tab-link.d.ts +0 -11
- package/dist/components/z-navigation-tab-link.js +0 -105
- package/dist/components/z-navigation-tab-link.js.map +0 -1
- package/dist/components/z-navigation-tab.d.ts +0 -11
- package/dist/components/z-navigation-tab.js +0 -100
- package/dist/components/z-navigation-tab.js.map +0 -1
- package/dist/components/z-table-body.d.ts +0 -11
- package/dist/components/z-table-body.js +0 -40
- package/dist/components/z-table-body.js.map +0 -1
- package/dist/components/z-table-cell.d.ts +0 -11
- package/dist/components/z-table-cell.js +0 -8
- package/dist/components/z-table-cell.js.map +0 -1
- package/dist/components/z-table-deprecated.d.ts +0 -11
- package/dist/components/z-table-deprecated.js +0 -127
- package/dist/components/z-table-deprecated.js.map +0 -1
- package/dist/components/z-table-empty-box.d.ts +0 -11
- package/dist/components/z-table-empty-box.js +0 -8
- package/dist/components/z-table-empty-box.js.map +0 -1
- package/dist/components/z-table-expanded-row.d.ts +0 -11
- package/dist/components/z-table-expanded-row.js +0 -39
- package/dist/components/z-table-expanded-row.js.map +0 -1
- package/dist/components/z-table-footer.d.ts +0 -11
- package/dist/components/z-table-footer.js +0 -39
- package/dist/components/z-table-footer.js.map +0 -1
- package/dist/components/z-table-head.d.ts +0 -11
- package/dist/components/z-table-head.js +0 -39
- package/dist/components/z-table-head.js.map +0 -1
- package/dist/components/z-table-header-row.d.ts +0 -11
- package/dist/components/z-table-header-row.js +0 -65
- package/dist/components/z-table-header-row.js.map +0 -1
- package/dist/components/z-table-header.d.ts +0 -11
- package/dist/components/z-table-header.js +0 -8
- package/dist/components/z-table-header.js.map +0 -1
- package/dist/components/z-table-row.d.ts +0 -11
- package/dist/components/z-table-row.js +0 -79
- package/dist/components/z-table-row.js.map +0 -1
- package/dist/components/z-table-sticky-footer.d.ts +0 -11
- package/dist/components/z-table-sticky-footer.js +0 -35
- package/dist/components/z-table-sticky-footer.js.map +0 -1
- package/dist/esm/icons-f212e30c.js.map +0 -1
- package/dist/esm/index-0c3f6c0f.js +0 -80
- package/dist/esm/index-0c3f6c0f.js.map +0 -1
- package/dist/esm/index-1ad3694a.js +0 -19
- package/dist/esm/index-1ad3694a.js.map +0 -1
- package/dist/esm/index-42dcef4f.js +0 -41
- package/dist/esm/index-42dcef4f.js.map +0 -1
- package/dist/esm/index-55b38815.js +0 -18
- package/dist/esm/index-55b38815.js.map +0 -1
- package/dist/esm/index-5b6bb2e2.js +0 -28
- package/dist/esm/index-5b6bb2e2.js.map +0 -1
- package/dist/esm/index-659b7228.js +0 -35
- package/dist/esm/index-659b7228.js.map +0 -1
- package/dist/esm/index-73ab3b9b.js +0 -22
- package/dist/esm/index-73ab3b9b.js.map +0 -1
- package/dist/esm/index-754a9620.js +0 -22
- package/dist/esm/index-754a9620.js.map +0 -1
- package/dist/esm/index-829d5a8b.js +0 -23
- package/dist/esm/index-829d5a8b.js.map +0 -1
- package/dist/esm/index-c3277075.js +0 -22
- package/dist/esm/index-c3277075.js.map +0 -1
- package/dist/esm/z-app-header_15.entry.js +0 -2212
- package/dist/esm/z-app-header_15.entry.js.map +0 -1
- package/dist/esm/z-contextual-menu.entry.js +0 -40
- package/dist/esm/z-contextual-menu.entry.js.map +0 -1
- package/dist/esm/z-navigation-tab-link.entry.js +0 -68
- package/dist/esm/z-navigation-tab-link.entry.js.map +0 -1
- package/dist/esm/z-navigation-tab.entry.js +0 -65
- package/dist/esm/z-navigation-tab.entry.js.map +0 -1
- package/dist/esm/z-table-body.entry.js +0 -4
- package/dist/esm/z-table-body.entry.js.map +0 -1
- package/dist/esm/z-table-cell.entry.js +0 -5
- package/dist/esm/z-table-cell.entry.js.map +0 -1
- package/dist/esm/z-table-deprecated.entry.js +0 -88
- package/dist/esm/z-table-deprecated.entry.js.map +0 -1
- package/dist/esm/z-table-empty-box.entry.js +0 -4
- package/dist/esm/z-table-empty-box.entry.js.map +0 -1
- package/dist/esm/z-table-expanded-row.entry.js +0 -4
- package/dist/esm/z-table-expanded-row.entry.js.map +0 -1
- package/dist/esm/z-table-footer.entry.js +0 -4
- package/dist/esm/z-table-footer.entry.js.map +0 -1
- package/dist/esm/z-table-head.entry.js +0 -4
- package/dist/esm/z-table-head.entry.js.map +0 -1
- package/dist/esm/z-table-header-row.entry.js +0 -4
- package/dist/esm/z-table-header-row.entry.js.map +0 -1
- package/dist/esm/z-table-header.entry.js +0 -7
- package/dist/esm/z-table-header.entry.js.map +0 -1
- package/dist/esm/z-table-row.entry.js +0 -5
- package/dist/esm/z-table-row.entry.js.map +0 -1
- package/dist/esm/z-table-sticky-footer.entry.js +0 -4
- package/dist/esm/z-table-sticky-footer.entry.js.map +0 -1
- package/dist/types/components/z-contextual-menu/index.d.ts +0 -26
- package/dist/types/deprecated/z-navigation-tab/index.d.ts +0 -69
- package/dist/types/deprecated/z-navigation-tab-link/index.d.ts +0 -77
- package/dist/types/deprecated/z-table-deprecated/z-table-body/index.d.ts +0 -8
- package/dist/types/deprecated/z-table-deprecated/z-table-cell/index.d.ts +0 -14
- package/dist/types/deprecated/z-table-deprecated/z-table-deprecated/index.d.ts +0 -59
- package/dist/types/deprecated/z-table-deprecated/z-table-empty-box/index.d.ts +0 -15
- package/dist/types/deprecated/z-table-deprecated/z-table-expanded-row/index.d.ts +0 -8
- package/dist/types/deprecated/z-table-deprecated/z-table-footer/index.d.ts +0 -8
- package/dist/types/deprecated/z-table-deprecated/z-table-head/index.d.ts +0 -8
- package/dist/types/deprecated/z-table-deprecated/z-table-header/index.d.ts +0 -31
- package/dist/types/deprecated/z-table-deprecated/z-table-header-row/index.d.ts +0 -9
- package/dist/types/deprecated/z-table-deprecated/z-table-row/index.d.ts +0 -16
- package/dist/types/deprecated/z-table-deprecated/z-table-sticky-footer/index.d.ts +0 -7
- package/dist/web-components-library/p-011a7536.js +0 -2
- package/dist/web-components-library/p-011a7536.js.map +0 -1
- package/dist/web-components-library/p-16f0fc17.entry.js +0 -2
- package/dist/web-components-library/p-16f0fc17.entry.js.map +0 -1
- package/dist/web-components-library/p-2731d501.entry.js +0 -2
- package/dist/web-components-library/p-2731d501.entry.js.map +0 -1
- package/dist/web-components-library/p-28c6bb97.entry.js +0 -2
- package/dist/web-components-library/p-28c6bb97.entry.js.map +0 -1
- package/dist/web-components-library/p-3441cb4e.entry.js +0 -2
- package/dist/web-components-library/p-3441cb4e.entry.js.map +0 -1
- package/dist/web-components-library/p-356aac96.js +0 -2
- package/dist/web-components-library/p-356aac96.js.map +0 -1
- package/dist/web-components-library/p-40f68d35.entry.js +0 -2
- package/dist/web-components-library/p-40f68d35.entry.js.map +0 -1
- package/dist/web-components-library/p-4686b762.js +0 -2
- package/dist/web-components-library/p-4686b762.js.map +0 -1
- package/dist/web-components-library/p-472eb82d.entry.js +0 -2
- package/dist/web-components-library/p-472eb82d.entry.js.map +0 -1
- package/dist/web-components-library/p-4bc82510.js +0 -2
- package/dist/web-components-library/p-4bc82510.js.map +0 -1
- package/dist/web-components-library/p-55d22af2.js +0 -2
- package/dist/web-components-library/p-55d22af2.js.map +0 -1
- package/dist/web-components-library/p-5e585fe9.js +0 -2
- package/dist/web-components-library/p-5e585fe9.js.map +0 -1
- package/dist/web-components-library/p-6087739d.js +0 -2
- package/dist/web-components-library/p-6087739d.js.map +0 -1
- package/dist/web-components-library/p-626a5bb1.entry.js +0 -2
- package/dist/web-components-library/p-626a5bb1.entry.js.map +0 -1
- package/dist/web-components-library/p-6790a3c1.js +0 -2
- package/dist/web-components-library/p-6790a3c1.js.map +0 -1
- package/dist/web-components-library/p-68a9a3dd.entry.js +0 -2
- package/dist/web-components-library/p-68a9a3dd.entry.js.map +0 -1
- package/dist/web-components-library/p-69697329.entry.js +0 -2
- package/dist/web-components-library/p-69697329.entry.js.map +0 -1
- package/dist/web-components-library/p-6aba107d.entry.js +0 -2
- package/dist/web-components-library/p-6aba107d.entry.js.map +0 -1
- package/dist/web-components-library/p-820c2503.js +0 -2
- package/dist/web-components-library/p-820c2503.js.map +0 -1
- package/dist/web-components-library/p-98e8d64f.entry.js +0 -2
- package/dist/web-components-library/p-98e8d64f.entry.js.map +0 -1
- package/dist/web-components-library/p-9bcb606c.entry.js +0 -2
- package/dist/web-components-library/p-9bcb606c.entry.js.map +0 -1
- package/dist/web-components-library/p-b1b69181.entry.js +0 -2
- package/dist/web-components-library/p-b1b69181.entry.js.map +0 -1
- package/dist/web-components-library/p-b99dd793.entry.js +0 -2
- package/dist/web-components-library/p-b99dd793.entry.js.map +0 -1
- package/dist/web-components-library/p-ca5975a3.js +0 -2
- package/dist/web-components-library/p-ca5975a3.js.map +0 -1
- package/dist/web-components-library/p-cc46f0ce.js +0 -2
- package/dist/web-components-library/p-cc46f0ce.js.map +0 -1
- package/dist/web-components-library/p-ebcf6b4d.entry.js +0 -2
- package/dist/web-components-library/p-ed03b414.entry.js +0 -2
- package/dist/web-components-library/p-ed03b414.entry.js.map +0 -1
- package/dist/web-components-library/p-fe8d7642.entry.js +0 -2
- package/www/build/p-011a7536.js +0 -2
- package/www/build/p-011a7536.js.map +0 -1
- package/www/build/p-16f0fc17.entry.js +0 -2
- package/www/build/p-16f0fc17.entry.js.map +0 -1
- package/www/build/p-2731d501.entry.js +0 -2
- package/www/build/p-2731d501.entry.js.map +0 -1
- package/www/build/p-28c6bb97.entry.js +0 -2
- package/www/build/p-28c6bb97.entry.js.map +0 -1
- package/www/build/p-3441cb4e.entry.js +0 -2
- package/www/build/p-3441cb4e.entry.js.map +0 -1
- package/www/build/p-356aac96.js +0 -2
- package/www/build/p-356aac96.js.map +0 -1
- package/www/build/p-40f68d35.entry.js +0 -2
- package/www/build/p-40f68d35.entry.js.map +0 -1
- package/www/build/p-4686b762.js +0 -2
- package/www/build/p-4686b762.js.map +0 -1
- package/www/build/p-472eb82d.entry.js +0 -2
- package/www/build/p-472eb82d.entry.js.map +0 -1
- package/www/build/p-48fe43ec.js +0 -2
- package/www/build/p-4bc82510.js +0 -2
- package/www/build/p-4bc82510.js.map +0 -1
- package/www/build/p-55d22af2.js +0 -2
- package/www/build/p-55d22af2.js.map +0 -1
- package/www/build/p-5e585fe9.js +0 -2
- package/www/build/p-5e585fe9.js.map +0 -1
- package/www/build/p-6087739d.js +0 -2
- package/www/build/p-6087739d.js.map +0 -1
- package/www/build/p-626a5bb1.entry.js +0 -2
- package/www/build/p-626a5bb1.entry.js.map +0 -1
- package/www/build/p-6790a3c1.js +0 -2
- package/www/build/p-6790a3c1.js.map +0 -1
- package/www/build/p-68a9a3dd.entry.js +0 -2
- package/www/build/p-68a9a3dd.entry.js.map +0 -1
- package/www/build/p-69697329.entry.js +0 -2
- package/www/build/p-69697329.entry.js.map +0 -1
- package/www/build/p-6aba107d.entry.js +0 -2
- package/www/build/p-6aba107d.entry.js.map +0 -1
- package/www/build/p-820c2503.js +0 -2
- package/www/build/p-820c2503.js.map +0 -1
- package/www/build/p-98e8d64f.entry.js +0 -2
- package/www/build/p-98e8d64f.entry.js.map +0 -1
- package/www/build/p-9bcb606c.entry.js +0 -2
- package/www/build/p-9bcb606c.entry.js.map +0 -1
- package/www/build/p-b1b69181.entry.js +0 -2
- package/www/build/p-b1b69181.entry.js.map +0 -1
- package/www/build/p-b99dd793.entry.js +0 -2
- package/www/build/p-b99dd793.entry.js.map +0 -1
- package/www/build/p-ca5975a3.js +0 -2
- package/www/build/p-ca5975a3.js.map +0 -1
- package/www/build/p-cc46f0ce.js +0 -2
- package/www/build/p-cc46f0ce.js.map +0 -1
- package/www/build/p-ebcf6b4d.entry.js +0 -2
- package/www/build/p-ed03b414.entry.js +0 -2
- package/www/build/p-ed03b414.entry.js.map +0 -1
- package/www/build/p-fe8d7642.entry.js +0 -2
- /package/dist/web-components-library/{p-6d0bb567.entry.js.map → p-00d7315a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-10c29fb4.entry.js.map → p-04755b76.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7d4cd2e8.entry.js.map → p-05b39597.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-5a174821.entry.js.map → p-0d799f83.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-83657b33.entry.js.map → p-120a809e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fa4a2862.entry.js.map → p-239fb968.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-378b2bbf.entry.js.map → p-24ab494d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f97c093d.entry.js.map → p-2637ab23.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-af78542a.js.map → p-49a35cf0.js.map} +0 -0
- /package/dist/web-components-library/{p-ebcf6b4d.entry.js.map → p-4c40561d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fe8d7642.entry.js.map → p-5d67d311.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ae71256f.entry.js.map → p-5eb0a064.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2f72475d.entry.js.map → p-6edd5dbe.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-402bd7f6.entry.js.map → p-8d81a5c8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-210fbe0f.entry.js.map → p-942e5126.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-af27423a.entry.js.map → p-95104b91.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9e71d6b3.entry.js.map → p-996c1471.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-bb8037c4.entry.js.map → p-a53ab86e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ac497c80.entry.js.map → p-b57362ef.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-97bba1f2.entry.js.map → p-b670ffa5.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-38c63f28.entry.js.map → p-d1f8ca38.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9882e8a5.entry.js.map → p-d251f105.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e3e48e64.entry.js.map → p-d92765b6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-5d220bbc.entry.js.map → p-dbc437d8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d83dfde7.entry.js.map → p-fe6f5926.entry.js.map} +0 -0
- /package/www/build/{p-6d0bb567.entry.js.map → p-00d7315a.entry.js.map} +0 -0
- /package/www/build/{p-10c29fb4.entry.js.map → p-04755b76.entry.js.map} +0 -0
- /package/www/build/{p-7d4cd2e8.entry.js.map → p-05b39597.entry.js.map} +0 -0
- /package/www/build/{p-5a174821.entry.js.map → p-0d799f83.entry.js.map} +0 -0
- /package/www/build/{p-83657b33.entry.js.map → p-120a809e.entry.js.map} +0 -0
- /package/www/build/{p-fa4a2862.entry.js.map → p-239fb968.entry.js.map} +0 -0
- /package/www/build/{p-378b2bbf.entry.js.map → p-24ab494d.entry.js.map} +0 -0
- /package/www/build/{p-f97c093d.entry.js.map → p-2637ab23.entry.js.map} +0 -0
- /package/www/build/{p-af78542a.js.map → p-49a35cf0.js.map} +0 -0
- /package/www/build/{p-ebcf6b4d.entry.js.map → p-4c40561d.entry.js.map} +0 -0
- /package/www/build/{p-fe8d7642.entry.js.map → p-5d67d311.entry.js.map} +0 -0
- /package/www/build/{p-ae71256f.entry.js.map → p-5eb0a064.entry.js.map} +0 -0
- /package/www/build/{p-2f72475d.entry.js.map → p-6edd5dbe.entry.js.map} +0 -0
- /package/www/build/{p-402bd7f6.entry.js.map → p-8d81a5c8.entry.js.map} +0 -0
- /package/www/build/{p-210fbe0f.entry.js.map → p-942e5126.entry.js.map} +0 -0
- /package/www/build/{p-af27423a.entry.js.map → p-95104b91.entry.js.map} +0 -0
- /package/www/build/{p-9e71d6b3.entry.js.map → p-996c1471.entry.js.map} +0 -0
- /package/www/build/{p-bb8037c4.entry.js.map → p-a53ab86e.entry.js.map} +0 -0
- /package/www/build/{p-ac497c80.entry.js.map → p-b57362ef.entry.js.map} +0 -0
- /package/www/build/{p-97bba1f2.entry.js.map → p-b670ffa5.entry.js.map} +0 -0
- /package/www/build/{p-38c63f28.entry.js.map → p-d1f8ca38.entry.js.map} +0 -0
- /package/www/build/{p-9882e8a5.entry.js.map → p-d251f105.entry.js.map} +0 -0
- /package/www/build/{p-e3e48e64.entry.js.map → p-d92765b6.entry.js.map} +0 -0
- /package/www/build/{p-5d220bbc.entry.js.map → p-dbc437d8.entry.js.map} +0 -0
- /package/www/build/{p-d83dfde7.entry.js.map → p-fe6f5926.entry.js.map} +0 -0
|
@@ -1,4 +1,208 @@
|
|
|
1
|
-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-f16bc2ca.js';
|
|
2
|
+
import { O as OffCanvasVariant, v as TransitionDirection, B as ButtonVariant, e as ControlSize, c as ButtonType, D as DividerSize, h as DividerOrientation, k as LabelPosition, I as InputType, i as ListSize, m as ListType, j as ExpandableListButtonAlign, l as ListDividerType, E as ExpandableListStyle, g as KeyboardCode, p as Device } from './index-2255c6c8.js';
|
|
3
|
+
import { r as randomId, b as boolean, g as getDevice, h as handleEnterKeydSubmit } from './utils-7983d02c.js';
|
|
4
|
+
import './breakpoints-680e0e56.js';
|
|
5
|
+
|
|
6
|
+
const stylesCss$b = ":host{--app-header-typography-1-size:24px;--app-header-typography-2-size:28px;--app-header-typography-3-size:32px;--app-header-typography-4-size:36px;--app-header-typography-5-size:42px;--app-header-typography-6-size:48px;--app-header-typography-7-size:54px;--app-header-typography-8-size:60px;--app-header-typography-9-size:68px;--app-header-typography-10-size:76px;--app-header-typography-11-size:84px;--app-header-typography-12-size:92px;--app-header-typography-1-lineheight:1.33;--app-header-typography-2-lineheight:1.29;--app-header-typography-3-lineheight:1.25;--app-header-typography-4-lineheight:1.24;--app-header-typography-5-lineheight:1.24;--app-header-typography-6-lineheight:1.25;--app-header-typography-7-lineheight:1.2;--app-header-typography-8-lineheight:1.26;--app-header-typography-9-lineheight:1.24;--app-header-typography-10-lineheight:1.26;--app-header-typography-11-lineheight:1.2;--app-header-typography-12-lineheight:1.2;--app-header-typography-1-tracking:calc(-0.2 / 1em);--app-header-typography-2-tracking:calc(-0.4 / 1em);--app-header-typography-3-tracking:calc(-0.6 / 1em);--app-header-typography-4-tracking:calc(-0.8 / 1em);--app-header-typography-5-tracking:calc(-1 / 1em);--app-header-typography-6-tracking:calc(-1.2 / 1em);--app-header-typography-7-tracking:calc(-1.4 / 1em);--app-header-typography-8-tracking:calc(-1.6 / 1em);--app-header-typography-9-tracking:calc(-1.8 / 1em);--app-header-typography-10-tracking:calc(-2 / 1em);--app-header-typography-11-tracking:calc(-2.2 / 1em);--app-header-typography-12-tracking:calc(-2.4 / 1em);--app-header-content-max-width:100%;--app-header-height:auto;--app-header-top-offset:48px;--app-header-drawer-trigger-size:calc(var(--space-unit) * 4);--app-header-bg:var(--color-surface01);--app-header-stucked-bg:var(--color-surface01);--app-header-text-color:var(--color-text01);--app-header-title-font-size:var(--app-header-typography-3-size);--app-header-title-lineheight:var(--app-header-typography-3-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-3-tracking);--app-header-stucked-text-color:var(--color-text01);position:relative;display:block;height:var(--app-header-height);color:var(--app-header-text-color)}:host,*{box-sizing:border-box}.heading-panel{position:relative;display:flex;width:100%;max-width:var(--app-header-content-max-width);flex-direction:column;flex-grow:0;flex-shrink:0;align-items:baseline;padding:var(--grid-margin);margin:0 auto;background:var(--app-header-bg);gap:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5)}.hero-container+.heading-panel{background:transparent}:host(:empty) .heading-panel{padding:0}.heading-container{position:relative;z-index:1;display:flex;width:100%;max-width:100%;flex:1 auto;flex-direction:column;justify-content:flex-start}.heading-title{display:flex;max-width:100%;flex-direction:row;align-items:flex-start;column-gap:calc(var(--space-unit) * 2)}::slotted([slot=\"title\"]),.heading-stuck .heading-title>*,::slotted([slot=\"stucked-title\"]){margin:0;font-family:\"IBM Plex Serif\", serif;font-weight:var(--font-bd)}::slotted([slot=\"title\"]){font-size:var(--app-header-title-font-size);letter-spacing:var(--app-header-title-letter-spacing);line-height:var(--app-header-title-lineheight)}.heading-stuck .heading-title>*,::slotted([slot=\"stucked-title\"]){font-size:var(--app-header-typography-3-size);letter-spacing:var(--app-header-typography-3-tracking);line-height:var(--app-header-typography-3-lineheight)}:host(:not([menu-length=\"0\"])) .heading-subtitle{padding-left:calc(var(--app-header-drawer-trigger-size) + (var(--space-unit) * 2))}::slotted([slot=\"top-subtitle\"]),::slotted([slot=\"subtitle\"]){margin:0;font-family:var(--font-family-sans);font-size:20px;font-style:italic;line-height:26px}::slotted([slot=\"subtitle\"]){font-weight:500}::slotted([slot=\"top-subtitle\"]){font-weight:400}.menu-container{display:flex;width:100%;flex:1 auto;flex-flow:row wrap}:host([menu-length=\"0\"]:not([enable-search])) .menu-container,.menu-container:empty{display:none}.menu-container ::slotted([open]){position:relative;z-index:3}z-searchbar{z-index:0;display:flex;width:auto;min-width:calc(var(--space-unit) * 32);flex:1 auto;align-items:center;margin-left:auto}.heading-stuck{position:fixed;z-index:20;top:var(--app-header-top-offset);left:0;width:100%;max-width:100%;animation:slide-stuck-heading-in 250ms ease-out;background:var(--app-header-stucked-bg);box-shadow:var(--shadow-2);color:var(--app-header-stucked-text-color)}.heading-stuck-content{display:flex;max-width:var(--app-header-content-max-width);align-items:center;padding:var(--space-unit) var(--grid-margin);margin:0 auto;column-gap:calc(var(--space-unit) * 2)}.heading-stuck .heading-title{overflow:hidden}.heading-stuck .heading-title>*,.heading-stuck .heading-title ::slotted([slot=\"stucked-title\"]){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.heading-stuck-content z-button{margin-left:auto}.drawer-trigger{padding:0;border:0;margin:0;appearance:none;background:none;border-radius:0;color:inherit;cursor:pointer}.drawer-trigger z-icon{--z-icon-width:var(--app-header-drawer-trigger-size);--z-icon-height:var(--app-header-drawer-trigger-size);fill:currentcolor}.heading-container :is(.drawer-trigger,z-button.search-page-button){display:flex;height:calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight));align-items:center}.heading-container z-button.search-page-button{margin-left:auto}.drawer-content{display:none}z-offcanvas[open] .drawer-content{display:flex;width:100%;flex:1 auto;flex-direction:column;row-gap:calc(var(--space-unit) * 2.5)}z-offcanvas[open] .drawer-content ::slotted(z-menu){width:100%}.drawer-close{--z-icon-width:var(--app-header-drawer-trigger-size);--z-icon-height:var(--app-header-drawer-trigger-size);padding:0;border:0;margin:var(--space-unit) 0 calc(var(--space-unit) * 2.5);appearance:none;background:transparent;border-radius:0;color:inherit;cursor:pointer;fill:currentcolor;font-size:inherit;outline:none}.drawer-close:focus-visible{box-shadow:var(--shadow-focus-primary)}.hero-container{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%}:host([overlay]) .heading-panel .drawer-trigger z-icon,:host([overlay]) .heading-panel .heading-container,:host([overlay]) .heading-panel .menu-container{color:var(--color-white);fill:var(--color-white)}:host([overlay]) .heading-panel .menu-container ::slotted(z-menu){--z-menu-label-color:var(--color-white)}:host([overlay]) .hero-container::after{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%;background:var(--color-black);content:\"\";opacity:0.5}.hero-container img,.hero-container ::slotted(*){position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:top center;-webkit-user-drag:none}@media (min-width: 768px){:host{--app-header-title-font-size:var(--app-header-typography-6-size);--app-header-title-lineheight:var(--app-header-typography-6-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-6-tracking)}.heading-panel{flex-flow:row wrap;align-items:center;padding-bottom:calc(var(--space-unit) * 2)}.heading-container{margin-right:auto}:host(:is([flow=\"offcanvas\"],[menu-length=\"0\"])) :is(.heading-container,.menu-container){width:auto}:host(:not([flow=\"offcanvas\"])) .heading-subtitle{padding-left:0}.menu-container{flex:initial;align-items:center}:host([menu-length=\"0\"]) .menu-container:not(:empty){height:calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight))}:host(:not([flow=\"offcanvas\"])) .menu-container{gap:var(--space-unit) calc(var(--space-unit) * 5)}:host(:not([flow=\"offcanvas\"])) .heading-container .drawer-trigger{display:none}}@media (min-width: 1152px){:host{--app-header-title-font-size:var(--app-header-typography-7-size);--app-header-title-lineheight:var(--app-header-typography-7-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-7-tracking)}.heading-panel{justify-content:flex-start;padding-bottom:calc(var(--space-unit) * 3)}.heading-container,.menu-container{width:auto}:host([flow=\"stack\"]) .heading-panel{flex-flow:column;align-items:flex-start}:host([flow=\"stack\"]) .menu-container{width:100%}:host(:not([flow=\"offcanvas\"],[menu-length=\"0\"])) .heading-panel{row-gap:calc(var(--space-unit) * 3)}z-searchbar{min-width:calc(var(--space-unit) * 45);flex:initial}}@media (min-width: 1366px){:host{--app-header-title-font-size:var(--app-header-typography-9-size);--app-header-title-lineheight:var(--app-header-typography-9-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-9-tracking)}}@keyframes slide-stuck-heading-in{0%{transform:translate3d(0, -100%, 0)}100%{transform:none}}";
|
|
7
|
+
const ZAppHeaderStyle0 = stylesCss$b;
|
|
8
|
+
|
|
9
|
+
const SUPPORT_INTERSECTION_OBSERVER = typeof IntersectionObserver !== "undefined";
|
|
10
|
+
const ZAppHeader = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
registerInstance(this, hostRef);
|
|
13
|
+
this.sticking = createEvent(this, "sticking", 7);
|
|
14
|
+
this.observer = SUPPORT_INTERSECTION_OBSERVER &&
|
|
15
|
+
new IntersectionObserver(([entry]) => {
|
|
16
|
+
this._stuck = !entry.isIntersecting;
|
|
17
|
+
}, {
|
|
18
|
+
threshold: 0.5,
|
|
19
|
+
});
|
|
20
|
+
this.stuck = false;
|
|
21
|
+
this.hero = undefined;
|
|
22
|
+
this.overlay = false;
|
|
23
|
+
this.flow = "auto";
|
|
24
|
+
this.drawerOpen = false;
|
|
25
|
+
this.enableSearch = false;
|
|
26
|
+
this.searchPlaceholder = "Cerca";
|
|
27
|
+
this.searchString = "";
|
|
28
|
+
this.searchPageUrl = undefined;
|
|
29
|
+
this._stuck = false;
|
|
30
|
+
this.currentViewport = "mobile";
|
|
31
|
+
this.menuLength = undefined;
|
|
32
|
+
this.openDrawer = this.openDrawer.bind(this);
|
|
33
|
+
this.closeDrawer = this.closeDrawer.bind(this);
|
|
34
|
+
this.collectMenuElements = this.collectMenuElements.bind(this);
|
|
35
|
+
}
|
|
36
|
+
evaluateViewport() {
|
|
37
|
+
if (window.innerWidth < 768) {
|
|
38
|
+
this.currentViewport = "mobile";
|
|
39
|
+
}
|
|
40
|
+
else if (window.innerWidth >= 768 && window.innerWidth < 1152) {
|
|
41
|
+
this.currentViewport = "tablet";
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
this.currentViewport = "desktop";
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
onStuck() {
|
|
48
|
+
const scrollParent = this.scrollParent;
|
|
49
|
+
if (!scrollParent) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
this.sticking.emit(this._stuck);
|
|
53
|
+
}
|
|
54
|
+
setMenuFloatingMode() {
|
|
55
|
+
if (this.menuElements.length === 0) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const elements = this.menuElements;
|
|
59
|
+
elements.forEach((element) => {
|
|
60
|
+
element.open = false;
|
|
61
|
+
element.floating = !this.drawerOpen;
|
|
62
|
+
element.verticalContext = this.drawerOpen;
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
get title() {
|
|
66
|
+
const titleElement = this.hostElement.querySelector('[slot="title"]');
|
|
67
|
+
if (titleElement === null) {
|
|
68
|
+
return "";
|
|
69
|
+
}
|
|
70
|
+
return titleElement.textContent.trim();
|
|
71
|
+
}
|
|
72
|
+
get scrollParent() {
|
|
73
|
+
const parent = this.hostElement.offsetParent;
|
|
74
|
+
if (parent === document.body || parent === document.documentElement) {
|
|
75
|
+
return window;
|
|
76
|
+
}
|
|
77
|
+
return parent;
|
|
78
|
+
}
|
|
79
|
+
get canShowMenu() {
|
|
80
|
+
return this.flow !== "offcanvas" && this.currentViewport !== "mobile" && !this.drawerOpen;
|
|
81
|
+
}
|
|
82
|
+
get canShowSearchbar() {
|
|
83
|
+
if (!this.enableSearch) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
// Always show the searchbar on desktop, even if a searchPageUrl is set
|
|
87
|
+
if (this.searchPageUrl) {
|
|
88
|
+
return this.currentViewport === "desktop";
|
|
89
|
+
}
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Whether the header has a hero image, either as a prop or as a slot.
|
|
94
|
+
*/
|
|
95
|
+
get hasHero() {
|
|
96
|
+
return !!this.hero || this.hostElement.querySelector("[slot=hero]") !== null;
|
|
97
|
+
}
|
|
98
|
+
openDrawer() {
|
|
99
|
+
this.drawerOpen = true;
|
|
100
|
+
}
|
|
101
|
+
closeDrawer() {
|
|
102
|
+
this.drawerOpen = false;
|
|
103
|
+
}
|
|
104
|
+
collectMenuElements() {
|
|
105
|
+
const menuElements = (this.menuElements = this.hostElement.querySelectorAll('[slot="menu"]'));
|
|
106
|
+
this.menuLength = menuElements.length;
|
|
107
|
+
this.setMenuFloatingMode();
|
|
108
|
+
}
|
|
109
|
+
enableStuckObserver() {
|
|
110
|
+
if (this.observer) {
|
|
111
|
+
this.observer.observe(this.container);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
disableStuckMode() {
|
|
115
|
+
this._stuck = false;
|
|
116
|
+
if (this.observer) {
|
|
117
|
+
this.observer.unobserve(this.container);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
onStuckMode() {
|
|
121
|
+
if (this.stuck) {
|
|
122
|
+
this.enableStuckObserver();
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
this.disableStuckMode();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
renderSearchLinkButton() {
|
|
129
|
+
if (!this.enableSearch || !this.searchPageUrl || this.currentViewport === "desktop") {
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
return (h("z-button", { class: "search-page-button", variant: ButtonVariant.SECONDARY, href: this.searchPageUrl, icon: "search", size: ControlSize.X_SMALL }));
|
|
133
|
+
}
|
|
134
|
+
renderSeachbar(searchButtonIconOnly) {
|
|
135
|
+
return (h("z-searchbar", { value: this.searchString, placeholder: this.searchPlaceholder, showSearchButton: true, searchButtonIconOnly: searchButtonIconOnly, size: ControlSize.X_SMALL, variant: ButtonVariant.SECONDARY, preventSubmit: this.searchString.length < 3, onSearchTyping: (e) => (this.searchString = e.detail) }));
|
|
136
|
+
}
|
|
137
|
+
componentDidLoad() {
|
|
138
|
+
this.collectMenuElements();
|
|
139
|
+
this.onStuckMode();
|
|
140
|
+
this.evaluateViewport();
|
|
141
|
+
}
|
|
142
|
+
render() {
|
|
143
|
+
return (h(Host, { key: '10a6de9066a2b47fce8c05b28584ebcfbd9d308e', "menu-length": this.menuLength }, this.hasHero && (h("div", { class: "hero-container" }, h("slot", { name: "hero" }, this.hero && (h("img", { alt: "", src: this.hero }))))), h("div", { key: '598744c6237cb30c4d4e467b45944a7879dce93e', class: "heading-panel", ref: (el) => (this.container = el) }, h("div", { key: '2132ed4349abc878b8cec1ca73978fa42dd5c5a4', class: "heading-container" }, h("div", { key: 'd3dcd130c4968e278ca5e0a610ad59a51b630abf', class: "heading-subtitle" }, h("slot", { key: 'd86a2a02577aad72e68d78fccee74d0cafd395e6', name: "top-subtitle" })), h("div", { key: '59f31cad85c438e675a419267cbd1e41b06009c8', class: "heading-title" }, this.menuLength > 0 && (h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, h("z-icon", { name: "burger-menu" }))), h("slot", { key: '48a7e46471a03d776f15d30114ffdaf7f90b15cd', name: "title" }), this.renderSearchLinkButton()), h("div", { key: '41320040925b00a83fb6ed7bcd8911b2e2e1b88e', class: "heading-subtitle" }, h("slot", { key: '2da90e290780904617080944c2bcc507e918f9f7', name: "subtitle" }))), (this.canShowMenu || this.canShowSearchbar) && (h("div", { class: "menu-container" }, this.canShowMenu && (h("slot", { name: "menu", onSlotchange: this.collectMenuElements })), this.canShowSearchbar && this.renderSeachbar(this.currentViewport !== "desktop")))), h("z-offcanvas", { key: 'd54bb515efad20ca24686a5bc0743b9e3906dfef', variant: OffCanvasVariant.OVERLAY, transitiondirection: TransitionDirection.RIGHT, open: this.drawerOpen, onCanvasOpenStatusChanged: (ev) => (this.drawerOpen = ev.detail) }, h("button", { key: '22a9c1865a7fcb9660dbcb14c4202e6c78c2166b', class: "drawer-close", "aria-label": "Chiudi menu", onClick: this.closeDrawer, slot: "canvasContent", "aria-hidden": `${!this.drawerOpen}`, disabled: !this.drawerOpen }, h("z-icon", { key: '6bba2e8d9c1d081a8d826654eed502cab8018b87', name: "close" })), h("div", { key: 'edbd9d23c8adc99adc65a6a343e6587a55b4d12c', class: "drawer-content", slot: "canvasContent", "aria-hidden": `${!this.drawerOpen}` }, h("slot", { key: 'd8ba82c48339422e6a2db733839c8cf8062dd2c3', name: "menu", onSlotchange: this.collectMenuElements }))), this._stuck && (h("div", { class: "heading-stuck" }, h("div", { class: "heading-stuck-content" }, this.menuLength > 0 && (h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, h("z-icon", { name: "burger-menu" }))), h("div", { class: "heading-title" }, h("slot", { name: "stucked-title" }, this.title)), this.renderSearchLinkButton(), this.canShowSearchbar && this.currentViewport === "desktop" && this.renderSeachbar(false))))));
|
|
144
|
+
}
|
|
145
|
+
get hostElement() { return getElement(this); }
|
|
146
|
+
static get watchers() { return {
|
|
147
|
+
"_stuck": ["onStuck"],
|
|
148
|
+
"drawerOpen": ["setMenuFloatingMode"],
|
|
149
|
+
"stuck": ["onStuckMode"]
|
|
150
|
+
}; }
|
|
151
|
+
};
|
|
152
|
+
ZAppHeader.style = ZAppHeaderStyle0;
|
|
153
|
+
|
|
154
|
+
const stylesCss$a = ".sc-z-button-h{display:inline-block;--z-icon-width:16px;--z-icon-height:16px;--z-icon-right-margin:0}[disabled].sc-z-button-h:not([disabled=\"false\"]){pointer-events:none}.sc-z-button-h .z-button--container.sc-z-button{display:inline-flex;width:100%;box-sizing:border-box;align-items:center;justify-content:center;padding:0;border-width:var(--border-size-medium);border-style:solid;border-radius:var(--border-radius);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);letter-spacing:0.3px;line-height:1;outline:none;text-decoration:none;text-transform:uppercase;white-space:nowrap}.sc-z-button-h .z-button--container.sc-z-button:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}.sc-z-button-h .z-button--container.z-button--has-text.sc-z-button{min-width:calc(var(--space-unit) * 8);padding:0 calc(var(--space-unit) * 2)}.sc-z-button-h .z-button--container.z-button--has-text.sc-z-button z-icon.sc-z-button{--z-icon-right-margin:var(--space-unit)}[size=\"big\"].sc-z-button-h .z-button--container.sc-z-button{min-width:44px;height:44px}[size=\"small\"].sc-z-button-h .z-button--container.sc-z-button{min-width:36px;height:36px}[size=\"x-small\"].sc-z-button-h .z-button--container.sc-z-button{min-width:32px;height:32px}[variant=\"primary\"].sc-z-button-h .z-button--container.sc-z-button{border-color:var(--color-primary01);background-color:var(--color-primary01);color:var(--color-text-inverse)}@media (hover: hover){[variant=\"primary\"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-hover-primary);background-color:var(--color-hover-primary);color:var(--color-text-inverse)}}[variant=\"primary\"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-pressed-primary);background-color:var(--color-pressed-primary);box-shadow:var(--shadow-2);color:var(--color-text-inverse)}[variant=\"primary\"][disabled].sc-z-button-h:not([disabled=\"false\"]) .z-button--container.sc-z-button{border-color:var(--color-disabled01);background-color:var(--color-disabled01);color:var(--color-disabled02)}[variant=\"secondary\"].sc-z-button-h .z-button--container.sc-z-button{border-color:var(--color-primary01);background-color:var(--color-surface01);color:var(--color-primary01)}@media (hover: hover){[variant=\"secondary\"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-hover-primary);background-color:var(--color-surface01);color:var(--color-hover-primary)}}[variant=\"secondary\"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-pressed-primary);background-color:var(--color-surface01);box-shadow:var(--shadow-2);color:var(--color-pressed-primary)}[variant=\"secondary\"][disabled].sc-z-button-h:not([disabled=\"false\"]) .z-button--container.sc-z-button{border-color:var(--color-disabled01);background-color:var(--color-surface01);color:var(--color-disabled02)}[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button{border-color:var(--color-primary02);background-color:var(--color-primary02);color:var(--color-primary01)}@media (hover: hover){[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-primary03);background-color:var(--color-primary03);color:var(--color-hover-primary)}}[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button:focus:focus-visible{border-color:var(--color-primary02);background-color:var(--color-primary02);color:var(--color-primary01)}[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-primary02);background-color:var(--color-primary02);box-shadow:var(--shadow-2);color:var(--color-primary01)}[variant=\"tertiary\"][disabled].sc-z-button-h:not([disabled=\"false\"]) .z-button--container.sc-z-button{border-color:var(--color-disabled01);background-color:var(--color-disabled01);color:var(--color-disabled02)}";
|
|
155
|
+
const ZButtonStyle0 = stylesCss$a;
|
|
156
|
+
|
|
157
|
+
const ZButton = class {
|
|
158
|
+
constructor(hostRef) {
|
|
159
|
+
registerInstance(this, hostRef);
|
|
160
|
+
this.ariaLabel = "";
|
|
161
|
+
this.role = undefined;
|
|
162
|
+
this.href = undefined;
|
|
163
|
+
this.target = undefined;
|
|
164
|
+
this.htmlid = undefined;
|
|
165
|
+
this.name = undefined;
|
|
166
|
+
this.disabled = false;
|
|
167
|
+
this.type = ButtonType.BUTTON;
|
|
168
|
+
this.variant = ButtonVariant.PRIMARY;
|
|
169
|
+
this.icon = undefined;
|
|
170
|
+
this.size = ControlSize.BIG;
|
|
171
|
+
}
|
|
172
|
+
getAttributes() {
|
|
173
|
+
return {
|
|
174
|
+
id: this.htmlid,
|
|
175
|
+
class: {
|
|
176
|
+
"z-button--container": true,
|
|
177
|
+
"z-button--has-text": !!this.hostElement.textContent.trim(),
|
|
178
|
+
},
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
render() {
|
|
182
|
+
if (this.href) {
|
|
183
|
+
return (h("a", Object.assign({}, this.getAttributes(), { "aria-label": this.ariaLabel, href: this.href, target: this.target }), this.icon && h("z-icon", { name: this.icon }), h("slot", null)));
|
|
184
|
+
}
|
|
185
|
+
return (h("button", Object.assign({}, this.getAttributes(), { "aria-label": this.ariaLabel, name: this.name, type: this.type, role: this.role, disabled: this.disabled }), this.icon && h("z-icon", { name: this.icon }), h("slot", null)));
|
|
186
|
+
}
|
|
187
|
+
get hostElement() { return getElement(this); }
|
|
188
|
+
};
|
|
189
|
+
ZButton.style = ZButtonStyle0;
|
|
190
|
+
|
|
191
|
+
const stylesCss$9 = ".sc-z-divider-h{display:block;padding:0;margin:0}.divider-horizontal.sc-z-divider-h{width:100%}.divider-vertical.sc-z-divider-h{height:100%}.divider-small.divider-horizontal.sc-z-divider-h{height:var(--border-size-small)}.divider-medium.divider-horizontal.sc-z-divider-h{height:var(--border-size-medium)}.divider-large.divider-horizontal.sc-z-divider-h{height:var(--border-size-large)}.divider-small.divider-vertical.sc-z-divider-h{width:var(--border-size-small)}.divider-medium.divider-vertical.sc-z-divider-h{width:var(--border-size-medium)}.divider-large.divider-vertical.sc-z-divider-h{width:var(--border-size-large)}";
|
|
192
|
+
const ZDividerStyle0 = stylesCss$9;
|
|
193
|
+
|
|
194
|
+
const ZDivider = class {
|
|
195
|
+
constructor(hostRef) {
|
|
196
|
+
registerInstance(this, hostRef);
|
|
197
|
+
this.size = DividerSize.SMALL;
|
|
198
|
+
this.color = "gray200";
|
|
199
|
+
this.orientation = DividerOrientation.HORIZONTAL;
|
|
200
|
+
}
|
|
201
|
+
render() {
|
|
202
|
+
return (h(Host, { key: '2dd73f0950f7c3f83fb650b12d92631fa353c67f', class: `divider-${this.size} divider-${this.orientation}`, style: { backgroundColor: `var(--${this.color})` } }));
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
ZDivider.style = ZDividerStyle0;
|
|
2
206
|
|
|
3
207
|
/**
|
|
4
208
|
* Object containing SVG d path of `stroke` icons.
|
|
@@ -859,6 +1063,802 @@ Object.assign(ICONS, LEGACY_ICONS);
|
|
|
859
1063
|
ICONS["burger-menu"] = ICONS["burger-menu-mobile"];
|
|
860
1064
|
ICONS["burger-menu-filled"] = ICONS["burger-menu-mobile-filled"];
|
|
861
1065
|
|
|
862
|
-
|
|
1066
|
+
const stylesCss$8 = ":host{margin-right:var(--z-icon-right-margin, 0);margin-left:var(--z-icon-left-margin, 0);line-height:0;vertical-align:middle}:host svg:not([width]){width:var(--z-icon-width, 18px)}:host svg:not([height]){height:var(--z-icon-height, 18px)}";
|
|
1067
|
+
const ZIconStyle0 = stylesCss$8;
|
|
1068
|
+
|
|
1069
|
+
const ZIcon = class {
|
|
1070
|
+
constructor(hostRef) {
|
|
1071
|
+
registerInstance(this, hostRef);
|
|
1072
|
+
this.name = undefined;
|
|
1073
|
+
this.height = undefined;
|
|
1074
|
+
this.width = undefined;
|
|
1075
|
+
this.iconid = undefined;
|
|
1076
|
+
this.fill = undefined;
|
|
1077
|
+
}
|
|
1078
|
+
selectPathOrPolygon(iconValue) {
|
|
1079
|
+
if (iconValue === null || iconValue === void 0 ? void 0 : iconValue.startsWith("M")) {
|
|
1080
|
+
return h("path", { d: ICONS[this.name] });
|
|
1081
|
+
}
|
|
1082
|
+
return h("polygon", { points: ICONS[this.name] });
|
|
1083
|
+
}
|
|
1084
|
+
render() {
|
|
1085
|
+
return (h(Host, { key: '2b01f04c92ac8e4772036eb52aad46a62d46d35c', "aria-hidden": "true" }, h("svg", { key: '18067d6877c79af11d5af240d030c8f82531cf6b', viewBox: "0 0 1000 1000", width: this.width, height: this.height, id: this.iconid, fill: this.fill ? `var(--${this.fill})` : "" }, this.selectPathOrPolygon(ICONS[this.name]))));
|
|
1086
|
+
}
|
|
1087
|
+
};
|
|
1088
|
+
ZIcon.style = ZIconStyle0;
|
|
1089
|
+
|
|
1090
|
+
const stylesCss$7 = ".sc-z-input-h{display:inline-block;width:inherit}input.sc-z-input::-ms-clear,input.sc-z-input::-ms-reveal{display:none}.sc-z-input-h input.sc-z-input::-ms-clear,.sc-z-input-h input.sc-z-input::-ms-reveal{display:none}input.sc-z-input,textarea.sc-z-input,.textarea-wrapper.sc-z-input{box-sizing:border-box;border:var(--border-size-small) solid var(--color-surface04);background:var(--color-input-field01);border-radius:var(--border-radius-small);color:var(--color-text01);fill:var(--color-icon02);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg);outline:none}[size=\"small\"].sc-z-input-h input.sc-z-input,[size=\"small\"].sc-z-input-h textarea.sc-z-input,[size=\"small\"].sc-z-input-h .textarea-wrapper.sc-z-input,[size=\"x-small\"].sc-z-input-h input.sc-z-input,[size=\"x-small\"].sc-z-input-h textarea.sc-z-input,[size=\"x-small\"].sc-z-input-h .textarea-wrapper.sc-z-input{font-size:var(--font-size-2)}.cursor-select.sc-z-input-h input.sc-z-input{cursor:pointer}.sc-z-input-h:not(.active-select) input.sc-z-input:focus:focus-visible,[readonly=\"false\"].sc-z-input-h .textarea-wrapper.sc-z-input:focus-within{box-shadow:var(--shadow-focus-primary)}input.sc-z-input:focus:focus-visible,textarea.sc-z-input:focus:focus-visible{color:var(--color-input-field02)}.active-select.sc-z-input-h input.sc-z-input{border:var(--border-size-small) solid var(--color-primary01)}.cursor-select.sc-z-input-h input.sc-z-input:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}.sc-z-input-h input[readonly].sc-z-input:focus:focus-visible{box-shadow:none}.filled.sc-z-input{border-color:var(--color-surface05)}.input-success.sc-z-input{border-color:var(--color-success01);background:var(--color-success-inverse);fill:var(--color-success01)}.input-error.sc-z-input{border-color:var(--color-error01);background:var(--color-error-inverse);fill:var(--color-error01)}.input-warning.sc-z-input{border-color:var(--color-warning01);background:var(--color-warning-inverse);fill:var(--color-warning01)}input.sc-z-input:not([readonly]):hover,.textarea-wrapper.sc-z-input:hover{outline:var(--border-size-medium) solid var(--color-surface04);outline-offset:-2px}.sc-z-input-h:not(.active-select) input[readonly].sc-z-input,.readonly.sc-z-input{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) .textarea-wrapper.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) z-icon.sc-z-input{border-color:var(--color-disabled01);box-shadow:none;color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input:hover{border-width:var(--border-size-small)}input.sc-z-input::placeholder,textarea.sc-z-input::placeholder{color:var(--color-text05)}.sc-z-input::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input::placeholder{color:var(--color-text05)}label.input-label.sc-z-input{display:block;padding-bottom:var(--space-unit);color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);text-align:left;text-transform:uppercase}[disabled].sc-z-input-h:not([disabled=\"false\"]) label.input-label.sc-z-input{color:var(--color-disabled02)}.text-wrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1;fill:var(--color-icon02)}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);box-sizing:border-box;padding:0 calc(var(--space-unit) * 1.5);margin:0}[size=\"small\"].sc-z-input-h .text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:calc(var(--space-unit) * 4.5)}[size=\"x-small\"].sc-z-input-h .text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:calc(var(--space-unit) * 4)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.sc-z-input,.text-wrapper.sc-z-input>div.sc-z-input>input.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 5.25)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 8)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input{position:absolute;z-index:2;top:50%;right:calc(var(--space-unit) * 1.5);display:flex;pointer-events:none;transform:translateY(-50%)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input{padding:0;border:0;background:none;color:inherit;font:inherit;pointer-events:initial}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input+button.icon-button.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.hidden.sc-z-input{display:none}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.reset-icon.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.toggle-password-icon.sc-z-input{cursor:pointer}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.small.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.x-small.sc-z-input{--z-icon-width:16px;--z-icon-height:16px}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset;-webkit-text-fill-color:currentcolor}.textarea-wrapper.sc-z-input{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input{width:100%;min-height:132px;padding:0;border:none;margin:0;resize:none}.radio-wrapper.sc-z-input,.checkbox-wrapper.sc-z-input{position:relative;display:inline-flex;flex-direction:row;align-items:center;color:var(--color-text01);fill:var(--color-primary01);font-family:var(--font-family-sans)}.radio-wrapper.sc-z-input:hover,.checkbox-wrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:currentcolor}.radio-wrapper.sc-z-input>input.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input{position:absolute;z-index:-1;opacity:0;pointer-events:none}.radio-wrapper.sc-z-input .radio-label.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{display:inline-flex;align-items:center;margin:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1;text-transform:inherit}.radio-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkbox-label.sc-z-input{cursor:pointer}.radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{cursor:pointer;fill:inherit}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{--z-icon-width:16px;--z-icon-height:16px}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{font-size:var(--font-size-2)}[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{--z-icon-width:14px;--z-icon-height:14px}[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{font-size:var(--font-size-1)}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input{flex-direction:row}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input{flex-direction:row-reverse}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:calc(var(--space-unit) * 0.5)}.radio-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkbox-label.sc-z-input>z-icon.sc-z-input{border-radius:var(--border-radius-small);box-shadow:var(--shadow-focus-primary)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input{color:var(--color-disabled02)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input>z-icon.sc-z-input{cursor:default;fill:var(--color-disabled01)}";
|
|
1091
|
+
const ZInputStyle0 = stylesCss$7;
|
|
1092
|
+
|
|
1093
|
+
const ZInput = class {
|
|
1094
|
+
constructor(hostRef) {
|
|
1095
|
+
registerInstance(this, hostRef);
|
|
1096
|
+
this.inputChange = createEvent(this, "inputChange", 7);
|
|
1097
|
+
this.startTyping = createEvent(this, "startTyping", 7);
|
|
1098
|
+
this.stopTyping = createEvent(this, "stopTyping", 7);
|
|
1099
|
+
this.inputCheck = createEvent(this, "inputCheck", 7);
|
|
1100
|
+
this.typingtimeout = 300;
|
|
1101
|
+
this.htmlid = `id-${randomId()}`;
|
|
1102
|
+
this.type = undefined;
|
|
1103
|
+
this.name = undefined;
|
|
1104
|
+
this.label = undefined;
|
|
1105
|
+
this.ariaLabel = "";
|
|
1106
|
+
this.ariaExpanded = undefined;
|
|
1107
|
+
this.ariaControls = undefined;
|
|
1108
|
+
this.ariaAutocomplete = undefined;
|
|
1109
|
+
this.ariaActivedescendant = undefined;
|
|
1110
|
+
this.value = undefined;
|
|
1111
|
+
this.disabled = false;
|
|
1112
|
+
this.readonly = false;
|
|
1113
|
+
this.required = false;
|
|
1114
|
+
this.checked = false;
|
|
1115
|
+
this.placeholder = undefined;
|
|
1116
|
+
this.htmltitle = undefined;
|
|
1117
|
+
this.status = undefined;
|
|
1118
|
+
this.message = true;
|
|
1119
|
+
this.labelPosition = LabelPosition.RIGHT;
|
|
1120
|
+
this.autocomplete = undefined;
|
|
1121
|
+
this.role = undefined;
|
|
1122
|
+
this.hasclearicon = true;
|
|
1123
|
+
this.icon = undefined;
|
|
1124
|
+
this.min = undefined;
|
|
1125
|
+
this.minlength = undefined;
|
|
1126
|
+
this.max = undefined;
|
|
1127
|
+
this.maxlength = undefined;
|
|
1128
|
+
this.step = undefined;
|
|
1129
|
+
this.pattern = undefined;
|
|
1130
|
+
this.size = ControlSize.BIG;
|
|
1131
|
+
this.isTyping = false;
|
|
1132
|
+
this.passwordHidden = true;
|
|
1133
|
+
}
|
|
1134
|
+
inputCheckListener(e) {
|
|
1135
|
+
const data = e.detail;
|
|
1136
|
+
switch (this.type) {
|
|
1137
|
+
case InputType.RADIO:
|
|
1138
|
+
if (data.type === InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {
|
|
1139
|
+
this.checked = false;
|
|
1140
|
+
}
|
|
1141
|
+
break;
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
/** get checked status */
|
|
1145
|
+
async isChecked() {
|
|
1146
|
+
switch (this.type) {
|
|
1147
|
+
case InputType.CHECKBOX:
|
|
1148
|
+
case InputType.RADIO:
|
|
1149
|
+
return this.checked;
|
|
1150
|
+
default:
|
|
1151
|
+
console.warn("`isChecked` method is only available for type `checkbox` and `radio`");
|
|
1152
|
+
return false;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
emitInputChange(value) {
|
|
1156
|
+
if (!this.isTyping) {
|
|
1157
|
+
this.emitStartTyping();
|
|
1158
|
+
}
|
|
1159
|
+
let validity;
|
|
1160
|
+
if (this.type === InputType.TEXTAREA) {
|
|
1161
|
+
validity = this.getValidity("textarea");
|
|
1162
|
+
}
|
|
1163
|
+
else {
|
|
1164
|
+
validity = this.getValidity("input");
|
|
1165
|
+
}
|
|
1166
|
+
this.value = value;
|
|
1167
|
+
this.inputChange.emit({ value, validity });
|
|
1168
|
+
clearTimeout(this.timer);
|
|
1169
|
+
this.timer = setTimeout(() => {
|
|
1170
|
+
this.emitStopTyping(this.value, validity);
|
|
1171
|
+
}, this.typingtimeout);
|
|
1172
|
+
}
|
|
1173
|
+
emitStartTyping() {
|
|
1174
|
+
this.isTyping = true;
|
|
1175
|
+
this.startTyping.emit();
|
|
1176
|
+
}
|
|
1177
|
+
emitStopTyping(value, validity) {
|
|
1178
|
+
this.isTyping = false;
|
|
1179
|
+
this.stopTyping.emit({
|
|
1180
|
+
value: value,
|
|
1181
|
+
validity: validity,
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
emitInputCheck(checked) {
|
|
1185
|
+
this.inputCheck.emit({
|
|
1186
|
+
id: this.htmlid,
|
|
1187
|
+
checked: checked,
|
|
1188
|
+
type: this.type,
|
|
1189
|
+
name: this.name,
|
|
1190
|
+
value: this.value,
|
|
1191
|
+
validity: this.getValidity("input"),
|
|
1192
|
+
});
|
|
1193
|
+
}
|
|
1194
|
+
getValidity(type) {
|
|
1195
|
+
const input = this.hostElement.querySelector(type);
|
|
1196
|
+
return input.validity;
|
|
1197
|
+
}
|
|
1198
|
+
/* START text/password/email/number */
|
|
1199
|
+
getTextAttributes() {
|
|
1200
|
+
return {
|
|
1201
|
+
id: this.htmlid,
|
|
1202
|
+
name: this.name,
|
|
1203
|
+
placeholder: this.placeholder,
|
|
1204
|
+
value: this.value,
|
|
1205
|
+
disabled: this.disabled,
|
|
1206
|
+
readonly: this.readonly,
|
|
1207
|
+
required: this.required,
|
|
1208
|
+
title: this.htmltitle,
|
|
1209
|
+
minlength: this.minlength,
|
|
1210
|
+
maxlength: this.maxlength,
|
|
1211
|
+
class: {
|
|
1212
|
+
[`input-${this.status}`]: !!this.status,
|
|
1213
|
+
filled: !!this.value,
|
|
1214
|
+
},
|
|
1215
|
+
autocomplete: this.autocomplete,
|
|
1216
|
+
onInput: (e) => this.emitInputChange(e.target.value),
|
|
1217
|
+
};
|
|
1218
|
+
}
|
|
1219
|
+
getNumberAttributes(type) {
|
|
1220
|
+
if (type != InputType.NUMBER) {
|
|
1221
|
+
return;
|
|
1222
|
+
}
|
|
1223
|
+
return {
|
|
1224
|
+
min: this.min,
|
|
1225
|
+
max: this.max,
|
|
1226
|
+
step: this.step,
|
|
1227
|
+
};
|
|
1228
|
+
}
|
|
1229
|
+
getPatternAttribute(type) {
|
|
1230
|
+
if (type != InputType.PASSWORD &&
|
|
1231
|
+
type != InputType.TEXT &&
|
|
1232
|
+
type != InputType.TEL &&
|
|
1233
|
+
type != InputType.SEARCH &&
|
|
1234
|
+
type != InputType.URL &&
|
|
1235
|
+
type != InputType.EMAIL) {
|
|
1236
|
+
return;
|
|
1237
|
+
}
|
|
1238
|
+
return {
|
|
1239
|
+
pattern: this.pattern,
|
|
1240
|
+
};
|
|
1241
|
+
}
|
|
1242
|
+
getRoleAttribute() {
|
|
1243
|
+
return this.role ? { role: this.role } : {};
|
|
1244
|
+
}
|
|
1245
|
+
getAriaAttrubutes() {
|
|
1246
|
+
const expanded = this.ariaExpanded ? { "aria-expanded": this.ariaExpanded } : {};
|
|
1247
|
+
const controls = this.ariaControls ? { "aria-controls": this.ariaControls } : {};
|
|
1248
|
+
const autocomplete = this.ariaAutocomplete ? { "aria-autocomplete": this.ariaAutocomplete } : {};
|
|
1249
|
+
const activedescendant = this.ariaActivedescendant ? { "aria-activedescendant": this.ariaActivedescendant } : {};
|
|
1250
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({}, expanded), controls), autocomplete), activedescendant);
|
|
1251
|
+
}
|
|
1252
|
+
renderInputText(type = InputType.TEXT) {
|
|
1253
|
+
const ariaLabel = this.ariaLabel ? { "aria-label": this.ariaLabel } : {};
|
|
1254
|
+
const attr = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.getTextAttributes()), this.getNumberAttributes(type)), this.getPatternAttribute(type)), ariaLabel), this.getRoleAttribute()), this.getAriaAttrubutes());
|
|
1255
|
+
if (this.icon || type === InputType.PASSWORD) {
|
|
1256
|
+
Object.assign(attr.class, { "has-icon": true });
|
|
1257
|
+
}
|
|
1258
|
+
if (this.hasclearicon && type != InputType.NUMBER) {
|
|
1259
|
+
Object.assign(attr.class, { "has-clear-icon": true });
|
|
1260
|
+
}
|
|
1261
|
+
return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type === InputType.PASSWORD && !this.passwordHidden ? InputType.TEXT : type }, attr, { ref: (el) => (this.inputRef = el) })), this.renderIcons()), this.renderMessage()));
|
|
1262
|
+
}
|
|
1263
|
+
renderLabel() {
|
|
1264
|
+
if (!this.label) {
|
|
1265
|
+
return;
|
|
1266
|
+
}
|
|
1267
|
+
return (h("label", { class: "input-label body-5-sb", id: `${this.htmlid}_label`, htmlFor: this.htmlid }, this.label));
|
|
1268
|
+
}
|
|
1269
|
+
renderIcons() {
|
|
1270
|
+
return (h("span", { class: "icons-wrapper" }, this.renderResetIcon(), this.renderIcon()));
|
|
1271
|
+
}
|
|
1272
|
+
renderIcon() {
|
|
1273
|
+
if (this.type === InputType.PASSWORD) {
|
|
1274
|
+
return this.renderShowHidePassword();
|
|
1275
|
+
}
|
|
1276
|
+
if (!this.icon) {
|
|
1277
|
+
return;
|
|
1278
|
+
}
|
|
1279
|
+
return (h("button", { type: "button", class: "icon-button input-icon", tabIndex: -1, "aria-hidden": "true" }, h("z-icon", { name: this.icon, class: this.size })));
|
|
1280
|
+
}
|
|
1281
|
+
renderResetIcon() {
|
|
1282
|
+
let hidden = false;
|
|
1283
|
+
if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == InputType.NUMBER) {
|
|
1284
|
+
hidden = true;
|
|
1285
|
+
}
|
|
1286
|
+
return (h("button", { type: "button", class: `icon-button reset-icon ${hidden ? "hidden" : ""}`, "aria-label": "cancella il contenuto dell'input", onClick: () => {
|
|
1287
|
+
this.inputRef.value = "";
|
|
1288
|
+
this.emitInputChange("");
|
|
1289
|
+
} }, h("z-icon", { name: "multiply", class: this.size })));
|
|
1290
|
+
}
|
|
1291
|
+
renderShowHidePassword() {
|
|
1292
|
+
return (h("button", { type: "button", class: "icon-button toggle-password-icon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled", class: this.size })));
|
|
1293
|
+
}
|
|
1294
|
+
renderMessage() {
|
|
1295
|
+
if (boolean(this.message) === false) {
|
|
1296
|
+
return;
|
|
1297
|
+
}
|
|
1298
|
+
return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status, class: this.size }));
|
|
1299
|
+
}
|
|
1300
|
+
/* END text/password/email/number */
|
|
1301
|
+
/* START textarea */
|
|
1302
|
+
renderTextarea() {
|
|
1303
|
+
const attributes = this.getTextAttributes();
|
|
1304
|
+
const ariaLabel = this.ariaLabel ? { "aria-label": this.ariaLabel } : {};
|
|
1305
|
+
return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", { class: Object.assign(Object.assign({}, attributes.class), { "textarea-wrapper": true, "readonly": attributes.readonly }) }, h("textarea", Object.assign({}, attributes, ariaLabel, this.getRoleAttribute()))), this.renderMessage()));
|
|
1306
|
+
}
|
|
1307
|
+
/* END textarea */
|
|
1308
|
+
handleCheck(ev) {
|
|
1309
|
+
this.checked = ev.target.checked;
|
|
1310
|
+
this.emitInputCheck(this.checked);
|
|
1311
|
+
}
|
|
1312
|
+
/* START checkbox */
|
|
1313
|
+
renderCheckbox() {
|
|
1314
|
+
return (h("div", { class: "checkbox-wrapper" }, h("input", Object.assign({ id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }, this.getRoleAttribute())), h("label", { htmlFor: this.htmlid, class: {
|
|
1315
|
+
"checkbox-label": true,
|
|
1316
|
+
"after": this.labelPosition === LabelPosition.RIGHT,
|
|
1317
|
+
"before": this.labelPosition === LabelPosition.LEFT,
|
|
1318
|
+
} }, h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true", class: this.size }), this.label && h("span", { innerHTML: this.label }))));
|
|
1319
|
+
}
|
|
1320
|
+
/* END checkbox */
|
|
1321
|
+
/* START radio */
|
|
1322
|
+
renderRadio() {
|
|
1323
|
+
return (h("div", { class: "radio-wrapper" }, h("input", Object.assign({ id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }, this.getRoleAttribute())), h("label", { htmlFor: this.htmlid, class: {
|
|
1324
|
+
"radio-label": true,
|
|
1325
|
+
"after": this.labelPosition === LabelPosition.RIGHT,
|
|
1326
|
+
"before": this.labelPosition === LabelPosition.LEFT,
|
|
1327
|
+
} }, h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true", class: this.size }), this.label && h("span", { innerHTML: this.label }))));
|
|
1328
|
+
}
|
|
1329
|
+
/* END radio */
|
|
1330
|
+
render() {
|
|
1331
|
+
let input;
|
|
1332
|
+
switch (this.type) {
|
|
1333
|
+
case InputType.TEXTAREA:
|
|
1334
|
+
input = this.renderTextarea();
|
|
1335
|
+
break;
|
|
1336
|
+
case InputType.CHECKBOX:
|
|
1337
|
+
input = this.renderCheckbox();
|
|
1338
|
+
break;
|
|
1339
|
+
case InputType.RADIO:
|
|
1340
|
+
input = this.renderRadio();
|
|
1341
|
+
break;
|
|
1342
|
+
default:
|
|
1343
|
+
input = this.renderInputText(this.type);
|
|
1344
|
+
}
|
|
1345
|
+
return h(Host, { key: '67a39cc20219fa02de2cca264a5d51428f4359f3' }, input);
|
|
1346
|
+
}
|
|
1347
|
+
get hostElement() { return getElement(this); }
|
|
1348
|
+
};
|
|
1349
|
+
ZInput.style = ZInputStyle0;
|
|
1350
|
+
|
|
1351
|
+
const stylesCss$6 = ":host{display:flex;min-height:calc(var(--space-unit) * 2.5);align-items:start;margin-top:var(--space-unit);color:var(--color-text05);fill:currentcolor;font-family:var(--font-family-sans);font-size:var(--font-size-2);letter-spacing:0.16px}:host(.small),:host(.x-small){margin-top:calc(var(--space-unit) * 0.5);font-size:var(--font-size-1)}:host([status=\"success\"]){color:var(--color-text-success)}:host([status=\"error\"]){color:var(--color-text-error)}:host([status=\"warning\"]){color:var(--color-warning02)}:host(:focus){outline:none}:host>z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);--z-icon-right-margin:var(--space-unit);margin-top:calc(var(--space-unit) * 0.25)}:host(.small)>z-icon,:host(.x-small)>z-icon{--z-icon-width:14px;--z-icon-height:14px;--z-icon-right-margin:calc(var(--space-unit) * 0.5)}";
|
|
1352
|
+
const ZInputMessageStyle0 = stylesCss$6;
|
|
1353
|
+
|
|
1354
|
+
const ZInputMessage = class {
|
|
1355
|
+
constructor(hostRef) {
|
|
1356
|
+
registerInstance(this, hostRef);
|
|
1357
|
+
this.statusIcons = {
|
|
1358
|
+
success: "checkmark-circle",
|
|
1359
|
+
error: "multiply-circled",
|
|
1360
|
+
warning: "exclamation-circle",
|
|
1361
|
+
};
|
|
1362
|
+
this.message = undefined;
|
|
1363
|
+
this.status = undefined;
|
|
1364
|
+
this.statusRole = {};
|
|
1365
|
+
}
|
|
1366
|
+
onMessageChange() {
|
|
1367
|
+
this.statusRole = this.message && this.status ? { role: "alert" } : {};
|
|
1368
|
+
}
|
|
1369
|
+
componentWillLoad() {
|
|
1370
|
+
this.onMessageChange();
|
|
1371
|
+
}
|
|
1372
|
+
render() {
|
|
1373
|
+
return (h(Host, Object.assign({ key: '7cb2d7df7604fbc5801ce1eb9142155a4905861d' }, this.statusRole, { "aria-label": this.message }), this.statusIcons[this.status] && this.message && h("z-icon", { name: this.statusIcons[this.status] }), h("span", { key: 'd1734748c3be02eba1d40526855bc4ea69e454f8', innerHTML: this.message })));
|
|
1374
|
+
}
|
|
1375
|
+
static get watchers() { return {
|
|
1376
|
+
"message": ["onMessageChange"],
|
|
1377
|
+
"status": ["onMessageChange"]
|
|
1378
|
+
}; }
|
|
1379
|
+
};
|
|
1380
|
+
ZInputMessage.style = ZInputMessageStyle0;
|
|
1381
|
+
|
|
1382
|
+
const stylesCss$5 = ":host{display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}";
|
|
1383
|
+
const ZListStyle0 = stylesCss$5;
|
|
1384
|
+
|
|
1385
|
+
const ZList = class {
|
|
1386
|
+
constructor(hostRef) {
|
|
1387
|
+
registerInstance(this, hostRef);
|
|
1388
|
+
this.size = ListSize.MEDIUM;
|
|
1389
|
+
this.listType = ListType.NONE;
|
|
1390
|
+
this.role = "list";
|
|
1391
|
+
}
|
|
1392
|
+
setChildrenSizeType() {
|
|
1393
|
+
const children = this.host.children;
|
|
1394
|
+
for (let i = 0; i < children.length; i++) {
|
|
1395
|
+
children[i].setAttribute("size", this.size);
|
|
1396
|
+
children[i].setAttribute("list-type", this.listType);
|
|
1397
|
+
children[i].setAttribute("list-element-position", (i + 1).toString());
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
componentDidLoad() {
|
|
1401
|
+
this.setChildrenSizeType();
|
|
1402
|
+
}
|
|
1403
|
+
render() {
|
|
1404
|
+
return (h(Host, { key: '2593adc6912a0a49a9e38eadd5056d779cac33b4' }, h("slot", { key: '5fb99c0f4cad9633c84d2c353334fc5c816be5a5' })));
|
|
1405
|
+
}
|
|
1406
|
+
get host() { return getElement(this); }
|
|
1407
|
+
};
|
|
1408
|
+
ZList.style = ZListStyle0;
|
|
1409
|
+
|
|
1410
|
+
const stylesCss$4 = ":host{outline:none}:host>.container{--background-color-list-element:var(--color-surface01);--background-hover-color-list-element:var(--color-surface02);--background-active-color-list-element:var(--color-surface02);display:flex;box-sizing:border-box;flex-direction:column;justify-content:center;font-family:var(--font-family-sans);font-weight:var(--font-rg);outline:none}:host([size=\"small\"])>.container{min-height:calc(var(--space-unit) * 4);padding:calc(var(--space-unit) / 2) 0}:host([size=\"medium\"])>.container{min-height:calc(var(--space-unit) * 5);padding:var(--space-unit) 0}:host([size=\"large\"])>.container{min-height:calc(var(--space-unit) * 7);padding:calc(var(--space-unit) * 2) 0}:host([size=\"x-large\"])>.container{min-height:calc(var(--space-unit) * 9);padding:calc(var(--space-unit) * 3) 0}:host([expandable])>.container,:host([clickable])>.container{cursor:pointer}:host([expandable]:hover)>.container,:host([clickable]:hover)>.container{background-color:var(--background-hover-color-list-element)}:host([expandable]:focus:focus-visible)>.container,:host([clickable]:focus:focus-visible)>.container{box-shadow:var(--shadow-focus-primary)}:host([clickable]:not([expandable]))>.container.clicked{box-shadow:var(--shadow-focus-primary)}:host([expandable]:active)>.container,:host([clickable]:active)>.container{background-color:var(--background-active-color-list-element)}:host([align-button=\"left\"][expandable])>.container>.z-list-element-container{display:flex}:host([align-button=\"right\"][expandable])>.container>.z-list-element-container{display:flex;flex-direction:row-reverse;justify-content:space-between}:host([align-button=\"left\"][expandable])>.container>.z-list-element-container>z-icon{margin-right:var(--space-unit)}:host([align-button=\"right\"][expandable])>.container>.z-list-element-container>z-icon{margin-left:var(--space-unit)}:host>.container>.z-list-element-inner-container{display:none}:host>.container>.z-list-element-inner-container.expanded{display:block}.z-list-content-container{display:flex;align-items:center}";
|
|
1411
|
+
const ZListElementStyle0 = stylesCss$4;
|
|
1412
|
+
|
|
1413
|
+
const ZListElement = class {
|
|
1414
|
+
accessibleFocusHandler(e) {
|
|
1415
|
+
if (this.listElementId === e.detail) {
|
|
1416
|
+
const toFocus = this.host.shadowRoot.getElementById(`z-list-element-id-${e.detail}`);
|
|
1417
|
+
toFocus.focus();
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
/**
|
|
1421
|
+
* Constructor.
|
|
1422
|
+
*/
|
|
1423
|
+
constructor(hostRef) {
|
|
1424
|
+
registerInstance(this, hostRef);
|
|
1425
|
+
this.accessibleFocus = createEvent(this, "accessibleFocus", 7);
|
|
1426
|
+
this.ariaDescendantFocus = createEvent(this, "ariaDescendantFocus", 7);
|
|
1427
|
+
this.clickItem = createEvent(this, "clickItem", 7);
|
|
1428
|
+
this.openElementConfig = {
|
|
1429
|
+
accordion: {
|
|
1430
|
+
open: "minus-circled",
|
|
1431
|
+
close: "plus-circled",
|
|
1432
|
+
},
|
|
1433
|
+
menu: {
|
|
1434
|
+
open: "chevron-up",
|
|
1435
|
+
close: "chevron-down",
|
|
1436
|
+
},
|
|
1437
|
+
};
|
|
1438
|
+
this.alignButton = ExpandableListButtonAlign.LEFT;
|
|
1439
|
+
this.clickable = false;
|
|
1440
|
+
this.dividerColor = "color-surface03";
|
|
1441
|
+
this.dividerType = ListDividerType.NONE;
|
|
1442
|
+
this.dividerSize = DividerSize.SMALL;
|
|
1443
|
+
this.expandable = false;
|
|
1444
|
+
this.expandableStyle = ExpandableListStyle.ACCORDION;
|
|
1445
|
+
this.listElementId = undefined;
|
|
1446
|
+
this.size = ListSize.MEDIUM;
|
|
1447
|
+
this.color = "none";
|
|
1448
|
+
this.disabled = false;
|
|
1449
|
+
this.listElementPosition = "0";
|
|
1450
|
+
this.listType = ListType.NONE;
|
|
1451
|
+
this.role = "listitem";
|
|
1452
|
+
this.showInnerContent = false;
|
|
1453
|
+
this.handleClick = this.handleClick.bind(this);
|
|
1454
|
+
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
1455
|
+
}
|
|
1456
|
+
/**
|
|
1457
|
+
* Handler for click on element. If element is expandable, change state.
|
|
1458
|
+
* @returns void
|
|
1459
|
+
*/
|
|
1460
|
+
handleClick() {
|
|
1461
|
+
this.clickItem.emit(this.listElementId);
|
|
1462
|
+
if (!this.expandable) {
|
|
1463
|
+
return;
|
|
1464
|
+
}
|
|
1465
|
+
this.showInnerContent = !this.showInnerContent;
|
|
1466
|
+
}
|
|
1467
|
+
handleKeyDown(event) {
|
|
1468
|
+
const expandByKey = event.code === KeyboardCode.ENTER;
|
|
1469
|
+
switch (event.code) {
|
|
1470
|
+
case KeyboardCode.ARROW_DOWN:
|
|
1471
|
+
event.preventDefault();
|
|
1472
|
+
this.accessibleFocus.emit(this.listElementId + 1);
|
|
1473
|
+
break;
|
|
1474
|
+
case KeyboardCode.ARROW_UP:
|
|
1475
|
+
event.preventDefault();
|
|
1476
|
+
this.accessibleFocus.emit(this.listElementId - 1);
|
|
1477
|
+
break;
|
|
1478
|
+
case KeyboardCode.ENTER:
|
|
1479
|
+
event.preventDefault();
|
|
1480
|
+
this.clickItem.emit(this.listElementId);
|
|
1481
|
+
break;
|
|
1482
|
+
}
|
|
1483
|
+
if (!this.expandable || !expandByKey) {
|
|
1484
|
+
return;
|
|
1485
|
+
}
|
|
1486
|
+
this.showInnerContent = !this.showInnerContent;
|
|
1487
|
+
}
|
|
1488
|
+
/**
|
|
1489
|
+
* Renders button to expand element.
|
|
1490
|
+
* @returns expadable button
|
|
1491
|
+
*/
|
|
1492
|
+
renderExpandableButton() {
|
|
1493
|
+
if (!this.expandable) {
|
|
1494
|
+
return null;
|
|
1495
|
+
}
|
|
1496
|
+
return (h("z-icon", { name: this.showInnerContent
|
|
1497
|
+
? this.openElementConfig[this.expandableStyle].open
|
|
1498
|
+
: this.openElementConfig[this.expandableStyle].close }));
|
|
1499
|
+
}
|
|
1500
|
+
/**
|
|
1501
|
+
* Renders expanded content if element is expandable.
|
|
1502
|
+
* @returns expanded content
|
|
1503
|
+
*/
|
|
1504
|
+
renderExpandedContent() {
|
|
1505
|
+
if (!this.expandable) {
|
|
1506
|
+
return null;
|
|
1507
|
+
}
|
|
1508
|
+
return (h("div", { class: {
|
|
1509
|
+
"z-list-element-inner-container": true,
|
|
1510
|
+
"expanded": this.showInnerContent,
|
|
1511
|
+
} }, h("slot", { name: "inner-content" })));
|
|
1512
|
+
}
|
|
1513
|
+
/**
|
|
1514
|
+
* Renders content of the z-list-element
|
|
1515
|
+
* @returns list content
|
|
1516
|
+
*/
|
|
1517
|
+
renderContent() {
|
|
1518
|
+
if (this.listType === ListType.NONE) {
|
|
1519
|
+
return h("slot", null);
|
|
1520
|
+
}
|
|
1521
|
+
if (this.listType === ListType.ORDERED) {
|
|
1522
|
+
return (h("div", { class: "z-list-content-container" }, h("div", null, this.listElementPosition, ".\u2003"), h("slot", null)));
|
|
1523
|
+
}
|
|
1524
|
+
if (this.listType === ListType.UNORDERED) {
|
|
1525
|
+
return (h("div", { class: "z-list-content-container" }, h("span", null, "\u2022\u2003"), h("slot", null)));
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
render() {
|
|
1529
|
+
return (h(Host, { key: 'b0dc00b8abad630739f30361dcb1abad5fa379e0', "aria-expanded": this.expandable ? this.showInnerContent : null, onClick: this.handleClick, onFocus: () => this.ariaDescendantFocus.emit(this.listElementId), onKeyDown: this.handleKeyDown, clickable: this.clickable && !this.disabled, tabIndex: "0" }, h("div", { key: '81f742ce528b757fb67feefc231ce78e7e76ba87', class: "container", style: { color: `var(--${this.color})` }, tabindex: "-1", id: `z-list-element-id-${this.listElementId}`, part: "list-item-container" }, h("div", { key: 'c2230431473ea5e8292b26c280c71a86d795a1de', class: "z-list-element-container" }, this.renderExpandableButton(), this.renderContent()), this.renderExpandedContent()), this.dividerType === ListDividerType.ELEMENT && (h("z-divider", { color: this.dividerColor, size: this.dividerSize }))));
|
|
1530
|
+
}
|
|
1531
|
+
get host() { return getElement(this); }
|
|
1532
|
+
};
|
|
1533
|
+
ZListElement.style = ZListElementStyle0;
|
|
1534
|
+
|
|
1535
|
+
const stylesCss$3 = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.z-list-group-header-container{color:var(--gray700);font-size:var(--font-size-2);font-weight:var(--font-sb) !important;letter-spacing:0.16px;line-height:1.4}:host>.z-list-group-header-container.has-header{padding-top:var(--space-unit);padding-bottom:var(--space-unit)}:host>.z-list-group-header-container.has-header>z-divider{margin-top:var(--space-unit)}";
|
|
1536
|
+
const ZListGroupStyle0 = stylesCss$3;
|
|
1537
|
+
|
|
1538
|
+
const ZListGroup = class {
|
|
1539
|
+
constructor(hostRef) {
|
|
1540
|
+
registerInstance(this, hostRef);
|
|
1541
|
+
this.size = ListSize.MEDIUM;
|
|
1542
|
+
this.dividerType = ListDividerType.NONE;
|
|
1543
|
+
this.dividerSize = DividerSize.SMALL;
|
|
1544
|
+
this.dividerColor = "gray200";
|
|
1545
|
+
this.listType = ListType.NONE;
|
|
1546
|
+
}
|
|
1547
|
+
componentDidLoad() {
|
|
1548
|
+
const children = this.host.children;
|
|
1549
|
+
for (let i = 0; i < children.length; i++) {
|
|
1550
|
+
if (children.length - 1 > i) {
|
|
1551
|
+
children[i].setAttribute("divider-type", this.dividerType);
|
|
1552
|
+
children[i].setAttribute("divider-size", this.dividerSize);
|
|
1553
|
+
children[i].setAttribute("divider-color", this.dividerColor);
|
|
1554
|
+
}
|
|
1555
|
+
children[i].setAttribute("size", this.size);
|
|
1556
|
+
children[i].setAttribute("list-type", this.listType);
|
|
1557
|
+
children[i].setAttribute("list-element-position", i.toString());
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
componentWillLoad() {
|
|
1561
|
+
this.hasHeader = !!this.host.querySelector('[slot="header-title"]');
|
|
1562
|
+
}
|
|
1563
|
+
render() {
|
|
1564
|
+
return (h(Host, { key: 'c25db9a48f30bf98694c87dce08463ac6b314719', role: "group" }, h("div", { key: '354ea1928b4f2e58b46ef2eb18e84234e9db2cd9', class: {
|
|
1565
|
+
"z-list-group-header-container": true,
|
|
1566
|
+
"has-header": this.hasHeader,
|
|
1567
|
+
} }, h("slot", { key: '48b577a0a6b35ab74eb9b70c53dd9462ab57e92d', name: "header-title" }), this.dividerType === ListDividerType.HEADER && (h("z-divider", { color: this.dividerColor, size: this.dividerSize }))), h("slot", { key: '407e9151406fdc7f01b0ba40a69bd0516d5cc1f4' })));
|
|
1568
|
+
}
|
|
1569
|
+
get host() { return getElement(this); }
|
|
1570
|
+
};
|
|
1571
|
+
ZListGroup.style = ZListGroupStyle0;
|
|
1572
|
+
|
|
1573
|
+
const stylesCss$2 = ".sc-z-offcanvas-h{--z-offcanvas--container-width:375px;--z-offcanvas--top-space:0;min-width:100%;height:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.canvas-container.sc-z-offcanvas{display:flex;overflow:-moz-scrollbars-none;overflow:hidden;min-width:100%;height:100%;flex-direction:column;background:var(--color-surface01)}[variant=\"pushcontent\"].sc-z-offcanvas-h{display:none}[open].sc-z-offcanvas-h{display:flex;visibility:visible}.sc-z-offcanvas-h:not([open]){visibility:hidden}[variant=\"overlay\"].sc-z-offcanvas-h{position:fixed;z-index:1000;top:var(--z-offcanvas--top-space);right:0;bottom:0;left:0;display:flex;height:calc(100% - var(--z-offcanvas--top-space))}[variant=\"overlay\"][transitiondirection=\"left\"].sc-z-offcanvas-h{justify-content:end}[variant=\"overlay\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{z-index:1010}[variant=\"overlay\"].sc-z-offcanvas-h .canvas-background.sc-z-offcanvas{position:absolute;left:0;width:100%;height:100%;background-color:var(--gray900);opacity:0.7}.canvas-container.sc-z-offcanvas>.canvas-content.sc-z-offcanvas{overflow:auto;flex:1 auto;padding:0 calc(var(--space-unit) * 2);margin:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2) calc(var(--space-unit) * 2) 0;overflow-x:hidden}[variant=\"overlay\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas>.canvas-content.sc-z-offcanvas{padding:0 calc(var(--space-unit) * 2) calc(var(--space-unit) * 2) calc(var(--space-unit) * 2);margin:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2) 0 0}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar-track{background-color:transparent}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas{scrollbar-color:var(--color-primary01) transparent}@media only screen and (max-width: 767px){[open][transitiondirection=\"left\"].sc-z-offcanvas-h:not(.skip-animation)>.canvas-container.sc-z-offcanvas{animation:enter-right 0.4s ease-out}[open][transitiondirection=\"right\"].sc-z-offcanvas-h:not(.skip-animation)>.canvas-container.sc-z-offcanvas{animation:enter-left 0.4s ease-out}}@media only screen and (min-width: 768px){.sc-z-offcanvas-h{min-width:auto}.canvas-container.sc-z-offcanvas{width:auto;min-width:max(var(--z-offcanvas--container-width), 375px);max-width:max(var(--z-offcanvas--container-width), 375px);height:auto;min-height:calc(var(--space-unit) * 40)}.sc-z-offcanvas-h:not([variant=\"overlay\"])[open]:not(.skip-animation){width:auto;animation:grow 0.4s ease-out}}@keyframes grow{from{width:0}to{width:max(var(--z-offcanvas--container-width), 375px)}}@keyframes enter-left{from{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes enter-right{from{transform:translateX(100%)}to{transform:translateX(0)}}[open][variant=\"overlay\"][transitiondirection=\"left\"].sc-z-offcanvas-h:not(.skip-animation)>.canvas-container.sc-z-offcanvas{animation:enter-right 0.4s ease-out}[open][transitiondirection=\"right\"].sc-z-offcanvas-h:not(.skip-animation)>.canvas-container.sc-z-offcanvas{animation:enter-left 0.4s ease-out}.sc-z-offcanvas-h:not([open])[variant=\"overlay\"][transitiondirection=\"right\"]>.canvas-container.sc-z-offcanvas{transform:translateX(-100%);transition:visibility 0.4s ease-out, transform 0.4s ease-out}.sc-z-offcanvas-h:not([open])[variant=\"overlay\"][transitiondirection=\"left\"]>.canvas-container.sc-z-offcanvas{transform:translateX(100%);transition:visibility 0.4s ease-out, transform 0.4s ease-out}.sc-z-offcanvas-h:not([open])[variant=\"overlay\"] .canvas-background.sc-z-offcanvas{transition:visibility 0.4s ease-out;visibility:hidden}";
|
|
1574
|
+
const ZOffcanvasStyle0 = stylesCss$2;
|
|
1575
|
+
|
|
1576
|
+
const ZOffcanvas = class {
|
|
1577
|
+
constructor(hostRef) {
|
|
1578
|
+
registerInstance(this, hostRef);
|
|
1579
|
+
this.canvasOpenStatusChanged = createEvent(this, "canvasOpenStatusChanged", 7);
|
|
1580
|
+
this.variant = OffCanvasVariant.PUSHCONTENT;
|
|
1581
|
+
this.open = false;
|
|
1582
|
+
this.transitiondirection = TransitionDirection.LEFT;
|
|
1583
|
+
this.skipLoadAnimation = false;
|
|
1584
|
+
}
|
|
1585
|
+
onOpenChanged() {
|
|
1586
|
+
if (!this.open && this.skipLoadAnimation) {
|
|
1587
|
+
this.skipLoadAnimation = false;
|
|
1588
|
+
}
|
|
1589
|
+
this.handlePageOverflow();
|
|
1590
|
+
this.canvasOpenStatusChanged.emit(this.open);
|
|
1591
|
+
}
|
|
1592
|
+
handlePageOverflow() {
|
|
1593
|
+
const overflow = this.variant === OffCanvasVariant.OVERLAY ? "overflow-y" : "overflow-x";
|
|
1594
|
+
document.body.style[overflow] = this.open ? "hidden" : "";
|
|
1595
|
+
}
|
|
1596
|
+
disconnectedCallback() {
|
|
1597
|
+
this.open = false;
|
|
1598
|
+
}
|
|
1599
|
+
render() {
|
|
1600
|
+
return (h(Host, { key: '60946289b968d1faf19d7f2620a848a4c5fe049b', class: { "skip-animation": this.skipLoadAnimation } }, h("div", { key: 'b29107d6cfc579c79bef11aa8ae35b6cb7b2d319', role: "presentation", class: "canvas-container", onTransitionEnd: () => this.handlePageOverflow() }, h("div", { key: '6fdb6a4048b7f25b81fed9adb148e1afc1f2838c', role: "presentation", class: "canvas-content" }, h("slot", { key: '51ffe7fbc7bda15cf4ee2dd92d6cf87984a7ee96', name: "canvasContent" }))), this.variant == OffCanvasVariant.OVERLAY && (h("div", { class: "canvas-background", "data-action": "canvasBackground", onClick: () => (this.open = false) }))));
|
|
1601
|
+
}
|
|
1602
|
+
static get watchers() { return {
|
|
1603
|
+
"open": ["onOpenChanged"]
|
|
1604
|
+
}; }
|
|
1605
|
+
};
|
|
1606
|
+
ZOffcanvas.style = ZOffcanvasStyle0;
|
|
1607
|
+
|
|
1608
|
+
const stylesCss$1 = ":host{--z-searchbar-tag-text-color:var(--color-primary03);--z-searchbar-tag-bg:var(--color-hover-primary);z-index:15;display:flex;column-gap:calc(var(--space-unit) * 2);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host,*{box-sizing:border-box}.input-container{position:relative;display:flex;width:100%;flex-direction:column}.results-wrapper{position:absolute;top:calc(100% - 1px);left:0;width:100%;padding:calc(var(--space-unit) / 4);border:var(--border-size-small) solid var(--color-surface03);border-top:none;background:var(--color-surface01)}.results{overflow:auto;max-height:var(--z-searchbar-results-height, 540px);padding:calc(var(--space-unit) / 2) calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}.results::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.results::-webkit-scrollbar-track{background-color:transparent}.results::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.results .category-heading{display:block;font-size:var(--font-size-2);font-weight:var(--font-rg);line-height:var(--font-size-3)}.results .category-heading>*{display:block}.results .category-heading>.category{color:var(--color-text05);font-style:italic}.results .category-heading>.subcategory{margin-top:var(--space-unit);color:var(--color-text01);text-transform:uppercase}.results z-list-element{display:block}.results z-list-element>.list-element{display:flex;justify-content:space-between}.results z-list-element>.list-element>z-tag{border:1px solid var(--gray800);font-size:var(--font-size-1);font-weight:var(--font-sb);--z-tag-bg:var(--z-searchbar-tag-bg);--z-tag-text-color:var(--z-searchbar-tag-text-color)}.results .item{--z-icon-height:12px;--z-icon-width:12px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-start;color:var(--color-text01);column-gap:calc(var(--space-unit) * 1.5);fill:var(--color-icon02);font-size:var(--font-size-2);line-height:var(--font-size-3)}.results .item.ellipsis>.item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.results .item>.item-label mark{background:var(--color-primary03)}.results .item.has-category{padding-left:calc(var(--space-unit) * 3)}.results .item.item-search{--z-icon-height:16px;--z-icon-width:16px}.results .item-show-all{text-align:center}.results .item-no-results{display:block;font-size:var(--font-size-2);font-style:italic;line-height:var(--font-size-5)}.results .item-no-results>ul{padding-left:calc(var(--space-unit) * 2);margin:var(--space-unit)}@media (min-width: 768px){.results .category-heading{font-size:var(--font-size-3);line-height:var(--font-size-6)}.results .item{font-size:var(--font-size-3);line-height:var(--font-size-6)}.results .item.item-search{--z-icon-height:18px;--z-icon-width:18px}.results .item.ellipsis>.item-label{height:24px}}@media (min-width: 1152px){.results .item{cursor:pointer}.results .item-no-results{cursor:default;font-size:var(--font-size-3);line-height:var(--font-size-6)}}:host([size=\"small\"]) .results :is(.item,.category-heading),:host([size=\"x-small\"]) .results :is(.item,.category-heading){font-size:var(--font-size-2)}:host([size=\"small\"]) .results .item:not(.has-category),:host([size=\"x-small\"]) .results .item:not(.has-category){--z-icon-height:16px;--z-icon-width:16px}:host([size=\"small\"])::part(list-item-container){min-height:calc(var(--space-unit) * 4.5);padding:0}:host([size=\"x-small\"])::part(list-item-container){min-height:calc(var(--space-unit) * 4);padding:0}";
|
|
1609
|
+
const ZSearchbarStyle0 = stylesCss$1;
|
|
1610
|
+
|
|
1611
|
+
const ZSearchbar = class {
|
|
1612
|
+
constructor(hostRef) {
|
|
1613
|
+
registerInstance(this, hostRef);
|
|
1614
|
+
this.searchSubmit = createEvent(this, "searchSubmit", 7);
|
|
1615
|
+
this.searchTyping = createEvent(this, "searchTyping", 7);
|
|
1616
|
+
this.searchItemClick = createEvent(this, "searchItemClick", 7);
|
|
1617
|
+
this.resultsItemsList = null;
|
|
1618
|
+
this.htmlid = `searchbar-${randomId()}`;
|
|
1619
|
+
this.preventSubmit = false;
|
|
1620
|
+
this.value = undefined;
|
|
1621
|
+
this.placeholder = undefined;
|
|
1622
|
+
this.autocomplete = false;
|
|
1623
|
+
this.autocompleteMinChars = 3;
|
|
1624
|
+
this.resultsCount = undefined;
|
|
1625
|
+
this.resultsEllipsis = true;
|
|
1626
|
+
this.searchHelperLabel = "Cerca {searchString}";
|
|
1627
|
+
this.resultsItems = undefined;
|
|
1628
|
+
this.sortResultsItems = false;
|
|
1629
|
+
this.showSearchButton = false;
|
|
1630
|
+
this.searchButtonIconOnly = false;
|
|
1631
|
+
this.size = ControlSize.BIG;
|
|
1632
|
+
this.variant = ButtonVariant.PRIMARY;
|
|
1633
|
+
this.searchString = this.value;
|
|
1634
|
+
this.currResultsCount = 0;
|
|
1635
|
+
this.showResults = false;
|
|
1636
|
+
this.isMobile = false;
|
|
1637
|
+
}
|
|
1638
|
+
emitSearchSubmit() {
|
|
1639
|
+
this.searchSubmit.emit(this.inputRef.value);
|
|
1640
|
+
}
|
|
1641
|
+
emitSearchTyping(search) {
|
|
1642
|
+
this.searchTyping.emit(search);
|
|
1643
|
+
}
|
|
1644
|
+
emitSearchItemClick(item) {
|
|
1645
|
+
this.searchItemClick.emit(item);
|
|
1646
|
+
}
|
|
1647
|
+
watchItems() {
|
|
1648
|
+
this.resultsItemsList = this.getResultsItemsList();
|
|
1649
|
+
}
|
|
1650
|
+
watchResultsCount() {
|
|
1651
|
+
this.currResultsCount = this.resultsCount;
|
|
1652
|
+
}
|
|
1653
|
+
watchValue() {
|
|
1654
|
+
this.searchString = this.value;
|
|
1655
|
+
}
|
|
1656
|
+
watchSearchString() {
|
|
1657
|
+
this.emitSearchTyping(this.searchString);
|
|
1658
|
+
if (!this.searchString) {
|
|
1659
|
+
this.currResultsCount = this.resultsCount;
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
disconnectedCallback() {
|
|
1663
|
+
this.resizeObserver.disconnect();
|
|
1664
|
+
}
|
|
1665
|
+
componentDidLoad() {
|
|
1666
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
1667
|
+
if (getDevice() === Device.MOBILE && !this.isMobile) {
|
|
1668
|
+
this.isMobile = true;
|
|
1669
|
+
}
|
|
1670
|
+
if (getDevice() !== Device.MOBILE && this.isMobile) {
|
|
1671
|
+
this.isMobile = false;
|
|
1672
|
+
}
|
|
1673
|
+
});
|
|
1674
|
+
this.resizeObserver.observe(this.element);
|
|
1675
|
+
}
|
|
1676
|
+
componentWillLoad() {
|
|
1677
|
+
this.resultsItemsList = this.getResultsItemsList();
|
|
1678
|
+
this.currResultsCount = this.resultsCount;
|
|
1679
|
+
}
|
|
1680
|
+
getResultsItemsList() {
|
|
1681
|
+
return typeof this.resultsItems === "string" ? JSON.parse(this.resultsItems) : this.resultsItems;
|
|
1682
|
+
}
|
|
1683
|
+
getGroupedItems(items) {
|
|
1684
|
+
const groupedItems = {};
|
|
1685
|
+
items.forEach((item) => {
|
|
1686
|
+
var _a;
|
|
1687
|
+
const key = `${item === null || item === void 0 ? void 0 : item.category}${item === null || item === void 0 ? void 0 : item.subcategory}`;
|
|
1688
|
+
groupedItems[key] = (_a = groupedItems[key]) !== null && _a !== void 0 ? _a : {
|
|
1689
|
+
category: item === null || item === void 0 ? void 0 : item.category,
|
|
1690
|
+
subcategory: item === null || item === void 0 ? void 0 : item.subcategory,
|
|
1691
|
+
items: [],
|
|
1692
|
+
};
|
|
1693
|
+
groupedItems[key]["items"].push(item);
|
|
1694
|
+
});
|
|
1695
|
+
if (this.sortResultsItems) {
|
|
1696
|
+
return Object.keys(groupedItems)
|
|
1697
|
+
.sort()
|
|
1698
|
+
.reduce((obj, key) => {
|
|
1699
|
+
obj[key] = Object.assign(Object.assign({}, groupedItems[key]), { items: groupedItems[key]["items"].sort((a, b) => {
|
|
1700
|
+
const nameA = a.label.toUpperCase();
|
|
1701
|
+
const nameB = b.label.toUpperCase();
|
|
1702
|
+
if (nameA < nameB) {
|
|
1703
|
+
return -1;
|
|
1704
|
+
}
|
|
1705
|
+
if (nameA > nameB) {
|
|
1706
|
+
return 1;
|
|
1707
|
+
}
|
|
1708
|
+
return 0;
|
|
1709
|
+
}) });
|
|
1710
|
+
return obj;
|
|
1711
|
+
}, {});
|
|
1712
|
+
}
|
|
1713
|
+
return groupedItems;
|
|
1714
|
+
}
|
|
1715
|
+
checkResultsCount(counter) {
|
|
1716
|
+
if (!this.currResultsCount || counter < this.currResultsCount) {
|
|
1717
|
+
return true;
|
|
1718
|
+
}
|
|
1719
|
+
return false;
|
|
1720
|
+
}
|
|
1721
|
+
handleStopTyping(e) {
|
|
1722
|
+
e.stopPropagation();
|
|
1723
|
+
this.searchString = e.detail.value;
|
|
1724
|
+
}
|
|
1725
|
+
handleSubmit() {
|
|
1726
|
+
if (this.preventSubmit) {
|
|
1727
|
+
return;
|
|
1728
|
+
}
|
|
1729
|
+
this.emitSearchSubmit();
|
|
1730
|
+
}
|
|
1731
|
+
handleOutsideClick(e) {
|
|
1732
|
+
const cp = e.composedPath();
|
|
1733
|
+
const searchbar = cp.find((elem) => elem.nodeName === "Z-SEARCHBAR");
|
|
1734
|
+
if (!searchbar || searchbar.htmlid !== this.htmlid) {
|
|
1735
|
+
this.showResults = false;
|
|
1736
|
+
return;
|
|
1737
|
+
}
|
|
1738
|
+
if (cp.find((elem) => { var _a; return (elem === null || elem === void 0 ? void 0 : elem.nodeName) === "Z-INPUT" || ((_a = elem === null || elem === void 0 ? void 0 : elem.classList) === null || _a === void 0 ? void 0 : _a.contains("results")); })) {
|
|
1739
|
+
this.showResults = true;
|
|
1740
|
+
return;
|
|
1741
|
+
}
|
|
1742
|
+
this.showResults = false;
|
|
1743
|
+
}
|
|
1744
|
+
renderInput() {
|
|
1745
|
+
return (h("z-input", { ref: (val) => {
|
|
1746
|
+
this.inputRef = val;
|
|
1747
|
+
}, message: false, placeholder: this.placeholder, onStopTyping: (e) => this.handleStopTyping(e), onKeyUp: (e) => handleEnterKeydSubmit(e, () => this.handleSubmit()), value: this.value, size: this.size }));
|
|
1748
|
+
}
|
|
1749
|
+
renderButton() {
|
|
1750
|
+
if (!this.showSearchButton) {
|
|
1751
|
+
return null;
|
|
1752
|
+
}
|
|
1753
|
+
const iconProp = this.searchButtonIconOnly ? { icon: "search" } : null;
|
|
1754
|
+
const buttonLabel = this.searchButtonIconOnly ? "" : "CERCA";
|
|
1755
|
+
const defaultProps = Object.assign({ disabled: this.preventSubmit, variant: this.variant, size: this.size, onClick: () => this.handleSubmit() }, iconProp);
|
|
1756
|
+
return h("z-button", Object.assign({}, defaultProps), buttonLabel);
|
|
1757
|
+
}
|
|
1758
|
+
renderResults() {
|
|
1759
|
+
if (!this.showResults ||
|
|
1760
|
+
!this.autocomplete ||
|
|
1761
|
+
!this.searchString ||
|
|
1762
|
+
this.searchString.length < this.autocompleteMinChars ||
|
|
1763
|
+
!this.resultsItemsList) {
|
|
1764
|
+
return null;
|
|
1765
|
+
}
|
|
1766
|
+
return (h("div", { class: "results-wrapper" }, h("div", { class: "results" }, this.renderResultsList())));
|
|
1767
|
+
}
|
|
1768
|
+
renderResultsList() {
|
|
1769
|
+
var _a, _b;
|
|
1770
|
+
if (this.preventSubmit && !((_a = this.resultsItemsList) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
1771
|
+
return (h("span", { class: "item item-no-results" }, "Non abbiamo trovato risultati per ", h("b", null, this.searchString), h("br", null), h("br", null), "Cosa puoi fare?", h("ul", null, h("li", null, "Verificare di aver scritto bene"), h("li", null, "Provare a cercare un'altra parola"), h("li", null, "Provare a cercare qualcosa di pi\u00F9 generico"))));
|
|
1772
|
+
}
|
|
1773
|
+
return (h("z-list", { role: "listbox", id: `list-${this.htmlid}` }, this.renderSearchHelper(!!((_b = this.resultsItemsList) === null || _b === void 0 ? void 0 : _b.length)), this.renderItems(), this.renderShowAllResults()));
|
|
1774
|
+
}
|
|
1775
|
+
renderItems() {
|
|
1776
|
+
var _a;
|
|
1777
|
+
if (!((_a = this.resultsItemsList) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
1778
|
+
return [];
|
|
1779
|
+
}
|
|
1780
|
+
const groupedItems = this.getGroupedItems(this.resultsItemsList);
|
|
1781
|
+
const listGroups = [];
|
|
1782
|
+
let counter = 0;
|
|
1783
|
+
Object.values(groupedItems).forEach((groupItem, index, array) => {
|
|
1784
|
+
if (this.checkResultsCount(counter)) {
|
|
1785
|
+
const listGroupsElements = [];
|
|
1786
|
+
groupItem.items.forEach((item, subindex, subarray) => {
|
|
1787
|
+
if (this.checkResultsCount(counter)) {
|
|
1788
|
+
const isLast = index === array.length - 1 && subindex === subarray.length - 1;
|
|
1789
|
+
listGroupsElements.push(this.renderItem(item, subindex, !isLast));
|
|
1790
|
+
}
|
|
1791
|
+
counter++;
|
|
1792
|
+
});
|
|
1793
|
+
if (listGroupsElements.length) {
|
|
1794
|
+
listGroups.push(h("z-list-group", { "divider-type": ListDividerType.ELEMENT }, this.renderItemCategory(groupItem), listGroupsElements));
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
});
|
|
1798
|
+
return listGroups;
|
|
1799
|
+
}
|
|
1800
|
+
renderItem(item, key, divider) {
|
|
1801
|
+
return (h("z-list-element", { id: `list-item-${this.htmlid}-${key}`, role: "option", tabindex: 0, dividerType: divider ? ListDividerType.ELEMENT : undefined, clickable: true, onClickItem: () => this.emitSearchItemClick(item) }, h("div", { class: "list-element" }, h("span", { class: { "item": true, "ellipsis": this.resultsEllipsis, "has-category": !!item.category } }, (item === null || item === void 0 ? void 0 : item.icon) && (h("z-icon", { class: "item-icon", name: item.icon })), h("span", { class: "item-label", title: item.label, innerHTML: this.renderItemLabel(item.label) })), (item === null || item === void 0 ? void 0 : item.tag) && h("z-tag", { icon: item.tag.icon }, !this.isMobile ? item.tag.text : ""))));
|
|
1802
|
+
}
|
|
1803
|
+
renderItemLabel(label) {
|
|
1804
|
+
if (!this.searchString) {
|
|
1805
|
+
return label;
|
|
1806
|
+
}
|
|
1807
|
+
return label.replace(new RegExp(this.searchString.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "gmi"), (found) => `<mark>${found}</mark>`);
|
|
1808
|
+
}
|
|
1809
|
+
renderItemCategory(groupItem) {
|
|
1810
|
+
if (!(groupItem === null || groupItem === void 0 ? void 0 : groupItem.category)) {
|
|
1811
|
+
return null;
|
|
1812
|
+
}
|
|
1813
|
+
return (h("span", { class: "category-heading", slot: "header-title" }, h("span", { class: "category" }, groupItem.category), (groupItem === null || groupItem === void 0 ? void 0 : groupItem.subcategory) && h("span", { class: "subcategory" }, groupItem.subcategory)));
|
|
1814
|
+
}
|
|
1815
|
+
renderSearchHelper(hasDivider = true) {
|
|
1816
|
+
if (!this.autocomplete || this.preventSubmit || !this.searchString) {
|
|
1817
|
+
return null;
|
|
1818
|
+
}
|
|
1819
|
+
return (h("z-list-element", { role: "option", tabindex: 0, dividerType: hasDivider ? ListDividerType.ELEMENT : undefined, clickable: true, id: `list-item-${this.htmlid}-search`, onClickItem: () => this.emitSearchSubmit() }, h("span", { class: "item item-search" }, h("z-icon", { class: "search-icon", name: "left-magnifying-glass" }), h("span", { class: "item-label", innerHTML: this.searchHelperLabel.replace("{searchString}", `<mark>${this.searchString}</mark>`) }))));
|
|
1820
|
+
}
|
|
1821
|
+
renderShowAllResults() {
|
|
1822
|
+
var _a, _b;
|
|
1823
|
+
if (!this.currResultsCount ||
|
|
1824
|
+
!this.searchString ||
|
|
1825
|
+
!((_a = this.resultsItemsList) === null || _a === void 0 ? void 0 : _a.length) ||
|
|
1826
|
+
this.currResultsCount >= ((_b = this.resultsItemsList) === null || _b === void 0 ? void 0 : _b.length)) {
|
|
1827
|
+
return null;
|
|
1828
|
+
}
|
|
1829
|
+
return (h("z-list-element", { role: "option", tabindex: 0, clickable: true, id: `list-item-${this.htmlid}-show-all`, onClickItem: () => (this.currResultsCount = 0), color: "color-primary01" }, h("div", { class: "item-show-all" }, "Vedi tutti i risultati")));
|
|
1830
|
+
}
|
|
1831
|
+
render() {
|
|
1832
|
+
return (h(Host, { key: 'b198d39d33540acea446c870ae3d47776bfa1470', onFocus: () => (this.showResults = true), onClick: (e) => this.handleOutsideClick(e), class: { "has-submit": this.showSearchButton, "has-results": this.autocomplete } }, h("div", { key: 'cebdc4139bc155e30da8d90266289aa485406265', class: "input-container" }, this.renderInput(), this.renderResults()), this.renderButton()));
|
|
1833
|
+
}
|
|
1834
|
+
get element() { return getElement(this); }
|
|
1835
|
+
static get watchers() { return {
|
|
1836
|
+
"resultsItems": ["watchItems"],
|
|
1837
|
+
"resultsCount": ["watchResultsCount"],
|
|
1838
|
+
"value": ["watchValue"],
|
|
1839
|
+
"searchString": ["watchSearchString"]
|
|
1840
|
+
}; }
|
|
1841
|
+
};
|
|
1842
|
+
ZSearchbar.style = ZSearchbarStyle0;
|
|
1843
|
+
|
|
1844
|
+
const stylesCss = ".sc-z-tag-h{--z-icon-width:14px;--z-icon-height:14px;--z-tag-text-color:var(--color-primary03);--z-tag-bg:var(--color-hover-primary);display:flex;width:fit-content;max-width:inherit;height:fit-content;max-height:inherit;padding:calc(var(--space-unit) / 2);background-color:var(--z-tag-bg);border-radius:var(--border-radius);color:var(--z-tag-text-color);fill:var(--z-tag-text-color);font-family:var(--font-family-sans);line-height:14px;text-transform:uppercase}.sc-z-tag-h>z-icon.sc-z-tag{margin-right:var(--space-unit)}.expandable.sc-z-tag-h>z-icon.sc-z-tag{margin-right:0;transition:margin-right 0.3s ease-out}.sc-z-tag-h:not(.expandable)>z-icon.sc-z-tag:not(:last-child),.expandable.sc-z-tag-h:hover>z-icon.sc-z-tag:not(:last-child){margin-right:var(--space-unit);transition:margin-right 0.3s ease-out 0s}.expandable.sc-z-tag-h>div.sc-z-tag{overflow:hidden;max-width:0;max-height:0}.expandable.sc-z-tag-h:hover>div.sc-z-tag{max-width:100%;max-height:100%}";
|
|
1845
|
+
const ZTagStyle0 = stylesCss;
|
|
1846
|
+
|
|
1847
|
+
const ZTag = class {
|
|
1848
|
+
constructor(hostRef) {
|
|
1849
|
+
registerInstance(this, hostRef);
|
|
1850
|
+
this.icon = undefined;
|
|
1851
|
+
this.expandable = undefined;
|
|
1852
|
+
}
|
|
1853
|
+
render() {
|
|
1854
|
+
return (h(Host, { key: 'fa2bfa00bef52495bef1e2271ffa20c09a60380a', class: {
|
|
1855
|
+
"body-5-sb": true,
|
|
1856
|
+
"expandable": this.expandable && !!this.icon,
|
|
1857
|
+
} }, this.icon && h("z-icon", { name: this.icon }), h("div", { key: '37bbe9678c9a2022a6fe260753b7955fdb9a76d1' }, h("slot", { key: 'f9f7a5f44c6b89d90b4b252fd990889751e955c8' }))));
|
|
1858
|
+
}
|
|
1859
|
+
};
|
|
1860
|
+
ZTag.style = ZTagStyle0;
|
|
1861
|
+
|
|
1862
|
+
export { ZAppHeader as z_app_header, ZButton as z_button, ZDivider as z_divider, ZIcon as z_icon, ZInput as z_input, ZInputMessage as z_input_message, ZList as z_list, ZListElement as z_list_element, ZListGroup as z_list_group, ZOffcanvas as z_offcanvas, ZSearchbar as z_searchbar, ZTag as z_tag };
|
|
863
1863
|
|
|
864
|
-
//# sourceMappingURL=
|
|
1864
|
+
//# sourceMappingURL=z-app-header_12.entry.js.map
|