@zanichelli/albe-web-components 2.18.2 → 2.19.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 +18 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-alert_65.cjs.entry.js +4 -4
- package/dist/cjs/z-modal-login.cjs.entry.js +1 -1
- package/dist/cjs/{z-header.cjs.entry.js → z-myz-topbar.cjs.entry.js} +13 -6
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/inputs/z-combobox/styles.css +18 -11
- package/dist/collection/components/modal/z-modal-login/index.js +20 -3
- package/dist/collection/components/navigation/z-link/index.js +1 -1
- package/dist/collection/components/navigation/z-link/styles.css +10 -11
- package/dist/collection/components/navigation/z-user-dropdown/styles.css +0 -6
- package/dist/collection/{components/navigation/z-header → snowflakes/myz/topbar}/index.js +13 -6
- package/dist/collection/{components/navigation/z-header → snowflakes/myz/topbar}/styles.css +0 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-alert_65.entry.js +4 -4
- package/dist/esm/z-modal-login.entry.js +1 -1
- package/dist/esm/{z-header.entry.js → z-myz-topbar.entry.js} +14 -7
- package/dist/types/components/modal/z-modal-login/index.d.ts +2 -0
- package/dist/types/components.d.ts +95 -87
- package/dist/types/{components/navigation/z-header → snowflakes/myz/topbar}/index.d.ts +4 -1
- package/{www/build/p-0a043715.entry.js → dist/web-components-library/p-12ce5608.entry.js} +1 -1
- package/dist/web-components-library/p-1e005157.entry.js +7 -0
- package/dist/web-components-library/p-917c8d8f.entry.js +1 -0
- package/dist/web-components-library/web-components-library.css +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +1 -1
- package/react/components.js +3 -3
- package/react/components.js.map +1 -1
- package/{dist/web-components-library/p-0a043715.entry.js → www/build/p-12ce5608.entry.js} +1 -1
- package/www/build/p-1e005157.entry.js +7 -0
- package/www/build/p-917c8d8f.entry.js +1 -0
- package/www/build/p-a28aa39d.css +1 -0
- package/www/build/p-eff5a8ba.js +1 -0
- package/www/build/web-components-library.css +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +9 -9
- package/dist/web-components-library/p-01ebd1c9.entry.js +0 -1
- package/dist/web-components-library/p-94f5c9d9.entry.js +0 -7
- package/www/build/p-01ebd1c9.entry.js +0 -1
- package/www/build/p-905e6e95.css +0 -789
- package/www/build/p-94f5c9d9.entry.js +0 -7
- package/www/build/p-b182711b.js +0 -122
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { AlertTypes, LicenseTypeEnum, MenuItem
|
|
9
|
-
import { AvatarSize, ButtonSizeEnum, ButtonVariantBean, CardVariants, ComboItemBean, DictionaryData, DividerOrientation, DividerSize, ExpandableListButtonAlign, ExpandableListStyle, HeaderUserData, InputStatusBean, InputTypeBean, ListDividerType, ListSize, MenuItem, NotificationType, PocketStatus, PopoverBorderRadius, PopoverPosition, PopoverShadow, SelectItemBean, SortDirection, StatusTagStatus, TableHeaderSize, TabOrientationBean, TabSizeBean, ThemeVariant, ThemeVariantBean, ToastNotificationPositionsTypes, ToastNotificationTransitionTypes, ToastNotificationTypes } from "./beans";
|
|
8
|
+
import { AlertTypes, LicenseTypeEnum, MenuItem, TooltipPosition } from "./beans/index";
|
|
9
|
+
import { AvatarSize, ButtonSizeEnum, ButtonVariantBean, CardVariants, ComboItemBean, DictionaryData, DividerOrientation, DividerSize, ExpandableListButtonAlign, ExpandableListStyle, HeaderUserData, InputStatusBean, InputTypeBean, ListDividerType, ListSize, MenuItem as MenuItem1, NotificationType, PocketStatus, PopoverBorderRadius, PopoverPosition, PopoverShadow, SelectItemBean, SortDirection, StatusTagStatus, TableHeaderSize, TabOrientationBean, TabSizeBean, ThemeVariant, ThemeVariantBean, ToastNotificationPositionsTypes, ToastNotificationTransitionTypes, ToastNotificationTypes } from "./beans";
|
|
10
10
|
import { ListItemBean } from "./beans/index.js";
|
|
11
11
|
import { ZTypographyLevels } from "./components/typography/z-typography/index";
|
|
12
12
|
export namespace Components {
|
|
@@ -338,44 +338,6 @@ export namespace Components {
|
|
|
338
338
|
}
|
|
339
339
|
interface ZGhostLoading {
|
|
340
340
|
}
|
|
341
|
-
interface ZHeader {
|
|
342
|
-
/**
|
|
343
|
-
* set current active menu link (optional)
|
|
344
|
-
*/
|
|
345
|
-
"activeintlinkid"?: string;
|
|
346
|
-
/**
|
|
347
|
-
* set current active sub menu link (optional)
|
|
348
|
-
*/
|
|
349
|
-
"activesublinkid"?: string;
|
|
350
|
-
/**
|
|
351
|
-
* data to fill external navigation links
|
|
352
|
-
*/
|
|
353
|
-
"extlinkdata"?: string | MenuItem[];
|
|
354
|
-
/**
|
|
355
|
-
* hide login button if true (optional)
|
|
356
|
-
*/
|
|
357
|
-
"hideloginbutton"?: boolean;
|
|
358
|
-
/**
|
|
359
|
-
* alternative logo title text (optional)
|
|
360
|
-
*/
|
|
361
|
-
"imagealt"?: string;
|
|
362
|
-
/**
|
|
363
|
-
* data to fill internal navigation links
|
|
364
|
-
*/
|
|
365
|
-
"intlinkdata"?: string | MenuItem[];
|
|
366
|
-
/**
|
|
367
|
-
* graphic flag to set myzanichelli style
|
|
368
|
-
*/
|
|
369
|
-
"ismyz": boolean;
|
|
370
|
-
/**
|
|
371
|
-
* url to attach to logo (optional)
|
|
372
|
-
*/
|
|
373
|
-
"logolink"?: string;
|
|
374
|
-
/**
|
|
375
|
-
* data to fill user dropdown menu (optional)
|
|
376
|
-
*/
|
|
377
|
-
"userdata"?: string | HeaderUserData;
|
|
378
|
-
}
|
|
379
341
|
interface ZHeading {
|
|
380
342
|
"component": string;
|
|
381
343
|
"level": 1 | 2 | 3 | 4;
|
|
@@ -738,6 +700,10 @@ export namespace Components {
|
|
|
738
700
|
"modaltitle"?: string;
|
|
739
701
|
}
|
|
740
702
|
interface ZModalLogin {
|
|
703
|
+
/**
|
|
704
|
+
* Forgot Password Url
|
|
705
|
+
*/
|
|
706
|
+
"forgotPasswordUrl": string;
|
|
741
707
|
/**
|
|
742
708
|
* Login modal title
|
|
743
709
|
*/
|
|
@@ -941,6 +907,44 @@ export namespace Components {
|
|
|
941
907
|
*/
|
|
942
908
|
"underlined": boolean;
|
|
943
909
|
}
|
|
910
|
+
interface ZMyzTopbar {
|
|
911
|
+
/**
|
|
912
|
+
* set current active menu link (optional)
|
|
913
|
+
*/
|
|
914
|
+
"activeintlinkid"?: string;
|
|
915
|
+
/**
|
|
916
|
+
* set current active sub menu link (optional)
|
|
917
|
+
*/
|
|
918
|
+
"activesublinkid"?: string;
|
|
919
|
+
/**
|
|
920
|
+
* data to fill external navigation links
|
|
921
|
+
*/
|
|
922
|
+
"extlinkdata"?: string | MenuItem[];
|
|
923
|
+
/**
|
|
924
|
+
* hide login button if true (optional)
|
|
925
|
+
*/
|
|
926
|
+
"hideloginbutton"?: boolean;
|
|
927
|
+
/**
|
|
928
|
+
* alternative logo title text (optional)
|
|
929
|
+
*/
|
|
930
|
+
"imagealt"?: string;
|
|
931
|
+
/**
|
|
932
|
+
* data to fill internal navigation links
|
|
933
|
+
*/
|
|
934
|
+
"intlinkdata"?: string | MenuItem[];
|
|
935
|
+
/**
|
|
936
|
+
* graphic flag to set myzanichelli style
|
|
937
|
+
*/
|
|
938
|
+
"ismyz": boolean;
|
|
939
|
+
/**
|
|
940
|
+
* url to attach to logo (optional)
|
|
941
|
+
*/
|
|
942
|
+
"logolink"?: string;
|
|
943
|
+
/**
|
|
944
|
+
* data to fill user dropdown menu (optional)
|
|
945
|
+
*/
|
|
946
|
+
"userdata"?: string | HeaderUserData;
|
|
947
|
+
}
|
|
944
948
|
interface ZNavigationTab {
|
|
945
949
|
"disabled"?: boolean;
|
|
946
950
|
"orientation": string;
|
|
@@ -1579,12 +1583,6 @@ declare global {
|
|
|
1579
1583
|
prototype: HTMLZGhostLoadingElement;
|
|
1580
1584
|
new (): HTMLZGhostLoadingElement;
|
|
1581
1585
|
};
|
|
1582
|
-
interface HTMLZHeaderElement extends Components.ZHeader, HTMLStencilElement {
|
|
1583
|
-
}
|
|
1584
|
-
var HTMLZHeaderElement: {
|
|
1585
|
-
prototype: HTMLZHeaderElement;
|
|
1586
|
-
new (): HTMLZHeaderElement;
|
|
1587
|
-
};
|
|
1588
1586
|
interface HTMLZHeadingElement extends Components.ZHeading, HTMLStencilElement {
|
|
1589
1587
|
}
|
|
1590
1588
|
var HTMLZHeadingElement: {
|
|
@@ -1771,6 +1769,12 @@ declare global {
|
|
|
1771
1769
|
prototype: HTMLZMyzListItemElement;
|
|
1772
1770
|
new (): HTMLZMyzListItemElement;
|
|
1773
1771
|
};
|
|
1772
|
+
interface HTMLZMyzTopbarElement extends Components.ZMyzTopbar, HTMLStencilElement {
|
|
1773
|
+
}
|
|
1774
|
+
var HTMLZMyzTopbarElement: {
|
|
1775
|
+
prototype: HTMLZMyzTopbarElement;
|
|
1776
|
+
new (): HTMLZMyzTopbarElement;
|
|
1777
|
+
};
|
|
1774
1778
|
interface HTMLZNavigationTabElement extends Components.ZNavigationTab, HTMLStencilElement {
|
|
1775
1779
|
}
|
|
1776
1780
|
var HTMLZNavigationTabElement: {
|
|
@@ -1997,7 +2001,6 @@ declare global {
|
|
|
1997
2001
|
"z-footer-section": HTMLZFooterSectionElement;
|
|
1998
2002
|
"z-footer-social": HTMLZFooterSocialElement;
|
|
1999
2003
|
"z-ghost-loading": HTMLZGhostLoadingElement;
|
|
2000
|
-
"z-header": HTMLZHeaderElement;
|
|
2001
2004
|
"z-heading": HTMLZHeadingElement;
|
|
2002
2005
|
"z-icon": HTMLZIconElement;
|
|
2003
2006
|
"z-icon-package": HTMLZIconPackageElement;
|
|
@@ -2029,6 +2032,7 @@ declare global {
|
|
|
2029
2032
|
"z-myz-card-list": HTMLZMyzCardListElement;
|
|
2030
2033
|
"z-myz-list": HTMLZMyzListElement;
|
|
2031
2034
|
"z-myz-list-item": HTMLZMyzListItemElement;
|
|
2035
|
+
"z-myz-topbar": HTMLZMyzTopbarElement;
|
|
2032
2036
|
"z-navigation-tab": HTMLZNavigationTabElement;
|
|
2033
2037
|
"z-navigation-tabs": HTMLZNavigationTabsElement;
|
|
2034
2038
|
"z-notification": HTMLZNotificationElement;
|
|
@@ -2422,44 +2426,6 @@ declare namespace LocalJSX {
|
|
|
2422
2426
|
}
|
|
2423
2427
|
interface ZGhostLoading {
|
|
2424
2428
|
}
|
|
2425
|
-
interface ZHeader {
|
|
2426
|
-
/**
|
|
2427
|
-
* set current active menu link (optional)
|
|
2428
|
-
*/
|
|
2429
|
-
"activeintlinkid"?: string;
|
|
2430
|
-
/**
|
|
2431
|
-
* set current active sub menu link (optional)
|
|
2432
|
-
*/
|
|
2433
|
-
"activesublinkid"?: string;
|
|
2434
|
-
/**
|
|
2435
|
-
* data to fill external navigation links
|
|
2436
|
-
*/
|
|
2437
|
-
"extlinkdata"?: string | MenuItem[];
|
|
2438
|
-
/**
|
|
2439
|
-
* hide login button if true (optional)
|
|
2440
|
-
*/
|
|
2441
|
-
"hideloginbutton"?: boolean;
|
|
2442
|
-
/**
|
|
2443
|
-
* alternative logo title text (optional)
|
|
2444
|
-
*/
|
|
2445
|
-
"imagealt"?: string;
|
|
2446
|
-
/**
|
|
2447
|
-
* data to fill internal navigation links
|
|
2448
|
-
*/
|
|
2449
|
-
"intlinkdata"?: string | MenuItem[];
|
|
2450
|
-
/**
|
|
2451
|
-
* graphic flag to set myzanichelli style
|
|
2452
|
-
*/
|
|
2453
|
-
"ismyz"?: boolean;
|
|
2454
|
-
/**
|
|
2455
|
-
* url to attach to logo (optional)
|
|
2456
|
-
*/
|
|
2457
|
-
"logolink"?: string;
|
|
2458
|
-
/**
|
|
2459
|
-
* data to fill user dropdown menu (optional)
|
|
2460
|
-
*/
|
|
2461
|
-
"userdata"?: string | HeaderUserData;
|
|
2462
|
-
}
|
|
2463
2429
|
interface ZHeading {
|
|
2464
2430
|
"component"?: string;
|
|
2465
2431
|
"level"?: 1 | 2 | 3 | 4;
|
|
@@ -2874,6 +2840,10 @@ declare namespace LocalJSX {
|
|
|
2874
2840
|
"onModalHeaderActive"?: (event: CustomEvent<any>) => void;
|
|
2875
2841
|
}
|
|
2876
2842
|
interface ZModalLogin {
|
|
2843
|
+
/**
|
|
2844
|
+
* Forgot Password Url
|
|
2845
|
+
*/
|
|
2846
|
+
"forgotPasswordUrl"?: string;
|
|
2877
2847
|
/**
|
|
2878
2848
|
* Login modal title
|
|
2879
2849
|
*/
|
|
@@ -3109,6 +3079,44 @@ declare namespace LocalJSX {
|
|
|
3109
3079
|
*/
|
|
3110
3080
|
"underlined"?: boolean;
|
|
3111
3081
|
}
|
|
3082
|
+
interface ZMyzTopbar {
|
|
3083
|
+
/**
|
|
3084
|
+
* set current active menu link (optional)
|
|
3085
|
+
*/
|
|
3086
|
+
"activeintlinkid"?: string;
|
|
3087
|
+
/**
|
|
3088
|
+
* set current active sub menu link (optional)
|
|
3089
|
+
*/
|
|
3090
|
+
"activesublinkid"?: string;
|
|
3091
|
+
/**
|
|
3092
|
+
* data to fill external navigation links
|
|
3093
|
+
*/
|
|
3094
|
+
"extlinkdata"?: string | MenuItem[];
|
|
3095
|
+
/**
|
|
3096
|
+
* hide login button if true (optional)
|
|
3097
|
+
*/
|
|
3098
|
+
"hideloginbutton"?: boolean;
|
|
3099
|
+
/**
|
|
3100
|
+
* alternative logo title text (optional)
|
|
3101
|
+
*/
|
|
3102
|
+
"imagealt"?: string;
|
|
3103
|
+
/**
|
|
3104
|
+
* data to fill internal navigation links
|
|
3105
|
+
*/
|
|
3106
|
+
"intlinkdata"?: string | MenuItem[];
|
|
3107
|
+
/**
|
|
3108
|
+
* graphic flag to set myzanichelli style
|
|
3109
|
+
*/
|
|
3110
|
+
"ismyz"?: boolean;
|
|
3111
|
+
/**
|
|
3112
|
+
* url to attach to logo (optional)
|
|
3113
|
+
*/
|
|
3114
|
+
"logolink"?: string;
|
|
3115
|
+
/**
|
|
3116
|
+
* data to fill user dropdown menu (optional)
|
|
3117
|
+
*/
|
|
3118
|
+
"userdata"?: string | HeaderUserData;
|
|
3119
|
+
}
|
|
3112
3120
|
interface ZNavigationTab {
|
|
3113
3121
|
"disabled"?: boolean;
|
|
3114
3122
|
"onSelected"?: (event: CustomEvent<any>) => void;
|
|
@@ -3692,7 +3700,6 @@ declare namespace LocalJSX {
|
|
|
3692
3700
|
"z-footer-section": ZFooterSection;
|
|
3693
3701
|
"z-footer-social": ZFooterSocial;
|
|
3694
3702
|
"z-ghost-loading": ZGhostLoading;
|
|
3695
|
-
"z-header": ZHeader;
|
|
3696
3703
|
"z-heading": ZHeading;
|
|
3697
3704
|
"z-icon": ZIcon;
|
|
3698
3705
|
"z-icon-package": ZIconPackage;
|
|
@@ -3724,6 +3731,7 @@ declare namespace LocalJSX {
|
|
|
3724
3731
|
"z-myz-card-list": ZMyzCardList;
|
|
3725
3732
|
"z-myz-list": ZMyzList;
|
|
3726
3733
|
"z-myz-list-item": ZMyzListItem;
|
|
3734
|
+
"z-myz-topbar": ZMyzTopbar;
|
|
3727
3735
|
"z-navigation-tab": ZNavigationTab;
|
|
3728
3736
|
"z-navigation-tabs": ZNavigationTabs;
|
|
3729
3737
|
"z-notification": ZNotification;
|
|
@@ -3785,7 +3793,6 @@ declare module "@stencil/core" {
|
|
|
3785
3793
|
"z-footer-section": LocalJSX.ZFooterSection & JSXBase.HTMLAttributes<HTMLZFooterSectionElement>;
|
|
3786
3794
|
"z-footer-social": LocalJSX.ZFooterSocial & JSXBase.HTMLAttributes<HTMLZFooterSocialElement>;
|
|
3787
3795
|
"z-ghost-loading": LocalJSX.ZGhostLoading & JSXBase.HTMLAttributes<HTMLZGhostLoadingElement>;
|
|
3788
|
-
"z-header": LocalJSX.ZHeader & JSXBase.HTMLAttributes<HTMLZHeaderElement>;
|
|
3789
3796
|
"z-heading": LocalJSX.ZHeading & JSXBase.HTMLAttributes<HTMLZHeadingElement>;
|
|
3790
3797
|
"z-icon": LocalJSX.ZIcon & JSXBase.HTMLAttributes<HTMLZIconElement>;
|
|
3791
3798
|
"z-icon-package": LocalJSX.ZIconPackage & JSXBase.HTMLAttributes<HTMLZIconPackageElement>;
|
|
@@ -3817,6 +3824,7 @@ declare module "@stencil/core" {
|
|
|
3817
3824
|
"z-myz-card-list": LocalJSX.ZMyzCardList & JSXBase.HTMLAttributes<HTMLZMyzCardListElement>;
|
|
3818
3825
|
"z-myz-list": LocalJSX.ZMyzList & JSXBase.HTMLAttributes<HTMLZMyzListElement>;
|
|
3819
3826
|
"z-myz-list-item": LocalJSX.ZMyzListItem & JSXBase.HTMLAttributes<HTMLZMyzListItemElement>;
|
|
3827
|
+
"z-myz-topbar": LocalJSX.ZMyzTopbar & JSXBase.HTMLAttributes<HTMLZMyzTopbarElement>;
|
|
3820
3828
|
"z-navigation-tab": LocalJSX.ZNavigationTab & JSXBase.HTMLAttributes<HTMLZNavigationTabElement>;
|
|
3821
3829
|
"z-navigation-tabs": LocalJSX.ZNavigationTabs & JSXBase.HTMLAttributes<HTMLZNavigationTabsElement>;
|
|
3822
3830
|
"z-notification": LocalJSX.ZNotification & JSXBase.HTMLAttributes<HTMLZNotificationElement>;
|
|
@@ -2,7 +2,7 @@ import { MenuItem, HeaderUserData, ListItemBean } from "../../../beans";
|
|
|
2
2
|
/**
|
|
3
3
|
* @slot editors - top menu editors images bar (only with ismyz prop === true)
|
|
4
4
|
*/
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ZMyzTopbar {
|
|
6
6
|
/** data to fill internal navigation links */
|
|
7
7
|
intlinkdata?: string | MenuItem[];
|
|
8
8
|
/** data to fill external navigation links */
|
|
@@ -43,6 +43,9 @@ export declare class ZHeader {
|
|
|
43
43
|
renderMenuItemsData(menuItem: any): HTMLSpanElement | null;
|
|
44
44
|
renderMobileSubMenu(menuItems: ListItemBean[], id?: string): HTMLSpanElement;
|
|
45
45
|
renderSubMenu(menuItem: MenuItem): HTMLDivElement | undefined;
|
|
46
|
+
renderExtLinksIcons(icon: any): {
|
|
47
|
+
icon: any;
|
|
48
|
+
};
|
|
46
49
|
renderExtMenu(menuItems: MenuItem[]): HTMLDivElement;
|
|
47
50
|
renderLoginDiv(userData: HeaderUserData): HTMLDivElement;
|
|
48
51
|
renderLoginButton(): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c as o,h as a,g as l}from"./p-859f6438.js";import{m as n,a as s}from"./p-e34dbabe.js";const t=class{constructor(a){i(this,a),this.loginSubmit=o(this,"loginSubmit",7),this.signupClick=o(this,"signupClick",7),this.zainoDigitaleClick=o(this,"zainoDigitaleClick",7),this.heading="Entra in MyZanichelli",this.externalProviderCheck=!1}componentDidLoad(){this.externalProviderCheck=!!this.hostElement.querySelectorAll('[slot="provider"]').length}emitLoginSubmit(){const i=this.hostElement.querySelector("z-input#username"),o=this.hostElement.querySelector("z-input#password");if(!i||!o)return;let a=i.value,l=o.value;a&&l?(a=this.cleanUsername(a),this.loginSubmit.emit({username:a,password:l,originalUsername:i.value})):this.status=n.error}emitSignupClick(){this.signupClick.emit()}emitZainoDigitaleClick(){this.zainoDigitaleClick.emit()}handleInputKeyUp(i){"Enter"===i.code&&this.emitLoginSubmit()}cleanUsername(i){return i=i.trim().toLowerCase(),/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/g.test(i)&&(i=i.replace(/[- .)(]/g,""),/^[\d ]*$/.test(i)&&(i="+39"+i)),i}renderZainoDigitaleButton(){return a("z-button",{variant:s.secondary,onClick:()=>this.emitZainoDigitaleClick(),class:"zainoDigitale"},a("div",{class:"zd"},a("svg",{width:"18px",height:"24px",viewBox:"0 0 18 24"},a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},a("g",{transform:"translate(-313.000000, -329.000000)",fill:"#E2001A","fill-rule":"nonzero"},a("g",{transform:"translate(25.000000, 191.000000)"},a("g",null,a("g",{transform:"translate(0.000000, 100.000000)"},a("g",null,a("g",{transform:"translate(276.000000, 28.000000)"},a("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"}))))))))),a("span",null,"ZAINO DIGITALE")))}render(){return a("z-modal",{modaltitle:this.heading},a("div",{class:"wrapper",slot:"modalContent"},a("form",{method:"post"},a("div",{class:"username"},a("slot",{name:"username"},a("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:i=>this.handleInputKeyUp(i),onInputChange:()=>this.status=null}))),a("div",{class:"password"},a("slot",{name:"password"},a("z-input",{id:"password",label:"password",placeholder:"Inserisci la tua password",type:"password",name:"password",autocomplete:"current-password",status:this.status,onKeyUp:i=>this.handleInputKeyUp(i),onInputChange:()=>this.status=null}))),a("z-link",{class:"forget",href:
|
|
1
|
+
import{r as i,c as o,h as a,g as l}from"./p-859f6438.js";import{m as n,a as s}from"./p-e34dbabe.js";const t=class{constructor(a){i(this,a),this.loginSubmit=o(this,"loginSubmit",7),this.signupClick=o(this,"signupClick",7),this.zainoDigitaleClick=o(this,"zainoDigitaleClick",7),this.heading="Entra in MyZanichelli",this.externalProviderCheck=!1}componentDidLoad(){this.externalProviderCheck=!!this.hostElement.querySelectorAll('[slot="provider"]').length}emitLoginSubmit(){const i=this.hostElement.querySelector("z-input#username"),o=this.hostElement.querySelector("z-input#password");if(!i||!o)return;let a=i.value,l=o.value;a&&l?(a=this.cleanUsername(a),this.loginSubmit.emit({username:a,password:l,originalUsername:i.value})):this.status=n.error}emitSignupClick(){this.signupClick.emit()}emitZainoDigitaleClick(){this.zainoDigitaleClick.emit()}handleInputKeyUp(i){"Enter"===i.code&&this.emitLoginSubmit()}cleanUsername(i){return i=i.trim().toLowerCase(),/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/g.test(i)&&(i=i.replace(/[- .)(]/g,""),/^[\d ]*$/.test(i)&&(i="+39"+i)),i}renderZainoDigitaleButton(){return a("z-button",{variant:s.secondary,onClick:()=>this.emitZainoDigitaleClick(),class:"zainoDigitale"},a("div",{class:"zd"},a("svg",{width:"18px",height:"24px",viewBox:"0 0 18 24"},a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},a("g",{transform:"translate(-313.000000, -329.000000)",fill:"#E2001A","fill-rule":"nonzero"},a("g",{transform:"translate(25.000000, 191.000000)"},a("g",null,a("g",{transform:"translate(0.000000, 100.000000)"},a("g",null,a("g",{transform:"translate(276.000000, 28.000000)"},a("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"}))))))))),a("span",null,"ZAINO DIGITALE")))}render(){return a("z-modal",{modaltitle:this.heading},a("div",{class:"wrapper",slot:"modalContent"},a("form",{method:"post"},a("div",{class:"username"},a("slot",{name:"username"},a("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:i=>this.handleInputKeyUp(i),onInputChange:()=>this.status=null}))),a("div",{class:"password"},a("slot",{name:"password"},a("z-input",{id:"password",label:"password",placeholder:"Inserisci la tua password",type:"password",name:"password",autocomplete:"current-password",status:this.status,onKeyUp:i=>this.handleInputKeyUp(i),onInputChange:()=>this.status=null}))),a("z-link",{class:"forget",href:this.forgotPasswordUrl},"Password dimenticata?"),a("div",{class:"login"},a("slot",{name:"login"},a("z-button",{variant:s.primary,onClick:()=>this.emitLoginSubmit()},"Accedi")))),a("hr",null),a("z-body",{class:"signup",level:4,variant:"semibold"},"Non hai ancora un account?"),a("div",{class:"signup"},a("slot",{name:"signup"},a("z-button",{variant:s.secondary,onClick:()=>this.emitSignupClick()},"Registrati"))),!this.externalProviderCheck&&a("div",{class:"providers"},a("z-body",{class:"provider",level:5,variant:"regular"},"OPPURE ACCEDI CON:"),a("slot",{name:"provider"},this.renderZainoDigitaleButton(),a("z-link",{icon:"informationsource",href:"https://www.zainodigitale.it/#/landing"},"Cos'è Zaino Digitale?")))))}get hostElement(){return l(this)}};t.style='.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)}}';export{t as z_modal_login}
|