@zanichelli/albe-web-components 4.0.1 → 4.0.4
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 +21 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-header.cjs.entry.js +1 -18
- package/dist/cjs/{z-app-switcher_12.cjs.entry.js → z-app-switcher_11.cjs.entry.js} +6 -37
- package/dist/cjs/z-button-deprecated.cjs.entry.js +38 -0
- package/dist/cjs/z-cookiebar.cjs.entry.js +2 -2
- package/dist/cjs/z-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/z-footer.cjs.entry.js +2 -2
- package/dist/cjs/z-input_2.cjs.entry.js +3 -3
- package/dist/cjs/z-modal-login.cjs.entry.js +3 -3
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-topbar.cjs.entry.js +2 -2
- package/dist/cjs/z-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/z-table-header.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +2 -2
- package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
- package/dist/collection/components/file-upload/z-file-upload/index.js +1 -1
- package/dist/collection/components/file-upload/z-file-upload/styles.css +2 -2
- package/dist/collection/components/footer/z-footer/index.js +2 -2
- package/dist/collection/components/footer/z-footer/styles.css +6 -1
- package/dist/collection/components/inputs/z-input/index.js +3 -3
- package/dist/collection/components/modal/z-modal-login/index.js +3 -3
- package/dist/collection/components/modal/z-modal-login/styles.css +8 -8
- package/dist/collection/components/navigation/z-app-header/index.js +0 -17
- package/dist/collection/components/navigation/z-app-header/styles.css +1 -1
- package/dist/collection/components/notification/z-cookiebar/index.js +1 -1
- package/dist/collection/components/notification/z-cookiebar/styles.css +2 -2
- package/dist/collection/components/notification/z-toast-notification/styles.css +1 -4
- 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/snowflakes/myz/card/z-myz-card-dictionary/index.js +2 -2
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +1 -1
- package/dist/collection/snowflakes/myz/topbar/index.js +2 -2
- package/dist/collection/snowflakes/myz/topbar/styles.css +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-header.entry.js +1 -18
- package/dist/esm/{z-app-switcher_12.entry.js → z-app-switcher_11.entry.js} +7 -37
- package/dist/esm/z-button-deprecated.entry.js +34 -0
- package/dist/esm/z-cookiebar.entry.js +2 -2
- package/dist/esm/z-file-upload.entry.js +2 -2
- package/dist/esm/z-footer.entry.js +3 -3
- package/dist/esm/z-input_2.entry.js +3 -3
- package/dist/esm/z-modal-login.entry.js +3 -3
- package/dist/esm/z-myz-card-dictionary.entry.js +3 -3
- package/dist/esm/z-myz-topbar.entry.js +3 -3
- package/dist/esm/z-table-cell.entry.js +1 -1
- package/dist/esm/z-table-header.entry.js +1 -1
- package/dist/esm/z-table.entry.js +2 -2
- package/dist/esm/z-toast-notification.entry.js +1 -1
- package/dist/types/components/navigation/z-app-header/index.d.ts +0 -4
- package/dist/web-components-library/p-0e256fdc.entry.js +1 -0
- package/dist/web-components-library/p-0e408871.entry.js +1 -0
- package/dist/web-components-library/p-1f73a6d8.entry.js +1 -0
- package/dist/web-components-library/p-292bc0c4.entry.js +1 -0
- package/dist/web-components-library/p-3edbd35c.entry.js +1 -0
- package/dist/web-components-library/p-55ddbfe9.entry.js +1 -0
- package/dist/web-components-library/p-6218514a.entry.js +1 -0
- package/dist/web-components-library/p-6c6b4e80.entry.js +1 -0
- package/dist/web-components-library/p-79408b00.entry.js +1 -0
- package/dist/web-components-library/p-8fbc2ce9.entry.js +1 -0
- package/dist/web-components-library/{p-ae60bbdf.entry.js → p-9074e1a5.entry.js} +1 -1
- package/dist/web-components-library/p-9a5ee6c2.entry.js +1 -0
- package/dist/web-components-library/p-dffdf60a.entry.js +1 -0
- package/dist/web-components-library/p-e2431b92.entry.js +1 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/p-0e256fdc.entry.js +1 -0
- package/www/build/p-0e408871.entry.js +1 -0
- package/www/build/p-1f73a6d8.entry.js +1 -0
- package/www/build/p-292bc0c4.entry.js +1 -0
- package/www/build/p-3edbd35c.entry.js +1 -0
- package/www/build/p-55ddbfe9.entry.js +1 -0
- package/www/build/p-6218514a.entry.js +1 -0
- package/www/build/p-6c6b4e80.entry.js +1 -0
- package/www/build/p-7614383b.js +1 -0
- package/www/build/p-79408b00.entry.js +1 -0
- package/www/build/p-88b56b6e.css +1 -0
- package/www/build/p-8fbc2ce9.entry.js +1 -0
- package/www/build/{p-ae60bbdf.entry.js → p-9074e1a5.entry.js} +1 -1
- package/www/build/p-9a5ee6c2.entry.js +1 -0
- package/www/build/p-dffdf60a.entry.js +1 -0
- package/www/build/p-e2431b92.entry.js +1 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +49 -49
- package/www/pages/notification.html +3 -2
- package/dist/web-components-library/p-12af8652.entry.js +0 -1
- package/dist/web-components-library/p-3252be36.entry.js +0 -1
- package/dist/web-components-library/p-9aa5d36c.entry.js +0 -1
- package/dist/web-components-library/p-a851af81.entry.js +0 -1
- package/dist/web-components-library/p-c9cdf4ee.entry.js +0 -1
- package/dist/web-components-library/p-cd8950d2.entry.js +0 -1
- package/dist/web-components-library/p-d39c0372.entry.js +0 -1
- package/dist/web-components-library/p-d8069dab.entry.js +0 -1
- package/dist/web-components-library/p-e84d6807.entry.js +0 -1
- package/dist/web-components-library/p-f322c5f0.entry.js +0 -1
- package/dist/web-components-library/p-f7c3e9c3.entry.js +0 -1
- package/dist/web-components-library/p-fa925198.entry.js +0 -1
- package/www/build/p-12af8652.entry.js +0 -1
- package/www/build/p-3252be36.entry.js +0 -1
- package/www/build/p-9aa5d36c.entry.js +0 -1
- package/www/build/p-a851af81.entry.js +0 -1
- package/www/build/p-b6035e27.js +0 -129
- package/www/build/p-c9cdf4ee.entry.js +0 -1
- package/www/build/p-cd8950d2.entry.js +0 -1
- package/www/build/p-d39c0372.entry.js +0 -1
- package/www/build/p-d8069dab.entry.js +0 -1
- package/www/build/p-e84d6807.entry.js +0 -1
- package/www/build/p-f322c5f0.entry.js +0 -1
- package/www/build/p-f7c3e9c3.entry.js +0 -1
- package/www/build/p-fa925198.entry.js +0 -1
- package/www/build/p-fcff1237.css +0 -812
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
6
|
const index$1 = require('./index-6b6a3299.js');
|
|
7
7
|
|
|
8
|
-
const stylesCss = ":host{width:100%}footer{width:auto;height:auto;box-sizing:border-box;font-family:var(--font-family-sans);font-size:13px;padding:var(--space-unit) 0;background-color:var(--gray900);color:var(--gray50)}footer *{box-sizing:border-box}footer>section>div{display:grid}#top{padding:0 calc(var(--space-unit) * 2)}#bottom{width:auto;height:auto;margin:0;padding:0 calc(var(--space-unit) * 2);white-space:pre-line;font-size:12px}#bottom>div{display:grid;grid-template-columns:1fr}#bottom>div>div.item{display:flex;flex-direction:column;align-items:flex-start;grid-column:span 1;height:auto;width:auto;padding:calc(var(--space-unit) * 2) 0}#bottom>div>div.item:nth-child(1){order:2}#bottom>div>div.item:nth-child(2){order:1;border-bottom:1px solid var(--gray50)}#bottom>div>div.item>div.social{display:grid;grid-template-columns:repeat(5, 1fr);grid-template-rows:repeat(auto-fill, 24px);column-gap:12px;padding:0;margin-bottom:0px}#bottom>div>div.bottom-links{display:none}#bottom>div>div.item>p{margin:var(--space-unit) 0;padding:var(--space-unit) 0}#bottom>div>div.item>p:first-child{margin-top:0}#bottom>div>div.item>p:last-child{margin-bottom:0}#bottom>div>div.logo>p>span{display:block}#extension{padding:0 calc(var(--space-unit) * 2)}#extension>div{display:grid;grid-template-columns:1fr;grid-row-gap:var(--space-unit);align-items:center}#extension z-divider{margin-top:var(--space-unit)}#extension z-button
|
|
8
|
+
const stylesCss = ":host{width:100%}footer{width:auto;height:auto;box-sizing:border-box;font-family:var(--font-family-sans);font-size:13px;padding:var(--space-unit) 0;background-color:var(--gray900);color:var(--gray50)}footer *{box-sizing:border-box}footer>section>div{display:grid}#top{padding:0 calc(var(--space-unit) * 2)}#bottom{width:auto;height:auto;margin:0;padding:0 calc(var(--space-unit) * 2);white-space:pre-line;font-size:12px}#bottom>div{display:grid;grid-template-columns:1fr}#bottom>div>div.item{display:flex;flex-direction:column;align-items:flex-start;grid-column:span 1;height:auto;width:auto;padding:calc(var(--space-unit) * 2) 0}#bottom>div>div.item:nth-child(1){order:2}#bottom>div>div.item:nth-child(2){order:1;border-bottom:1px solid var(--gray50)}#bottom>div>div.item>div.social{display:grid;grid-template-columns:repeat(5, 1fr);grid-template-rows:repeat(auto-fill, 24px);column-gap:12px;padding:0;margin-bottom:0px}#bottom>div>div.bottom-links{display:none}#bottom>div>div.item>p{margin:var(--space-unit) 0;padding:var(--space-unit) 0}#bottom>div>div.item>p:first-child{margin-top:0}#bottom>div>div.item>p:last-child{margin-bottom:0}#bottom>div>div.logo>p>span{display:block}#extension{padding:0 calc(var(--space-unit) * 2)}#extension>div{display:grid;grid-template-columns:1fr;grid-row-gap:var(--space-unit);align-items:center}#extension z-divider{margin-top:var(--space-unit)}#extension z-button{margin-left:var(--space-unit)}div.limited-width{margin:auto;max-width:var(--mw)}z-button{--color-primary01:var(--gray600);--color-hover-primary:var(--gray700)}@media only screen and (min-width: 768px){footer{padding:0}#top{background-color:var(--gray800);padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3)}#top z-footer-section:last-child{display:none}#bottom{background-color:var(--gray900);padding:0 calc(var(--space-unit) * 3)}#bottom>div{grid-template-columns:repeat(4, 1fr);grid-column-gap:var(--grid-tablet-margin)}#bottom>div>div.item{margin:0}#bottom>div>div.item:nth-child(1){order:1}#bottom>div>div.item:nth-child(2){order:2;border-bottom:none}#bottom>div>div.item>p{padding-top:0}#bottom>div>div.logo>z-logo{width:auto;height:39px}#bottom>div>div.bottom-links{display:block;grid-column:span 2;order:3}#bottom>div>div.bottom-links{display:grid;grid-template-columns:repeat(2, 1fr);grid-template-rows:repeat(auto-fill, 24px);grid-column-gap:var(--grid-tablet-margin);font-size:12px}#extension{margin:auto;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3) 0;background-color:var(--gray800);color:white;grid-template-columns:1fr 1fr}#extension>div>div{text-align:end}#extension z-divider{grid-column:1 / span 2}}@media only screen and (min-width: 1152px){#top{width:100%}#top>div{grid-template-columns:repeat(6, 1fr);grid-column-gap:var(--grid-desktop-margin)}#bottom>div>div.item:nth-child(1)>p:nth-of-type(2){font-size:10px}#bottom>div>div.item>p{padding-bottom:0;margin-bottom:calc(var(--space-unit) * 2)}#bottom>div>div.item>div.social{margin-top:0}#bottom>div>div.bottom-links{padding:calc(var(--space-unit) * 2) 0 0 0}#bottom>div>div.bottom-links{grid-template-columns:repeat(3, 1fr);grid-column-gap:var(--grid-desktop-margin);margin:0}}@media only screen and (min-width: 1366px){#top{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 4)}#bottom{padding:0 calc(var(--space-unit) * 4)}#extension{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 4) 0}}";
|
|
9
9
|
|
|
10
10
|
const ZFooter = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -67,7 +67,7 @@ const ZFooter = class {
|
|
|
67
67
|
const creditsObject = (index.h("z-body", { level: 5 }, (this.productName || this.productVersion) && " - ", index.h("z-link", { htmlid: this.creditsLinkId, href: (_a = this.productCreditsLink) === null || _a === void 0 ? void 0 : _a.trim(), target: "_blank", textcolor: "white" }, "Credits")));
|
|
68
68
|
return (index.h("div", { id: "extension" }, index.h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth
|
|
69
69
|
? { "--mw": `${this.contentMaxWidth}px` }
|
|
70
|
-
: {} }, index.h("span", null, this.productName && (index.h("z-body", { level: 5, variant: "semibold" }, this.productName)), this.productVersion && (index.h("z-body", { level: 5 }, versionString)), this.productCreditsLink != null && creditsObject), this.showReportAProblemButton && (index.h("div", null, index.h("z-body", { level: 5 }, "Hai bisogno di aiuto?"), index.h("z-button
|
|
70
|
+
: {} }, index.h("span", null, this.productName && (index.h("z-body", { level: 5, variant: "semibold" }, this.productName)), this.productVersion && (index.h("z-body", { level: 5 }, versionString)), this.productCreditsLink != null && creditsObject), this.showReportAProblemButton && (index.h("div", null, index.h("z-body", { level: 5 }, "Hai bisogno di aiuto?"), index.h("z-button", { size: index$1.ButtonSizeEnum.small, onClick: this.emitReportAProblemButtonClick }, "SEGNALA UN PROBLEMA"))), index.h("z-divider", { color: "gray500" }))));
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
// INFO: backward compatibility
|
|
@@ -147,15 +147,15 @@ const ZInput = class {
|
|
|
147
147
|
}
|
|
148
148
|
if (!this.icon)
|
|
149
149
|
return;
|
|
150
|
-
return (index.h("button", { class: "iconButton inputIcon", tabIndex: -1 }, index.h("z-icon", { name: this.icon })));
|
|
150
|
+
return (index.h("button", { type: "button", class: "iconButton inputIcon", tabIndex: -1 }, index.h("z-icon", { name: this.icon })));
|
|
151
151
|
}
|
|
152
152
|
renderResetIcon() {
|
|
153
153
|
if (!this.hasclearicon || !this.value || this.disabled || this.readonly)
|
|
154
154
|
return;
|
|
155
|
-
return (index.h("button", { class: "iconButton resetIcon", "aria-label": "cancella il contenuto dell'input", onClick: () => this.emitInputChange("") }, index.h("z-icon", { name: "multiply" })));
|
|
155
|
+
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" })));
|
|
156
156
|
}
|
|
157
157
|
renderShowHidePassword() {
|
|
158
|
-
return (index.h("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" })));
|
|
158
|
+
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" })));
|
|
159
159
|
}
|
|
160
160
|
renderMessage() {
|
|
161
161
|
if (utils.boolean(this.message) === false)
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
6
|
const index$1 = require('./index-6b6a3299.js');
|
|
7
7
|
|
|
8
|
-
const stylesCss = ".sc-z-modal-login-h{font-family:var(--dashboard-font);font-weight:var(--font-rg)}.sc-z-modal-login-h div.wrapper.sc-z-modal-login{color:var(--text-grey-800);padding:calc(var(--space-unit) * 4) calc(var(--space-unit) * 2)\n calc(var(--space-unit) * 3) calc(var(--space-unit) * 2);box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch}z-button
|
|
8
|
+
const stylesCss = ".sc-z-modal-login-h{font-family:var(--dashboard-font);font-weight:var(--font-rg)}.sc-z-modal-login-h div.wrapper.sc-z-modal-login{color:var(--text-grey-800);padding:calc(var(--space-unit) * 4) calc(var(--space-unit) * 2)\n calc(var(--space-unit) * 3) calc(var(--space-unit) * 2);box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch}z-button.sc-z-modal-login,z-input.sc-z-modal-login,.sc-z-modal-login-s>z-button,.sc-z-modal-login-s>z-input{display:inline-block;width:100%}z-link.sc-z-modal-login,.sc-z-modal-login-s>z-link{font-size:12px}.sc-z-modal-login-h div.wrapper.sc-z-modal-login>form.sc-z-modal-login{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch}div.wrapper>form>div.username.sc-z-modal-login-s>z-input,div.wrapper>form>div.password.sc-z-modal-login-s>z-input,.sc-z-modal-login-h div.wrapper.sc-z-modal-login>form.sc-z-modal-login>div.username.sc-z-modal-login z-input.sc-z-modal-login,.sc-z-modal-login-h div.wrapper.sc-z-modal-login>form.sc-z-modal-login>div.password.sc-z-modal-login z-input.sc-z-modal-login{margin-bottom:var(--space-unit)}.sc-z-modal-login-h div.wrapper.sc-z-modal-login>form.sc-z-modal-login>z-link.forget.sc-z-modal-login{font-size:12px;align-self:flex-end}div.wrapper>form>div.login.sc-z-modal-login-s>z-button,.sc-z-modal-login-h div.wrapper.sc-z-modal-login>form.sc-z-modal-login>div.login.sc-z-modal-login z-button.sc-z-modal-login{margin:calc(var(--space-unit) * 3) 0;align-self:flex-start}.sc-z-modal-login-h div.wrapper.sc-z-modal-login>hr.sc-z-modal-login{width:100%;margin-bottom:calc(var(--space-unit) * 3);border:none;border-top:var(--border-size-medium) solid var(--bg-grey-200);margin-block-start:unset}div.wrapper>div.signup.sc-z-modal-login-s>z-button,.sc-z-modal-login-h div.wrapper.sc-z-modal-login>div.signup.sc-z-modal-login z-button.sc-z-modal-login{display:inline-block;margin:calc(var(--space-unit) * 2) 0}.sc-z-modal-login-h div.providers.sc-z-modal-login{display:grid;grid-template-columns:1fr;grid-auto-rows:auto;gap:calc(var(--space-unit) * 2) 0px}slot-fb[name=\"provider\"].sc-z-modal-login{display:grid;grid-template-columns:1fr;grid-auto-rows:auto;gap:calc(var(--space-unit) * 2) 0px}.sc-z-modal-login-h div.providers.sc-z-modal-login>z-body.sc-z-modal-login{padding-top:calc(var(--space-unit) * 2)}.sc-z-modal-login-h div.wrapper.sc-z-modal-login>div.providers.sc-z-modal-login .zd.sc-z-modal-login{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:center;align-content:center}.sc-z-modal-login-h div.wrapper.sc-z-modal-login>div.providers.sc-z-modal-login .zd.sc-z-modal-login>svg.sc-z-modal-login{margin-right:var(--space-unit)}@media only screen and (min-width: 768px){z-button.sc-z-modal-login,.sc-z-modal-login-s>z-button{width:initial}.sc-z-modal-login-h div.wrapper.sc-z-modal-login{width:396px;padding:calc(var(--space-unit) * 3)}.sc-z-modal-login-h div.providers.sc-z-modal-login{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:auto;gap:var(--space-unit);justify-content:center;align-items:center}.sc-z-modal-login-h div.providers.sc-z-modal-login>z-body.sc-z-modal-login{grid-column-start:1;grid-column-end:3;padding-bottom:var(--space-unit)}.sc-z-modal-login-s>[slot=\"provider\"]{width:100%}slot-fb[name=\"provider\"].sc-z-modal-login{grid-column-start:1;grid-column-end:3;display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:auto;gap:var(--space-unit);justify-content:center;align-items:center}slot-fb[name=\"provider\"].sc-z-modal-login>*.sc-z-modal-login{width:100%}}@media only screen and (min-width: 1366px){.sc-z-modal-login-h div.wrapper.sc-z-modal-login{width:477px;padding:calc(var(--space-unit) * 4)}}";
|
|
9
9
|
|
|
10
10
|
const zModalLogin = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -70,10 +70,10 @@ const zModalLogin = class {
|
|
|
70
70
|
return username;
|
|
71
71
|
}
|
|
72
72
|
renderZainoDigitaleButton() {
|
|
73
|
-
return (index.h("z-button
|
|
73
|
+
return (index.h("z-button", { variant: index$1.ButtonVariantEnum.secondary, onClick: () => this.emitZainoDigitaleClick(), class: "zainoDigitale" }, index.h("div", { class: "zd" }, index.h("svg", { width: "18px", height: "24px", viewBox: "0 0 18 24" }, index.h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" }, index.h("g", { transform: "translate(-313.000000, -329.000000)", fill: "#E2001A", "fill-rule": "nonzero" }, index.h("g", { transform: "translate(25.000000, 191.000000)" }, index.h("g", null, index.h("g", { transform: "translate(0.000000, 100.000000)" }, index.h("g", null, index.h("g", { transform: "translate(276.000000, 28.000000)" }, index.h("path", { d: "M29.8953704,30.5632326 C29.9143039,30.3327754 29.5356326,30.0447041 29.1380277,29.8142469 C29.2516291,28.7963947 29.4409647,26.9719425 29.2705626,26.3189807 C29.0433598,25.416357 28.3428178,24.8018047 28.380685,23.822362 C28.4185521,22.8429193 28.1913493,16.5437582 27.0364017,15.1802202 C26.1654576,14.162368 25.4649156,12.8372396 23.4390239,12.2418921 C23.4390239,12.0498445 23.4390239,11.8770016 23.4200903,11.7425683 C23.3822232,10.9167637 21.9622056,10.090959 21.6214014,10.0525495 C21.2805972,10.01414 20.371786,9.95652568 20.0309818,10.0525495 C19.6901775,10.1293685 19.0464362,11.128016 18.7434992,11.4352922 C18.5920306,11.5889302 18.5541635,11.9538207 18.5730971,12.3187111 C17.437083,12.6836015 16.1306669,13.4325871 15.4490584,14.9497631 C14.2941108,17.676839 13.4799674,18.9251483 13.6693031,24.1680477 C13.5935688,25.1090809 13.2906318,25.6084046 13.1012961,25.6852237 C12.9119604,25.7620427 12.798359,25.9156808 12.7604919,26.1077284 C12.7226247,26.2805712 12.5522226,28.37389 12.7415583,29.8718612 C12.3818205,30.1023183 12.0788834,30.3519802 12.097817,30.5632326 C12.1546177,31.0625563 11.8516806,31.7731324 12.097817,32.0612038 C12.230352,32.2148419 12.7226247,32.5413228 13.3284989,32.8293942 C13.6125024,33.4631512 14.199443,33.9240655 15.467992,33.9816797 C18.1565586,34.0584988 26.2601254,33.8664512 26.5630625,33.9048607 C26.847066,33.9432702 28.4374857,34.0008845 28.683622,32.8293942 C29.2894962,32.5413228 29.781769,32.2148419 29.9143039,32.0612038 C30.1415067,31.7731324 29.8385697,31.0625563 29.8953704,30.5632326 Z M12.0319858,31.2 C12.1173988,31.1230769 12.3736379,31.0461538 12.743761,31 C12.857645,31.3230769 12.914587,31.6615385 13,32 C12.4021089,31.8153846 11.8611598,31.5692308 12.0319858,31.2 Z M21.1618497,12.8394441 C21.1618497,12.8394441 20.6763006,12.8165075 20,13 L20,12.9770634 C20,12.5642053 20.3121387,11.3256309 20.3988439,11.1192018 C20.4855491,10.9127728 21.265896,11.0274556 21.8554913,11.0733287 C22.6358382,11.0503922 22.4624277,11.2568212 22.8092486,11.9907912 C22.9306358,12.2889666 22.982659,12.6559516 23,13 C22.4797688,12.8623806 21.8728324,12.8165075 21.1618497,12.8394441 Z M28.3324094,30 C28.6648189,30.0833333 28.9085858,30.2222222 28.9750677,30.3888889 C29.1301921,31.1666667 28.5318551,31.6388889 28,32 C28.0221606,31.5 28.0664819,31.1111111 28.0664819,31.1111111 L28.2437669,30.6111111 L28.3324094,30 Z M21.8571429,23 L21.8571429,23.8 L22.7142857,23.8 L22.7142857,24.6 L23.5714286,24.6 L23.5714286,25.4 L24.4285714,25.4 L24.4285714,26.2 L25.2857143,26.2 L25.2857143,27 L26.1428571,27 L26.1428571,27.8 L27,27.8 L27,28.6 L24.4285714,28.6 L24.4285714,29.4 L25.2857143,29.4 L25.2857143,31 L24.4285714,31 L24.4285714,30.2 L23.5714286,30.2 L23.5714286,29.4 L22.7142857,29.4 L22.7142857,30.2 L21.8571429,30.2 L21.8571429,31 L21,31 L21,23 L21.8571429,23 Z" }))))))))), index.h("span", null, "ZAINO DIGITALE"))));
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (index.h("z-modal", { modaltitle: this.heading }, index.h("div", { class: "wrapper", slot: "modalContent" }, index.h("form", { method: "post" }, index.h("div", { class: "username" }, index.h("slot", { name: "username" }, index.h("z-input", { id: "username", label: "email o numero di cellulare", placeholder: "Inserisci l'email o il cellulare", autocomplete: "username", name: "username", status: this.status, message: this.message, onKeyUp: (e) => this.handleInputKeyUp(e), onInputChange: () => this.handleInputChange() }))), index.h("div", { class: "password" }, index.h("slot", { name: "password" }, index.h("z-input", { id: "password", label: "password", placeholder: "Inserisci la tua password", type: "password", name: "password", autocomplete: "current-password", status: this.status, message: this.pwdmessage, onKeyUp: (e) => this.handleInputKeyUp(e), onInputChange: () => this.handleInputChange() }))), index.h("z-link", { class: "forget", href: this.forgotPasswordUrl }, "Password dimenticata?"), index.h("div", { class: "login" }, index.h("slot", { name: "login" }, index.h("z-button
|
|
76
|
+
return (index.h("z-modal", { modaltitle: this.heading }, index.h("div", { class: "wrapper", slot: "modalContent" }, index.h("form", { method: "post" }, index.h("div", { class: "username" }, index.h("slot", { name: "username" }, index.h("z-input", { id: "username", label: "email o numero di cellulare", placeholder: "Inserisci l'email o il cellulare", autocomplete: "username", name: "username", status: this.status, message: this.message, onKeyUp: (e) => this.handleInputKeyUp(e), onInputChange: () => this.handleInputChange() }))), index.h("div", { class: "password" }, index.h("slot", { name: "password" }, index.h("z-input", { id: "password", label: "password", placeholder: "Inserisci la tua password", type: "password", name: "password", autocomplete: "current-password", status: this.status, message: this.pwdmessage, onKeyUp: (e) => this.handleInputKeyUp(e), onInputChange: () => this.handleInputChange() }))), index.h("z-link", { class: "forget", href: this.forgotPasswordUrl }, "Password dimenticata?"), index.h("div", { class: "login" }, index.h("slot", { name: "login" }, index.h("z-button", { variant: index$1.ButtonVariantEnum.primary, onClick: () => this.emitLoginSubmit() }, "Accedi")))), index.h("hr", null), index.h("z-body", { class: "signup", level: 4, variant: "semibold" }, "Non hai ancora un account?"), index.h("div", { class: "signup" }, index.h("slot", { name: "signup" }, index.h("z-button", { variant: index$1.ButtonVariantEnum.secondary, onClick: () => this.emitSignupClick() }, "Registrati"))), !this.externalProviderCheck && (index.h("div", { class: "providers" }, index.h("z-body", { class: "provider", level: 5, variant: "regular" }, "OPPURE ACCEDI CON:"), index.h("slot", { name: "provider" }, this.renderZainoDigitaleButton(), index.h("z-link", { icon: "informationsource", href: "https://www.zainodigitale.it/#/landing" }, "Cos'\u00E8 Zaino Digitale?")))))));
|
|
77
77
|
}
|
|
78
78
|
get hostElement() { return index.getElement(this); }
|
|
79
79
|
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
6
|
const index$1 = require('./index-6b6a3299.js');
|
|
7
7
|
|
|
8
|
-
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host z-myz-card{--card-overflow:visible}:host>div{position:relative;height:522px;width:100%;transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out, -webkit-transform 0.5s ease-out}:host>div .content{position:relative;height:522px;width:100%;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out, -webkit-transform 0.5s ease-out;z-index:2}:host>div .content.flipped{-webkit-transform:rotateY(180deg);transform:rotateY(180deg);margin-top:-2px}:host>div .front,:host>div .back{position:absolute;height:100%;width:100%;top:0;left:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}:host>div .front{z-index:2;top:0;left:0;-webkit-transform:rotateY(0deg);transform:rotateY(0deg)}:host>div .front z-button
|
|
8
|
+
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host z-myz-card{--card-overflow:visible}:host>div{position:relative;height:522px;width:100%;transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out, -webkit-transform 0.5s ease-out}:host>div .content{position:relative;height:522px;width:100%;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out, -webkit-transform 0.5s ease-out;z-index:2}:host>div .content.flipped{-webkit-transform:rotateY(180deg);transform:rotateY(180deg);margin-top:-2px}:host>div .front,:host>div .back{position:absolute;height:100%;width:100%;top:0;left:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}:host>div .front{z-index:2;top:0;left:0;-webkit-transform:rotateY(0deg);transform:rotateY(0deg)}:host>div .front z-button{position:absolute;z-index:3;top:calc(var(--space-unit) * 0.5);left:calc(-1 * var(--space-unit))}:host>div .back{padding:0 var(--space-unit);margin-left:calc(-1 * var(--space-unit));z-index:1;top:0;left:0;-webkit-transform:rotateY(180deg);transform:rotateY(180deg);display:flex;justify-content:center}.hideInfo{display:none}";
|
|
9
9
|
|
|
10
10
|
const ZMyzCardDictionary = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -28,7 +28,7 @@ const ZMyzCardDictionary = class {
|
|
|
28
28
|
this.cardFlipped.emit(showBack);
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return (index.h("div", null, index.h("z-myz-card", null, index.h("z-myz-card-header", { titolo: this.name }), index.h("div", { class: `content ${this.flipped ? "flipped" : ""}` }, index.h("div", { class: "front" }, index.h("z-myz-card-body", null, index.h("z-myz-card-cover", { slot: "cover", titolo: this.name, img: this.cover, faded: this.disabled })), index.h("z-button
|
|
31
|
+
return (index.h("div", null, index.h("z-myz-card", null, index.h("z-myz-card-header", { titolo: this.name }), index.h("div", { class: `content ${this.flipped ? "flipped" : ""}` }, index.h("div", { class: "front" }, index.h("z-myz-card-body", null, index.h("z-myz-card-cover", { slot: "cover", titolo: this.name, img: this.cover, faded: this.disabled })), index.h("z-button", { class: this.hideinfobtn ? "hideInfo" : "", variant: index$1.ButtonVariantEnum.secondary, icon: "informationsource", size: index$1.ButtonSizeEnum["x-small"], onClick: () => this.flipCard(true), disabled: this.flipped }, this.flipbuttonlabel)), index.h("div", { class: "back" }, index.h("slot", { name: "info" }))), index.h("slot", null))));
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
ZMyzCardDictionary.style = stylesCss;
|
|
@@ -6,7 +6,7 @@ const index = require('./index-84b7063a.js');
|
|
|
6
6
|
const index$1 = require('./index-6b6a3299.js');
|
|
7
7
|
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
8
8
|
|
|
9
|
-
const stylesCss = ":host a{cursor:pointer}header{position:sticky;top:0;z-index:99;display:grid;grid-template-columns:1fr;grid-template-rows:1fr;grid-template-areas:\"main-header\";margin-bottom:calc(var(--space-unit) * 6.5);font-family:var(--dashboard-font);font-weight:var(--font-rg)}.main-header{display:grid;grid-template-columns:2fr 2fr 4fr 100px;grid-template-rows:1fr;grid-template-areas:\"logo link-int link-ext login\";grid-area:main-header;grid-column-gap:calc(var(--space-unit) * 0.5);align-items:center;background-color:var(--bg-grey-900);height:auto;align-items:center;z-index:10}.main-header.myz-out{background-color:var(--bg-white)}.logo{grid-area:logo;padding:6px}z-logo{transform:scale(0.9)}.dropdown-menu{display:none}.dropdown-menu.hidden{visibility:hidden}.dropdown-links{grid-area:dropdown-links;list-style:none;display:block;max-height:32px;margin:0;padding:0}.arrow{fill:var(--text-grey-200)}.dropdown-links>li{list-style:none;display:inline-block;margin:0;padding:0}.dropdown-links>li>a{width:auto;height:auto;color:var(--myz-blue);font-size:14px;letter-spacing:0.18px;line-height:32px;text-decoration:none;margin:var(--space-unit);padding-bottom:calc(var(--space-unit) * 0.5)}.dropdown-links>li>a:hover,.dropdown-links>li>a.active{color:var(--text-grey-800);border-bottom:2px solid var(--myz-blue)}.mobile-header{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:center;align-items:center;width:100%;background-color:var(--bg-grey-900);z-index:inherit;height:52px;position:fixed;top:0px;left:0;z-index:999}.mobile-header.myz-out{background-color:var(--bg-white)}.mobile-header>z-button
|
|
9
|
+
const stylesCss = ":host a{cursor:pointer}header{position:sticky;top:0;z-index:99;display:grid;grid-template-columns:1fr;grid-template-rows:1fr;grid-template-areas:\"main-header\";margin-bottom:calc(var(--space-unit) * 6.5);font-family:var(--dashboard-font);font-weight:var(--font-rg)}.main-header{display:grid;grid-template-columns:2fr 2fr 4fr 100px;grid-template-rows:1fr;grid-template-areas:\"logo link-int link-ext login\";grid-area:main-header;grid-column-gap:calc(var(--space-unit) * 0.5);align-items:center;background-color:var(--bg-grey-900);height:auto;align-items:center;z-index:10}.main-header.myz-out{background-color:var(--bg-white)}.logo{grid-area:logo;padding:6px}z-logo{transform:scale(0.9)}.dropdown-menu{display:none}.dropdown-menu.hidden{visibility:hidden}.dropdown-links{grid-area:dropdown-links;list-style:none;display:block;max-height:32px;margin:0;padding:0}.arrow{fill:var(--text-grey-200)}.dropdown-links>li{list-style:none;display:inline-block;margin:0;padding:0}.dropdown-links>li>a{width:auto;height:auto;color:var(--myz-blue);font-size:14px;letter-spacing:0.18px;line-height:32px;text-decoration:none;margin:var(--space-unit);padding-bottom:calc(var(--space-unit) * 0.5)}.dropdown-links>li>a:hover,.dropdown-links>li>a.active{color:var(--text-grey-800);border-bottom:2px solid var(--myz-blue)}.mobile-header{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:center;align-items:center;width:100%;background-color:var(--bg-grey-900);z-index:inherit;height:52px;position:fixed;top:0px;left:0;z-index:999}.mobile-header.myz-out{background-color:var(--bg-white)}.mobile-header>z-button{margin:0 calc(var(--space-unit) * 2)}.mobile-content{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:center;justify-content:center;align-items:center;width:100%;background-color:var(--bg-grey-900);position:fixed;top:52px;left:0;z-index:999;max-height:0px;overflow:hidden;transition:max-height 1s cubic-bezier(0.46, 0, 1, 0.79)}.mobile-content.open{max-height:100vh;transition:max-height 2s cubic-bezier(0, 0.79, 0.46, 1)}.mobile-content.myz-out{background-color:var(--bg-white)}hr{display:block;position:relative;padding:0;margin:0px calc(var(--space-unit) * 4);height:0;width:calc(100% - 64px);max-height:0;font-size:1px;line-height:0;clear:both;border:none;border-top:1px solid var(--text-grey-700)}.menu-mobile{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-content:center;color:var(--bg-white);padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);cursor:pointer}.myz-out .menu-mobile{color:var(--text-grey-800)}.menu-toggle{grid-area:menu-toggle;display:flex;flex-direction:column;margin:0 var(--space-unit)}.menu-toggle .bar{width:20px;height:2px;background-color:var(--bg-white);margin:2px auto;transition:all 0.3s ease-in-out}.myz-out .menu-toggle .bar{background-color:var(--text-grey-800)}.menu-toggle:hover{cursor:pointer}#mobile-menu.is-active .bar:nth-child(2){opacity:0}#mobile-menu.is-active .bar:nth-child(1){transform:translateY(6px) rotate(45deg)}#mobile-menu.is-active .bar:nth-child(3){transform:translateY(-6px) rotate(-45deg)}.booktab-button,.mobile-login{overflow:hidden;height:0%;max-height:100%;width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:stretch;padding:0}.hidden{visibility:hidden}.login{grid-area:login;display:flex;justify-content:flex-end;padding:0 calc(var(--space-unit) * 2)}.login>z-button{color:var(--bg-white);fill:var(--bg-white)}.booktab-button>z-button{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:center;align-content:center;padding:calc(var(--space-unit) * 2) 0px calc(var(--space-unit) * 4) 0px}.link-ext{grid-area:link-ext;overflow:hidden;height:0%;max-height:100%;width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:stretch;padding:0}.link-ext-span{display:inline-block;width:100%;margin:calc(var(--space-unit) * 0.5) auto;box-sizing:border-box;margin:0px auto 0px auto;padding:0px calc(var(--space-unit) * 4) 0px calc(var(--space-unit) * 4);line-height:44px}.link-ext-span.myz:hover,.link-ext-span.myz:focus{background:var(--text-grey-800);border-radius:var(--border-radius);cursor:pointer}.link-ext z-link{font-size:12px;font-weight:var(--font-sb)}.link-int{overflow:hidden;max-height:100%;width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:stretch;padding:0}.link-int>span{width:100%;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;align-content:flex-start}.link-int>span>.menu-item{height:auto;color:var(--bg-white);letter-spacing:0.2px;font-weight:var(--font-sb);font-size:16px;text-decoration:none;outline:none;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:stretch;width:100%;box-sizing:border-box;margin:0px auto 0px auto;padding:0px calc(var(--space-unit) * 4) 0px calc(var(--space-unit) * 4);line-height:44px}.link-int>span>.menu-item:hover,.link-int>span>.menu-item:focus{border-radius:0px}.link-int>span>.menu-item>span{white-space:nowrap}.link-int>span>.menu-item>i{padding-top:calc(var(--space-unit) * 2);height:28px;width:24px;text-align:right}.link-int>span:first-child>.menu-item{margin-top:0}.link-int>span>svg{display:none}.link-int>.mobile-dropdown{padding:0 48px}.mobile-login>span{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;align-content:flex-start;fill:white}.mobile-login>span:focus,.mobile-login>span:hover{background:var(--text-grey-800)}.myz-out .mobile-login>span:focus,.myz-out .mobile-login>span:hover{background:none}.mobile-login>span>.menu-item{height:auto;color:var(--bg-white);letter-spacing:0.2px;font-weight:var(--font-sb);font-size:16px;text-decoration:none;outline:none;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:stretch;width:100%;box-sizing:border-box;margin:0px auto 0px auto;padding:0px calc(var(--space-unit) * 4) 0px calc(var(--space-unit) * 4);line-height:44px}.myz-out .mobile-login>span>.menu-item{color:var(--text-grey-800)}.mobile-login>span>.menu-item>i{padding-top:calc(var(--space-unit) * 2);height:28px;width:24px;text-align:right}.mobile-login>span>.menu-item>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-login>span>.menu-item>span>z-icon{padding-right:var(--space-unit);fill:var(--bg-white)}.menu-item>i::before{border-style:solid;border-width:0.12em 0.12em 0 0;content:\" \";display:inline-block;height:0.45em;left:0.16em;position:relative;top:-0.12em;transform:rotate(135deg) scale(1.2);vertical-align:top;width:0.45em;margin-top:2px;margin-left:2px;margin-right:6px;transition:all 0.5s ease}.menu-item.isopen>i::before{top:0.24em;transform:rotate(-45deg) scale(1.2);transition:all 0.5s ease}.mobile-dropdown{background:white;display:block;overflow:hidden;width:100%;box-sizing:border-box;margin:0px auto 0px auto;padding:0px calc(var(--space-unit) * 4) 0px calc(var(--space-unit) * 4);line-height:44px;max-height:0px;transition:max-height 0.3s ease}.mobile-dropdown.visible{max-height:100vh;transition:max-height 0.5s ease}@media only screen and (min-width: 768px){header{grid-template-columns:1fr 0.8fr 1.5fr 1.1fr 0.7fr;grid-template-rows:0.2fr auto;grid-template-areas:\"main-header main-header main-header main-header main-header\" \"dropdown-menu dropdown-menu dropdown-menu dropdown-menu dropdown-menu\";margin-bottom:0}header.myz-out{top:0px;grid-template-rows:1fr}.main-header{display:grid;grid-template-columns:170px auto auto 120px;grid-template-rows:1fr;grid-template-areas:\"logo link-int link-ext login\";grid-area:main-header}.dropdown-menu{display:grid;grid-template-columns:1fr;grid-template-rows:1fr;grid-template-areas:\"dropdown-links\";grid-area:dropdown-menu;grid-column-gap:var(--space-unit);background:var(--bg-grey-200);height:32px;visibility:visible;z-index:9;padding-left:160px}.booktab-button,.mobile-header,.mobile-login,.mobile-dropdown,.menu-mobile{display:none}.link-int{grid-area:link-int;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-content:center;max-height:46px;margin-top:calc(var(--space-unit) * 0.5)}.link-int>span{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-content:center;width:auto}.link-int>span>.menu-item{width:auto;height:auto;color:var(--bg-white);letter-spacing:0.2px;line-height:14px;font-weight:var(--font-sb);text-decoration:none;outline:none;padding:calc(var(--space-unit) * 1.5)}.link-int>span>svg{display:block}.menu-item>i{display:none}.link-int>span>.menu-item:focus,.link-int>span>.menu-item:hover{background:var(--text-grey-800);border-radius:var(--border-radius);cursor:pointer}.link-int>span>.menu-item::-moz-focus-inner{border:0}.link-int>span>.menu-item:focus+svg{visibility:visible}.link-ext{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-items:center;align-content:center;max-height:46px}.link-ext-span{width:auto;line-height:14px;margin:var(--space-unit);padding:calc(var(--space-unit) * 0.5) var(--space-unit)}}@media only screen and (min-width: 1152px){.main-header{grid-template-columns:170px auto auto 180px}}";
|
|
10
10
|
|
|
11
11
|
const ZMyzTopbar = class {
|
|
12
12
|
constructor(hostRef) {
|
|
@@ -132,7 +132,7 @@ const ZMyzTopbar = class {
|
|
|
132
132
|
if (this.hideloginbutton) {
|
|
133
133
|
return;
|
|
134
134
|
}
|
|
135
|
-
return (index.h("z-button
|
|
135
|
+
return (index.h("z-button", { htmlid: "login-button", variant: this.ismyz ? index$1.ButtonVariantEnum.secondary : index$1.ButtonVariantEnum.tertiary, icon: "login", size: index$1.ButtonSizeEnum.small }, "entra"));
|
|
136
136
|
}
|
|
137
137
|
renderMobileLoginDiv(userData) {
|
|
138
138
|
return (index.h("div", { id: "mobile-login", class: "mobile-login" }, index.h("span", null, index.h("a", { class: "menu-item", id: "user-data", onClick: () => this.handleToggleMobileMenuItem("user-data"), role: "button" }, index.h("span", null, index.h("z-icon", { name: "user-avatar", height: 16, width: 16 }), userData.name), index.h("i", null)), this.renderUserData(userData))));
|
|
@@ -25,7 +25,7 @@ const ZTableCell = class {
|
|
|
25
25
|
render() {
|
|
26
26
|
return (index.h(index.Host, null, this.showButton && (index.h("div", { class: index$2.classnames("button-container", {
|
|
27
27
|
visible: this.isMenuOpened,
|
|
28
|
-
}) }, index.h("div", { class: "button-content" }, index.h("z-button
|
|
28
|
+
}) }, index.h("div", { class: "button-content" }, index.h("z-button", { icon: "contextual-menu", variant: index$1.ButtonVariantEnum.tertiary, size: index$1.ButtonSizeEnum["x-small"], onClick: () => this.handleMenu() }), index.h("div", { class: index$2.classnames("contextual-menu-container", {
|
|
29
29
|
visible: this.isMenuOpened,
|
|
30
30
|
}) }, index.h("slot", { name: "contextual-menu" }))))), index.h("slot", null)));
|
|
31
31
|
}
|
|
@@ -79,7 +79,7 @@ const ZTableHeader = class {
|
|
|
79
79
|
? "arrow-up"
|
|
80
80
|
: "arrow-down", class: "arrow" }))), this.showButton && (index.h("div", { class: index$2.classnames("popover-container", {
|
|
81
81
|
visible: this.isMenuOpened,
|
|
82
|
-
}) }, index.h("z-popover", { position: index$1.PopoverPosition["below-center"], "background-color": "gray200" }, index.h("z-button
|
|
82
|
+
}) }, index.h("z-popover", { position: index$1.PopoverPosition["below-center"], "background-color": "gray200" }, index.h("z-button", { icon: "contextual-menu", variant: index$1.ButtonVariantEnum["tertiary"], size: index$1.ButtonSizeEnum["x-small"], slot: "trigger", onClick: () => this.handleMenuClick() }), index.h("div", { slot: "popover" }, index.h("slot", { name: "contextual-menu" })))))));
|
|
83
83
|
}
|
|
84
84
|
get host() { return index.getElement(this); }
|
|
85
85
|
};
|
|
@@ -58,9 +58,9 @@ const ZTable = class {
|
|
|
58
58
|
: index$1.ButtonSizeEnum.big;
|
|
59
59
|
const tableContentClass = `${!!this.hasTableBody ? "table-content" : ""}`;
|
|
60
60
|
if (this.hasTableBody) {
|
|
61
|
-
return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", { name: "table-header" }), index.h("div", { class: tableContentClass }, index.h("slot", { name: "table-body" }), index.h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (index.h("z-button
|
|
61
|
+
return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", { name: "table-header" }), index.h("div", { class: tableContentClass }, index.h("slot", { name: "table-body" }), index.h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (index.h("z-button", { slot: "cta1", variant: index$1.ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (index.h("z-button", { slot: "cta2", variant: index$1.ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))))));
|
|
62
62
|
}
|
|
63
|
-
return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", { name: "table-header" })), index.h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (index.h("z-button
|
|
63
|
+
return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", { name: "table-header" })), index.h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (index.h("z-button", { slot: "cta1", variant: index$1.ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (index.h("z-button", { slot: "cta2", variant: index$1.ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))));
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
66
|
const tableClass = `table ${this.empty ? "table-empty" : ""} ${this.bordered ? "table-bordered" : ""}
|
|
@@ -8,7 +8,7 @@ const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
|
8
8
|
const hammer = require('./hammer-4f20813e.js');
|
|
9
9
|
require('./_commonjsHelpers-537d719a.js');
|
|
10
10
|
|
|
11
|
-
const stylesCss = ":host{display:inline-block;min-width:200px;width:100vw}:host(.slide-in-left){animation:slideinleft 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-right){animation:slideinright 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-down){animation:slideindown 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-up){animation:slideinup 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-left){animation:slideoutleft 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-right){animation:slideoutright 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-down){animation:slideoutdown 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-up){animation:slideoutup 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}@keyframes slideinleft{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes slideinright{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes slideinup{0%{transform:translateY(100%);opacity:0}100%{transform:translateY(0);opacity:100%}}@keyframes slideindown{0%{transform:translateY(-100%);opacity:0}100%{transform:translateY(0);opacity:100%}}@keyframes slideoutleft{0%{transform:translateX(var(--percentuale));opacity:calc(100-var(--percentuale))}100%{transform:translateX(-100%);opacity:0%}}@keyframes slideoutright{0%{transform:translateX(var(--percentuale));opacity:calc(100-var(--percentuale))}100%{transform:translateX(100%);opacity:0%}}@keyframes slideoutup{0%{transform:translateY(var(--percentuale));opacity:100%}100%{transform:translateY(-100%);opacity:0}}@keyframes slideoutdown{0%{transform:translateY(var(--percentuale));opacity:100%}100%{transform:translateY(100%);opacity:0}}:host>#external-container{font-family:var(--font-family-sans);font-weight:var(--font-rg);border-radius:4px;font-size:14px;letter-spacing:0.16px;box-sizing:border-box;min-height:52px;padding:calc(var(--space-unit) * 1) calc(var(--space-unit) * 2);display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow-3)}:host>#external-container.mobile-wrapped>#icon{align-self:flex-start}:host>#external-container.several-lines-padding{padding:calc(var(--space-unit) * 2)}:host>#external-container>#flex-container{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;width:100%}:host>#external-container #text{color:var(--color-white);line-height:20px;margin-right:calc(var(--space-unit) * 2);letter-spacing:0.16px;text-align:left}:host>#external-container #text>.title{margin-right:4px;font-weight:600}:host>#external-container.mobile-wrapped #button ::slotted(z-button
|
|
11
|
+
const stylesCss = ":host{display:inline-block;min-width:200px;width:100vw}:host(.slide-in-left){animation:slideinleft 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-right){animation:slideinright 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-down){animation:slideindown 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-up){animation:slideinup 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-left){animation:slideoutleft 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-right){animation:slideoutright 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-down){animation:slideoutdown 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-up){animation:slideoutup 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}@keyframes slideinleft{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes slideinright{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes slideinup{0%{transform:translateY(100%);opacity:0}100%{transform:translateY(0);opacity:100%}}@keyframes slideindown{0%{transform:translateY(-100%);opacity:0}100%{transform:translateY(0);opacity:100%}}@keyframes slideoutleft{0%{transform:translateX(var(--percentuale));opacity:calc(100-var(--percentuale))}100%{transform:translateX(-100%);opacity:0%}}@keyframes slideoutright{0%{transform:translateX(var(--percentuale));opacity:calc(100-var(--percentuale))}100%{transform:translateX(100%);opacity:0%}}@keyframes slideoutup{0%{transform:translateY(var(--percentuale));opacity:100%}100%{transform:translateY(-100%);opacity:0}}@keyframes slideoutdown{0%{transform:translateY(var(--percentuale));opacity:100%}100%{transform:translateY(100%);opacity:0}}:host>#external-container{font-family:var(--font-family-sans);font-weight:var(--font-rg);border-radius:4px;font-size:14px;letter-spacing:0.16px;box-sizing:border-box;min-height:52px;padding:calc(var(--space-unit) * 1) calc(var(--space-unit) * 2);display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow-3)}:host>#external-container.mobile-wrapped>#icon{align-self:flex-start}:host>#external-container.several-lines-padding{padding:calc(var(--space-unit) * 2)}:host>#external-container>#flex-container{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;width:100%}:host>#external-container #text{color:var(--color-white);line-height:20px;margin-right:calc(var(--space-unit) * 2);letter-spacing:0.16px;text-align:left}:host>#external-container #text>.title{margin-right:4px;font-weight:600}:host>#external-container.mobile-wrapped #button ::slotted(z-button){margin-top:calc(var(--space-unit) * 2)}:host>#external-container #icon{cursor:pointer;fill:var(--color-white);margin-left:calc(var(--space-unit) * 2)}:host>#external-container.dark{background:var(--gray800)}:host>#external-container.light{background:var(--color-background)}:host>#external-container.light #icon,:host>#external-container.warning #text,:host>#external-container.warning #icon{fill:var(--color-icon01)}:host>#external-container.light #text,:host>#external-container.warning #text{color:var(--grey800)}:host>#external-container.accent{background:var(--color-primary01)}:host>#external-container.error{background:var(--color-error-default)}:host>#external-container.success{background:var(--color-success-default)}:host>#external-container.warning{background:var(--color-warning-default)}@media only screen and (min-width: 768px){:host{width:unset;max-width:50vw}:host>#external-container>#flex-container{flex-wrap:nowrap}:host>#external-container #text{width:100%}}@media only screen and (min-width: 1366px){:host{width:unset;max-width:33vw}}";
|
|
12
12
|
|
|
13
13
|
const ZToastNotification = class {
|
|
14
14
|
constructor(hostRef) {
|
|
@@ -108,7 +108,7 @@ export class ZFileUpload {
|
|
|
108
108
|
renderUploadButton() {
|
|
109
109
|
return [
|
|
110
110
|
this.renderInput(),
|
|
111
|
-
h("z-button
|
|
111
|
+
h("z-button", { onClick: () => this.input.click(), onKeyPress: (e) => {
|
|
112
112
|
if (e.code == "Space" || e.code == "Enter") {
|
|
113
113
|
e.preventDefault();
|
|
114
114
|
this.input.click();
|
|
@@ -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 {
|
|
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 {
|
|
77
77
|
align-self: flex-start;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, h, Prop, Event, Listen } from "@stencil/core";
|
|
2
|
-
import { ButtonSizeEnum
|
|
2
|
+
import { ButtonSizeEnum } from "../../../beans";
|
|
3
3
|
/**
|
|
4
4
|
* @slot - main navigation
|
|
5
5
|
* @slot links - bottom navigation
|
|
@@ -100,7 +100,7 @@ export class ZFooter {
|
|
|
100
100
|
this.productCreditsLink != null && creditsObject),
|
|
101
101
|
this.showReportAProblemButton && (h("div", null,
|
|
102
102
|
h("z-body", { level: 5 }, "Hai bisogno di aiuto?"),
|
|
103
|
-
h("z-button
|
|
103
|
+
h("z-button", { size: ButtonSizeEnum.small, onClick: this.emitReportAProblemButtonClick }, "SEGNALA UN PROBLEMA"))),
|
|
104
104
|
h("z-divider", { color: "gray500" }))));
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -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 {
|
|
107
107
|
margin-left: var(--space-unit);
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -112,6 +112,11 @@ div.limited-width {
|
|
|
112
112
|
max-width: var(--mw);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
z-button {
|
|
116
|
+
--color-primary01: var(--gray600);
|
|
117
|
+
--color-hover-primary: var(--gray700);
|
|
118
|
+
}
|
|
119
|
+
|
|
115
120
|
/* Tablet breakpoint */
|
|
116
121
|
@media only screen and (min-width: 768px) {
|
|
117
122
|
footer {
|
|
@@ -141,17 +141,17 @@ export class ZInput {
|
|
|
141
141
|
}
|
|
142
142
|
if (!this.icon)
|
|
143
143
|
return;
|
|
144
|
-
return (h("button", { class: "iconButton inputIcon", tabIndex: -1 },
|
|
144
|
+
return (h("button", { type: "button", class: "iconButton inputIcon", tabIndex: -1 },
|
|
145
145
|
h("z-icon", { name: this.icon })));
|
|
146
146
|
}
|
|
147
147
|
renderResetIcon() {
|
|
148
148
|
if (!this.hasclearicon || !this.value || this.disabled || this.readonly)
|
|
149
149
|
return;
|
|
150
|
-
return (h("button", { class: "iconButton resetIcon", "aria-label": "cancella il contenuto dell'input", onClick: () => this.emitInputChange("") },
|
|
150
|
+
return (h("button", { type: "button", class: "iconButton resetIcon", "aria-label": "cancella il contenuto dell'input", onClick: () => this.emitInputChange("") },
|
|
151
151
|
h("z-icon", { name: "multiply" })));
|
|
152
152
|
}
|
|
153
153
|
renderShowHidePassword() {
|
|
154
|
-
return (h("button", { class: "iconButton showHidePasswordIcon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) },
|
|
154
|
+
return (h("button", { type: "button", class: "iconButton showHidePasswordIcon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) },
|
|
155
155
|
h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled" })));
|
|
156
156
|
}
|
|
157
157
|
renderMessage() {
|
|
@@ -66,7 +66,7 @@ export class zModalLogin {
|
|
|
66
66
|
return username;
|
|
67
67
|
}
|
|
68
68
|
renderZainoDigitaleButton() {
|
|
69
|
-
return (h("z-button
|
|
69
|
+
return (h("z-button", { variant: ButtonVariantEnum.secondary, onClick: () => this.emitZainoDigitaleClick(), class: "zainoDigitale" },
|
|
70
70
|
h("div", { class: "zd" },
|
|
71
71
|
h("svg", { width: "18px", height: "24px", viewBox: "0 0 18 24" },
|
|
72
72
|
h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" },
|
|
@@ -92,12 +92,12 @@ export class zModalLogin {
|
|
|
92
92
|
h("z-link", { class: "forget", href: this.forgotPasswordUrl }, "Password dimenticata?"),
|
|
93
93
|
h("div", { class: "login" },
|
|
94
94
|
h("slot", { name: "login" },
|
|
95
|
-
h("z-button
|
|
95
|
+
h("z-button", { variant: ButtonVariantEnum.primary, onClick: () => this.emitLoginSubmit() }, "Accedi")))),
|
|
96
96
|
h("hr", null),
|
|
97
97
|
h("z-body", { class: "signup", level: 4, variant: "semibold" }, "Non hai ancora un account?"),
|
|
98
98
|
h("div", { class: "signup" },
|
|
99
99
|
h("slot", { name: "signup" },
|
|
100
|
-
h("z-button
|
|
100
|
+
h("z-button", { variant: ButtonVariantEnum.secondary, onClick: () => this.emitSignupClick() }, "Registrati"))),
|
|
101
101
|
!this.externalProviderCheck && (h("div", { class: "providers" },
|
|
102
102
|
h("z-body", { class: "provider", level: 5, variant: "regular" }, "OPPURE ACCEDI CON:"),
|
|
103
103
|
h("slot", { name: "provider" },
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
align-items: stretch;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
z-button
|
|
18
|
+
z-button,
|
|
19
19
|
z-input,
|
|
20
|
-
::slotted(z-button
|
|
20
|
+
::slotted(z-button),
|
|
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),
|
|
52
|
+
:host div.wrapper > form > div.login z-button {
|
|
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-deprecated),
|
|
|
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),
|
|
66
|
+
:host div.wrapper > div.signup z-button {
|
|
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,
|
|
105
|
+
::slotted(z-button) {
|
|
106
106
|
width: initial;
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -43,7 +43,6 @@ export class ZAppHeader {
|
|
|
43
43
|
});
|
|
44
44
|
this.openDrawer = this.openDrawer.bind(this);
|
|
45
45
|
this.closeDrawer = this.closeDrawer.bind(this);
|
|
46
|
-
this.setStuckPosition = this.setStuckPosition.bind(this);
|
|
47
46
|
}
|
|
48
47
|
emitStickingEvent() {
|
|
49
48
|
this.sticking.emit(this.stucked);
|
|
@@ -51,7 +50,6 @@ export class ZAppHeader {
|
|
|
51
50
|
componentDidLoad() {
|
|
52
51
|
this.collectMenuElements();
|
|
53
52
|
this.onStuckMode();
|
|
54
|
-
this.setStuckPosition();
|
|
55
53
|
}
|
|
56
54
|
get title() {
|
|
57
55
|
const titleElement = this.hostElement.querySelector('[slot="title"]');
|
|
@@ -72,14 +70,6 @@ export class ZAppHeader {
|
|
|
72
70
|
this.menuLength = menuElements.length;
|
|
73
71
|
this.setMenuFloatingMode();
|
|
74
72
|
}
|
|
75
|
-
/**
|
|
76
|
-
* Set `z-app-topbar`'s height as stucked header top offset.
|
|
77
|
-
*/
|
|
78
|
-
setStuckPosition() {
|
|
79
|
-
const topbar = this.hostElement.ownerDocument.querySelector('z-app-topbar');
|
|
80
|
-
const top = topbar ? topbar.clientHeight : 0;
|
|
81
|
-
this.hostElement.style.setProperty('--app-header-top-offset', `${top}px`);
|
|
82
|
-
}
|
|
83
73
|
onStuckMode() {
|
|
84
74
|
if (this.stuck) {
|
|
85
75
|
this.enableStuckObserver();
|
|
@@ -105,13 +95,6 @@ export class ZAppHeader {
|
|
|
105
95
|
return;
|
|
106
96
|
}
|
|
107
97
|
this.emitStickingEvent();
|
|
108
|
-
if (this.stucked) {
|
|
109
|
-
this.setStuckPosition();
|
|
110
|
-
scrollParent.addEventListener('scroll', this.setStuckPosition);
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
scrollParent.removeEventListener('scroll', this.setStuckPosition);
|
|
114
|
-
}
|
|
115
98
|
}
|
|
116
99
|
setMenuFloatingMode() {
|
|
117
100
|
if (!this.menuElements) {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
/**
|
|
44
44
|
* Variable to set stucked header and drawer's top offset. Useful when something is absolutely positioned above the header.
|
|
45
45
|
*/
|
|
46
|
-
--app-header-top-offset:
|
|
46
|
+
--app-header-top-offset: 48px;
|
|
47
47
|
|
|
48
48
|
--app-header-drawer-trigger-size: calc(var(--space-unit) * 4);
|
|
49
49
|
|
|
@@ -28,7 +28,7 @@ export class ZCookiebar {
|
|
|
28
28
|
"Se continui a navigare ci permetti di farlo secondo le regole spiegate nella nostra informativa sulla privacy relativa ai \u00A0",
|
|
29
29
|
h("a", { href: this.cookiepolicyurl, target: "_blank" }, "cookie"),
|
|
30
30
|
"."))),
|
|
31
|
-
h("z-button
|
|
31
|
+
h("z-button", { variant: ButtonVariantEnum.primary, onClick: (ev) => this.handleOkButtonClick(ev), onKeyUp: (ev) => this.handleOkButtonKeyUp(ev) }, "ACCETTA")));
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
34
|
return (h("z-candybar", { class: `${this.hide ? "hidden" : ""}` }, this.renderContentSlot()));
|
|
@@ -58,7 +58,7 @@ z-candybar.hidden {
|
|
|
58
58
|
z-index: 1000;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.content > z-button
|
|
61
|
+
.content > z-button {
|
|
62
62
|
margin: 0;
|
|
63
63
|
width: 100%;
|
|
64
64
|
}
|
|
@@ -87,7 +87,7 @@ z-candybar.hidden {
|
|
|
87
87
|
padding: 0;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.content > z-button
|
|
90
|
+
.content > z-button {
|
|
91
91
|
margin: 0;
|
|
92
92
|
width: initial;
|
|
93
93
|
}
|
|
@@ -172,10 +172,7 @@
|
|
|
172
172
|
font-weight: 600;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
:host
|
|
176
|
-
> #external-container.mobile-wrapped
|
|
177
|
-
#button
|
|
178
|
-
::slotted(z-button-deprecated) {
|
|
175
|
+
:host > #external-container.mobile-wrapped #button ::slotted(z-button) {
|
|
179
176
|
margin-top: calc(var(--space-unit) * 2);
|
|
180
177
|
}
|
|
181
178
|
|
|
@@ -66,15 +66,15 @@ export class ZTable {
|
|
|
66
66
|
h("div", { class: tableContentClass },
|
|
67
67
|
h("slot", { name: "table-body" }),
|
|
68
68
|
h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle },
|
|
69
|
-
!!this.callToActionLabel && (h("z-button
|
|
70
|
-
!!this.callToActionTwoLabel && (h("z-button
|
|
69
|
+
!!this.callToActionLabel && (h("z-button", { slot: "cta1", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)),
|
|
70
|
+
!!this.callToActionTwoLabel && (h("z-button", { slot: "cta2", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))))));
|
|
71
71
|
}
|
|
72
72
|
return (h(Host, null,
|
|
73
73
|
h("div", { class: tableClass },
|
|
74
74
|
h("slot", { name: "table-header" })),
|
|
75
75
|
h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle },
|
|
76
|
-
!!this.callToActionLabel && (h("z-button
|
|
77
|
-
!!this.callToActionTwoLabel && (h("z-button
|
|
76
|
+
!!this.callToActionLabel && (h("z-button", { slot: "cta1", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)),
|
|
77
|
+
!!this.callToActionTwoLabel && (h("z-button", { slot: "cta2", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))));
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
80
|
const tableClass = `table ${this.empty ? "table-empty" : ""} ${this.bordered ? "table-bordered" : ""}
|
|
@@ -19,7 +19,7 @@ export class ZTableCell {
|
|
|
19
19
|
visible: this.isMenuOpened,
|
|
20
20
|
}) },
|
|
21
21
|
h("div", { class: "button-content" },
|
|
22
|
-
h("z-button
|
|
22
|
+
h("z-button", { icon: "contextual-menu", variant: ButtonVariantEnum.tertiary, size: ButtonSizeEnum["x-small"], onClick: () => this.handleMenu() }),
|
|
23
23
|
h("div", { class: classNames("contextual-menu-container", {
|
|
24
24
|
visible: this.isMenuOpened,
|
|
25
25
|
}) },
|
|
@@ -74,7 +74,7 @@ export class ZTableHeader {
|
|
|
74
74
|
visible: this.isMenuOpened,
|
|
75
75
|
}) },
|
|
76
76
|
h("z-popover", { position: PopoverPosition["below-center"], "background-color": "gray200" },
|
|
77
|
-
h("z-button
|
|
77
|
+
h("z-button", { icon: "contextual-menu", variant: ButtonVariantEnum["tertiary"], size: ButtonSizeEnum["x-small"], slot: "trigger", onClick: () => this.handleMenuClick() }),
|
|
78
78
|
h("div", { slot: "popover" },
|
|
79
79
|
h("slot", { name: "contextual-menu" })))))));
|
|
80
80
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, Prop, h, Listen, Event } from "@stencil/core";
|
|
2
|
-
import { ButtonVariantEnum } from "../../../../beans";
|
|
2
|
+
import { ButtonSizeEnum, ButtonVariantEnum } from "../../../../beans";
|
|
3
3
|
/**
|
|
4
4
|
* @slot - generic card slot
|
|
5
5
|
* @slot info - flipped card info
|
|
@@ -30,7 +30,7 @@ export class ZMyzCardDictionary {
|
|
|
30
30
|
h("div", { class: "front" },
|
|
31
31
|
h("z-myz-card-body", null,
|
|
32
32
|
h("z-myz-card-cover", { slot: "cover", titolo: this.name, img: this.cover, faded: this.disabled })),
|
|
33
|
-
h("z-button
|
|
33
|
+
h("z-button", { class: this.hideinfobtn ? "hideInfo" : "", variant: ButtonVariantEnum.secondary, icon: "informationsource", size: ButtonSizeEnum["x-small"], onClick: () => this.flipCard(true), disabled: this.flipped }, this.flipbuttonlabel)),
|
|
34
34
|
h("div", { class: "back" },
|
|
35
35
|
h("slot", { name: "info" }))),
|
|
36
36
|
h("slot", null))));
|