@zanichelli/albe-web-components 4.1.0 → 4.2.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 +1788 -0
- package/dist/cjs/{index-6b6a3299.js → index-0e75c8cc.js} +16 -45
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/utils-155eec04.js +2706 -0
- package/dist/cjs/{utils-8cc414c9.js → utils-97262bbd.js} +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-switcher_9.cjs.entry.js +736 -0
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-avatar.cjs.entry.js +1 -1
- package/dist/cjs/z-button-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-button.cjs.entry.js +44 -0
- package/dist/cjs/z-card.cjs.entry.js +69 -0
- package/dist/cjs/z-carousel.cjs.entry.js +24 -0
- package/dist/cjs/z-chip.cjs.entry.js +2 -2
- package/dist/cjs/z-combobox.cjs.entry.js +2 -2
- package/dist/cjs/z-contextual-menu.cjs.entry.js +18 -7
- package/dist/cjs/z-cookiebar.cjs.entry.js +1 -1
- package/dist/cjs/z-date-picker.cjs.entry.js +10 -2701
- package/dist/cjs/z-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/z-file.cjs.entry.js +10 -9
- package/dist/cjs/z-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-ghost-loading.cjs.entry.js +19 -0
- package/dist/cjs/z-input-deprecated.cjs.entry.js +2 -2
- package/dist/cjs/z-input-label_2.cjs.entry.js +2 -2
- package/dist/cjs/z-list-group.cjs.entry.js +1 -1
- package/dist/cjs/z-list_2.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +2 -2
- package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
- package/dist/cjs/z-modal-login.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-topbar.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
- package/dist/cjs/z-offcanvas.cjs.entry.js +63 -0
- package/dist/cjs/z-otp.cjs.entry.js +1 -1
- package/dist/cjs/z-pagination-bar.cjs.entry.js +2 -2
- package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
- package/dist/cjs/z-popover-deprecated.cjs.entry.js +338 -0
- package/dist/cjs/z-popover.cjs.entry.js +304 -97
- package/dist/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js +2 -2
- package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
- package/dist/cjs/z-status-tag.cjs.entry.js +1 -1
- package/dist/cjs/z-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/z-table-header.cjs.entry.js +8 -11
- package/dist/cjs/z-table-row.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-toggle-switch.cjs.entry.js +2 -2
- package/dist/cjs/z-tooltip-deprecated.cjs.entry.js +274 -0
- package/dist/cjs/z-tooltip.cjs.entry.js +8 -251
- package/dist/collection/beans/index.js +16 -45
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/{z-date-picker → date-picker}/styles.css +69 -17
- package/dist/collection/components/date-picker/utils.js +76 -0
- package/dist/collection/components/{z-date-picker → date-picker/z-date-picker}/index.js +13 -84
- package/dist/collection/components/date-picker/z-range-picker/index.js +483 -0
- package/dist/collection/components/file-upload/z-file/index.js +13 -13
- package/dist/collection/components/file-upload/z-file/styles.css +2 -2
- package/dist/collection/components/notification/z-tooltip/index.js +45 -298
- package/dist/collection/components/notification/z-tooltip/styles.css +8 -120
- package/dist/collection/components/z-contextual-menu/index.js +26 -16
- package/dist/collection/components/z-contextual-menu/styles.css +16 -5
- package/dist/collection/components/z-popover/index.js +381 -166
- package/dist/collection/components/z-popover/styles.css +91 -180
- package/dist/collection/components/z-table/z-table-header/index.js +10 -16
- package/dist/collection/components/z-table/z-table-header/styles.css +7 -1
- package/dist/collection/deprecated/z-popover-deprecated/index.js +489 -0
- package/dist/collection/deprecated/z-popover-deprecated/styles.css +134 -0
- package/dist/collection/deprecated/z-tooltip-deprecated/index.js +379 -0
- package/dist/collection/deprecated/z-tooltip-deprecated/styles.css +128 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +2 -2
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +1 -1
- package/dist/esm/{index-46ca649a.js → index-c1ce8cab.js} +17 -46
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-5d5963ef.js → utils-99c70c57.js} +2 -2
- package/dist/esm/utils-fa9f38ec.js +2701 -0
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-switcher_9.entry.js +724 -0
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +1 -1
- package/dist/esm/z-button-deprecated.entry.js +1 -1
- package/dist/esm/z-button.entry.js +40 -0
- package/dist/esm/z-card.entry.js +65 -0
- package/dist/esm/z-carousel.entry.js +20 -0
- package/dist/esm/z-chip.entry.js +2 -2
- package/dist/esm/z-combobox.entry.js +2 -2
- package/dist/esm/z-contextual-menu.entry.js +19 -8
- package/dist/esm/z-cookiebar.entry.js +1 -1
- package/dist/esm/z-date-picker.entry.js +9 -2700
- package/dist/esm/z-file-upload.entry.js +2 -2
- package/dist/esm/z-file.entry.js +10 -9
- package/dist/esm/z-footer.entry.js +1 -1
- package/dist/esm/z-ghost-loading.entry.js +15 -0
- package/dist/esm/z-input-deprecated.entry.js +2 -2
- package/dist/esm/z-input-label_2.entry.js +2 -2
- package/dist/esm/z-list-group.entry.js +1 -1
- package/dist/esm/z-list_2.entry.js +1 -1
- package/dist/esm/z-menu-dropdown_2.entry.js +2 -2
- package/dist/esm/z-messages-pocket.entry.js +1 -1
- package/dist/esm/z-modal-login.entry.js +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +4 -4
- package/dist/esm/z-myz-card_4.entry.js +1 -1
- package/dist/esm/z-myz-list-item.entry.js +2 -2
- package/dist/esm/z-myz-topbar.entry.js +1 -1
- package/dist/esm/z-navigation-tab-link.entry.js +1 -1
- package/dist/esm/z-navigation-tab.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +1 -1
- package/dist/esm/z-offcanvas.entry.js +59 -0
- package/dist/esm/z-otp.entry.js +1 -1
- package/dist/esm/z-pagination-bar.entry.js +2 -2
- package/dist/esm/z-pocket_3.entry.js +2 -2
- package/dist/esm/z-popover-deprecated.entry.js +334 -0
- package/dist/esm/z-popover.entry.js +305 -98
- package/dist/esm/z-section-title.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +2 -2
- package/dist/esm/z-slideshow.entry.js +2 -2
- package/dist/esm/z-status-tag.entry.js +1 -1
- package/dist/esm/z-table-cell.entry.js +1 -1
- package/dist/esm/z-table-header.entry.js +8 -11
- package/dist/esm/z-table-row.entry.js +1 -1
- package/dist/esm/z-table.entry.js +1 -1
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +1 -1
- package/dist/esm/z-toggle-switch.entry.js +2 -2
- package/dist/esm/z-tooltip-deprecated.entry.js +270 -0
- package/dist/esm/z-tooltip.entry.js +9 -252
- package/dist/types/beans/index.d.ts +7 -33
- package/dist/types/components/date-picker/utils.d.ts +3 -0
- package/dist/types/components/{z-date-picker → date-picker/z-date-picker}/index.d.ts +3 -8
- package/dist/types/components/date-picker/z-range-picker/index.d.ts +43 -0
- package/dist/types/components/file-upload/z-file/index.d.ts +3 -3
- package/dist/types/components/notification/z-tooltip/index.d.ts +14 -29
- package/dist/types/components/z-contextual-menu/index.d.ts +8 -4
- package/dist/types/components/z-popover/index.d.ts +57 -28
- package/dist/types/components/z-table/z-table-header/index.d.ts +2 -1
- package/dist/types/components.d.ts +210 -35
- package/dist/types/deprecated/z-popover-deprecated/index.d.ts +57 -0
- package/dist/types/deprecated/z-tooltip-deprecated/index.d.ts +41 -0
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-4af112a7.entry.js → p-053846df.entry.js} +1 -1
- package/dist/web-components-library/{p-e2102da3.entry.js → p-0f6edb58.entry.js} +1 -1
- package/dist/web-components-library/p-10be0462.entry.js +1 -0
- package/dist/web-components-library/{p-b15efba3.entry.js → p-15fa8ca4.entry.js} +1 -1
- package/dist/web-components-library/{p-02ea7e49.entry.js → p-1a76a57d.entry.js} +1 -1
- package/{www/build/p-1f73a6d8.entry.js → dist/web-components-library/p-1b1717c9.entry.js} +1 -1
- package/{www/build/p-3edbd35c.entry.js → dist/web-components-library/p-1d5aa37b.entry.js} +1 -1
- package/dist/web-components-library/{p-9074e1a5.entry.js → p-1eb357e8.entry.js} +1 -1
- package/dist/web-components-library/{p-57d1acdc.entry.js → p-28e4abc4.entry.js} +1 -1
- package/dist/web-components-library/p-41f33f7b.entry.js +1 -0
- package/dist/web-components-library/{p-d33fea26.entry.js → p-46aecb12.entry.js} +1 -1
- package/dist/web-components-library/{p-63ccb013.entry.js → p-4be52491.entry.js} +1 -1
- package/dist/web-components-library/{p-55ddbfe9.entry.js → p-4d6f2f01.entry.js} +1 -1
- package/dist/web-components-library/p-514719d2.entry.js +1 -0
- package/dist/web-components-library/p-53dade4b.entry.js +16 -0
- package/{www/build/p-df4e963b.entry.js → dist/web-components-library/p-55f09348.entry.js} +1 -1
- package/dist/web-components-library/p-5789bbe7.entry.js +1 -0
- package/dist/web-components-library/{p-de25c7f0.entry.js → p-5dcbba4e.entry.js} +1 -1
- package/dist/web-components-library/{p-9f9e4266.entry.js → p-659fc25e.entry.js} +1 -1
- package/dist/web-components-library/{p-8fbc2ce9.entry.js → p-6bbd53ec.entry.js} +1 -1
- package/dist/web-components-library/{p-5be162d5.entry.js → p-6c52ed1b.entry.js} +1 -1
- package/dist/web-components-library/p-78df5dbf.entry.js +1 -0
- package/dist/web-components-library/{p-b9da171f.js → p-7f1cc90f.js} +1 -1
- package/dist/web-components-library/{p-0f17db30.entry.js → p-805af37b.entry.js} +1 -1
- package/dist/web-components-library/p-870dabdc.entry.js +1 -0
- package/dist/web-components-library/{p-43329b81.entry.js → p-897f9491.entry.js} +1 -1
- package/dist/web-components-library/{p-3c111c2a.entry.js → p-8ce4b2c4.entry.js} +1 -1
- package/dist/web-components-library/p-8cf3798f.entry.js +1 -0
- package/dist/web-components-library/p-8ddbbe24.entry.js +1 -0
- package/dist/web-components-library/{p-dffdf60a.entry.js → p-91ec5eb4.entry.js} +1 -1
- package/dist/web-components-library/{p-292bc0c4.entry.js → p-92895bce.entry.js} +1 -1
- package/dist/web-components-library/p-970bd07c.entry.js +1 -0
- package/dist/web-components-library/{p-6c6b4e80.entry.js → p-990b8236.entry.js} +1 -1
- package/dist/web-components-library/{p-51cdabeb.entry.js → p-99a562cb.entry.js} +1 -1
- package/dist/web-components-library/p-b359a3b4.entry.js +1 -0
- package/dist/web-components-library/p-b6cd034b.js +1 -0
- package/dist/web-components-library/{p-edb8d2ab.entry.js → p-b9cc2dfc.entry.js} +1 -1
- package/dist/web-components-library/p-bfc78a89.entry.js +1 -0
- package/dist/web-components-library/{p-d995d9dc.entry.js → p-c042e745.entry.js} +1 -1
- package/dist/web-components-library/{p-ccdebe3f.entry.js → p-c8383456.entry.js} +1 -1
- package/dist/web-components-library/{p-0e256fdc.entry.js → p-caa21a6f.entry.js} +1 -1
- package/{www/build/p-bfe5693d.entry.js → dist/web-components-library/p-cd88cead.entry.js} +1 -1
- package/dist/web-components-library/p-d04f3cb6.entry.js +1 -0
- package/{www/build/p-9a5ee6c2.entry.js → dist/web-components-library/p-d6361790.entry.js} +1 -1
- package/{www/build/p-69ef6ddc.entry.js → dist/web-components-library/p-dd0efdbf.entry.js} +1 -1
- package/dist/web-components-library/p-e007cd0b.entry.js +1 -0
- package/dist/web-components-library/{p-0a0aee35.entry.js → p-e74b3fd9.entry.js} +1 -1
- package/{www/build/p-d97a2db9.entry.js → dist/web-components-library/p-eca4cb15.entry.js} +1 -1
- package/dist/web-components-library/p-ed1cd6b1.js +1 -0
- package/dist/web-components-library/p-f26251dd.entry.js +1 -0
- package/dist/web-components-library/p-f61fd81e.entry.js +1 -0
- package/dist/web-components-library/{p-1727c1c8.entry.js → p-f78d6123.entry.js} +1 -1
- package/dist/web-components-library/p-fbfaa699.entry.js +1 -0
- package/dist/web-components-library/{p-ba29bc12.entry.js → p-fdd91263.entry.js} +1 -1
- package/dist/web-components-library/{p-fe927bf4.entry.js → p-ff4a0f6f.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +3 -0
- package/react/components.js +5 -2
- package/react/components.js.map +1 -1
- package/src-react/index.ts +1 -0
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-4af112a7.entry.js → p-053846df.entry.js} +1 -1
- package/www/build/{p-e2102da3.entry.js → p-0f6edb58.entry.js} +1 -1
- package/www/build/p-10be0462.entry.js +1 -0
- package/www/build/{p-b15efba3.entry.js → p-15fa8ca4.entry.js} +1 -1
- package/www/build/{p-02ea7e49.entry.js → p-1a76a57d.entry.js} +1 -1
- package/{dist/web-components-library/p-1f73a6d8.entry.js → www/build/p-1b1717c9.entry.js} +1 -1
- package/{dist/web-components-library/p-3edbd35c.entry.js → www/build/p-1d5aa37b.entry.js} +1 -1
- package/www/build/{p-9074e1a5.entry.js → p-1eb357e8.entry.js} +1 -1
- package/www/build/{p-57d1acdc.entry.js → p-28e4abc4.entry.js} +1 -1
- package/www/build/p-41f33f7b.entry.js +1 -0
- package/www/build/{p-d33fea26.entry.js → p-46aecb12.entry.js} +1 -1
- package/www/build/{p-63ccb013.entry.js → p-4be52491.entry.js} +1 -1
- package/www/build/{p-55ddbfe9.entry.js → p-4d6f2f01.entry.js} +1 -1
- package/www/build/p-514719d2.entry.js +1 -0
- package/www/build/p-53dade4b.entry.js +16 -0
- package/{dist/web-components-library/p-df4e963b.entry.js → www/build/p-55f09348.entry.js} +1 -1
- package/www/build/p-5789bbe7.entry.js +1 -0
- package/www/build/{p-de25c7f0.entry.js → p-5dcbba4e.entry.js} +1 -1
- package/www/build/{p-9f9e4266.entry.js → p-659fc25e.entry.js} +1 -1
- package/www/build/{p-8fbc2ce9.entry.js → p-6bbd53ec.entry.js} +1 -1
- package/www/build/{p-5be162d5.entry.js → p-6c52ed1b.entry.js} +1 -1
- package/www/build/p-78df5dbf.entry.js +1 -0
- package/www/build/{p-b9da171f.js → p-7f1cc90f.js} +1 -1
- package/www/build/{p-0f17db30.entry.js → p-805af37b.entry.js} +1 -1
- package/www/build/p-870dabdc.entry.js +1 -0
- package/www/build/{p-43329b81.entry.js → p-897f9491.entry.js} +1 -1
- package/www/build/{p-3c111c2a.entry.js → p-8ce4b2c4.entry.js} +1 -1
- package/www/build/p-8cf3798f.entry.js +1 -0
- package/www/build/p-8ddbbe24.entry.js +1 -0
- package/www/build/{p-dffdf60a.entry.js → p-91ec5eb4.entry.js} +1 -1
- package/www/build/{p-292bc0c4.entry.js → p-92895bce.entry.js} +1 -1
- package/www/build/p-970bd07c.entry.js +1 -0
- package/www/build/p-975e9d42.js +129 -0
- package/www/build/{p-6c6b4e80.entry.js → p-990b8236.entry.js} +1 -1
- package/www/build/{p-51cdabeb.entry.js → p-99a562cb.entry.js} +1 -1
- package/www/build/p-b359a3b4.entry.js +1 -0
- package/www/build/p-b6cd034b.js +1 -0
- package/www/build/{p-edb8d2ab.entry.js → p-b9cc2dfc.entry.js} +1 -1
- package/www/build/p-bfc78a89.entry.js +1 -0
- package/www/build/{p-d995d9dc.entry.js → p-c042e745.entry.js} +1 -1
- package/www/build/{p-ccdebe3f.entry.js → p-c8383456.entry.js} +1 -1
- package/www/build/{p-0e256fdc.entry.js → p-caa21a6f.entry.js} +1 -1
- package/{dist/web-components-library/p-bfe5693d.entry.js → www/build/p-cd88cead.entry.js} +1 -1
- package/www/build/p-d04f3cb6.entry.js +1 -0
- package/{dist/web-components-library/p-9a5ee6c2.entry.js → www/build/p-d6361790.entry.js} +1 -1
- package/{dist/web-components-library/p-69ef6ddc.entry.js → www/build/p-dd0efdbf.entry.js} +1 -1
- package/www/build/p-e007cd0b.entry.js +1 -0
- package/www/build/{p-0a0aee35.entry.js → p-e74b3fd9.entry.js} +1 -1
- package/{dist/web-components-library/p-d97a2db9.entry.js → www/build/p-eca4cb15.entry.js} +1 -1
- package/www/build/p-ed1cd6b1.js +1 -0
- package/www/build/p-f26251dd.entry.js +1 -0
- package/www/build/p-f61fd81e.entry.js +1 -0
- package/www/build/{p-1727c1c8.entry.js → p-f78d6123.entry.js} +1 -1
- package/www/build/p-fbfaa699.entry.js +1 -0
- package/www/build/p-fcff1237.css +812 -0
- package/www/build/{p-ba29bc12.entry.js → p-fdd91263.entry.js} +1 -1
- package/www/build/{p-fe927bf4.entry.js → p-ff4a0f6f.entry.js} +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +6 -70
- package/dist/cjs/z-app-switcher_11.cjs.entry.js +0 -377
- package/dist/cjs/z-input_2.cjs.entry.js +0 -228
- package/dist/esm/z-app-switcher_11.entry.js +0 -363
- package/dist/esm/z-input_2.entry.js +0 -223
- package/dist/web-components-library/p-0d29d851.entry.js +0 -1
- package/dist/web-components-library/p-0ef6c549.entry.js +0 -1
- package/dist/web-components-library/p-20d62443.entry.js +0 -1
- package/dist/web-components-library/p-562e2d52.entry.js +0 -1
- package/dist/web-components-library/p-5eacbfc7.entry.js +0 -1
- package/dist/web-components-library/p-6218514a.entry.js +0 -1
- package/dist/web-components-library/p-71accd8e.entry.js +0 -1
- package/dist/web-components-library/p-7c6d4440.entry.js +0 -1
- package/dist/web-components-library/p-93cddf62.entry.js +0 -1
- package/dist/web-components-library/p-9f5d707a.js +0 -1
- package/dist/web-components-library/p-a8875b97.entry.js +0 -16
- package/dist/web-components-library/p-e2431b92.entry.js +0 -1
- package/www/build/p-0d29d851.entry.js +0 -1
- package/www/build/p-0ef6c549.entry.js +0 -1
- package/www/build/p-20d62443.entry.js +0 -1
- package/www/build/p-562e2d52.entry.js +0 -1
- package/www/build/p-5eacbfc7.entry.js +0 -1
- package/www/build/p-6218514a.entry.js +0 -1
- package/www/build/p-71accd8e.entry.js +0 -1
- package/www/build/p-7c6d4440.entry.js +0 -1
- package/www/build/p-88b56b6e.css +0 -1
- package/www/build/p-93cddf62.entry.js +0 -1
- package/www/build/p-9f5d707a.js +0 -1
- package/www/build/p-a8875b97.entry.js +0 -16
- package/www/build/p-e2431b92.entry.js +0 -1
- package/www/build/p-f01941e6.js +0 -1
|
@@ -0,0 +1,736 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-84b7063a.js');
|
|
6
|
+
const index$1 = require('./index-0e75c8cc.js');
|
|
7
|
+
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
8
|
+
const icons = require('./icons-9fc3ff30.js');
|
|
9
|
+
const utils = require('./utils-97262bbd.js');
|
|
10
|
+
const utils$1 = require('./utils-155eec04.js');
|
|
11
|
+
require('./_commonjsHelpers-537d719a.js');
|
|
12
|
+
|
|
13
|
+
const stylesCss$8 = ":host{font-family:var(--dashboard-font);font-weight:var(--font-rg)}button{display:flex;justify-content:center;align-content:center;background-color:transparent;border:none;padding:0}button>z-icon{color:var(--bg-white);fill:currentColor}button>z-icon.light{color:var(--bg-grey-900);fill:currentColor}";
|
|
14
|
+
|
|
15
|
+
const ZAppSwitcher = class {
|
|
16
|
+
constructor(hostRef) {
|
|
17
|
+
index.registerInstance(this, hostRef);
|
|
18
|
+
this.appButtonClick = index.createEvent(this, "appButtonClick", 7);
|
|
19
|
+
/** theme variant, default 'dark' */
|
|
20
|
+
this.theme = index$1.ThemeVariant.dark;
|
|
21
|
+
this.isopen = false;
|
|
22
|
+
this.emitAppButtonClick = this.emitAppButtonClick.bind(this);
|
|
23
|
+
}
|
|
24
|
+
emitAppButtonClick() {
|
|
25
|
+
this.isopen = !this.isopen;
|
|
26
|
+
this.appButtonClick.emit({ isopen: this.isopen });
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
return (index.h("button", { title: "app-switcher", onClick: () => this.emitAppButtonClick() }, index.h("z-icon", { name: "app-switcher", class: this.theme })));
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
ZAppSwitcher.style = stylesCss$8;
|
|
33
|
+
|
|
34
|
+
const stylesCss$7 = ":host{display:block;position:sticky;box-sizing:border-box;top:0;height:calc(var(--space-unit) * 6);padding:calc(var(--space-unit) / 2) calc(var(--space-unit) * 2);border-radius:var(--border-no-radius);background-color:var(--gray900);z-index:99}:host(.light){background-color:var(--color-white)}:host>div{display:flex;justify-content:space-between;align-items:center}:host(.limited-width) #content-container{margin:auto;max-width:var(--mw)}.content-panel{display:flex;align-items:center}.content-panel>:not(:last-child){margin-right:calc(var(--space-unit) * 2)}#divider-container{display:none}z-link{font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:14px;line-height:20px;letter-spacing:0.3px}@media only screen and (min-width: 768px){:host{padding:var(--space-unit) calc(var(--space-unit) * 2) var(--space-unit) var(--space-unit)}:host(.limited-width){padding:var(--space-unit)}#divider-container{display:block;height:calc(var(--space-unit) * 3)}}";
|
|
35
|
+
|
|
36
|
+
const ZAppTopbar = class {
|
|
37
|
+
constructor(hostRef) {
|
|
38
|
+
index.registerInstance(this, hostRef);
|
|
39
|
+
/** theme variant, default 'dark' */
|
|
40
|
+
this.theme = index$1.ThemeVariant.dark;
|
|
41
|
+
this.topbarLinks = [];
|
|
42
|
+
}
|
|
43
|
+
handleResize() {
|
|
44
|
+
this.isMobile = window.innerWidth <= breakpoints.mobileBreakpoint;
|
|
45
|
+
}
|
|
46
|
+
componentWillLoad() {
|
|
47
|
+
this.isMobile = window.screen.width <= breakpoints.mobileBreakpoint || window.innerWidth <= breakpoints.mobileBreakpoint;
|
|
48
|
+
}
|
|
49
|
+
componentWillRender() {
|
|
50
|
+
if (this.topbarContent) {
|
|
51
|
+
this.topbarLinks = typeof this.topbarContent === "string" ? JSON.parse(this.topbarContent) : this.topbarContent;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
renderTopbarLinks() {
|
|
55
|
+
return this.topbarLinks.map((link) => index.h("z-link", { htmlid: link.id, textcolor: this.theme === index$1.ThemeVariant.light ? "black" : "white", href: link.link, target: link.target, icon: this.isMobile ? link.icon : undefined }, !this.isMobile && link.label));
|
|
56
|
+
}
|
|
57
|
+
render() {
|
|
58
|
+
return (index.h(index.Host, { class: {
|
|
59
|
+
[this.theme]: true,
|
|
60
|
+
"limited-width": !!this.contentMaxWidth
|
|
61
|
+
} }, index.h("div", { id: "content-container", style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, index.h("div", { id: "left-panel", class: "content-panel" }, index.h("z-logo", { mobileLogo: this.isMobile, width: this.isMobile ? 32 : 128, height: this.isMobile ? 40 : 32, imageAlt: "zanichelli-logo", link: this.logoLink, targetBlank: true }), this.isMobile && this.renderTopbarLinks()), index.h("div", { id: "right-panel", class: "content-panel" }, !this.isMobile && this.renderTopbarLinks(), this.showAppSwitcher && index.h("z-app-switcher", { theme: this.theme }), index.h("div", { id: "divider-container" }, index.h("z-divider", { orientation: index$1.DividerOrientation.vertical, color: this.theme === index$1.ThemeVariant.light ? "gray800" : "color-white" })), index.h("slot", { name: "login" })))));
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
ZAppTopbar.style = stylesCss$7;
|
|
65
|
+
|
|
66
|
+
const stylesCss$6 = ".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)}";
|
|
67
|
+
|
|
68
|
+
const ZDivider = class {
|
|
69
|
+
constructor(hostRef) {
|
|
70
|
+
index.registerInstance(this, hostRef);
|
|
71
|
+
/** [optional] Divider size */
|
|
72
|
+
this.size = index$1.DividerSize.small;
|
|
73
|
+
/** [optional] Divider color */
|
|
74
|
+
this.color = "gray200";
|
|
75
|
+
/** [optional] Divider orintation */
|
|
76
|
+
this.orientation = index$1.DividerOrientation.horizontal;
|
|
77
|
+
}
|
|
78
|
+
render() {
|
|
79
|
+
return (index.h(index.Host, { class: `divider-${this.size} divider-${this.orientation}`, style: { backgroundColor: `var(--${this.color})` } }));
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
ZDivider.style = stylesCss$6;
|
|
83
|
+
|
|
84
|
+
const stylesCss$5 = ":host{line-height:0;vertical-align:middle;margin-right:var(--z-icon-right-margin, 0);margin-left:var(--z-icon-left-margin, 0)}:host svg:not([width]){width:var(--z-icon-width, 18px)}:host svg:not([height]){height:var(--z-icon-height, 18px)}";
|
|
85
|
+
|
|
86
|
+
const ZIcon = class {
|
|
87
|
+
constructor(hostRef) {
|
|
88
|
+
index.registerInstance(this, hostRef);
|
|
89
|
+
}
|
|
90
|
+
selectPathOrPolygon(iconName) {
|
|
91
|
+
if (iconName && iconName.startsWith("M")) {
|
|
92
|
+
return index.h("path", { d: icons.icons[this.name] });
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
return index.h("polygon", { points: icons.icons[this.name] });
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
render() {
|
|
99
|
+
return (index.h("svg", { viewBox: "0 0 1000 1000", width: this.width, height: this.height, id: this.iconid, fill: this.fill ? `var(--${this.fill})` : "" }, this.selectPathOrPolygon(icons.icons[this.name])));
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
ZIcon.style = stylesCss$5;
|
|
103
|
+
|
|
104
|
+
const stylesCss$4 = ".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,.textareaWrapper.sc-z-input{background:var(--color-input-field01);border-radius:var(--border-radius-small);border:var(--border-size-small) solid var(--color-surface04);box-sizing:border-box;color:var(--color-text02);fill:var(--color-icon02);font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:var(--font-size-3);outline:none}input.sc-z-input:focus:focus-visible,.textareaWrapper.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-primary01)}.filled.sc-z-input{border-color:var(--color-surface05)}.input_success.sc-z-input{background:var(--color-success-inverse);border-color:var(--color-success01);fill:var(--color-success01)}.input_error.sc-z-input{background:var(--color-error-inverse);border-color:var(--color-error01);fill:var(--color-error01)}.input_warning.sc-z-input{background:var(--color-warning-inverse);border-color:var(--color-warning01);fill:var(--color-warning01)}input.sc-z-input:hover,.textareaWrapper.sc-z-input:hover{border-width:var(--border-size-medium)}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\"]) .textareaWrapper.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) z-icon.sc-z-input{border-color:var(--color-disabled01);color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none;box-shadow: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-input-placeholder,.sc-z-input::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input:-ms-input-placeholder,.sc-z-input:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input::-moz-placeholder{color:var(--color-text05)}.sc-z-input:-moz-placeholder{color:var(--color-text05)}label.inputLabel.sc-z-input{display:block;margin-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-transform:uppercase;text-align:left}[disabled].sc-z-input-h:not([disabled=\"false\"]) label.inputLabel.sc-z-input{color:var(--color-disabled02)}.textWrapper.sc-z-input>div.sc-z-input{fill:var(--color-icon02)}.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);margin:0;padding:0 calc(var(--space-unit) * 1.5);box-sizing:border-box}.textWrapper.sc-z-input>div.sc-z-input>input.hasIcon.sc-z-input,.textWrapper.sc-z-input>div.sc-z-input>input.hasClearIcon.sc-z-input{padding-right:calc(var(--space-unit) * 5.25)}.textWrapper.sc-z-input>div.sc-z-input>input.hasIcon.hasClearIcon.sc-z-input{padding-right:calc(var(--space-unit) * 8)}.textWrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1}.textWrapper.sc-z-input .iconsWrapper.sc-z-input{position:absolute;right:calc(var(--space-unit) * 1.5);top:50%;transform:translateY(-50%);display:flex;z-index:2;pointer-events:none}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.sc-z-input{background:none;color:inherit;border:0;padding:0;font:inherit;pointer-events:initial}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.sc-z-input+button.iconButton.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.resetIcon.sc-z-input,.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.showHidePasswordIcon.sc-z-input{cursor:pointer}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.sc-z-input>z-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block}.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:hover,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:focus,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:active{-webkit-background-clip:text !important}.textareaWrapper.sc-z-input{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input::-webkit-scrollbar{background:linear-gradient(\n to right,\n transparent 0 3px,\n var(--gray200) 3px 7px,\n transparent 7px 10px\n );width: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{min-height:132px;width:100%;margin:0;padding:0;border:none;resize:none}.radioWrapper.sc-z-input,.checkboxWrapper.sc-z-input{display:inline-flex;flex-direction:row;align-items:center;font-family:var(--font-family-sans);position:relative;color:var(--color-text01);fill:var(--color-primary01)}.radioWrapper.sc-z-input:hover,.checkboxWrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:currentColor}.radioWrapper.sc-z-input>input.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input{position:absolute;opacity:0;z-index:-1;pointer-events:none}.radioWrapper.sc-z-input .radioLabel.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.sc-z-input{display:inline-flex;align-items:center;margin:0;line-height:1;color:inherit;font-family:inherit;font-weight:inherit;font-size:inherit;text-transform:inherit}.radioWrapper.sc-z-input input.sc-z-input:not(:disabled)+.radioLabel.sc-z-input,.checkboxWrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkboxLabel.sc-z-input{cursor:pointer}.radioWrapper.sc-z-input .radioLabel.sc-z-input z-icon.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.sc-z-input z-icon.sc-z-input{fill:inherit;cursor:pointer}.radioWrapper.sc-z-input .radioLabel.after.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.after.sc-z-input{flex-direction:row}.radioWrapper.sc-z-input .radioLabel.before.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.before.sc-z-input{flex-direction:row-reverse}.radioWrapper.sc-z-input .radioLabel.after.sc-z-input>span.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radioWrapper.sc-z-input .radioLabel.before.sc-z-input>span.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}.radioWrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radioLabel.sc-z-input>z-icon.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkboxLabel.sc-z-input>z-icon.sc-z-input{box-shadow:var(--shadow-focus-primary);border-radius:var(--border-radius-small)}.radioWrapper.sc-z-input>input.sc-z-input:disabled+.radioLabel.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:disabled+.checkboxLabel.sc-z-input{color:var(--color-disabled02)}.radioWrapper.sc-z-input>input.sc-z-input:disabled+.radioLabel.sc-z-input>z-icon.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:disabled+.checkboxLabel.sc-z-input>z-icon.sc-z-input{fill:var(--color-disabled01);cursor:default}";
|
|
105
|
+
|
|
106
|
+
const ZInput = class {
|
|
107
|
+
constructor(hostRef) {
|
|
108
|
+
index.registerInstance(this, hostRef);
|
|
109
|
+
this.inputChange = index.createEvent(this, "inputChange", 7);
|
|
110
|
+
this.startTyping = index.createEvent(this, "startTyping", 7);
|
|
111
|
+
this.stopTyping = index.createEvent(this, "stopTyping", 7);
|
|
112
|
+
this.inputCheck = index.createEvent(this, "inputCheck", 7);
|
|
113
|
+
/** the id of the input element */
|
|
114
|
+
this.htmlid = `id-${utils.randomId()}`;
|
|
115
|
+
/** the input is disabled */
|
|
116
|
+
this.disabled = false;
|
|
117
|
+
/** the input is readonly */
|
|
118
|
+
this.readonly = false;
|
|
119
|
+
/** the input is required (optional): available for text, password, number, email, textarea, checkbox */
|
|
120
|
+
this.required = false;
|
|
121
|
+
/** checked: available for checkbox, radio */
|
|
122
|
+
this.checked = false;
|
|
123
|
+
/** input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed */
|
|
124
|
+
this.message = true;
|
|
125
|
+
/** the input label position: available for checkbox, radio */
|
|
126
|
+
this.labelPosition = index$1.LabelPositions.right;
|
|
127
|
+
/** render clear icon when typing (optional): available for text */
|
|
128
|
+
this.hasclearicon = true;
|
|
129
|
+
this.isTyping = false;
|
|
130
|
+
this.passwordHidden = true;
|
|
131
|
+
this.typingtimeout = 300;
|
|
132
|
+
}
|
|
133
|
+
inputCheckListener(e) {
|
|
134
|
+
const data = e.detail;
|
|
135
|
+
switch (this.type) {
|
|
136
|
+
case index$1.InputTypeEnum.radio:
|
|
137
|
+
if (data.type === index$1.InputTypeEnum.radio &&
|
|
138
|
+
data.name === this.name &&
|
|
139
|
+
data.id !== this.htmlid) {
|
|
140
|
+
this.checked = false;
|
|
141
|
+
}
|
|
142
|
+
default:
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
/** get checked status */
|
|
147
|
+
async isChecked() {
|
|
148
|
+
switch (this.type) {
|
|
149
|
+
case index$1.InputTypeEnum.checkbox:
|
|
150
|
+
case index$1.InputTypeEnum.radio:
|
|
151
|
+
return this.checked;
|
|
152
|
+
default:
|
|
153
|
+
console.warn("`isChecked` method is only available for type `checkbox` and `radio`");
|
|
154
|
+
return false;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
emitInputChange(value) {
|
|
158
|
+
if (!this.isTyping)
|
|
159
|
+
this.emitStartTyping();
|
|
160
|
+
let validity = {};
|
|
161
|
+
if (this.type === index$1.InputTypeEnum.textarea) {
|
|
162
|
+
validity = this.getValidity("textarea");
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
validity = this.getValidity("input");
|
|
166
|
+
}
|
|
167
|
+
this.value = value;
|
|
168
|
+
this.inputChange.emit({ value, validity });
|
|
169
|
+
clearTimeout(this.timer);
|
|
170
|
+
this.timer = setTimeout(() => {
|
|
171
|
+
this.emitStopTyping(this.value, validity);
|
|
172
|
+
}, this.typingtimeout);
|
|
173
|
+
}
|
|
174
|
+
emitStartTyping() {
|
|
175
|
+
this.isTyping = true;
|
|
176
|
+
this.startTyping.emit();
|
|
177
|
+
}
|
|
178
|
+
emitStopTyping(value, validity) {
|
|
179
|
+
this.isTyping = false;
|
|
180
|
+
this.stopTyping.emit({
|
|
181
|
+
value: value,
|
|
182
|
+
validity: validity,
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
emitInputCheck(checked) {
|
|
186
|
+
this.inputCheck.emit({
|
|
187
|
+
id: this.htmlid,
|
|
188
|
+
checked: checked,
|
|
189
|
+
type: this.type,
|
|
190
|
+
name: this.name,
|
|
191
|
+
value: this.value,
|
|
192
|
+
validity: this.getValidity("input"),
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
getValidity(type) {
|
|
196
|
+
const input = this.hostElement.querySelector(type);
|
|
197
|
+
return input.validity;
|
|
198
|
+
}
|
|
199
|
+
/* START text/password/email/number */
|
|
200
|
+
getTextAttributes() {
|
|
201
|
+
return {
|
|
202
|
+
id: this.htmlid,
|
|
203
|
+
name: this.name,
|
|
204
|
+
placeholder: this.placeholder,
|
|
205
|
+
value: this.value,
|
|
206
|
+
disabled: this.disabled,
|
|
207
|
+
readonly: this.readonly,
|
|
208
|
+
required: this.required,
|
|
209
|
+
title: this.htmltitle,
|
|
210
|
+
class: {
|
|
211
|
+
[`input_${this.status || "default"}`]: true,
|
|
212
|
+
filled: !!this.value,
|
|
213
|
+
},
|
|
214
|
+
autocomplete: this.autocomplete,
|
|
215
|
+
onInput: (e) => this.emitInputChange(e.target.value),
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
renderInputText(type = index$1.InputTypeEnum.text) {
|
|
219
|
+
const attr = this.getTextAttributes();
|
|
220
|
+
if (this.icon || type === index$1.InputTypeEnum.password) {
|
|
221
|
+
attr.class = Object.assign(Object.assign({}, attr.class), { hasIcon: true });
|
|
222
|
+
}
|
|
223
|
+
if (this.hasclearicon) {
|
|
224
|
+
attr.class = Object.assign(Object.assign({}, attr.class), { hasClearIcon: true });
|
|
225
|
+
}
|
|
226
|
+
return (index.h("div", { class: "textWrapper" }, this.renderLabel(), index.h("div", null, index.h("input", Object.assign({ type: type === index$1.InputTypeEnum.password && !this.passwordHidden
|
|
227
|
+
? index$1.InputTypeEnum.text
|
|
228
|
+
: type }, attr, { "aria-label": this.ariaLabel || this.label })), this.renderIcons()), this.renderMessage()));
|
|
229
|
+
}
|
|
230
|
+
renderLabel() {
|
|
231
|
+
if (!this.label)
|
|
232
|
+
return;
|
|
233
|
+
return (index.h("label", { class: "inputLabel body-5-sb", id: `${this.htmlid}_label`, htmlFor: this.htmlid, "aria-label": this.label }, this.label));
|
|
234
|
+
}
|
|
235
|
+
renderIcons() {
|
|
236
|
+
return (index.h("span", { class: "iconsWrapper" }, this.renderResetIcon(), this.renderIcon()));
|
|
237
|
+
}
|
|
238
|
+
renderIcon() {
|
|
239
|
+
if (this.type === index$1.InputTypeEnum.password) {
|
|
240
|
+
return this.renderShowHidePassword();
|
|
241
|
+
}
|
|
242
|
+
if (!this.icon)
|
|
243
|
+
return;
|
|
244
|
+
return (index.h("button", { type: "button", class: "iconButton inputIcon", tabIndex: -1 }, index.h("z-icon", { name: this.icon })));
|
|
245
|
+
}
|
|
246
|
+
renderResetIcon() {
|
|
247
|
+
if (!this.hasclearicon || !this.value || this.disabled || this.readonly)
|
|
248
|
+
return;
|
|
249
|
+
return (index.h("button", { type: "button", class: "iconButton resetIcon", "aria-label": "cancella il contenuto dell'input", onClick: () => this.emitInputChange("") }, index.h("z-icon", { name: "multiply" })));
|
|
250
|
+
}
|
|
251
|
+
renderShowHidePassword() {
|
|
252
|
+
return (index.h("button", { type: "button", class: "iconButton showHidePasswordIcon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, index.h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled" })));
|
|
253
|
+
}
|
|
254
|
+
renderMessage() {
|
|
255
|
+
if (utils.boolean(this.message) === false)
|
|
256
|
+
return;
|
|
257
|
+
return (index.h("z-input-message", { message: utils.boolean(this.message) === true ? undefined : this.message, status: this.status }));
|
|
258
|
+
}
|
|
259
|
+
/* END text/password/email/number */
|
|
260
|
+
/* START textarea */
|
|
261
|
+
renderTextarea() {
|
|
262
|
+
const attributes = this.getTextAttributes();
|
|
263
|
+
return (index.h("div", { class: "textWrapper" }, this.renderLabel(), index.h("div", { class: Object.assign(Object.assign({}, attributes.class), { textareaWrapper: true, readonly: attributes.readonly }) }, index.h("textarea", Object.assign({}, attributes, { "aria-label": this.ariaLabel || this.label }))), this.renderMessage()));
|
|
264
|
+
}
|
|
265
|
+
/* END textarea */
|
|
266
|
+
handleCheck(ev) {
|
|
267
|
+
this.checked = ev.target.checked;
|
|
268
|
+
this.emitInputCheck(this.checked);
|
|
269
|
+
}
|
|
270
|
+
/* START checkbox */
|
|
271
|
+
renderCheckbox() {
|
|
272
|
+
return (index.h("div", { class: "checkboxWrapper" }, index.h("input", { id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }), index.h("label", { htmlFor: this.htmlid, class: {
|
|
273
|
+
checkboxLabel: true,
|
|
274
|
+
after: this.labelPosition === index$1.LabelPositions.right,
|
|
275
|
+
before: this.labelPosition === index$1.LabelPositions.left,
|
|
276
|
+
} }, index.h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true" }), this.label && index.h("span", { innerHTML: this.label }))));
|
|
277
|
+
}
|
|
278
|
+
/* END checkbox */
|
|
279
|
+
/* START radio */
|
|
280
|
+
renderRadio() {
|
|
281
|
+
return (index.h("div", { class: "radioWrapper" }, index.h("input", { id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }), index.h("label", { htmlFor: this.htmlid, class: {
|
|
282
|
+
radioLabel: true,
|
|
283
|
+
after: this.labelPosition === index$1.LabelPositions.right,
|
|
284
|
+
before: this.labelPosition === index$1.LabelPositions.left,
|
|
285
|
+
} }, index.h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true" }), this.label && index.h("span", { innerHTML: this.label }))));
|
|
286
|
+
}
|
|
287
|
+
/* END radio */
|
|
288
|
+
render() {
|
|
289
|
+
switch (this.type) {
|
|
290
|
+
case index$1.InputTypeEnum.textarea:
|
|
291
|
+
return this.renderTextarea();
|
|
292
|
+
case index$1.InputTypeEnum.checkbox:
|
|
293
|
+
return this.renderCheckbox();
|
|
294
|
+
case index$1.InputTypeEnum.radio:
|
|
295
|
+
return this.renderRadio();
|
|
296
|
+
default:
|
|
297
|
+
return this.renderInputText(this.type);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
get hostElement() { return index.getElement(this); }
|
|
301
|
+
};
|
|
302
|
+
ZInput.style = stylesCss$4;
|
|
303
|
+
|
|
304
|
+
const stylesCss$3 = ":host{display:flex;align-items:start;min-height:calc(var(--space-unit) * 2);margin-top:var(--space-unit);color:var(--color-text05);fill:currentColor;font-family:var(--font-family-sans);font-size:var(--font-size-2);letter-spacing:0.16px}:host([status='success']){color:var(--color-text-success)}:host([status='error']){color:var(--color-text-error)}:host([status='warning']){color:var(--color-warning02)}:host(:focus){outline:none}:host>z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);margin:calc(var(--space-unit) / 3) var(--space-unit) 0 0}";
|
|
305
|
+
|
|
306
|
+
const ZInputMessage = class {
|
|
307
|
+
constructor(hostRef) {
|
|
308
|
+
index.registerInstance(this, hostRef);
|
|
309
|
+
this.statusIcons = {
|
|
310
|
+
success: "checkmark-circle",
|
|
311
|
+
error: "multiply-circled",
|
|
312
|
+
warning: "exclamation-circle",
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
render() {
|
|
316
|
+
return (index.h(index.Host, { role: "alert", "aria-label": this.message, tabindex: this.message ? 0 : -1 }, this.statusIcons[this.status] && this.message && (index.h("z-icon", { name: this.statusIcons[this.status] })), index.h("span", { innerHTML: this.message })));
|
|
317
|
+
}
|
|
318
|
+
};
|
|
319
|
+
ZInputMessage.style = stylesCss$3;
|
|
320
|
+
|
|
321
|
+
const stylesCss$2 = ":host{--font-size-link:inherit;--font-weight-link:inherit}:host{font-family:var(--dashboard-font);font-weight:var(--font-weight-link);font-size:var(--font-size-link);line-height:inherit;outline:none}a{cursor:pointer;color:var(--color-link-primary);fill:var(--color-link-primary);display:inline-flex;align-items:center;text-decoration:none;padding:calc(var(--space-unit) * 0.5) 0;border-top:var(--border-size-medium) solid transparent;border-bottom:var(--border-size-medium) solid transparent}a:hover,a:focus,a:active{text-decoration:underline}a.active{color:var(--color-active-link);fill:var(--color-active-link)}a:hover,a:focus{color:var(--color-hover-link);fill:var(--color-hover-link)}a:active{color:var(--color-pressed-link);fill:var(--color-pressed-link)}a:visited{color:var(--color-visited-link);fill:var(--color-visited-link)}a.disabled,a.inverse.disabled{cursor:default;pointer-events:none;color:var(--color-disabled03);fill:var(--color-disabled03)}a.underline,a.underline:active,a.underline:hover,a.underline:visited,a.underline.disabled,a.underline.black,a.underline.white{text-decoration:underline}a.disabled,a.disabled:active,a.disabled:visited,a.disabled:hover{text-decoration:none}a.inverse{color:var(--color-inverse-link);fill:var(--color-inverse-link)}a.inverse.active{color:var(--color-inverse-active-link);fill:var(--color-inverse-active-link)}a.inverse:hover,a.inverse:focus{color:var(--color-inverse-hover-link);fill:var(--color-inverse-hover-link)}a.inverse:active{color:var(--color-inverse-pressed-link);fill:var(--color-inverse-pressed-link)}a.inverse:visited{color:var(--color-inverse-visited-link);fill:var(--color-inverse-visited-link)}a.black{color:var(--gray800);fill:var(--gray800);text-decoration:none}a.black:hover,a.black.active{color:var(--color-black);fill:var(--color-black)}a.black:visited{color:var(--gray800);fill:var(--gray800)}a.black:hover,a.black:focus,a.black:active{text-decoration:underline}a.black:active{color:var(--gray700);fill:var(--gray700)}a.white,a.white:active,a.white:hover,a.white.active{color:var(--bg-white);fill:var(--bg-white);text-decoration:none}a.white:visited{color:var(--bg-white);fill:var(--bg-white)}a.white:hover,a.white:focus,a.white:active{text-decoration:underline}a.white.disabled,a.black.disabled{color:var(--gray500);fill:var(--gray500)}a>z-icon:first-child{margin-right:8px}a>z-icon:last-child{margin-left:8px}";
|
|
322
|
+
|
|
323
|
+
const ZLink = class {
|
|
324
|
+
constructor(hostRef) {
|
|
325
|
+
index.registerInstance(this, hostRef);
|
|
326
|
+
this.zLinkClick = index.createEvent(this, "zLinkClick", 7);
|
|
327
|
+
/** link target (optional) */
|
|
328
|
+
this.target = "_self";
|
|
329
|
+
/** tabindex link attribute (optional) */
|
|
330
|
+
this.htmltabindex = 0;
|
|
331
|
+
/** disable link flag (optional) */
|
|
332
|
+
this.isdisabled = false;
|
|
333
|
+
/** active link flag (optional) */
|
|
334
|
+
this.isactive = false;
|
|
335
|
+
/** white variant flag (optional) */
|
|
336
|
+
this.iswhite = false;
|
|
337
|
+
/** link text variant (optional) */
|
|
338
|
+
this.textcolor = "primary";
|
|
339
|
+
/** big link version */
|
|
340
|
+
this.big = false;
|
|
341
|
+
/** link icon position (optional) */
|
|
342
|
+
this.iconposition = "left";
|
|
343
|
+
/** draw underline on text (optional) */
|
|
344
|
+
this.underline = false;
|
|
345
|
+
this.iconSize = 18;
|
|
346
|
+
this.emitZLinkClick = this.emitZLinkClick.bind(this);
|
|
347
|
+
this.emitZLinkInteraction = this.emitZLinkInteraction.bind(this);
|
|
348
|
+
}
|
|
349
|
+
componentWillRender() {
|
|
350
|
+
if (this.iswhite) {
|
|
351
|
+
console.warn("z-link iswhite prop is deprecated and will be dropped in a next release, please use textcolor prop instead");
|
|
352
|
+
}
|
|
353
|
+
if (this.big) {
|
|
354
|
+
console.warn("z-link big prop is deprecated and will be dropped in a next release, please override --font-size-link and --font-weight-link variables instead");
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
emitZLinkClick(e, linkId) {
|
|
358
|
+
this.emitZLinkInteraction(e, linkId);
|
|
359
|
+
}
|
|
360
|
+
emitZLinkInteraction(e, linkId) {
|
|
361
|
+
this.zLinkClick.emit({ e, linkId });
|
|
362
|
+
}
|
|
363
|
+
componentDidRender() {
|
|
364
|
+
if (this.icon) {
|
|
365
|
+
const height = parseFloat(window.getComputedStyle(this.hostElement).getPropertyValue('font-size'));
|
|
366
|
+
const currentSize = this.big ? 18 : Math.round(height * 1.125);
|
|
367
|
+
if (!Number.isNaN(currentSize) && this.iconSize !== currentSize) {
|
|
368
|
+
this.iconSize = currentSize;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
render() {
|
|
373
|
+
const style = this.big ? { "--font-size-link": "16px", "--font-weight-link": "600" } : {};
|
|
374
|
+
return (index.h(index.Host, { style: style }, index.h("a", { id: this.htmlid, href: this.href ? this.href : null, class: `${this.isdisabled ? "disabled" : ""}
|
|
375
|
+
${this.isactive ? "active" : ""}
|
|
376
|
+
${this.textcolor}
|
|
377
|
+
${this.iswhite ? "white" : ""}
|
|
378
|
+
${this.underline ? "underline" : ""}`, target: this.target, role: this.href ? "link" : "button", tabindex: this.isdisabled ? -1 : this.htmltabindex, onClick: (e) => this.emitZLinkClick(e, this.htmlid) }, this.iconposition === "right" && index.h("slot", null), this.icon &&
|
|
379
|
+
index.h("z-icon", { style: { "--z-icon-width": this.iconSize.toString(), "--z-icon-height": this.iconSize.toString() }, name: this.icon, height: this.iconSize, width: this.iconSize }), this.iconposition === "left" && index.h("slot", null))));
|
|
380
|
+
}
|
|
381
|
+
get hostElement() { return index.getElement(this); }
|
|
382
|
+
};
|
|
383
|
+
ZLink.style = stylesCss$2;
|
|
384
|
+
|
|
385
|
+
const stylesCss$1 = ":host{display:inline-block;vertical-align:top;width:255px;height:64px}img{display:block;margin:auto;width:100%;height:100%;content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='255px' height='64px' viewBox='0 0 255 64'%3E%3Cg id='Logo/Zanichelli/Centered-(reworked)' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Group'%3E%3Cpolygon id='Background' fill='%23E2001A' points='1.70530257e-13 64 254.39 64 254.39 0 1.70530257e-13 0'%3E%3C/polygon%3E%3Cpath d='M233.36,51.3553859 L242.390252,51.3553859 L242.390252,12.6427292 L233.36,12.6427292 L233.36,51.3553859 Z M211.120346,51.3553859 L230.477617,51.3553859 L230.477617,44.5040053 L220.685891,44.5040053 L220.685891,12.6427292 L211.120346,12.6427292 L211.120346,51.3553859 Z M188.880124,51.3553859 L208.23551,51.3553859 L208.23551,44.5040053 L198.445669,44.5040053 L198.445669,12.6427292 L188.880124,12.6427292 L188.880124,51.3553859 Z M165.354444,12.6427292 L165.354444,51.3553859 L185.999058,51.3553859 L185.999058,44.5021204 L175.027425,44.5021204 L175.027425,35.1778343 L185.377062,35.1778343 L185.377062,28.2699086 L175.027425,28.2699086 L175.027425,19.4978796 L185.999058,19.4978796 L185.999058,12.6427292 L165.354444,12.6427292 Z M136.666196,51.3553859 L146.239281,51.3553859 L146.239281,35.1778343 L152.902178,35.1778343 L152.902178,51.3553859 L162.473377,51.3553859 L162.473377,12.6427292 L152.902178,12.6427292 L152.902178,28.2717934 L146.239281,28.2717934 L146.239281,12.6427292 L136.666196,12.6427292 L136.666196,51.3553859 Z M96.064744,51.3553859 L105.098765,51.3553859 L105.098765,12.6427292 L96.064744,12.6427292 L96.064744,51.3553859 Z M53.2364527,36.5160682 L50.6824993,19.7429083 L48.0757704,36.5160682 L53.2364527,36.5160682 Z M65.4935444,51.3553859 L56.2710395,51.3553859 L54.9441146,42.5286966 L47.7101121,42.5286966 L46.3304118,51.3553859 L37.1060221,51.3553859 L45.0053718,12.6427292 L57.5960795,12.6427292 L65.4935444,51.3553859 Z M85.0468382,37.7581755 L76.7969089,12.6427292 L67.3764961,12.6427292 L67.3764961,51.3553859 L75.4040147,51.3553859 L75.4040147,26.132504 L83.5955141,51.3553859 L93.1855622,51.3553859 L93.1855622,12.6427292 L85.0468382,12.6427292 L85.0468382,37.7581755 Z M107.977948,32 C107.977948,34.5200264 107.977948,36.7893695 108.187165,39.1246819 C108.396382,41.4713034 108.818585,43.6878711 109.678071,45.6009801 C111.423429,49.487513 114.932995,52 121.708982,52 C129.508435,52 133.787014,48.4753558 133.787014,38.0220526 L133.787014,37.5640373 L124.937707,37.5640373 L124.922628,38.0050891 C124.894356,38.7571388 124.884931,39.6185091 124.826501,40.4855339 C124.769956,41.3431345 124.66629,42.1875412 124.460843,42.9301668 C124.048064,44.3965696 123.279051,45.3559514 121.708982,45.3559514 C117.743286,45.3559514 117.057205,42.0574875 117.057205,32 C117.057205,21.9425125 117.743286,18.6440486 121.708982,18.6440486 C123.605127,18.6440486 124.547546,20.0030157 124.547546,25.1806616 L124.547546,25.6424465 L133.344077,25.6424465 L133.361041,25.1995099 C133.689003,16.7855998 130.235982,12 121.708982,12 C114.934879,12 111.427199,14.4823297 109.678071,18.3594383 C108.818585,20.265008 108.396382,22.4778061 108.187165,24.830082 C107.977948,27.1710489 107.977948,29.4554707 107.977948,32 L107.977948,32 Z M34.9007634,12.6446141 L34.9007634,20.3196683 L21.6051268,44.5040053 L35.2268401,44.5040053 L35.2268401,51.3553859 L12,51.3553859 L12,43.7915371 L25.2975214,19.4997644 L13.683159,19.4997644 L13.683159,12.6446141 L34.9007634,12.6446141 Z' id='Logotipo-(reworked)' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")}a{display:block;width:100%;height:100%}:host(.mobile){width:31px;height:40px}:host(.mobile) img{content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31px' height='40px' viewBox='0 0 31 40'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Topbar/Mobile/Logged' transform='translate(-16.000000, -4.000000)'%3E%3Cg id='Group' transform='translate(16.000000, 4.000000)'%3E%3Cpolygon id='Fill-1' fill='%23E2001A' points='0 40 30.625 40 30.625 0 0 0'%3E%3C/polygon%3E%3Cpolygon id='Fill-2' fill='%23FEFEFE' points='8.17111587 6.20689655 23.4311708 6.20689655 23.4311708 11.671267 13.8691261 28.9163861 23.6647727 28.9163861 23.6647727 33.7931034 6.96022727 33.7931034 6.96022727 28.408218 16.522272 11.0831673 8.17111587 11.0831673'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")}";
|
|
386
|
+
|
|
387
|
+
const ZLogo = class {
|
|
388
|
+
constructor(hostRef) {
|
|
389
|
+
index.registerInstance(this, hostRef);
|
|
390
|
+
}
|
|
391
|
+
render() {
|
|
392
|
+
const style = {};
|
|
393
|
+
if (this.width) {
|
|
394
|
+
style["width"] = style["max-width"] = `${this.width}px`;
|
|
395
|
+
}
|
|
396
|
+
if (this.height) {
|
|
397
|
+
style["height"] = style["max-height"] = `${this.height}px`;
|
|
398
|
+
}
|
|
399
|
+
return (index.h(index.Host, { style: style, class: { "mobile": !!this.mobileLogo } }, this.link ?
|
|
400
|
+
index.h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, index.h("img", { alt: this.imageAlt })) :
|
|
401
|
+
index.h("img", { alt: this.imageAlt })));
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
ZLogo.style = stylesCss$1;
|
|
405
|
+
|
|
406
|
+
const stylesCss = ".flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,0.08);box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,0.08)}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown 300ms cubic-bezier(.23,1,.32,1);animation:fpFadeInDown 300ms cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none !important;box-shadow:none !important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9);height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9)}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,0.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,0.1)}.numInputWrapper span:active{background:rgba(0,0,0,0.2)}.numInputWrapper span:after{display:block;content:\"\";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,0.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,0.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,0.5)}.numInputWrapper:hover{background:rgba(0,0,0,0.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\\0;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,0.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,0.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,0.5);background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,0.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(57,57,57,0.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,0.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,0.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:\"\";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:bold}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:bold;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.flatpickr-monthSelect-months{margin:10px 1px 3px 1px;flex-wrap:wrap}.flatpickr-monthSelect-month{background:none;border:1px solid transparent;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;display:inline-block;font-weight:400;margin:0.5px;justify-content:center;padding:10px;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;text-align:center;width:33%}.flatpickr-monthSelect-month.flatpickr-disabled{color:#eee}.flatpickr-monthSelect-month.flatpickr-disabled:hover,.flatpickr-monthSelect-month.flatpickr-disabled:focus{cursor:not-allowed;background:none !important}.flatpickr-monthSelect-theme-dark{background:#3f4458}.flatpickr-monthSelect-theme-dark .flatpickr-current-month input.cur-year{color:#fff}.flatpickr-monthSelect-theme-dark .flatpickr-months .flatpickr-prev-month,.flatpickr-monthSelect-theme-dark .flatpickr-months .flatpickr-next-month{color:#fff;fill:#fff}.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month{color:rgba(255, 255, 255, 0.95)}.flatpickr-monthSelect-month.today{border-color:#959ea9}.flatpickr-monthSelect-month.inRange,.flatpickr-monthSelect-month.inRange.today,.flatpickr-monthSelect-month:hover,.flatpickr-monthSelect-month:focus{background:#e6e6e6;cursor:pointer;outline:0;border-color:#e6e6e6}.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month.inRange,.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month:hover,.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month:focus{background:#646c8c;border-color:#646c8c}.flatpickr-monthSelect-month.today:hover,.flatpickr-monthSelect-month.today:focus{background:#959ea9;border-color:#959ea9;color:#fff}.flatpickr-monthSelect-month.selected,.flatpickr-monthSelect-month.startRange,.flatpickr-monthSelect-month.endRange{background-color:#569ff7;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-monthSelect-month.startRange{border-radius:50px 0 0 50px}.flatpickr-monthSelect-month.endRange{border-radius:0 50px 50px 0}.flatpickr-monthSelect-month.startRange.endRange{border-radius:50px}.flatpickr-monthSelect-month.inRange{border-radius:0;box-shadow:-5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6}.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month.selected,.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month.startRange,.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month.endRange{background:#80cbc4;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#80cbc4}:host{font-family:var(--font-family-sans);font-weight:var(--font-rg);--z-range-picker--toggle-height:0}z-date-picker{position:relative}z-date-picker>div>*{cursor:pointer !important}z-range-picker{position:relative}.flatpickr-toggle-container{width:fit-content}.range-picker-container>div{cursor:pointer !important;position:relative}.hidden-input{visibility:hidden !important;position:absolute;width:0;height:0;bottom:0}.flatpickr-calendar::before,.flatpickr-calendar::after{display:none}.flatpickr-calendar{font-family:var(--font-family-sans) !important;position:absolute !important;border-radius:2px;box-shadow:var(--shadow-2);padding-top:calc(var(--space-unit) * 2);left:0 !important;top:var(--z-range-picker--toggle-height) !important}.months.top>.flatpickr-calendar{top:-288px !important}.date.top>.flatpickr-calendar,.date.top>div>.flatpickr-calendar{top:-401px !important}.date-time.top>.flatpickr-calendar,.date-time.top>div>.flatpickr-calendar{top:-523px !important}.flatpickr-calendar,.flatpickr-innerContainer,.flatpickr-days,.dayContainer,.flatpickr-rContainer,.flatpickr-monthSelect-months{width:calc(var(--space-unit) * 42) !important;max-width:calc(var(--space-unit) * 42) !important}.flatpickr-monthSelect-months{box-sizing:border-box;padding:0 !important;margin:calc(var(--space-unit) * 2) 0 !important}.flatpickr-months{position:relative;align-items:center;margin-bottom:var(--space-unit) 0 !important;height:calc(var(--space-unit) * 6) !important}.flatpickr-month{overflow:visible !important;height:calc(var(--space-unit) * 6) !important}.flatpickr-current-month{display:flex !important;justify-content:space-evenly;align-items:baseline;width:-webkit-fill-available;height:calc(var(--space-unit) * 6);left:0 !important;padding-top:0}.flatpickr-next-month,.flatpickr-prev-month{display:flex;align-items:center;justify-content:center;position:static !important;height:calc(var(--space-unit) * 4) !important;width:calc(var(--space-unit) * 4) !important;padding:0 !important}.flatpickr-prev-month{margin-left:var(--space-unit)}.flatpickr-next-month{margin-right:var(--space-unit)}.flatpickr-next-month>svg,.flatpickr-prev-month>svg{fill:var(--color-primary01);height:calc(var(--space-unit) * 2) !important;width:calc(var(--space-unit) * 2) !important}.flatpickr-next-month:hover,.flatpickr-prev-month:hover,.flatpickr-next-month:focus,.flatpickr-prev-month:focus{border-radius:var(--border-radius);background-color:var(--color-primary03) !important;border-color:var(--color-primary03) !important;color:var(--color-hover-primary) !important;border:none !important;outline:none !important}.flatpickr-next-month:hover svg,.flatpickr-prev-month:hover svg{fill:var(--color-hover-primary) !important}.flatpickr-next-month:active,.flatpickr-prev-month:active{border-radius:var(--border-radius);background-color:var(--color-surface01) !important;border-color:var(--color-surface01) !important;color:var(--color-primary01) !important;box-shadow:var(--shadow-2) !important}.flatpickr-next-month:focus svg,.flatpickr-prev-month:focus svg{fill:var(--color-primary01) !important}.flatpickr-monthDropdown-months{background:var(--color-surface01) !important;font-size:var(--font-size-3) !important;font-weight:var(--font-rg) !important;color:var(--color-text02) !important;outline:1px solid black !important;width:108px !important;height:calc(var(--space-unit) * 5.5) !important;padding-left:var(--space-unit) !important}.flatpickr-monthDropdown-months:hover,.flatpickr-monthDropdown-months:focus{outline:1px solid var(--color-primary01) !important}.flatpickr-current-month>.numInputWrapper{display:flex;background:var(--color-surface01) !important;color:var(--color-text02);outline:1px solid black !important;height:calc(var(--space-unit) * 5.5) !important;width:calc(var(--space-unit) * 10)}.flatpickr-current-month>.numInputWrapper:hover,.flatpickr-current-month>.numInputWrapper:focus-within{outline:1px solid var(--color-primary01) !important}.flatpickr-current-month>.numInputWrapper>input{font-size:var(--font-size-3) !important;font-weight:var(--font-rg) !important;text-align:center;padding:0 calc(var(--space-unit) * 3) 0 var(--space-unit)}.flatpickr-weekdays{height:calc(var(--space-unit) * 6);border-bottom:1px solid var(--color-surface03)}.flatpickr-weekday{font-weight:var(--font-rg) !important;font-size:var(--font-size-3) !important}.flatpickr-day,.flatpickr-monthSelect-month{height:calc(var(--space-unit) * 6) !important;width:calc(var(--space-unit) * 6) !important;max-width:100% !important;font-size:var(--font-size-3) !important;line-height:calc(var(--space-unit) * 6) !important;margin:0 !important;border:none;border-radius:0 !important;box-shadow:none !important}.flatpickr-day{width:calc(var(--space-unit) * 6) !important;line-height:calc(var(--space-unit) * 6) !important;border:none}.flatpickr-monthSelect-month{width:calc(var(--space-unit) * 14) !important;padding:0 !important;line-height:calc(var(--space-unit) * 5) !important;border:2px solid var(--color-surface01) !important}.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.selected:hover,.flatpickr-monthSelect-month:hover,.flatpickr-monthSelect-month:focus{background-color:var(--color-hover-primary) !important;border-color:var(--color-hover-primary) !important;color:var(--color-text04) !important}.flatpickr-day.today,.flatpickr-monthSelect-month.today{border:2px solid var(--color-hover-primary) !important}.flatpickr-day.selected,.flatpickr-monthSelect-month.selected{background-color:var(--color-primary01) !important;border-color:var(--color-primary01) !important}.flatpickr-weekday:nth-child(6),.flatpickr-weekday:nth-child(7),.flatpickr-day:nth-child(7n+6),.flatpickr-day:nth-child(7n+7){font-weight:var(--font-sb) !important}.flatpickr-time{display:block;text-align:left;height:90px !important;max-height:90px !important}.flatpickr-time::before{display:block;content:\"Orario\";font-size:var(--font-size-1);font-weight:var(--font-sb);text-transform:uppercase;color:var(--color-text02) !important;width:100%;padding-left:var(--space-unit)}.flatpickr-time.time24hr{margin:calc(var(--space-unit) * 2) !important}.flatpickr-time.time24hr>.numInputWrapper>input:hover,.flatpickr-time.time24hr>.numInputWrapper>input:focus,.flatpickr-time.time24hr>.numInputWrapper:hover{background-color:var(--color-surface01) !important}.flatpickr-time.time24hr>div{height:calc(var(--space-unit) * 5.5) !important;width:calc(var(--space-unit) * 10) !important;margin-left:var(--space-unit) !important;margin-right:var(--space-unit) !important}.flatpickr-time-separator{display:flex;align-items:center;justify-content:center;height:calc(var(--space-unit) * 5.5) !important;font-weight:unset !important}.flatpickr-minute,.flatpickr-hour{font-size:var(--font-size-3) !important;font-weight:var(--font-rg) !important;outline:1px solid black !important}.numInputWrapper:hover .flatpickr-minute,.numInputWrapper:hover .flatpickr-hour,.flatpickr-minute:focus,.flatpickr-hour:focus{outline:1px solid var(--color-primary01) !important}.arrowUp,.arrowDown{opacity:1 !important;border:none !important;height:calc(var(--space-unit) * 2) !important;width:calc(var(--space-unit) * 2) !important;padding:0 !important}.arrowUp{margin-top:calc(var(--space-unit) / 2) !important;margin-right:calc(var(--space-unit) / 2) !important}.arrowDown{top:auto !important;margin-top:calc(var(--space-unit) * 3) !important;margin-right:calc(var(--space-unit) / 2) !important}.arrowUp:hover,.arrowDown:hover{border-radius:var(--border-radius);background-color:var(--color-primary03) !important;border-color:var(--color-primary03) !important;color:var(--color-hover-primary) !important}.arrowUp:active,.arrowDown:active{border-radius:var(--border-radius);background-color:var(--color-surface01) !important;border-color:var(--color-surface01) !important;color:var(--color-primary01) !important;box-shadow:var(--shadow-2) !important}.arrowUp::after,.arrowDown::after{border:solid var(--color-primary01) !important;border-width:0 1px 1px 0 !important;padding:2.5px !important}.arrowUp::after{transform:rotate(-135deg);top:0 !important;margin-left:5.5px !important;margin-top:6px !important}.arrowDown::after{transform:rotate(45deg);top:0 !important;left:5.5px !important;margin-top:4px !important}.flatpickr-day.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-monthSelect-month.inRange{background-color:var(--color-primary03) !important;border-color:var(--color-primary03) !important}.flatpickr-day.inRange:hover,.flatpickr-day.today.inRange:hover,.flatpickr-day.prevMonthDay.inRange:hover,.flatpickr-monthSelect-month.inRange:hover{background-color:var(--color-hover-primary) !important;border-color:var(--color-hover-primary) !important}.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-monthSelect-month.startRange,.flatpickr-monthSelect-month.endRange{background-color:var(--color-primary01) !important;border-color:var(--color-primary01) !important}.flatpickr-day.prevMonthDay.selected.startRange,.flatpickr-day.prevMonthDay.selected.endRange{background-color:var(--color-primary01) !important;border-color:var(--color-primary01) !important}.flatpickr-range.second-input{cursor:pointer}.range-picker-container{display:flex;gap:16px}";
|
|
407
|
+
|
|
408
|
+
const ZRangePicker = class {
|
|
409
|
+
constructor(hostRef) {
|
|
410
|
+
index.registerInstance(this, hostRef);
|
|
411
|
+
this.dateSelect = index.createEvent(this, "dateSelect", 7);
|
|
412
|
+
/** [Optional] datepicker mode: date, datetime, only months */
|
|
413
|
+
this.mode = index$1.ZDatePickerMode.date;
|
|
414
|
+
this.flatpickrPosition = index$1.ZDatePickerPosition.bottom;
|
|
415
|
+
this.activeInput = "start-input";
|
|
416
|
+
this.flatpickrInstance = null;
|
|
417
|
+
this.flatpickrInstance2 = null;
|
|
418
|
+
}
|
|
419
|
+
handleClick() {
|
|
420
|
+
this.getFocusedInput();
|
|
421
|
+
}
|
|
422
|
+
handleKeyDown(ev) {
|
|
423
|
+
let currentInputState = this.activeInput === "start-input"
|
|
424
|
+
? { picker: this.flatpickrInstance, index: 0 }
|
|
425
|
+
: { picker: this.flatpickrInstance2, index: 1 };
|
|
426
|
+
let isCalendarOpened = document.activeElement.closest(".flatpickr-calendar");
|
|
427
|
+
this.getFocusedInput();
|
|
428
|
+
if (ev.key === "Enter" || ev.key === " ") {
|
|
429
|
+
if (document.activeElement.classList.contains(`${this.rangePickerId}`) ||
|
|
430
|
+
document.activeElement.classList.contains(`${this.rangePickerId}-2`)) {
|
|
431
|
+
!isCalendarOpened && currentInputState.picker.open();
|
|
432
|
+
}
|
|
433
|
+
let isPrevArrowEntered = document.activeElement.classList.contains("flatpickr-prev-month");
|
|
434
|
+
let isNextArrowEntered = document.activeElement.classList.contains("flatpickr-next-month");
|
|
435
|
+
let arrowPressed = isPrevArrowEntered || isNextArrowEntered;
|
|
436
|
+
arrowPressed && ev.key === " " && ev.preventDefault();
|
|
437
|
+
isPrevArrowEntered && currentInputState.picker.changeMonth(-1);
|
|
438
|
+
isNextArrowEntered && currentInputState.picker.changeMonth(1);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
/** Set background color before or after first selected date, before selecting the second one */
|
|
442
|
+
onMouseOver(e) {
|
|
443
|
+
let currentInputState = this.activeInput === "start-input"
|
|
444
|
+
? { picker: this.flatpickrInstance, index: 0 }
|
|
445
|
+
: { picker: this.flatpickrInstance2, index: 1 };
|
|
446
|
+
this.setRangeHoverStyle(e, currentInputState.picker, this.element.getElementsByClassName("flatpickr-calendar")[currentInputState.index]);
|
|
447
|
+
}
|
|
448
|
+
componentDidLoad() {
|
|
449
|
+
let config = {
|
|
450
|
+
enableTime: this.mode === index$1.ZDatePickerMode.dateTime,
|
|
451
|
+
locale: utils$1.it.Italian,
|
|
452
|
+
allowInput: true,
|
|
453
|
+
dateFormat: this.mode === index$1.ZDatePickerMode.dateTime ? "d-m-Y - H:i" : "d-m-Y",
|
|
454
|
+
ariaDateFormat: "d F Y",
|
|
455
|
+
minuteIncrement: 1,
|
|
456
|
+
time_24hr: true,
|
|
457
|
+
onChange: (selectedDates, _dateStr, instance) => {
|
|
458
|
+
this.onDateSelect(selectedDates, instance);
|
|
459
|
+
},
|
|
460
|
+
onOpen: () => {
|
|
461
|
+
utils$1.setAriaOptions(this.element, this.mode);
|
|
462
|
+
this.flatpickrPosition = utils$1.setFlatpickrPosition(this.element, this.mode);
|
|
463
|
+
this.setRangeStyle();
|
|
464
|
+
this.getFocusedInput();
|
|
465
|
+
this.getCurrentMonth();
|
|
466
|
+
},
|
|
467
|
+
onYearChange: () => {
|
|
468
|
+
this.setRangeStyle();
|
|
469
|
+
},
|
|
470
|
+
onMonthChange: () => {
|
|
471
|
+
this.setRangeStyle();
|
|
472
|
+
},
|
|
473
|
+
onKeyDown: () => {
|
|
474
|
+
utils$1.setAriaOptions(this.element, this.mode);
|
|
475
|
+
},
|
|
476
|
+
wrap: true,
|
|
477
|
+
};
|
|
478
|
+
this.flatpickrInstance = utils$1.flatpickr(`.${this.rangePickerId}-container`, Object.assign(Object.assign({}, config), { mode: "multiple", appendTo: this.element.querySelector(`.${this.rangePickerId}-container`) }));
|
|
479
|
+
this.flatpickrInstance2 = utils$1.flatpickr(`.${this.rangePickerId}-container-2`, Object.assign(Object.assign({}, config), { mode: "multiple", appendTo: this.element.querySelector(`.${this.rangePickerId}-container-2`) }));
|
|
480
|
+
this.element.querySelectorAll(".flatpickr-weekday").forEach((element) => {
|
|
481
|
+
element.innerHTML = element.innerHTML.trim().charAt(0);
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
onDateSelect(selectedDates, instance) {
|
|
485
|
+
const firstInputElement = this.element.querySelectorAll("z-input")[0];
|
|
486
|
+
const secondInputElement = this.element.querySelectorAll("z-input")[1];
|
|
487
|
+
let firstInputActive = this.activeInput === "start-input";
|
|
488
|
+
/** If range is already set, clicking another date it will update it */
|
|
489
|
+
if (selectedDates.length === 3) {
|
|
490
|
+
instance.setDate([selectedDates[0], selectedDates[2]]);
|
|
491
|
+
}
|
|
492
|
+
/** Order the selected dates ASC and update the two flatpickers */
|
|
493
|
+
if (instance.selectedDates.length > 1) {
|
|
494
|
+
if (firstInputActive) {
|
|
495
|
+
/** First Flatpickr selection */
|
|
496
|
+
let orderedDates = instance.selectedDates.sort((a, b) => b - a);
|
|
497
|
+
instance.setDate([...orderedDates]);
|
|
498
|
+
this.flatpickrInstance2.setDate([
|
|
499
|
+
instance.selectedDates[1],
|
|
500
|
+
instance.selectedDates[0],
|
|
501
|
+
]);
|
|
502
|
+
}
|
|
503
|
+
else {
|
|
504
|
+
/** Second Flatpickr selection */
|
|
505
|
+
let orderedDates = instance.selectedDates.sort((a, b) => a - b);
|
|
506
|
+
instance.setDate([...orderedDates]);
|
|
507
|
+
this.flatpickrInstance.setDate([
|
|
508
|
+
instance.selectedDates[1],
|
|
509
|
+
instance.selectedDates[0],
|
|
510
|
+
]);
|
|
511
|
+
this.flatpickrInstance.setDate(this.flatpickrInstance.selectedDates.sort((a, b) => b - a));
|
|
512
|
+
}
|
|
513
|
+
this.printDate(instance.selectedDates[0], instance.selectedDates[1]);
|
|
514
|
+
}
|
|
515
|
+
let index = instance.selectedDates.length - 1;
|
|
516
|
+
/** If exists, set second date value into first input */
|
|
517
|
+
if (instance.selectedDates[0]) {
|
|
518
|
+
firstInputElement.value = this.getDate(instance.selectedDates[firstInputActive ? index : 0]);
|
|
519
|
+
}
|
|
520
|
+
/** If exists, set second date value into second input */
|
|
521
|
+
if (instance.selectedDates[1]) {
|
|
522
|
+
secondInputElement.value = this.getDate(instance.selectedDates[firstInputActive ? 0 : index]);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
getDate(date) {
|
|
526
|
+
if (this.mode === index$1.ZDatePickerMode.date) {
|
|
527
|
+
return `${utils$1.flatpickr.formatDate(date, "d-m-Y")}`;
|
|
528
|
+
}
|
|
529
|
+
else {
|
|
530
|
+
return `${utils$1.flatpickr.formatDate(date, "d-m-Y - H:i")}`;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
printDate(firstDate, lastDate) {
|
|
534
|
+
let orderedDates = [firstDate, lastDate].sort((a, b) => a - b);
|
|
535
|
+
this.dateSelect.emit([
|
|
536
|
+
this.getDate(orderedDates[0]),
|
|
537
|
+
this.getDate(orderedDates[1]),
|
|
538
|
+
]);
|
|
539
|
+
}
|
|
540
|
+
/** Replace month word to month number */
|
|
541
|
+
parseDate(date) {
|
|
542
|
+
const month = date.split(" ")[1];
|
|
543
|
+
const months = {
|
|
544
|
+
Gennaio: "01",
|
|
545
|
+
Febbraio: "02",
|
|
546
|
+
Marzo: "03",
|
|
547
|
+
Aprile: "04",
|
|
548
|
+
Maggio: "05",
|
|
549
|
+
Giugno: "06",
|
|
550
|
+
Luglio: "07",
|
|
551
|
+
Agosto: "08",
|
|
552
|
+
Settembre: "09",
|
|
553
|
+
Ottobre: "10",
|
|
554
|
+
Novembre: "11",
|
|
555
|
+
Dicembre: "12",
|
|
556
|
+
};
|
|
557
|
+
const pieces = date.replace(month, months[month]).split(" ");
|
|
558
|
+
return new Date(parseInt(pieces[2]), parseInt(pieces[1]) - 1, parseInt(pieces[0]));
|
|
559
|
+
}
|
|
560
|
+
/** Get the current focused input, first or last */
|
|
561
|
+
getFocusedInput() {
|
|
562
|
+
const focusedZInput = document.activeElement.closest("z-input");
|
|
563
|
+
if (!focusedZInput) {
|
|
564
|
+
return;
|
|
565
|
+
}
|
|
566
|
+
if (focusedZInput === null || focusedZInput === void 0 ? void 0 : focusedZInput.classList.contains("start-input")) {
|
|
567
|
+
this.activeInput = "start-input";
|
|
568
|
+
}
|
|
569
|
+
else if (focusedZInput.classList.contains("end-input")) {
|
|
570
|
+
this.activeInput = "end-input";
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
/** Set current month after flatpickr opened */
|
|
574
|
+
getCurrentMonth() {
|
|
575
|
+
let currentInputState = this.activeInput === "start-input"
|
|
576
|
+
? { picker: this.flatpickrInstance, index: 0 }
|
|
577
|
+
: { picker: this.flatpickrInstance2, index: 1 };
|
|
578
|
+
let length = currentInputState.picker.selectedDates.length;
|
|
579
|
+
if (length > 0) {
|
|
580
|
+
let dateMonth = currentInputState.picker.selectedDates[length - 1].getMonth();
|
|
581
|
+
let dateYear = currentInputState.picker.selectedDates[length - 1].getFullYear();
|
|
582
|
+
currentInputState.picker.changeMonth(dateMonth, false);
|
|
583
|
+
currentInputState.picker.changeYear(dateYear, false);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
/** Set style of the days between the two selected dates */
|
|
587
|
+
setRangeStyle() {
|
|
588
|
+
let currentInputState = this.activeInput === "start-input"
|
|
589
|
+
? { picker: this.flatpickrInstance, index: 0 }
|
|
590
|
+
: { picker: this.flatpickrInstance2, index: 1 };
|
|
591
|
+
let calendar = this.element.getElementsByClassName("flatpickr-calendar")[currentInputState.index];
|
|
592
|
+
Array.from(calendar.getElementsByClassName("flatpickr-day")).forEach((element) => {
|
|
593
|
+
let selectedDatesCount = this.flatpickrInstance.selectedDates.length;
|
|
594
|
+
if (selectedDatesCount === 2) {
|
|
595
|
+
let date = this.parseDate(element.ariaLabel);
|
|
596
|
+
let firstDate = this.flatpickrInstance.selectedDates[1];
|
|
597
|
+
let secondDate = this.flatpickrInstance.selectedDates[0];
|
|
598
|
+
let selected = element.className.includes("selected");
|
|
599
|
+
if (date > firstDate && date < secondDate && !selected) {
|
|
600
|
+
element.classList.toggle("inRange", true);
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
/** Set style of the days between first selected date and hovered date */
|
|
606
|
+
setRangeHoverStyle(e, flatpickr, calendar) {
|
|
607
|
+
const isDay = e.target.classList.contains("flatpickr-day");
|
|
608
|
+
if (isDay) {
|
|
609
|
+
let calendarDate = e.target.ariaLabel;
|
|
610
|
+
let hoveredDate = this.parseDate(calendarDate);
|
|
611
|
+
Array.from(calendar.getElementsByClassName("flatpickr-day")).forEach((element) => {
|
|
612
|
+
let date = this.parseDate(element.ariaLabel);
|
|
613
|
+
let selectedDatesCount = flatpickr.selectedDates.length;
|
|
614
|
+
let firstDate = selectedDatesCount === 1 ? flatpickr.selectedDates[0] : null;
|
|
615
|
+
let before = firstDate && hoveredDate < firstDate;
|
|
616
|
+
let after = firstDate && hoveredDate > firstDate;
|
|
617
|
+
let selected = element.className.includes("selected");
|
|
618
|
+
if (firstDate &&
|
|
619
|
+
((before && date > hoveredDate && date < firstDate && !selected) ||
|
|
620
|
+
(after && date < hoveredDate && date > firstDate && !selected))) {
|
|
621
|
+
element.classList.toggle("inRange", true);
|
|
622
|
+
}
|
|
623
|
+
else {
|
|
624
|
+
element.classList.remove("inRange");
|
|
625
|
+
}
|
|
626
|
+
this.setRangeStyle();
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
onStopTyping(value) {
|
|
631
|
+
let text = value.detail.value;
|
|
632
|
+
let englishData = text.split("-");
|
|
633
|
+
let time = this.mode === index$1.ZDatePickerMode.dateTime ? `${englishData[3]}:00` : "";
|
|
634
|
+
let englishParsedData = `${englishData[2]}-${englishData[1]}-${englishData[0]}T${time}`
|
|
635
|
+
.split(" ")
|
|
636
|
+
.join("");
|
|
637
|
+
let isDate = Date.parse(englishParsedData);
|
|
638
|
+
if (this.activeInput === "start-input") {
|
|
639
|
+
/** Remove second value from either the flatpickers if input is cleared */
|
|
640
|
+
if (text === "") {
|
|
641
|
+
if (this.flatpickrInstance.selectedDates.length === 1) {
|
|
642
|
+
this.flatpickrInstance.setDate([]);
|
|
643
|
+
this.flatpickrInstance2.setDate([]);
|
|
644
|
+
}
|
|
645
|
+
else {
|
|
646
|
+
this.flatpickrInstance.setDate([
|
|
647
|
+
this.flatpickrInstance.selectedDates[0],
|
|
648
|
+
]);
|
|
649
|
+
this.flatpickrInstance2.setDate([
|
|
650
|
+
this.flatpickrInstance2.selectedDates[1],
|
|
651
|
+
]);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
else {
|
|
655
|
+
/** If the value inserted is a correct date, update the first input value */
|
|
656
|
+
if (!Number.isNaN(isDate)) {
|
|
657
|
+
this.flatpickrInstance.setDate([
|
|
658
|
+
this.flatpickrInstance.selectedDates[0],
|
|
659
|
+
text,
|
|
660
|
+
]);
|
|
661
|
+
this.flatpickrInstance2.setDate([
|
|
662
|
+
text,
|
|
663
|
+
this.flatpickrInstance2.selectedDates[1],
|
|
664
|
+
]);
|
|
665
|
+
if (this.flatpickrInstance.selectedDates.length > 1) {
|
|
666
|
+
this.printDate(new Date(englishParsedData), this.flatpickrInstance.selectedDates[0]);
|
|
667
|
+
}
|
|
668
|
+
this.setRangeStyle();
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
else {
|
|
673
|
+
/** Remove second value from either the flatpickers if input is cleared */
|
|
674
|
+
if (text === "") {
|
|
675
|
+
if (this.flatpickrInstance2.selectedDates.length === 1) {
|
|
676
|
+
this.flatpickrInstance.setDate([]);
|
|
677
|
+
this.flatpickrInstance2.setDate([]);
|
|
678
|
+
}
|
|
679
|
+
else {
|
|
680
|
+
this.flatpickrInstance.setDate([
|
|
681
|
+
this.flatpickrInstance.selectedDates[1],
|
|
682
|
+
]);
|
|
683
|
+
this.flatpickrInstance2.setDate([
|
|
684
|
+
this.flatpickrInstance2.selectedDates[0],
|
|
685
|
+
]);
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
else {
|
|
689
|
+
/** If the value inserted is a correct date, update the second input value */
|
|
690
|
+
if (!Number.isNaN(isDate)) {
|
|
691
|
+
this.flatpickrInstance.setDate([
|
|
692
|
+
text,
|
|
693
|
+
this.flatpickrInstance.selectedDates[1],
|
|
694
|
+
]);
|
|
695
|
+
this.flatpickrInstance2.setDate([
|
|
696
|
+
this.flatpickrInstance2.selectedDates[0],
|
|
697
|
+
text,
|
|
698
|
+
]);
|
|
699
|
+
if (this.flatpickrInstance2.selectedDates.length > 1) {
|
|
700
|
+
this.printDate(new Date(englishParsedData), this.flatpickrInstance2.selectedDates[0]);
|
|
701
|
+
}
|
|
702
|
+
this.setRangeStyle();
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
render() {
|
|
708
|
+
const zInputProps = {
|
|
709
|
+
type: index$1.InputTypeEnum.text,
|
|
710
|
+
icon: "event",
|
|
711
|
+
tabindex: "0",
|
|
712
|
+
message: false,
|
|
713
|
+
onStopTyping: (value) => {
|
|
714
|
+
this.onStopTyping(value);
|
|
715
|
+
},
|
|
716
|
+
};
|
|
717
|
+
return (index.h("div", { class: {
|
|
718
|
+
["range-picker-container"]: true,
|
|
719
|
+
[this.mode]: true,
|
|
720
|
+
[this.activeInput]: true,
|
|
721
|
+
[this.flatpickrPosition]: true,
|
|
722
|
+
} }, index.h("div", { class: `${this.rangePickerId}-container` }, index.h("input", { class: "hidden-input", "data-input": true }), index.h("z-input", Object.assign({}, zInputProps, { class: `start-input ${this.rangePickerId}`, ariaLabel: this.firstAriaLabel, label: this.firstLabel, "data-toggle": true }))), index.h("div", { class: `${this.rangePickerId}-container-2` }, index.h("input", { class: "hidden-input", "data-input": true }), index.h("z-input", Object.assign({}, zInputProps, { class: `end-input ${this.rangePickerId}-2`, ariaLabel: this.secondAriaLabel, label: this.secondLabel, "data-toggle": true })))));
|
|
723
|
+
}
|
|
724
|
+
get element() { return index.getElement(this); }
|
|
725
|
+
};
|
|
726
|
+
ZRangePicker.style = stylesCss;
|
|
727
|
+
|
|
728
|
+
exports.z_app_switcher = ZAppSwitcher;
|
|
729
|
+
exports.z_app_topbar = ZAppTopbar;
|
|
730
|
+
exports.z_divider = ZDivider;
|
|
731
|
+
exports.z_icon = ZIcon;
|
|
732
|
+
exports.z_input = ZInput;
|
|
733
|
+
exports.z_input_message = ZInputMessage;
|
|
734
|
+
exports.z_link = ZLink;
|
|
735
|
+
exports.z_logo = ZLogo;
|
|
736
|
+
exports.z_range_picker = ZRangePicker;
|