@zanichelli/albe-web-components 2.47.3 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/dist/cjs/{index-d326c919.js → index-b1289f95.js} +19 -8
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-cd6b9038.js → utils-33df2456.js} +2 -3
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/{z-app-switcher_11.cjs.entry.js → z-app-switcher_12.cjs.entry.js} +43 -7
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-avatar.cjs.entry.js +1 -1
- package/dist/cjs/z-button-filter_5.cjs.entry.js +2 -2
- package/dist/cjs/z-chip.cjs.entry.js +2 -2
- package/dist/cjs/z-combobox.cjs.entry.js +2 -2
- package/dist/cjs/z-contextual-menu.cjs.entry.js +1 -1
- package/dist/cjs/z-cookiebar.cjs.entry.js +4 -4
- package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-file-upload.cjs.entry.js +16 -13
- package/dist/cjs/z-file.cjs.entry.js +1 -1
- package/dist/cjs/z-footer.cjs.entry.js +13 -8
- package/dist/cjs/z-list_3.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +2 -2
- package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
- package/dist/cjs/z-modal-login.cjs.entry.js +6 -5
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +3 -3
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card_4.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-topbar.cjs.entry.js +3 -3
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +13 -12
- package/dist/cjs/z-navigation-tab.cjs.entry.js +13 -12
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +6 -9
- package/dist/cjs/z-otp.cjs.entry.js +1 -1
- package/dist/cjs/z-pagination-bar.cjs.entry.js +2 -2
- package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +2 -2
- package/dist/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js +68 -0
- 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 +2 -2
- package/dist/cjs/z-table-header.cjs.entry.js +3 -3
- package/dist/cjs/z-table-row.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +3 -3
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-switch.cjs.entry.js +2 -2
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/collection/beans/index.js +19 -8
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/buttons/z-button/index.js +72 -52
- package/dist/collection/components/buttons/z-button/styles.css +32 -111
- package/dist/collection/components/file-upload/z-file-upload/index.js +13 -10
- package/dist/collection/components/file-upload/z-file-upload/styles.css +2 -2
- package/dist/collection/components/footer/z-footer/index.js +19 -14
- package/dist/collection/components/footer/z-footer/styles.css +2 -2
- package/dist/collection/components/modal/z-modal-login/index.js +5 -4
- package/dist/collection/components/modal/z-modal-login/styles.css +8 -8
- package/dist/collection/components/navigation/tabs/navigation-tab.css +49 -31
- package/dist/collection/components/navigation/tabs/z-navigation-tab/index.js +14 -21
- package/dist/collection/components/navigation/tabs/z-navigation-tab-link/index.js +14 -21
- package/dist/collection/components/navigation/tabs/z-navigation-tabs/index.js +4 -7
- package/dist/collection/components/navigation/tabs/z-navigation-tabs/styles.css +6 -20
- package/dist/collection/components/notification/z-cookiebar/index.js +2 -2
- package/dist/collection/components/notification/z-cookiebar/styles.css +3 -3
- package/dist/collection/components/notification/z-toast-notification/styles.css +4 -2
- package/dist/collection/components/z-skip-to-content/index.js +131 -0
- package/dist/collection/components/z-skip-to-content/styles.css +84 -0
- package/dist/collection/components/z-table/z-table/index.js +4 -4
- package/dist/collection/components/z-table/z-table-cell/index.js +1 -1
- package/dist/collection/components/z-table/z-table-header/index.js +1 -1
- package/dist/collection/deprecated/z-button-deprecated/index.js +218 -0
- package/dist/collection/deprecated/z-button-deprecated/styles.css +231 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +5 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +5 -1
- package/dist/collection/snowflakes/myz/topbar/index.js +1 -1
- package/dist/collection/snowflakes/myz/topbar/styles.css +8 -8
- package/dist/collection/utils/utils.js +2 -3
- package/dist/esm/{index-96aade4f.js → index-7424c64c.js} +20 -9
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-d06fbb4a.js → utils-93d2b922.js} +3 -4
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/{z-app-switcher_11.entry.js → z-app-switcher_12.entry.js} +43 -8
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +1 -1
- package/dist/esm/z-button-filter_5.entry.js +2 -2
- package/dist/esm/z-chip.entry.js +2 -2
- package/dist/esm/z-combobox.entry.js +2 -2
- package/dist/esm/z-contextual-menu.entry.js +1 -1
- package/dist/esm/z-cookiebar.entry.js +4 -4
- package/dist/esm/z-date-picker.entry.js +1 -1
- package/dist/esm/z-file-upload.entry.js +16 -13
- package/dist/esm/z-file.entry.js +1 -1
- package/dist/esm/z-footer.entry.js +13 -8
- package/dist/esm/z-list_3.entry.js +1 -1
- package/dist/esm/z-menu-dropdown_2.entry.js +2 -2
- package/dist/esm/z-messages-pocket.entry.js +1 -1
- package/dist/esm/z-modal-login.entry.js +6 -5
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +3 -3
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +2 -2
- package/dist/esm/z-myz-card_4.entry.js +2 -2
- package/dist/esm/z-myz-list-item.entry.js +2 -2
- package/dist/esm/z-myz-topbar.entry.js +3 -3
- package/dist/esm/z-navigation-tab-link.entry.js +14 -13
- package/dist/esm/z-navigation-tab.entry.js +14 -13
- package/dist/esm/z-navigation-tabs.entry.js +6 -9
- package/dist/esm/z-otp.entry.js +1 -1
- package/dist/esm/z-pagination-bar.entry.js +2 -2
- package/dist/esm/z-pocket_3.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +2 -2
- package/dist/esm/z-section-title.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +64 -0
- 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 +2 -2
- package/dist/esm/z-table-header.entry.js +3 -3
- package/dist/esm/z-table-row.entry.js +1 -1
- package/dist/esm/z-table.entry.js +3 -3
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +2 -2
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/types/beans/index.d.ts +23 -8
- package/dist/types/components/buttons/z-button/index.d.ts +13 -7
- package/dist/types/components/navigation/tabs/z-navigation-tab/index.d.ts +8 -5
- package/dist/types/components/navigation/tabs/z-navigation-tab-link/index.d.ts +8 -5
- package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +2 -0
- package/dist/types/components/z-skip-to-content/index.d.ts +22 -0
- package/dist/types/components.d.ts +129 -7
- package/dist/types/deprecated/z-button-deprecated/index.d.ts +28 -0
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-a184c4a4.entry.js → p-0398165f.entry.js} +1 -1
- package/dist/web-components-library/{p-aaee84f0.entry.js → p-03de95f1.entry.js} +1 -1
- package/dist/web-components-library/p-0b590426.entry.js +1 -0
- package/dist/web-components-library/{p-c7f70e76.entry.js → p-1b973c72.entry.js} +1 -1
- package/dist/web-components-library/{p-51870c65.entry.js → p-1eef76bb.entry.js} +1 -1
- package/dist/web-components-library/p-21b9a94f.entry.js +1 -0
- package/dist/web-components-library/{p-4434207b.entry.js → p-223bec2f.entry.js} +1 -1
- package/dist/web-components-library/p-2711bc32.entry.js +1 -0
- package/dist/web-components-library/p-2b8975b1.entry.js +1 -0
- package/dist/web-components-library/{p-059fc87d.entry.js → p-2c823f4c.entry.js} +1 -1
- package/dist/web-components-library/p-2e510e79.entry.js +1 -0
- package/dist/web-components-library/p-2ff952a3.entry.js +1 -0
- package/dist/web-components-library/{p-c9722a45.entry.js → p-3184d969.entry.js} +1 -1
- package/dist/web-components-library/p-393c31c0.entry.js +1 -0
- package/dist/web-components-library/{p-e559f4d3.entry.js → p-3dba3a83.entry.js} +1 -1
- package/dist/web-components-library/p-459dab30.entry.js +1 -0
- package/dist/web-components-library/{p-62a79ada.entry.js → p-4c282f06.entry.js} +1 -1
- package/dist/web-components-library/{p-67e56d43.entry.js → p-542b3702.entry.js} +1 -1
- package/dist/web-components-library/{p-e8df0a5e.entry.js → p-57270965.entry.js} +1 -1
- package/{www/build/p-5ad5d409.entry.js → dist/web-components-library/p-66fbe5b8.entry.js} +1 -1
- package/dist/web-components-library/p-709ab23c.entry.js +1 -0
- package/dist/web-components-library/p-70be81b6.entry.js +1 -0
- package/{www/build/p-f87cd1c6.entry.js → dist/web-components-library/p-7e71d9b0.entry.js} +1 -1
- package/dist/web-components-library/p-80369bb8.entry.js +1 -0
- package/dist/web-components-library/p-80a3e18a.js +1 -0
- package/dist/web-components-library/{p-dd928b6f.entry.js → p-895f636e.entry.js} +1 -1
- package/dist/web-components-library/p-8b62bd85.entry.js +1 -0
- package/dist/web-components-library/{p-66a027c2.entry.js → p-9721e132.entry.js} +1 -1
- package/dist/web-components-library/{p-211c8001.entry.js → p-9935973a.entry.js} +1 -1
- package/dist/web-components-library/p-a391566a.entry.js +1 -0
- package/dist/web-components-library/{p-9045dc92.entry.js → p-aae632ef.entry.js} +1 -1
- package/{www/build/p-b3059f74.entry.js → dist/web-components-library/p-adad78fc.entry.js} +1 -1
- package/dist/web-components-library/{p-62a7b6cb.entry.js → p-b0ea8c0e.entry.js} +1 -1
- package/dist/web-components-library/{p-c806d6e4.entry.js → p-c787ea21.entry.js} +1 -1
- package/dist/web-components-library/p-cadcf677.entry.js +1 -0
- package/dist/web-components-library/p-cce20009.entry.js +1 -0
- package/dist/web-components-library/p-cd2ca92b.entry.js +1 -0
- package/dist/web-components-library/p-da7760a3.entry.js +1 -0
- package/dist/web-components-library/p-dcf4d1b6.entry.js +1 -0
- package/dist/web-components-library/{p-4fa3a1f5.entry.js → p-dfc18671.entry.js} +1 -1
- package/{www/build/p-edc05acf.entry.js → dist/web-components-library/p-e4b4b2e4.entry.js} +1 -1
- package/dist/web-components-library/{p-9baa6b96.entry.js → p-e7aadd3d.entry.js} +1 -1
- package/dist/web-components-library/{p-422d2691.entry.js → p-e9b90127.entry.js} +1 -1
- package/dist/web-components-library/p-fea5b98f.js +1 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +2 -0
- package/react/components.js +5 -2
- package/react/components.js.map +1 -1
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-a184c4a4.entry.js → p-0398165f.entry.js} +1 -1
- package/www/build/{p-aaee84f0.entry.js → p-03de95f1.entry.js} +1 -1
- package/www/build/p-0b590426.entry.js +1 -0
- package/www/build/{p-c7f70e76.entry.js → p-1b973c72.entry.js} +1 -1
- package/www/build/{p-51870c65.entry.js → p-1eef76bb.entry.js} +1 -1
- package/www/build/p-21b9a94f.entry.js +1 -0
- package/www/build/{p-4434207b.entry.js → p-223bec2f.entry.js} +1 -1
- package/www/build/p-2711bc32.entry.js +1 -0
- package/www/build/p-2b8975b1.entry.js +1 -0
- package/www/build/{p-059fc87d.entry.js → p-2c823f4c.entry.js} +1 -1
- package/www/build/p-2e24f261.js +129 -0
- package/www/build/p-2e510e79.entry.js +1 -0
- package/www/build/p-2ff952a3.entry.js +1 -0
- package/www/build/{p-c9722a45.entry.js → p-3184d969.entry.js} +1 -1
- package/www/build/p-393c31c0.entry.js +1 -0
- package/www/build/{p-e559f4d3.entry.js → p-3dba3a83.entry.js} +1 -1
- package/www/build/p-459dab30.entry.js +1 -0
- package/www/build/{p-62a79ada.entry.js → p-4c282f06.entry.js} +1 -1
- package/www/build/{p-67e56d43.entry.js → p-542b3702.entry.js} +1 -1
- package/www/build/{p-e8df0a5e.entry.js → p-57270965.entry.js} +1 -1
- package/{dist/web-components-library/p-5ad5d409.entry.js → www/build/p-66fbe5b8.entry.js} +1 -1
- package/www/build/p-709ab23c.entry.js +1 -0
- package/www/build/p-70be81b6.entry.js +1 -0
- package/{dist/web-components-library/p-f87cd1c6.entry.js → www/build/p-7e71d9b0.entry.js} +1 -1
- package/www/build/p-80369bb8.entry.js +1 -0
- package/www/build/p-80a3e18a.js +1 -0
- package/www/build/{p-dd928b6f.entry.js → p-895f636e.entry.js} +1 -1
- package/www/build/p-8b62bd85.entry.js +1 -0
- package/www/build/{p-66a027c2.entry.js → p-9721e132.entry.js} +1 -1
- package/www/build/{p-211c8001.entry.js → p-9935973a.entry.js} +1 -1
- package/www/build/p-a391566a.entry.js +1 -0
- package/www/build/{p-9045dc92.entry.js → p-aae632ef.entry.js} +1 -1
- package/{dist/web-components-library/p-b3059f74.entry.js → www/build/p-adad78fc.entry.js} +1 -1
- package/www/build/{p-62a7b6cb.entry.js → p-b0ea8c0e.entry.js} +1 -1
- package/www/build/{p-c806d6e4.entry.js → p-c787ea21.entry.js} +1 -1
- package/www/build/p-cadcf677.entry.js +1 -0
- package/www/build/p-cce20009.entry.js +1 -0
- package/www/build/p-cd2ca92b.entry.js +1 -0
- package/www/build/p-da7760a3.entry.js +1 -0
- package/www/build/p-dcf4d1b6.entry.js +1 -0
- package/www/build/{p-4fa3a1f5.entry.js → p-dfc18671.entry.js} +1 -1
- package/{dist/web-components-library/p-edc05acf.entry.js → www/build/p-e4b4b2e4.entry.js} +1 -1
- package/www/build/{p-9baa6b96.entry.js → p-e7aadd3d.entry.js} +1 -1
- package/www/build/{p-422d2691.entry.js → p-e9b90127.entry.js} +1 -1
- package/www/build/p-fcff1237.css +812 -0
- package/www/build/p-fea5b98f.js +1 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +49 -49
- package/www/pages/notification.html +10 -7
- package/dist/web-components-library/p-01b13704.entry.js +0 -1
- package/dist/web-components-library/p-05fd034c.entry.js +0 -1
- package/dist/web-components-library/p-12ae4164.entry.js +0 -1
- package/dist/web-components-library/p-142dc712.entry.js +0 -1
- package/dist/web-components-library/p-2182f383.entry.js +0 -1
- package/dist/web-components-library/p-2f9c9ed9.entry.js +0 -1
- package/dist/web-components-library/p-3ecebf0c.entry.js +0 -1
- package/dist/web-components-library/p-42c37977.js +0 -1
- package/dist/web-components-library/p-61b6ab7e.entry.js +0 -1
- package/dist/web-components-library/p-77d2db66.entry.js +0 -1
- package/dist/web-components-library/p-8fb44da3.entry.js +0 -1
- package/dist/web-components-library/p-981f5b41.entry.js +0 -1
- package/dist/web-components-library/p-a4049c7f.js +0 -1
- package/dist/web-components-library/p-b3cab405.entry.js +0 -1
- package/dist/web-components-library/p-c8578954.entry.js +0 -1
- package/dist/web-components-library/p-d0c956ff.entry.js +0 -1
- package/dist/web-components-library/p-e3d1b621.entry.js +0 -1
- package/dist/web-components-library/p-eedd3f14.entry.js +0 -1
- package/dist/web-components-library/p-f85e38d3.entry.js +0 -1
- package/www/build/p-01b13704.entry.js +0 -1
- package/www/build/p-05fd034c.entry.js +0 -1
- package/www/build/p-12ae4164.entry.js +0 -1
- package/www/build/p-142dc712.entry.js +0 -1
- package/www/build/p-2182f383.entry.js +0 -1
- package/www/build/p-2f9c9ed9.entry.js +0 -1
- package/www/build/p-3ecebf0c.entry.js +0 -1
- package/www/build/p-42c37977.js +0 -1
- package/www/build/p-61b6ab7e.entry.js +0 -1
- package/www/build/p-7210d846.js +0 -1
- package/www/build/p-77d2db66.entry.js +0 -1
- package/www/build/p-88b56b6e.css +0 -1
- package/www/build/p-8fb44da3.entry.js +0 -1
- package/www/build/p-981f5b41.entry.js +0 -1
- package/www/build/p-a4049c7f.js +0 -1
- package/www/build/p-b3cab405.entry.js +0 -1
- package/www/build/p-c8578954.entry.js +0 -1
- package/www/build/p-d0c956ff.entry.js +0 -1
- package/www/build/p-e3d1b621.entry.js +0 -1
- package/www/build/p-eedd3f14.entry.js +0 -1
- package/www/build/p-f85e38d3.entry.js +0 -1
|
@@ -10,26 +10,34 @@ export class ZButton {
|
|
|
10
10
|
this.disabled = false;
|
|
11
11
|
/** HTML button type attribute. */
|
|
12
12
|
this.type = ButtonTypeEnum.button;
|
|
13
|
-
/** Graphical variant: `primary`, `secondary`, `tertiary
|
|
13
|
+
/** Graphical variant: `primary`, `secondary`, `tertiary`. Defaults to `primary`. */
|
|
14
14
|
this.variant = ButtonVariantEnum.primary;
|
|
15
15
|
/** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
|
|
16
16
|
this.size = ButtonSizeEnum.big;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
}
|
|
18
|
+
getAttributes() {
|
|
19
|
+
return {
|
|
20
|
+
id: this.htmlid,
|
|
21
|
+
class: classNames(this.variant, this.size),
|
|
22
|
+
"aria-label": this.ariaLabel,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
componentDidLoad() {
|
|
26
|
+
if (this.hostElement.innerText) {
|
|
27
|
+
this.hostElement.classList.add("with-text");
|
|
28
|
+
}
|
|
23
29
|
}
|
|
24
30
|
render() {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
h("button", { id: this.htmlid, name: this.name, type: this.type, disabled: this.disabled, class: classNames(this.variant, this.size, { issmall: this.issmall }, { square: this.square }) },
|
|
31
|
+
if (this.href)
|
|
32
|
+
return (h("a", Object.assign({ href: this.href, target: this.target }, this.getAttributes()),
|
|
28
33
|
this.icon && h("z-icon", { name: this.icon, width: 16, height: 16 }),
|
|
29
|
-
h("slot", null)))
|
|
34
|
+
h("slot", null)));
|
|
35
|
+
return (h("button", Object.assign({ name: this.name, type: this.type, disabled: this.disabled }, this.getAttributes()),
|
|
36
|
+
this.icon && h("z-icon", { name: this.icon, width: 16, height: 16 }),
|
|
37
|
+
h("slot", null)));
|
|
30
38
|
}
|
|
31
39
|
static get is() { return "z-button"; }
|
|
32
|
-
static get encapsulation() { return "
|
|
40
|
+
static get encapsulation() { return "scoped"; }
|
|
33
41
|
static get originalStyleUrls() { return {
|
|
34
42
|
"$": ["styles.css"]
|
|
35
43
|
}; }
|
|
@@ -37,6 +45,57 @@ export class ZButton {
|
|
|
37
45
|
"$": ["styles.css"]
|
|
38
46
|
}; }
|
|
39
47
|
static get properties() { return {
|
|
48
|
+
"ariaLabel": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"mutable": false,
|
|
51
|
+
"complexType": {
|
|
52
|
+
"original": "string",
|
|
53
|
+
"resolved": "string",
|
|
54
|
+
"references": {}
|
|
55
|
+
},
|
|
56
|
+
"required": false,
|
|
57
|
+
"optional": true,
|
|
58
|
+
"docs": {
|
|
59
|
+
"tags": [],
|
|
60
|
+
"text": "defines a string value that labels an interactive element, used for accessibility."
|
|
61
|
+
},
|
|
62
|
+
"attribute": "aria-label",
|
|
63
|
+
"reflect": true
|
|
64
|
+
},
|
|
65
|
+
"href": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"mutable": false,
|
|
68
|
+
"complexType": {
|
|
69
|
+
"original": "string",
|
|
70
|
+
"resolved": "string",
|
|
71
|
+
"references": {}
|
|
72
|
+
},
|
|
73
|
+
"required": false,
|
|
74
|
+
"optional": true,
|
|
75
|
+
"docs": {
|
|
76
|
+
"tags": [],
|
|
77
|
+
"text": "HTML a href attribute. If it is set, it renders an HTML a tag."
|
|
78
|
+
},
|
|
79
|
+
"attribute": "href",
|
|
80
|
+
"reflect": true
|
|
81
|
+
},
|
|
82
|
+
"target": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "string",
|
|
87
|
+
"resolved": "string",
|
|
88
|
+
"references": {}
|
|
89
|
+
},
|
|
90
|
+
"required": false,
|
|
91
|
+
"optional": true,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": "HTML a target attribute."
|
|
95
|
+
},
|
|
96
|
+
"attribute": "target",
|
|
97
|
+
"reflect": true
|
|
98
|
+
},
|
|
40
99
|
"htmlid": {
|
|
41
100
|
"type": "string",
|
|
42
101
|
"mutable": false,
|
|
@@ -128,7 +187,7 @@ export class ZButton {
|
|
|
128
187
|
"optional": true,
|
|
129
188
|
"docs": {
|
|
130
189
|
"tags": [],
|
|
131
|
-
"text": "Graphical variant: `primary`, `secondary`, `tertiary
|
|
190
|
+
"text": "Graphical variant: `primary`, `secondary`, `tertiary`. Defaults to `primary`."
|
|
132
191
|
},
|
|
133
192
|
"attribute": "variant",
|
|
134
193
|
"reflect": true,
|
|
@@ -173,45 +232,6 @@ export class ZButton {
|
|
|
173
232
|
"attribute": "size",
|
|
174
233
|
"reflect": true,
|
|
175
234
|
"defaultValue": "ButtonSizeEnum.big"
|
|
176
|
-
},
|
|
177
|
-
"issmall": {
|
|
178
|
-
"type": "boolean",
|
|
179
|
-
"mutable": false,
|
|
180
|
-
"complexType": {
|
|
181
|
-
"original": "boolean",
|
|
182
|
-
"resolved": "boolean",
|
|
183
|
-
"references": {}
|
|
184
|
-
},
|
|
185
|
-
"required": false,
|
|
186
|
-
"optional": true,
|
|
187
|
-
"docs": {
|
|
188
|
-
"tags": [{
|
|
189
|
-
"name": "deprecated",
|
|
190
|
-
"text": "Use `size` prop."
|
|
191
|
-
}],
|
|
192
|
-
"text": "Reduce button size (deprecated)."
|
|
193
|
-
},
|
|
194
|
-
"attribute": "issmall",
|
|
195
|
-
"reflect": true,
|
|
196
|
-
"defaultValue": "false"
|
|
197
|
-
},
|
|
198
|
-
"square": {
|
|
199
|
-
"type": "boolean",
|
|
200
|
-
"mutable": false,
|
|
201
|
-
"complexType": {
|
|
202
|
-
"original": "boolean",
|
|
203
|
-
"resolved": "boolean",
|
|
204
|
-
"references": {}
|
|
205
|
-
},
|
|
206
|
-
"required": false,
|
|
207
|
-
"optional": true,
|
|
208
|
-
"docs": {
|
|
209
|
-
"tags": [],
|
|
210
|
-
"text": "Spy to render square button."
|
|
211
|
-
},
|
|
212
|
-
"attribute": "square",
|
|
213
|
-
"reflect": true,
|
|
214
|
-
"defaultValue": "false"
|
|
215
235
|
}
|
|
216
236
|
}; }
|
|
217
237
|
static get elementRef() { return "hostElement"; }
|
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: inline-block;
|
|
3
|
-
|
|
4
3
|
--z-icon-width: 16px;
|
|
5
4
|
--z-icon-height: 16px;
|
|
6
|
-
--z-icon-right-margin:
|
|
7
|
-
--rgb-white: 240, 240, 240
|
|
5
|
+
--z-icon-right-margin: 0;
|
|
6
|
+
--rgb-white: 240, 240, 240;
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
button:disabled,
|
|
11
|
-
|
|
10
|
+
a:disabled {
|
|
12
11
|
pointer-events: none;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
button,
|
|
16
|
-
|
|
17
|
-
::slotted(a) {
|
|
15
|
+
a {
|
|
18
16
|
box-sizing: border-box;
|
|
19
17
|
display: inline-flex;
|
|
20
|
-
flex-direction: row;
|
|
21
18
|
align-items: center;
|
|
22
19
|
justify-content: center;
|
|
23
|
-
width: 100%;
|
|
24
20
|
font-family: var(--dashboard-font);
|
|
25
21
|
font-weight: var(--font-sb);
|
|
26
22
|
font-size: 14px;
|
|
@@ -29,67 +25,48 @@ button,
|
|
|
29
25
|
border-width: var(--border-size-medium);
|
|
30
26
|
border-style: solid;
|
|
31
27
|
border-radius: var(--border-radius);
|
|
32
|
-
vertical-align: middle;
|
|
33
28
|
text-transform: uppercase;
|
|
34
29
|
text-decoration: none;
|
|
35
30
|
cursor: pointer;
|
|
31
|
+
width: 100%;
|
|
36
32
|
white-space: nowrap;
|
|
37
33
|
outline: none;
|
|
38
34
|
fill: currentColor;
|
|
39
35
|
}
|
|
40
36
|
|
|
41
|
-
|
|
42
|
-
:
|
|
43
|
-
:host([size="big"]) ::slotted(a) {
|
|
44
|
-
height: 44px;
|
|
45
|
-
min-width: 44px;
|
|
37
|
+
:host.with-text z-icon {
|
|
38
|
+
--z-icon-right-margin: var(--space-unit);
|
|
46
39
|
}
|
|
47
40
|
|
|
48
|
-
button
|
|
49
|
-
:host
|
|
50
|
-
:
|
|
51
|
-
|
|
52
|
-
min-width: 36px;
|
|
41
|
+
:host.with-text button,
|
|
42
|
+
:host.with-text a {
|
|
43
|
+
min-width: calc(var(--space-unit) * 8);
|
|
44
|
+
padding: 0 calc(var(--space-unit) * 2);
|
|
53
45
|
}
|
|
54
46
|
|
|
55
|
-
|
|
56
|
-
:
|
|
57
|
-
:
|
|
47
|
+
.big {
|
|
48
|
+
height: 44px;
|
|
49
|
+
min-width: 44px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.small {
|
|
58
53
|
height: 36px;
|
|
59
54
|
min-width: 36px;
|
|
60
55
|
}
|
|
61
56
|
|
|
62
|
-
|
|
63
|
-
:host([size="x-small"]) ::slotted(button),
|
|
64
|
-
:host([size="x-small"]) ::slotted(a) {
|
|
57
|
+
.x-small {
|
|
65
58
|
height: 32px;
|
|
66
59
|
min-width: 32px;
|
|
67
60
|
}
|
|
68
61
|
|
|
69
|
-
|
|
70
|
-
:host(:not([square])) ::slotted(button),
|
|
71
|
-
:host(:not([square])) ::slotted(a) {
|
|
72
|
-
min-width: calc(var(--space-unit) * 8);
|
|
73
|
-
padding: 0 calc(var(--space-unit) * 2);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
button.square,
|
|
77
|
-
:host([square]) {
|
|
78
|
-
--z-icon-right-margin: 0;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
button.primary,
|
|
82
|
-
:host([variant="primary"]) ::slotted(button),
|
|
83
|
-
:host([variant="primary"]) ::slotted(a) {
|
|
62
|
+
.primary {
|
|
84
63
|
background-color: var(--color-primary01);
|
|
85
64
|
border-color: var(--color-primary01);
|
|
86
65
|
color: var(--color-text-inverse);
|
|
87
66
|
}
|
|
88
67
|
|
|
89
68
|
@media (hover: hover) {
|
|
90
|
-
|
|
91
|
-
:host([variant="primary"]) ::slotted(button:hover),
|
|
92
|
-
:host([variant="primary"]) ::slotted(a:hover) {
|
|
69
|
+
.primary:hover {
|
|
93
70
|
background-color: var(--color-hover-primary);
|
|
94
71
|
border-color: var(--color-hover-primary);
|
|
95
72
|
color: var(--color-text-inverse);
|
|
@@ -97,135 +74,79 @@ button.primary,
|
|
|
97
74
|
}
|
|
98
75
|
|
|
99
76
|
button:focus:focus-visible,
|
|
100
|
-
|
|
101
|
-
::slotted(a:focus:focus-visible) {
|
|
77
|
+
a:focus:focus-visible {
|
|
102
78
|
box-shadow: var(--shadow-focus-primary);
|
|
103
79
|
}
|
|
104
80
|
|
|
105
|
-
|
|
106
|
-
:host([variant="primary"]) ::slotted(button:active),
|
|
107
|
-
:host([variant="primary"]) ::slotted(a:active) {
|
|
81
|
+
.primary:active {
|
|
108
82
|
background-color: var(--color-pressed-primary);
|
|
109
83
|
border-color: var(--color-pressed-primary);
|
|
110
84
|
color: var(--color-text-inverse);
|
|
111
85
|
box-shadow: var(--shadow-2);
|
|
112
86
|
}
|
|
113
87
|
|
|
114
|
-
|
|
115
|
-
:host([variant="primary"]) ::slotted(button:disabled) {
|
|
88
|
+
.primary:disabled {
|
|
116
89
|
background-color: var(--color-disabled01);
|
|
117
90
|
border-color: var(--color-disabled01);
|
|
118
91
|
color: var(--color-disabled02);
|
|
119
92
|
}
|
|
120
93
|
|
|
121
|
-
|
|
122
|
-
:host([variant="secondary"]) ::slotted(button),
|
|
123
|
-
:host([variant="secondary"]) ::slotted(a) {
|
|
94
|
+
.secondary {
|
|
124
95
|
background-color: var(--color-surface01);
|
|
125
96
|
border-color: var(--color-primary01);
|
|
126
97
|
color: var(--color-primary01);
|
|
127
98
|
}
|
|
128
99
|
|
|
129
100
|
@media (hover: hover) {
|
|
130
|
-
|
|
131
|
-
:host([variant="secondary"]) ::slotted(button:hover),
|
|
132
|
-
:host([variant="secondary"]) ::slotted(a:hover) {
|
|
101
|
+
.secondary:hover {
|
|
133
102
|
background-color: var(--color-surface01);
|
|
134
103
|
border-color: var(--color-hover-primary);
|
|
135
104
|
color: var(--color-hover-primary);
|
|
136
105
|
}
|
|
137
106
|
}
|
|
138
107
|
|
|
139
|
-
|
|
140
|
-
:host([variant="secondary"]) ::slotted(button:active),
|
|
141
|
-
:host([variant="secondary"]) ::slotted(a:active) {
|
|
108
|
+
.secondary:active {
|
|
142
109
|
background-color: var(--color-surface01);
|
|
143
110
|
border-color: var(--color-pressed-primary);
|
|
144
111
|
color: var(--color-pressed-primary);
|
|
145
112
|
box-shadow: var(--shadow-2);
|
|
146
113
|
}
|
|
147
114
|
|
|
148
|
-
|
|
149
|
-
:host([variant="secondary"]) ::slotted(button:disabled) {
|
|
115
|
+
.secondary:disabled {
|
|
150
116
|
background-color: var(--color-surface01);
|
|
151
117
|
border-color: var(--color-disabled01);
|
|
152
118
|
color: var(--color-disabled02);
|
|
153
119
|
}
|
|
154
120
|
|
|
155
|
-
|
|
156
|
-
:host([variant="tertiary"]) ::slotted(button),
|
|
157
|
-
:host([variant="tertiary"]) ::slotted(a) {
|
|
121
|
+
.tertiary {
|
|
158
122
|
background-color: transparent;
|
|
159
123
|
border-color: transparent;
|
|
160
124
|
color: var(--color-primary01);
|
|
161
125
|
}
|
|
162
126
|
|
|
163
|
-
button.tertiary.hasContent {
|
|
164
|
-
padding: 0 var(--space-unit);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
127
|
@media (hover: hover) {
|
|
168
|
-
|
|
169
|
-
:host([variant="tertiary"]) ::slotted(button:hover),
|
|
170
|
-
:host([variant="tertiary"]) ::slotted(a:hover) {
|
|
128
|
+
.tertiary:hover {
|
|
171
129
|
background-color: var(--color-primary03);
|
|
172
130
|
border-color: var(--color-primary03);
|
|
173
131
|
color: var(--color-hover-primary);
|
|
174
132
|
}
|
|
175
133
|
}
|
|
176
134
|
|
|
177
|
-
|
|
178
|
-
:host([variant="tertiary"]) ::slotted(button:focus:focus-visible),
|
|
179
|
-
:host([variant="tertiary"]) ::slotted(a:focus:focus-visible) {
|
|
135
|
+
.tertiary:focus:focus-visible {
|
|
180
136
|
background-color: var(--color-surface01);
|
|
181
137
|
border-color: var(--color-surface01);
|
|
182
138
|
color: var(--color-primary01);
|
|
183
139
|
}
|
|
184
140
|
|
|
185
|
-
|
|
186
|
-
:host([variant="tertiary"]) ::slotted(button:active),
|
|
187
|
-
:host([variant="tertiary"]) ::slotted(a:active) {
|
|
141
|
+
.tertiary:active {
|
|
188
142
|
background-color: var(--color-surface01);
|
|
189
143
|
border-color: var(--color-surface01);
|
|
190
144
|
color: var(--color-primary01);
|
|
191
145
|
box-shadow: var(--shadow-2);
|
|
192
146
|
}
|
|
193
147
|
|
|
194
|
-
|
|
195
|
-
:host([variant="tertiary"]) ::slotted(button:disabled) {
|
|
148
|
+
.tertiary:disabled {
|
|
196
149
|
background-color: transparent;
|
|
197
150
|
border-color: transparent;
|
|
198
151
|
color: var(--color-disabled02);
|
|
199
152
|
}
|
|
200
|
-
|
|
201
|
-
button.dark-bg,
|
|
202
|
-
:host([variant="dark-bg"]) ::slotted(button),
|
|
203
|
-
:host([variant="dark-bg"]) ::slotted(a) {
|
|
204
|
-
background-color: rgba(var(--rgb-white), 0.2);
|
|
205
|
-
border-color: transparent;
|
|
206
|
-
color: var(--color-text04);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
button.dark-bg.hasContent {
|
|
210
|
-
padding: 0 var(--space-unit);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
@media (hover: hover) {
|
|
214
|
-
button.dark-bg:hover,
|
|
215
|
-
:host([variant="dark-bg"]) ::slotted(button:hover),
|
|
216
|
-
:host([variant="dark-bg"]) ::slotted(a:hover) {
|
|
217
|
-
background-color: rgba(var(--rgb-white), 0.1);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
button.dark-bg:active,
|
|
222
|
-
:host([variant="dark-bg"]) ::slotted(button:active),
|
|
223
|
-
:host([variant="dark-bg"]) ::slotted(a:active) {
|
|
224
|
-
background-color: rgba(var(--rgb-white), 0.3);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
button.dark-bg:disabled,
|
|
228
|
-
:host([variant="dark-bg"]) ::slotted(button:disabled) {
|
|
229
|
-
color: var(--color-disabled03);
|
|
230
|
-
background-color: rgba(var(--rgb-white), 0.05);
|
|
231
|
-
}
|
|
@@ -39,10 +39,12 @@ export class ZFileUpload {
|
|
|
39
39
|
}
|
|
40
40
|
handleAccessibility() {
|
|
41
41
|
if (this.filesNumber > 0) {
|
|
42
|
-
this.el.querySelector(
|
|
42
|
+
this.el.querySelector("z-file:last-child z-chip button").focus();
|
|
43
43
|
}
|
|
44
44
|
else {
|
|
45
|
-
this.type === ZFileUploadTypeEnum.default
|
|
45
|
+
this.type === ZFileUploadTypeEnum.default
|
|
46
|
+
? this.button.shadowRoot.querySelector("button").focus()
|
|
47
|
+
: this.uploadLink.focus();
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
50
|
checkFiles(files) {
|
|
@@ -81,9 +83,10 @@ export class ZFileUpload {
|
|
|
81
83
|
let fileFormatString = "";
|
|
82
84
|
let fileWeightString = "";
|
|
83
85
|
if (this.acceptedFormat) {
|
|
84
|
-
const fileFormat = this.acceptedFormat
|
|
86
|
+
const fileFormat = this.acceptedFormat
|
|
87
|
+
.split(", ")
|
|
85
88
|
.map((string) => string.substring(1).toUpperCase())
|
|
86
|
-
.join(
|
|
89
|
+
.join(", ");
|
|
87
90
|
fileFormatString = ` nei formati ${fileFormat}`;
|
|
88
91
|
}
|
|
89
92
|
if (this.fileMaxSize) {
|
|
@@ -105,12 +108,12 @@ export class ZFileUpload {
|
|
|
105
108
|
renderUploadButton() {
|
|
106
109
|
return [
|
|
107
110
|
this.renderInput(),
|
|
108
|
-
h("z-button", { onClick: () => this.input.click(), onKeyPress: (e) => {
|
|
109
|
-
if (e.code ==
|
|
111
|
+
h("z-button-deprecated", { onClick: () => this.input.click(), onKeyPress: (e) => {
|
|
112
|
+
if (e.code == "Space" || e.code == "Enter") {
|
|
110
113
|
e.preventDefault();
|
|
111
114
|
this.input.click();
|
|
112
115
|
}
|
|
113
|
-
}, id: "fileSelect", variant: this.buttonVariant, icon: "upload", ref: (val) => this.button = val }, "Allega"),
|
|
116
|
+
}, id: "fileSelect", variant: this.buttonVariant, icon: "upload", ref: (val) => (this.button = val) }, "Allega"),
|
|
114
117
|
];
|
|
115
118
|
}
|
|
116
119
|
renderUploadLink() {
|
|
@@ -120,11 +123,11 @@ export class ZFileUpload {
|
|
|
120
123
|
"Trascinalo qui o",
|
|
121
124
|
" ",
|
|
122
125
|
h("z-body", { tabIndex: 0, class: "upload-link", onClick: () => this.input.click(), onKeyPress: (e) => {
|
|
123
|
-
if (e.code ==
|
|
126
|
+
if (e.code == "Space" || e.code == "Enter") {
|
|
124
127
|
e.preventDefault();
|
|
125
128
|
this.input.click();
|
|
126
129
|
}
|
|
127
|
-
}, variant: "semibold", level: 1, ref: (val) => this.uploadLink = val }, "caricalo"),
|
|
130
|
+
}, variant: "semibold", level: 1, ref: (val) => (this.uploadLink = val) }, "caricalo"),
|
|
128
131
|
" ",
|
|
129
132
|
"dal tuo computer"),
|
|
130
133
|
];
|
|
@@ -166,7 +169,7 @@ export class ZFileUpload {
|
|
|
166
169
|
this.type == ZFileUploadTypeEnum.default
|
|
167
170
|
? this.renderDefaultMode()
|
|
168
171
|
: this.renderDragDropMode()),
|
|
169
|
-
!!this.invalidFiles.size && (h("z-modal", { tabIndex: 0, ref: (val) => this.errorModal = val, modaltitle: "Attenzione", onModalClose: () => this.invalidFiles = new Map(), onModalBackgroundClick: () => this.invalidFiles = new Map() }, this.handleErrorModalContent()))
|
|
172
|
+
!!this.invalidFiles.size && (h("z-modal", { tabIndex: 0, ref: (val) => (this.errorModal = val), modaltitle: "Attenzione", onModalClose: () => (this.invalidFiles = new Map()), onModalBackgroundClick: () => (this.invalidFiles = new Map()) }, this.handleErrorModalContent())),
|
|
170
173
|
];
|
|
171
174
|
}
|
|
172
175
|
static get is() { return "z-file-upload"; }
|
|
@@ -50,7 +50,7 @@ input#fileElem {
|
|
|
50
50
|
margin-bottom: var(--space-unit);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
:host > .container > z-button {
|
|
53
|
+
:host > .container > z-button-deprecated {
|
|
54
54
|
display: inline-block;
|
|
55
55
|
margin-top: calc(var(--space-unit) * 3);
|
|
56
56
|
}
|
|
@@ -73,7 +73,7 @@ input#fileElem {
|
|
|
73
73
|
|
|
74
74
|
/* Tablet breakpoint */
|
|
75
75
|
@media only screen and (min-width: 768px) {
|
|
76
|
-
:host > .container > z-button {
|
|
76
|
+
:host > .container > z-button-deprecated {
|
|
77
77
|
align-self: flex-start;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -8,7 +8,8 @@ import { ButtonSizeEnum, ButtonVariantEnum } from "../../../beans";
|
|
|
8
8
|
export class ZFooter {
|
|
9
9
|
constructor() {
|
|
10
10
|
this.creditsLinkId = "creditsLinkId";
|
|
11
|
-
this.emitReportAProblemButtonClick =
|
|
11
|
+
this.emitReportAProblemButtonClick =
|
|
12
|
+
this.emitReportAProblemButtonClick.bind(this);
|
|
12
13
|
}
|
|
13
14
|
componentWillLoad() {
|
|
14
15
|
if (this.data) {
|
|
@@ -81,21 +82,25 @@ export class ZFooter {
|
|
|
81
82
|
}
|
|
82
83
|
renderFooterProductInfo() {
|
|
83
84
|
var _a;
|
|
84
|
-
if (this.productName ||
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
if (this.productName ||
|
|
86
|
+
this.productVersion ||
|
|
87
|
+
this.productCreditsLink != null ||
|
|
88
|
+
this.showReportAProblemButton) {
|
|
89
|
+
const versionString = `${this.productName ? " versione" : "Versione"} ${this.productVersion}`;
|
|
90
|
+
const creditsObject = (h("z-body", { level: 5 },
|
|
91
|
+
(this.productName || this.productVersion) && " - ",
|
|
92
|
+
h("z-link", { htmlid: this.creditsLinkId, href: (_a = this.productCreditsLink) === null || _a === void 0 ? void 0 : _a.trim(), target: "_blank", textcolor: "white" }, "Credits")));
|
|
89
93
|
return (h("div", { id: "extension" },
|
|
90
|
-
h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth
|
|
94
|
+
h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth
|
|
95
|
+
? { "--mw": `${this.contentMaxWidth}px` }
|
|
96
|
+
: {} },
|
|
91
97
|
h("span", null,
|
|
92
|
-
this.productName && h("z-body", { level: 5, variant: "semibold" }, this.productName),
|
|
93
|
-
this.productVersion && h("z-body", { level: 5 }, versionString),
|
|
98
|
+
this.productName && (h("z-body", { level: 5, variant: "semibold" }, this.productName)),
|
|
99
|
+
this.productVersion && (h("z-body", { level: 5 }, versionString)),
|
|
94
100
|
this.productCreditsLink != null && creditsObject),
|
|
95
|
-
this.showReportAProblemButton &&
|
|
96
|
-
h("
|
|
97
|
-
|
|
98
|
-
h("z-button", { variant: ButtonVariantEnum["dark-bg"], size: ButtonSizeEnum.small, onClick: this.emitReportAProblemButtonClick }, "SEGNALA UN PROBLEMA")),
|
|
101
|
+
this.showReportAProblemButton && (h("div", null,
|
|
102
|
+
h("z-body", { level: 5 }, "Hai bisogno di aiuto?"),
|
|
103
|
+
h("z-button-deprecated", { variant: ButtonVariantEnum["dark-bg"], size: ButtonSizeEnum.small, onClick: this.emitReportAProblemButtonClick }, "SEGNALA UN PROBLEMA"))),
|
|
99
104
|
h("z-divider", { color: "gray500" }))));
|
|
100
105
|
}
|
|
101
106
|
}
|
|
@@ -205,7 +210,7 @@ export class ZFooter {
|
|
|
205
210
|
"optional": true,
|
|
206
211
|
"docs": {
|
|
207
212
|
"tags": [],
|
|
208
|
-
"text": "'undefined' or 'null' means 'don't show Credits',\nempty string means 'emit creditsLinkClick event'
|
|
213
|
+
"text": "'undefined' or 'null' means 'don't show Credits',\nempty string means 'emit creditsLinkClick event',\nnot empty string means 'open the url and emit creditsLinkClick event'"
|
|
209
214
|
},
|
|
210
215
|
"attribute": "product-credits-link",
|
|
211
216
|
"reflect": false
|
|
@@ -103,7 +103,7 @@ footer > section > div {
|
|
|
103
103
|
margin-top: var(--space-unit);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
#extension z-button {
|
|
106
|
+
#extension z-button-deprecated {
|
|
107
107
|
margin-left: var(--space-unit);
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -239,4 +239,4 @@ div.limited-width {
|
|
|
239
239
|
#extension {
|
|
240
240
|
padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 4) 0;
|
|
241
241
|
}
|
|
242
|
-
}
|
|
242
|
+
}
|
|
@@ -15,7 +15,8 @@ export class zModalLogin {
|
|
|
15
15
|
this.externalProviderCheck = false;
|
|
16
16
|
}
|
|
17
17
|
componentDidLoad() {
|
|
18
|
-
this.externalProviderCheck =
|
|
18
|
+
this.externalProviderCheck =
|
|
19
|
+
!!this.hostElement.querySelectorAll('[slot="provider"]').length;
|
|
19
20
|
}
|
|
20
21
|
emitLoginSubmit() {
|
|
21
22
|
const usernameInput = this.hostElement.querySelector("z-input#username");
|
|
@@ -65,7 +66,7 @@ export class zModalLogin {
|
|
|
65
66
|
return username;
|
|
66
67
|
}
|
|
67
68
|
renderZainoDigitaleButton() {
|
|
68
|
-
return (h("z-button", { variant: ButtonVariantEnum.secondary, onClick: () => this.emitZainoDigitaleClick(), class: "zainoDigitale" },
|
|
69
|
+
return (h("z-button-deprecated", { variant: ButtonVariantEnum.secondary, onClick: () => this.emitZainoDigitaleClick(), class: "zainoDigitale" },
|
|
69
70
|
h("div", { class: "zd" },
|
|
70
71
|
h("svg", { width: "18px", height: "24px", viewBox: "0 0 18 24" },
|
|
71
72
|
h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" },
|
|
@@ -91,12 +92,12 @@ export class zModalLogin {
|
|
|
91
92
|
h("z-link", { class: "forget", href: this.forgotPasswordUrl }, "Password dimenticata?"),
|
|
92
93
|
h("div", { class: "login" },
|
|
93
94
|
h("slot", { name: "login" },
|
|
94
|
-
h("z-button", { variant: ButtonVariantEnum.primary, onClick: () => this.emitLoginSubmit() }, "Accedi")))),
|
|
95
|
+
h("z-button-deprecated", { variant: ButtonVariantEnum.primary, onClick: () => this.emitLoginSubmit() }, "Accedi")))),
|
|
95
96
|
h("hr", null),
|
|
96
97
|
h("z-body", { class: "signup", level: 4, variant: "semibold" }, "Non hai ancora un account?"),
|
|
97
98
|
h("div", { class: "signup" },
|
|
98
99
|
h("slot", { name: "signup" },
|
|
99
|
-
h("z-button", { variant: ButtonVariantEnum.secondary, onClick: () => this.emitSignupClick() }, "Registrati"))),
|
|
100
|
+
h("z-button-deprecated", { variant: ButtonVariantEnum.secondary, onClick: () => this.emitSignupClick() }, "Registrati"))),
|
|
100
101
|
!this.externalProviderCheck && (h("div", { class: "providers" },
|
|
101
102
|
h("z-body", { class: "provider", level: 5, variant: "regular" }, "OPPURE ACCEDI CON:"),
|
|
102
103
|
h("slot", { name: "provider" },
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
align-items: stretch;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
z-button,
|
|
18
|
+
z-button-deprecated,
|
|
19
19
|
z-input,
|
|
20
|
-
::slotted(z-button),
|
|
20
|
+
::slotted(z-button-deprecated),
|
|
21
21
|
::slotted(z-input) {
|
|
22
22
|
display: inline-block;
|
|
23
23
|
width: 100%;
|
|
@@ -48,8 +48,8 @@ div.wrapper > form > div.password::slotted(z-input),
|
|
|
48
48
|
align-self: flex-end;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
div.wrapper > form > div.login::slotted(z-button),
|
|
52
|
-
:host div.wrapper > form > div.login z-button {
|
|
51
|
+
div.wrapper > form > div.login::slotted(z-button-deprecated),
|
|
52
|
+
:host div.wrapper > form > div.login z-button-deprecated {
|
|
53
53
|
margin: calc(var(--space-unit) * 3) 0;
|
|
54
54
|
align-self: flex-start;
|
|
55
55
|
}
|
|
@@ -62,8 +62,8 @@ div.wrapper > form > div.login::slotted(z-button),
|
|
|
62
62
|
margin-block-start: unset;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
div.wrapper > div.signup::slotted(z-button),
|
|
66
|
-
:host div.wrapper > div.signup z-button {
|
|
65
|
+
div.wrapper > div.signup::slotted(z-button-deprecated),
|
|
66
|
+
:host div.wrapper > div.signup z-button-deprecated {
|
|
67
67
|
display: inline-block;
|
|
68
68
|
margin: calc(var(--space-unit) * 2) 0;
|
|
69
69
|
}
|
|
@@ -101,8 +101,8 @@ slot-fb[name="provider"] {
|
|
|
101
101
|
|
|
102
102
|
/* Tablet breakpoint */
|
|
103
103
|
@media only screen and (min-width: 768px) {
|
|
104
|
-
z-button,
|
|
105
|
-
::slotted(z-button) {
|
|
104
|
+
z-button-deprecated,
|
|
105
|
+
::slotted(z-button-deprecated) {
|
|
106
106
|
width: initial;
|
|
107
107
|
}
|
|
108
108
|
|