@zanichelli/albe-web-components 6.5.0-offcanvasTest3 → 6.5.1
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 +15 -0
- package/dist/cjs/index-e3299e0a.js +20 -36
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-header_2.cjs.entry.js +153 -0
- package/dist/cjs/z-app-switcher.cjs.entry.js +29 -0
- package/dist/cjs/{z-modal.cjs.entry.js → z-dragdrop-area_3.cjs.entry.js} +43 -0
- package/dist/cjs/z-input_2.cjs.entry.js +1 -1
- package/dist/cjs/{z-app-switcher_2.cjs.entry.js → z-logo.cjs.entry.js} +0 -23
- package/dist/cjs/{z-icon_2.cjs.entry.js → z-offcanvas.cjs.entry.js} +0 -20
- package/dist/cjs/z-table-row.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +0 -4
- package/dist/collection/components/inputs/z-input/styles.css +3 -0
- package/dist/collection/components/z-table/z-table-row/index.js +2 -2
- package/dist/esm/index-a2ca4b97.js +20 -36
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-ccb4d66f.js → utils-6cf7efe2.js} +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-header_2.entry.js +148 -0
- package/dist/esm/z-app-switcher.entry.js +25 -0
- package/dist/esm/z-chip.entry.js +1 -1
- package/dist/esm/z-combobox.entry.js +1 -1
- package/dist/esm/{z-modal.entry.js → z-dragdrop-area_3.entry.js} +42 -1
- package/dist/esm/z-file-upload.entry.js +1 -1
- package/dist/esm/z-input_2.entry.js +2 -2
- package/dist/esm/{z-app-switcher_2.entry.js → z-logo.entry.js} +2 -24
- package/dist/esm/z-myz-card-info.entry.js +1 -1
- package/dist/esm/z-myz-list-item.entry.js +1 -1
- package/dist/esm/{z-icon_2.entry.js → z-offcanvas.entry.js} +2 -21
- package/dist/esm/z-pocket_3.entry.js +1 -1
- package/dist/esm/z-popover.entry.js +1 -1
- package/dist/esm/z-select.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +1 -1
- package/dist/esm/z-slideshow.entry.js +1 -1
- package/dist/esm/z-table-header.entry.js +1 -1
- package/dist/esm/z-table-row.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +1 -1
- package/dist/types/components.d.ts +2 -230
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/p-1cb23bbb.entry.js +1 -0
- package/dist/web-components-library/p-1d66b265.entry.js +1 -0
- package/{www/build/p-9965827d.entry.js → dist/web-components-library/p-26033729.entry.js} +1 -1
- package/dist/web-components-library/{p-8bf0844b.entry.js → p-53065788.entry.js} +1 -1
- package/dist/web-components-library/{p-1b6279a6.entry.js → p-5c62387a.entry.js} +1 -1
- package/dist/web-components-library/{p-20a3247c.entry.js → p-6c163539.entry.js} +1 -1
- package/dist/web-components-library/{p-279655eb.entry.js → p-7b3b99ee.entry.js} +1 -1
- package/{www/build/p-3d9ecc23.entry.js → dist/web-components-library/p-7ea553e9.entry.js} +1 -1
- package/dist/web-components-library/{p-547d3b1f.entry.js → p-8305bbcc.entry.js} +1 -1
- package/dist/web-components-library/{p-cd43f80d.js → p-8ebe4adf.js} +1 -1
- package/dist/web-components-library/{p-98c94e81.entry.js → p-91a74348.entry.js} +1 -1
- package/dist/web-components-library/{p-c25b0b2a.entry.js → p-93142fac.entry.js} +1 -1
- package/dist/web-components-library/p-9a613586.entry.js +1 -0
- package/{www/build/p-411cbcd6.entry.js → dist/web-components-library/p-a05ce0a6.entry.js} +1 -1
- package/{www/build/p-bdc6f2e5.entry.js → dist/web-components-library/p-a6c0f149.entry.js} +1 -1
- package/dist/web-components-library/p-ae79573a.entry.js +1 -0
- package/dist/web-components-library/p-bdefe224.entry.js +1 -0
- package/dist/web-components-library/{p-8980398c.entry.js → p-d2127d84.entry.js} +1 -1
- package/{www/build/p-8b960526.entry.js → dist/web-components-library/p-dd000757.entry.js} +1 -1
- package/dist/web-components-library/p-de55c171.entry.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 +0 -4
- package/react/components.js +2 -6
- package/react/components.js.map +1 -1
- package/www/build/index.esm.js +1 -1
- package/www/build/p-1cb23bbb.entry.js +1 -0
- package/www/build/p-1d66b265.entry.js +1 -0
- package/{dist/web-components-library/p-9965827d.entry.js → www/build/p-26033729.entry.js} +1 -1
- package/www/build/p-4b159cbd.css +1 -0
- package/www/build/{p-8bf0844b.entry.js → p-53065788.entry.js} +1 -1
- package/www/build/{p-1b6279a6.entry.js → p-5c62387a.entry.js} +1 -1
- package/www/build/{p-20a3247c.entry.js → p-6c163539.entry.js} +1 -1
- package/www/build/{p-279655eb.entry.js → p-7b3b99ee.entry.js} +1 -1
- package/{dist/web-components-library/p-3d9ecc23.entry.js → www/build/p-7ea553e9.entry.js} +1 -1
- package/www/build/{p-547d3b1f.entry.js → p-8305bbcc.entry.js} +1 -1
- package/www/build/{p-cd43f80d.js → p-8ebe4adf.js} +1 -1
- package/www/build/{p-98c94e81.entry.js → p-91a74348.entry.js} +1 -1
- package/www/build/{p-c25b0b2a.entry.js → p-93142fac.entry.js} +1 -1
- package/www/build/p-9a613586.entry.js +1 -0
- package/{dist/web-components-library/p-411cbcd6.entry.js → www/build/p-a05ce0a6.entry.js} +1 -1
- package/{dist/web-components-library/p-bdc6f2e5.entry.js → www/build/p-a6c0f149.entry.js} +1 -1
- package/www/build/p-ae79573a.entry.js +1 -0
- package/www/build/p-bdefe224.entry.js +1 -0
- package/www/build/{p-8980398c.entry.js → p-d2127d84.entry.js} +1 -1
- package/www/build/p-dbb8bcb2.js +1 -0
- package/{dist/web-components-library/p-8b960526.entry.js → www/build/p-dd000757.entry.js} +1 -1
- package/www/build/p-de55c171.entry.js +1 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -8
- package/www/pages/file-upload.html +0 -33
- package/www/pages/notification.html +0 -33
- package/dist/cjs/z-app-header.cjs.entry.js +0 -133
- package/dist/cjs/z-app-topbar.cjs.entry.js +0 -41
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +0 -49
- package/dist/cjs/z-menu-dropdown.cjs.entry.js +0 -59
- package/dist/cjs/z-modal-login.cjs.entry.js +0 -84
- package/dist/cjs/z-user-dropdown.cjs.entry.js +0 -93
- package/dist/collection/components/modal/z-modal-login/index.js +0 -251
- package/dist/collection/components/modal/z-modal-login/styles.css +0 -150
- package/dist/collection/components/navigation/z-app-topbar/index.js +0 -156
- package/dist/collection/components/navigation/z-app-topbar/styles.css +0 -65
- package/dist/collection/components/navigation/z-menu-dropdown/index.js +0 -124
- package/dist/collection/components/navigation/z-menu-dropdown/styles.css +0 -146
- package/dist/collection/components/navigation/z-user-dropdown/index.js +0 -247
- package/dist/collection/components/navigation/z-user-dropdown/styles.css +0 -306
- package/dist/esm/z-app-header.entry.js +0 -129
- package/dist/esm/z-app-topbar.entry.js +0 -37
- package/dist/esm/z-dragdrop-area_2.entry.js +0 -44
- package/dist/esm/z-menu-dropdown.entry.js +0 -55
- package/dist/esm/z-modal-login.entry.js +0 -80
- package/dist/esm/z-user-dropdown.entry.js +0 -89
- package/dist/types/components/modal/z-modal-login/index.d.ts +0 -41
- package/dist/types/components/navigation/z-app-topbar/index.d.ts +0 -20
- package/dist/types/components/navigation/z-menu-dropdown/index.d.ts +0 -19
- package/dist/types/components/navigation/z-user-dropdown/index.d.ts +0 -39
- package/dist/web-components-library/p-1ba8d432.entry.js +0 -1
- package/dist/web-components-library/p-3c2d438b.entry.js +0 -1
- package/dist/web-components-library/p-4cd6c6f4.entry.js +0 -1
- package/dist/web-components-library/p-682528b2.entry.js +0 -1
- package/dist/web-components-library/p-9ed27651.entry.js +0 -1
- package/dist/web-components-library/p-a2b67e2d.entry.js +0 -1
- package/dist/web-components-library/p-b17981a4.entry.js +0 -1
- package/dist/web-components-library/p-d3c72572.entry.js +0 -1
- package/dist/web-components-library/p-edf0195b.entry.js +0 -1
- package/dist/web-components-library/p-f20d1242.entry.js +0 -1
- package/www/build/p-1ba8d432.entry.js +0 -1
- package/www/build/p-3c2d438b.entry.js +0 -1
- package/www/build/p-4cd6c6f4.entry.js +0 -1
- package/www/build/p-682528b2.entry.js +0 -1
- package/www/build/p-99d3834c.js +0 -129
- package/www/build/p-9ed27651.entry.js +0 -1
- package/www/build/p-a2b67e2d.entry.js +0 -1
- package/www/build/p-b17981a4.entry.js +0 -1
- package/www/build/p-d3c72572.entry.js +0 -1
- package/www/build/p-e680285b.css +0 -1636
- package/www/build/p-edf0195b.entry.js +0 -1
- package/www/build/p-f20d1242.entry.js +0 -1
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const index$1 = require('./index-fa110f37.js');
|
|
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{display:flex;box-sizing:border-box;flex-flow:column nowrap;align-items:stretch;justify-content:flex-start;padding:calc(var(--space-unit) * 4) calc(var(--space-unit) * 2) calc(var(--space-unit) * 3)\n calc(var(--space-unit) * 2);color:var(--text-grey-800)}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-flow:column nowrap;align-items:stretch;justify-content:flex-start}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{align-self:flex-end;font-size:12px}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{align-self:flex-start;margin:calc(var(--space-unit) * 3) 0}.sc-z-modal-login-h div.wrapper.sc-z-modal-login>hr.sc-z-modal-login{width:100%;border:none;border-top:var(--border-size-medium) solid var(--bg-grey-200);margin-bottom:calc(var(--space-unit) * 3);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;gap:calc(var(--space-unit) * 2) 0;grid-auto-rows:auto;grid-template-columns:1fr}slot-fb[name=\"provider\"].sc-z-modal-login{display:grid;gap:calc(var(--space-unit) * 2) 0;grid-auto-rows:auto;grid-template-columns:1fr}.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-flow:row nowrap;align-content:center;align-items:center;justify-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;align-items:center;justify-content:center;gap:var(--space-unit);grid-auto-rows:auto;grid-template-columns:1fr 1fr}.sc-z-modal-login-h div.providers.sc-z-modal-login>z-body.sc-z-modal-login{padding-bottom:var(--space-unit);grid-column:1 / 3}.sc-z-modal-login-s>[slot=\"provider\"]{width:100%}slot-fb[name=\"provider\"].sc-z-modal-login{display:grid;align-items:center;justify-content:center;gap:var(--space-unit);grid-auto-rows:auto;grid-column:1 / 3;grid-template-columns:1fr 1fr}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
|
-
|
|
10
|
-
const ZModalLogin = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
this.loginSubmit = index.createEvent(this, "loginSubmit", 7);
|
|
14
|
-
this.statusUpdate = index.createEvent(this, "statusUpdate", 7);
|
|
15
|
-
this.signupClick = index.createEvent(this, "signupClick", 7);
|
|
16
|
-
this.zainoDigitaleClick = index.createEvent(this, "zainoDigitaleClick", 7);
|
|
17
|
-
/** Login modal title */
|
|
18
|
-
this.heading = "Entra in MyZanichelli";
|
|
19
|
-
this.externalProviderCheck = false;
|
|
20
|
-
}
|
|
21
|
-
componentDidLoad() {
|
|
22
|
-
this.externalProviderCheck = !!this.hostElement.querySelectorAll('[slot="provider"]').length;
|
|
23
|
-
}
|
|
24
|
-
emitLoginSubmit() {
|
|
25
|
-
const usernameInput = this.hostElement.querySelector("z-input#username");
|
|
26
|
-
const passwordInput = this.hostElement.querySelector("z-input#password");
|
|
27
|
-
// INFO: slotted inputs
|
|
28
|
-
if (!usernameInput || !passwordInput) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
let username = usernameInput.value;
|
|
32
|
-
const password = passwordInput.value;
|
|
33
|
-
if (!username || !password) {
|
|
34
|
-
this.status = index$1.InputStatus.ERROR;
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
username = this.cleanUsername(username);
|
|
38
|
-
this.loginSubmit.emit({
|
|
39
|
-
username,
|
|
40
|
-
password,
|
|
41
|
-
originalUsername: usernameInput.value,
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
emitStatusUpdate(status) {
|
|
45
|
-
this.statusUpdate.emit(status);
|
|
46
|
-
}
|
|
47
|
-
emitSignupClick() {
|
|
48
|
-
this.signupClick.emit();
|
|
49
|
-
}
|
|
50
|
-
emitZainoDigitaleClick() {
|
|
51
|
-
this.zainoDigitaleClick.emit();
|
|
52
|
-
}
|
|
53
|
-
handleInputKeyUp(e) {
|
|
54
|
-
if (e.code !== "Enter") {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
this.emitLoginSubmit();
|
|
58
|
-
}
|
|
59
|
-
handleInputChange() {
|
|
60
|
-
this.status = null;
|
|
61
|
-
this.emitStatusUpdate(this.status);
|
|
62
|
-
}
|
|
63
|
-
cleanUsername(username) {
|
|
64
|
-
username = username.trim().toLowerCase();
|
|
65
|
-
const mobileRegex = /^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/g;
|
|
66
|
-
if (mobileRegex.test(username)) {
|
|
67
|
-
username = username.replace(/[- .)(]/g, "");
|
|
68
|
-
if (/^[\d ]*$/.test(username)) {
|
|
69
|
-
username = "+39" + username;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return username;
|
|
73
|
-
}
|
|
74
|
-
renderZainoDigitaleButton() {
|
|
75
|
-
return (index.h("z-button", { variant: index$1.ButtonVariant.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"))));
|
|
76
|
-
}
|
|
77
|
-
render() {
|
|
78
|
-
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: index$1.InputType.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.ButtonVariant.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.ButtonVariant.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?")))))));
|
|
79
|
-
}
|
|
80
|
-
get hostElement() { return index.getElement(this); }
|
|
81
|
-
};
|
|
82
|
-
ZModalLogin.style = stylesCss;
|
|
83
|
-
|
|
84
|
-
exports.z_modal_login = ZModalLogin;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
7
|
-
|
|
8
|
-
const stylesCss = ":host{background-color:var(--gray900)}:host(.inverse){background-color:var(--color-white)}button{display:flex;width:100%;flex-direction:column;padding:0;border:none;margin:0;background-color:var(--gray900);cursor:pointer;letter-spacing:0.16px;white-space:nowrap}button.inverse{background-color:var(--color-white)}button div.firstline{display:flex;max-width:200px;align-items:center;justify-content:flex-end}button.open div.firstline{max-width:none}z-icon{padding:0 2px;fill:var(--color-white)}z-icon.inverse{fill:var(--gray900)}ul{position:absolute;left:0;width:100%;box-sizing:border-box;padding:calc(var(--space-unit) / 2) calc(var(--space-unit) * 2) 0 calc(var(--space-unit) * 2);margin:calc(var(--space-unit) * 1.5) 0 0 0;background-color:var(--gray900);font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);letter-spacing:0.3px;line-height:20px}ul.inverse{background-color:var(--color-white)}ul>li{display:flex;justify-content:flex-end;padding:calc(var(--space-unit) * 1.5 - 1px) 0;border-bottom:var(--border-base) solid var(--gray700);margin:0;white-space:nowrap}ul>li.inverse{border-bottom-color:var(--gray400)}ul>li:first-child{flex-direction:column;align-items:end;padding-top:0;padding-bottom:calc(var(--space-unit) + 6px);border-top:none}ul>li:last-child{border-bottom:none;margin-bottom:0}#guestbutton{display:inline-flex;width:100%;min-width:32px;height:32px;box-sizing:border-box;flex-direction:row;align-items:center;justify-content:center;padding:0 calc(var(--space-unit) * 2);border-width:var(--border-size-medium);border-style:solid;border-color:var(--color-white);background-color:var(--color-white);border-radius:var(--border-radius);color:var(--gray800);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);letter-spacing:0.3px;line-height:1;outline:none;text-decoration:none;text-transform:uppercase;vertical-align:middle}#guestbutton.inverse{border-color:var(--gray800);background-color:var(--gray800);color:var(--color-white)}.userfullname{overflow:hidden;width:100%;max-width:250px;padding:0;color:var(--color-white);font-family:var(--font-family-sans);font-size:16px;font-weight:var(--font-sb);letter-spacing:0;line-height:24px;text-align:right;text-overflow:ellipsis}.userfullname.inverse{color:var(--gray800)}.useremail{overflow:hidden;width:100%;color:var(--color-white);font-family:var(--font-family-sans);font-size:12px;font-weight:var(--font-rg);letter-spacing:0.32px;line-height:16px;text-align:right;text-overflow:ellipsis}.useremail.inverse{color:var(--gray800)}@media only screen and (min-width: 768px){:host{height:calc(var(--space-unit) * 4);background-color:var(--gray900)}:host(.inverse){background-color:var(--color-white)}:host>div{position:relative;top:50%;transform:translateY(-50%)}:host>div.open{top:auto;transform:none}:host>div>div{padding:0}:host>div>div.open{position:absolute;right:calc(var(--space-unit) * -1);padding:calc(var(--space-unit) / 2 + 1px) var(--space-unit) 0 var(--space-unit);margin-top:calc(var(--space-unit) / 2);background-color:var(--color-white);box-shadow:0 2px calc(var(--space-unit) * 0.5) 0 rgb(0 0 0 / 50%);transform:translate(0, -4px)}:host>div>div.inverse.open{background-color:var(--gray800)}button{display:flex;flex-flow:row nowrap;align-content:center;align-items:end;justify-content:flex-end}button.open{max-width:initial;padding-right:var(--space-unit);border-top:var(--border-size-small) solid var(--color-white);margin-left:var(--space-unit);background-color:var(--color-white);border-top-left-radius:calc(var(--space-unit) * 0.5);border-top-right-radius:calc(var(--space-unit) * 0.5)}button.open.inverse{border-top-color:var(--gray800);background-color:var(--gray800)}button:not(.open) z-icon{fill:var(--color-white)}button:not(.open) z-icon.inverse{fill:var(--gray800)}button.open z-icon{fill:var(--gray800)}button.open z-icon.inverse{fill:var(--color-white)}.userfullname{width:auto;padding:0 calc(var(--space-unit) - 6px) 0 calc(var(--space-unit) - 2px);font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);letter-spacing:0.16px;line-height:20px}.userfullname.inverse{color:var(--gray800)}button.open div.userfullname{max-width:none;color:var(--gray800);text-overflow:clip}button.open div.userfullname.inverse{color:var(--color-white)}.useremail{box-sizing:border-box;padding-right:calc(var(--space-unit) * 3 - 2px)}button.open div.useremail{color:var(--gray800)}button.open div.useremail.inverse{color:var(--color-white)}ul{position:initial;left:initial;width:100%;padding:0;background-color:var(--color-white)}ul.inverse{border-bottom-color:var(--gray800);background-color:var(--gray800)}ul>li{border-bottom:var(--border-base) solid var(--gray400);margin:0 var(--space-unit);color:var(--gray800)}ul>li.inverse{color:var(--color-white)}ul>li:first-child{padding-top:calc(var(--space-unit) + 3px);padding-bottom:calc(var(--space-unit) + 5px);border-top:var(--border-base) solid var(--gray400)}}";
|
|
9
|
-
|
|
10
|
-
const ZUserDropdown = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
this.userButtonClick = index.createEvent(this, "userButtonClick", 7);
|
|
14
|
-
this.dropdownMenuLinkClick = index.createEvent(this, "dropdownMenuLinkClick", 7);
|
|
15
|
-
/** if inner components colors are inverted, or not, default false */
|
|
16
|
-
this.useInverseColors = false;
|
|
17
|
-
this.isMenuOpen = false;
|
|
18
|
-
this.handleLoggedButtonClick = this.handleLoggedButtonClick.bind(this);
|
|
19
|
-
this.emitDropdownMenuLinkClick = this.emitDropdownMenuLinkClick.bind(this);
|
|
20
|
-
}
|
|
21
|
-
componentDidLoad() {
|
|
22
|
-
this.setMobileAndDivToResizeWidth();
|
|
23
|
-
}
|
|
24
|
-
componentWillUpdate() {
|
|
25
|
-
this.setMobileAndDivToResizeWidth();
|
|
26
|
-
}
|
|
27
|
-
componentWillRender() {
|
|
28
|
-
if (this.menuContent) {
|
|
29
|
-
this.linkArray = typeof this.menuContent === "string" ? JSON.parse(this.menuContent) : this.menuContent;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
setMobileAndDivToResizeWidth() {
|
|
33
|
-
var _a;
|
|
34
|
-
if (this.divToResize) {
|
|
35
|
-
this.isMobile = window.screen.width <= breakpoints.mobileBreakpoint || window.innerWidth <= breakpoints.mobileBreakpoint;
|
|
36
|
-
if (this.logged && !this.isMobile && this.isMenuOpen) {
|
|
37
|
-
this.divToResize.style.width = `${(_a = this.userButton) === null || _a === void 0 ? void 0 : _a.offsetWidth}px`;
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
this.divToResize.removeAttribute("style");
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
emitUserButtonClick() {
|
|
45
|
-
this.userButtonClick.emit(this.isMenuOpen);
|
|
46
|
-
}
|
|
47
|
-
emitDropdownMenuLinkClick(e) {
|
|
48
|
-
this.isMenuOpen = false;
|
|
49
|
-
this.dropdownMenuLinkClick.emit({ e, linkId: e.detail.linkId });
|
|
50
|
-
}
|
|
51
|
-
handleResize() {
|
|
52
|
-
this.isMobile = window.innerWidth <= breakpoints.mobileBreakpoint;
|
|
53
|
-
}
|
|
54
|
-
handleOrientationChange() {
|
|
55
|
-
this.isMobile = screen.width <= breakpoints.mobileBreakpoint;
|
|
56
|
-
}
|
|
57
|
-
handleClickOutside(e) {
|
|
58
|
-
if (e.target.nodeName !== "Z-USER-DROPDOWN") {
|
|
59
|
-
this.isMenuOpen = false;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
handleLoggedButtonClick() {
|
|
63
|
-
this.isMenuOpen = !this.isMenuOpen;
|
|
64
|
-
this.emitUserButtonClick();
|
|
65
|
-
}
|
|
66
|
-
renderGuestButton() {
|
|
67
|
-
return (index.h("button", { id: "guestbutton", class: this.useInverseColors ? "inverse" : "", onClick: () => this.emitUserButtonClick() }, "ENTRA"));
|
|
68
|
-
}
|
|
69
|
-
renderLoggedButton() {
|
|
70
|
-
const direction = this.isMenuOpen ? "up" : "down";
|
|
71
|
-
const colorClass = this.useInverseColors ? "inverse" : "";
|
|
72
|
-
return (index.h("button", { ref: (el) => (this.userButton = el), title: this.userFullName, class: `${colorClass} ${this.isMenuOpen ? "open" : ""}`, onClick: this.handleLoggedButtonClick }, index.h("div", null, index.h("div", { class: "firstline" }, index.h("z-icon", { class: colorClass, name: "user-avatar-filled", height: 16, width: 16 }), !this.isMobile && index.h("div", { class: `userfullname ${colorClass}` }, this.userFullName), index.h("z-icon", { class: colorClass, name: `caret-${direction}-filled`, height: 16, width: 16 })), !this.isMobile && this.isMenuOpen && index.h("div", { class: `useremail ${colorClass}` }, this.userEmail))));
|
|
73
|
-
}
|
|
74
|
-
getZLinkTextcolor() {
|
|
75
|
-
if (this.isMobile) {
|
|
76
|
-
return this.useInverseColors ? "black" : "white";
|
|
77
|
-
}
|
|
78
|
-
return this.useInverseColors ? "white" : "black";
|
|
79
|
-
}
|
|
80
|
-
renderDropdownMenu() {
|
|
81
|
-
const colorClass = this.useInverseColors ? "inverse" : "";
|
|
82
|
-
return (this.isMenuOpen && (index.h("ul", { class: colorClass }, this.isMobile && (index.h("li", { class: colorClass }, index.h("div", { class: `userfullname ${colorClass}` }, this.userFullName), index.h("div", { class: `useremail ${colorClass}` }, this.userEmail))), this.linkArray &&
|
|
83
|
-
this.linkArray.map((link) => (index.h("li", { id: link.id, class: colorClass }, index.h("z-link", { textcolor: this.getZLinkTextcolor(), href: link.link, htmlid: link.id, target: link.target, icon: link.icon, onZLinkClick: this.emitDropdownMenuLinkClick }, link.label)))))));
|
|
84
|
-
}
|
|
85
|
-
render() {
|
|
86
|
-
const openClass = `${this.logged && this.isMenuOpen ? "open" : ""}`;
|
|
87
|
-
const colorClass = this.useInverseColors ? "inverse" : "";
|
|
88
|
-
return (index.h(index.Host, { class: colorClass }, index.h("div", { ref: (el) => (this.divToResize = el), class: openClass }, index.h("div", { class: `${colorClass} ${openClass}` }, this.logged ? this.renderLoggedButton() : this.renderGuestButton(), this.logged && this.renderDropdownMenu()))));
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
ZUserDropdown.style = stylesCss;
|
|
92
|
-
|
|
93
|
-
exports.z_user_dropdown = ZUserDropdown;
|
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { ButtonVariant, InputStatus, InputType } from "../../../beans";
|
|
3
|
-
/**
|
|
4
|
-
* @slot username - username input
|
|
5
|
-
* @slot password - password input
|
|
6
|
-
* @slot login - login button
|
|
7
|
-
* @slot signup - signup button
|
|
8
|
-
* @slot provider - expternal providers login buttons
|
|
9
|
-
*/
|
|
10
|
-
export class ZModalLogin {
|
|
11
|
-
constructor() {
|
|
12
|
-
/** Login modal title */
|
|
13
|
-
this.heading = "Entra in MyZanichelli";
|
|
14
|
-
this.externalProviderCheck = false;
|
|
15
|
-
}
|
|
16
|
-
componentDidLoad() {
|
|
17
|
-
this.externalProviderCheck = !!this.hostElement.querySelectorAll('[slot="provider"]').length;
|
|
18
|
-
}
|
|
19
|
-
emitLoginSubmit() {
|
|
20
|
-
const usernameInput = this.hostElement.querySelector("z-input#username");
|
|
21
|
-
const passwordInput = this.hostElement.querySelector("z-input#password");
|
|
22
|
-
// INFO: slotted inputs
|
|
23
|
-
if (!usernameInput || !passwordInput) {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
let username = usernameInput.value;
|
|
27
|
-
const password = passwordInput.value;
|
|
28
|
-
if (!username || !password) {
|
|
29
|
-
this.status = InputStatus.ERROR;
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
username = this.cleanUsername(username);
|
|
33
|
-
this.loginSubmit.emit({
|
|
34
|
-
username,
|
|
35
|
-
password,
|
|
36
|
-
originalUsername: usernameInput.value,
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
emitStatusUpdate(status) {
|
|
40
|
-
this.statusUpdate.emit(status);
|
|
41
|
-
}
|
|
42
|
-
emitSignupClick() {
|
|
43
|
-
this.signupClick.emit();
|
|
44
|
-
}
|
|
45
|
-
emitZainoDigitaleClick() {
|
|
46
|
-
this.zainoDigitaleClick.emit();
|
|
47
|
-
}
|
|
48
|
-
handleInputKeyUp(e) {
|
|
49
|
-
if (e.code !== "Enter") {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
this.emitLoginSubmit();
|
|
53
|
-
}
|
|
54
|
-
handleInputChange() {
|
|
55
|
-
this.status = null;
|
|
56
|
-
this.emitStatusUpdate(this.status);
|
|
57
|
-
}
|
|
58
|
-
cleanUsername(username) {
|
|
59
|
-
username = username.trim().toLowerCase();
|
|
60
|
-
const mobileRegex = /^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/g;
|
|
61
|
-
if (mobileRegex.test(username)) {
|
|
62
|
-
username = username.replace(/[- .)(]/g, "");
|
|
63
|
-
if (/^[\d ]*$/.test(username)) {
|
|
64
|
-
username = "+39" + username;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
return username;
|
|
68
|
-
}
|
|
69
|
-
renderZainoDigitaleButton() {
|
|
70
|
-
return (h("z-button", { variant: ButtonVariant.SECONDARY, onClick: () => this.emitZainoDigitaleClick(), class: "zainoDigitale" }, h("div", { class: "zd" }, h("svg", { width: "18px", height: "24px", viewBox: "0 0 18 24" }, h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" }, h("g", { transform: "translate(-313.000000, -329.000000)", fill: "#E2001A", "fill-rule": "nonzero" }, h("g", { transform: "translate(25.000000, 191.000000)" }, h("g", null, h("g", { transform: "translate(0.000000, 100.000000)" }, h("g", null, h("g", { transform: "translate(276.000000, 28.000000)" }, 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" }))))))))), h("span", null, "ZAINO DIGITALE"))));
|
|
71
|
-
}
|
|
72
|
-
render() {
|
|
73
|
-
return (h("z-modal", { modaltitle: this.heading }, h("div", { class: "wrapper", slot: "modalContent" }, h("form", { method: "post" }, h("div", { class: "username" }, h("slot", { name: "username" }, 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() }))), h("div", { class: "password" }, h("slot", { name: "password" }, h("z-input", { id: "password", label: "password", placeholder: "Inserisci la tua password", type: InputType.PASSWORD, name: "password", autocomplete: "current-password", status: this.status, message: this.pwdmessage, onKeyUp: (e) => this.handleInputKeyUp(e), onInputChange: () => this.handleInputChange() }))), h("z-link", { class: "forget", href: this.forgotPasswordUrl }, "Password dimenticata?"), h("div", { class: "login" }, h("slot", { name: "login" }, h("z-button", { variant: ButtonVariant.PRIMARY, onClick: () => this.emitLoginSubmit() }, "Accedi")))), h("hr", null), h("z-body", { class: "signup", level: 4, variant: "semibold" }, "Non hai ancora un account?"), h("div", { class: "signup" }, h("slot", { name: "signup" }, h("z-button", { variant: ButtonVariant.SECONDARY, onClick: () => this.emitSignupClick() }, "Registrati"))), !this.externalProviderCheck && (h("div", { class: "providers" }, h("z-body", { class: "provider", level: 5, variant: "regular" }, "OPPURE ACCEDI CON:"), h("slot", { name: "provider" }, this.renderZainoDigitaleButton(), h("z-link", { icon: "informationsource", href: "https://www.zainodigitale.it/#/landing" }, "Cos'\u00E8 Zaino Digitale?")))))));
|
|
74
|
-
}
|
|
75
|
-
static get is() { return "z-modal-login"; }
|
|
76
|
-
static get encapsulation() { return "scoped"; }
|
|
77
|
-
static get originalStyleUrls() {
|
|
78
|
-
return {
|
|
79
|
-
"$": ["styles.css"]
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
static get styleUrls() {
|
|
83
|
-
return {
|
|
84
|
-
"$": ["styles.css"]
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
static get properties() {
|
|
88
|
-
return {
|
|
89
|
-
"forgotPasswordUrl": {
|
|
90
|
-
"type": "string",
|
|
91
|
-
"mutable": false,
|
|
92
|
-
"complexType": {
|
|
93
|
-
"original": "string",
|
|
94
|
-
"resolved": "string",
|
|
95
|
-
"references": {}
|
|
96
|
-
},
|
|
97
|
-
"required": false,
|
|
98
|
-
"optional": false,
|
|
99
|
-
"docs": {
|
|
100
|
-
"tags": [],
|
|
101
|
-
"text": "Forgot Password Url"
|
|
102
|
-
},
|
|
103
|
-
"attribute": "forgot-password-url",
|
|
104
|
-
"reflect": false
|
|
105
|
-
},
|
|
106
|
-
"heading": {
|
|
107
|
-
"type": "string",
|
|
108
|
-
"mutable": false,
|
|
109
|
-
"complexType": {
|
|
110
|
-
"original": "string",
|
|
111
|
-
"resolved": "string",
|
|
112
|
-
"references": {}
|
|
113
|
-
},
|
|
114
|
-
"required": false,
|
|
115
|
-
"optional": true,
|
|
116
|
-
"docs": {
|
|
117
|
-
"tags": [],
|
|
118
|
-
"text": "Login modal title"
|
|
119
|
-
},
|
|
120
|
-
"attribute": "heading",
|
|
121
|
-
"reflect": false,
|
|
122
|
-
"defaultValue": "\"Entra in MyZanichelli\""
|
|
123
|
-
},
|
|
124
|
-
"status": {
|
|
125
|
-
"type": "string",
|
|
126
|
-
"mutable": true,
|
|
127
|
-
"complexType": {
|
|
128
|
-
"original": "InputStatus",
|
|
129
|
-
"resolved": "InputStatus.ERROR | InputStatus.SUCCESS | InputStatus.WARNING",
|
|
130
|
-
"references": {
|
|
131
|
-
"InputStatus": {
|
|
132
|
-
"location": "import",
|
|
133
|
-
"path": "../../../beans"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"required": false,
|
|
138
|
-
"optional": true,
|
|
139
|
-
"docs": {
|
|
140
|
-
"tags": [],
|
|
141
|
-
"text": "Username/password input status"
|
|
142
|
-
},
|
|
143
|
-
"attribute": "status",
|
|
144
|
-
"reflect": false
|
|
145
|
-
},
|
|
146
|
-
"message": {
|
|
147
|
-
"type": "string",
|
|
148
|
-
"mutable": false,
|
|
149
|
-
"complexType": {
|
|
150
|
-
"original": "string",
|
|
151
|
-
"resolved": "string",
|
|
152
|
-
"references": {}
|
|
153
|
-
},
|
|
154
|
-
"required": false,
|
|
155
|
-
"optional": true,
|
|
156
|
-
"docs": {
|
|
157
|
-
"tags": [],
|
|
158
|
-
"text": "Username helper message"
|
|
159
|
-
},
|
|
160
|
-
"attribute": "message",
|
|
161
|
-
"reflect": false
|
|
162
|
-
},
|
|
163
|
-
"pwdmessage": {
|
|
164
|
-
"type": "string",
|
|
165
|
-
"mutable": false,
|
|
166
|
-
"complexType": {
|
|
167
|
-
"original": "string",
|
|
168
|
-
"resolved": "string",
|
|
169
|
-
"references": {}
|
|
170
|
-
},
|
|
171
|
-
"required": false,
|
|
172
|
-
"optional": true,
|
|
173
|
-
"docs": {
|
|
174
|
-
"tags": [],
|
|
175
|
-
"text": "Password helper message"
|
|
176
|
-
},
|
|
177
|
-
"attribute": "pwdmessage",
|
|
178
|
-
"reflect": false
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
static get states() {
|
|
183
|
-
return {
|
|
184
|
-
"externalProviderCheck": {}
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
static get events() {
|
|
188
|
-
return [{
|
|
189
|
-
"method": "loginSubmit",
|
|
190
|
-
"name": "loginSubmit",
|
|
191
|
-
"bubbles": true,
|
|
192
|
-
"cancelable": true,
|
|
193
|
-
"composed": true,
|
|
194
|
-
"docs": {
|
|
195
|
-
"tags": [],
|
|
196
|
-
"text": "Emitted on login submit"
|
|
197
|
-
},
|
|
198
|
-
"complexType": {
|
|
199
|
-
"original": "any",
|
|
200
|
-
"resolved": "any",
|
|
201
|
-
"references": {}
|
|
202
|
-
}
|
|
203
|
-
}, {
|
|
204
|
-
"method": "statusUpdate",
|
|
205
|
-
"name": "statusUpdate",
|
|
206
|
-
"bubbles": true,
|
|
207
|
-
"cancelable": true,
|
|
208
|
-
"composed": true,
|
|
209
|
-
"docs": {
|
|
210
|
-
"tags": [],
|
|
211
|
-
"text": "Emitted on status update"
|
|
212
|
-
},
|
|
213
|
-
"complexType": {
|
|
214
|
-
"original": "any",
|
|
215
|
-
"resolved": "any",
|
|
216
|
-
"references": {}
|
|
217
|
-
}
|
|
218
|
-
}, {
|
|
219
|
-
"method": "signupClick",
|
|
220
|
-
"name": "signupClick",
|
|
221
|
-
"bubbles": true,
|
|
222
|
-
"cancelable": true,
|
|
223
|
-
"composed": true,
|
|
224
|
-
"docs": {
|
|
225
|
-
"tags": [],
|
|
226
|
-
"text": "Emitted on signup button click"
|
|
227
|
-
},
|
|
228
|
-
"complexType": {
|
|
229
|
-
"original": "any",
|
|
230
|
-
"resolved": "any",
|
|
231
|
-
"references": {}
|
|
232
|
-
}
|
|
233
|
-
}, {
|
|
234
|
-
"method": "zainoDigitaleClick",
|
|
235
|
-
"name": "zainoDigitaleClick",
|
|
236
|
-
"bubbles": true,
|
|
237
|
-
"cancelable": true,
|
|
238
|
-
"composed": true,
|
|
239
|
-
"docs": {
|
|
240
|
-
"tags": [],
|
|
241
|
-
"text": "Emitted on zaino digitale button click"
|
|
242
|
-
},
|
|
243
|
-
"complexType": {
|
|
244
|
-
"original": "any",
|
|
245
|
-
"resolved": "any",
|
|
246
|
-
"references": {}
|
|
247
|
-
}
|
|
248
|
-
}];
|
|
249
|
-
}
|
|
250
|
-
static get elementRef() { return "hostElement"; }
|
|
251
|
-
}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
font-family: var(--dashboard-font);
|
|
3
|
-
font-weight: var(--font-rg);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
:host div.wrapper {
|
|
7
|
-
display: flex;
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
flex-flow: column nowrap;
|
|
10
|
-
align-items: stretch;
|
|
11
|
-
justify-content: flex-start;
|
|
12
|
-
padding: calc(var(--space-unit) * 4) calc(var(--space-unit) * 2) calc(var(--space-unit) * 3)
|
|
13
|
-
calc(var(--space-unit) * 2);
|
|
14
|
-
color: var(--text-grey-800);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
z-button,
|
|
18
|
-
z-input,
|
|
19
|
-
::slotted(z-button),
|
|
20
|
-
::slotted(z-input) {
|
|
21
|
-
display: inline-block;
|
|
22
|
-
width: 100%;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
z-link,
|
|
26
|
-
::slotted(z-link) {
|
|
27
|
-
font-size: 12px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
:host div.wrapper > form {
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-flow: column nowrap;
|
|
33
|
-
align-items: stretch;
|
|
34
|
-
justify-content: flex-start;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
div.wrapper > form > div.username::slotted(z-input),
|
|
38
|
-
div.wrapper > form > div.password::slotted(z-input),
|
|
39
|
-
:host div.wrapper > form > div.username z-input,
|
|
40
|
-
:host div.wrapper > form > div.password z-input {
|
|
41
|
-
margin-bottom: var(--space-unit);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
:host div.wrapper > form > z-link.forget {
|
|
45
|
-
align-self: flex-end;
|
|
46
|
-
font-size: 12px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
div.wrapper > form > div.login::slotted(z-button),
|
|
50
|
-
:host div.wrapper > form > div.login z-button {
|
|
51
|
-
align-self: flex-start;
|
|
52
|
-
margin: calc(var(--space-unit) * 3) 0;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
:host div.wrapper > hr {
|
|
56
|
-
width: 100%;
|
|
57
|
-
border: none;
|
|
58
|
-
border-top: var(--border-size-medium) solid var(--bg-grey-200);
|
|
59
|
-
margin-bottom: calc(var(--space-unit) * 3);
|
|
60
|
-
margin-block-start: unset;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
div.wrapper > div.signup::slotted(z-button),
|
|
64
|
-
:host div.wrapper > div.signup z-button {
|
|
65
|
-
display: inline-block;
|
|
66
|
-
margin: calc(var(--space-unit) * 2) 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
:host div.providers {
|
|
70
|
-
display: grid;
|
|
71
|
-
gap: calc(var(--space-unit) * 2) 0;
|
|
72
|
-
grid-auto-rows: auto;
|
|
73
|
-
grid-template-columns: 1fr;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
slot-fb[name="provider"] {
|
|
77
|
-
display: grid;
|
|
78
|
-
gap: calc(var(--space-unit) * 2) 0;
|
|
79
|
-
grid-auto-rows: auto;
|
|
80
|
-
grid-template-columns: 1fr;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
:host div.providers > z-body {
|
|
84
|
-
padding-top: calc(var(--space-unit) * 2);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
:host div.wrapper > div.providers .zd {
|
|
88
|
-
display: flex;
|
|
89
|
-
flex-flow: row nowrap;
|
|
90
|
-
align-content: center;
|
|
91
|
-
align-items: center;
|
|
92
|
-
justify-content: center;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:host div.wrapper > div.providers .zd > svg {
|
|
96
|
-
margin-right: var(--space-unit);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/* Tablet breakpoint */
|
|
100
|
-
@media only screen and (min-width: 768px) {
|
|
101
|
-
z-button,
|
|
102
|
-
::slotted(z-button) {
|
|
103
|
-
width: initial;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
:host div.wrapper {
|
|
107
|
-
width: 396px;
|
|
108
|
-
padding: calc(var(--space-unit) * 3);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
:host div.providers {
|
|
112
|
-
display: grid;
|
|
113
|
-
align-items: center;
|
|
114
|
-
justify-content: center;
|
|
115
|
-
gap: var(--space-unit);
|
|
116
|
-
grid-auto-rows: auto;
|
|
117
|
-
grid-template-columns: 1fr 1fr;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
:host div.providers > z-body {
|
|
121
|
-
padding-bottom: var(--space-unit);
|
|
122
|
-
grid-column: 1 / 3;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
::slotted([slot="provider"]) {
|
|
126
|
-
width: 100%;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
slot-fb[name="provider"] {
|
|
130
|
-
display: grid;
|
|
131
|
-
align-items: center;
|
|
132
|
-
justify-content: center;
|
|
133
|
-
gap: var(--space-unit);
|
|
134
|
-
grid-auto-rows: auto;
|
|
135
|
-
grid-column: 1 / 3;
|
|
136
|
-
grid-template-columns: 1fr 1fr;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
slot-fb[name="provider"] > * {
|
|
140
|
-
width: 100%;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/* Wide breakpoint */
|
|
145
|
-
@media only screen and (min-width: 1366px) {
|
|
146
|
-
:host div.wrapper {
|
|
147
|
-
width: 477px;
|
|
148
|
-
padding: calc(var(--space-unit) * 4);
|
|
149
|
-
}
|
|
150
|
-
}
|