@everymatrix/user-login 1.54.11 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-2f8c9e3a.js → index-ce110273.js} +72 -175
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/user-login.cjs.entry.js +10179 -11021
- package/dist/cjs/user-login.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/user-login/user-login.js +27 -120
- package/dist/esm/{index-1918fa2a.js → index-824bb999.js} +72 -175
- package/dist/esm/loader.js +2 -2
- package/dist/esm/user-login.entry.js +10179 -11021
- package/dist/esm/user-login.js +3 -3
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.dev.d.ts +2 -0
- package/dist/user-login/p-57aa7a6f.js +2 -0
- package/dist/user-login/p-87c4cda6.entry.js +3119 -0
- package/dist/user-login/user-login.esm.js +1 -1
- package/package.json +1 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.dev.d.ts +0 -2
- package/dist/user-login/p-1141e892.entry.js +0 -2657
- package/dist/user-login/p-dcea7eea.js +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ce110273.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('user-login.cjs.js', document.baseURI).href));
|
|
@@ -3,98 +3,6 @@ import { getTranslations, translate } from "../../utils/locale.utils";
|
|
|
3
3
|
import "@vaadin/combo-box";
|
|
4
4
|
export class UserLogin {
|
|
5
5
|
constructor() {
|
|
6
|
-
/**
|
|
7
|
-
* API endpoint URL for login requests
|
|
8
|
-
*/
|
|
9
|
-
this.endpoint = '';
|
|
10
|
-
/**
|
|
11
|
-
* Language code for translations (default is 'en')
|
|
12
|
-
*/
|
|
13
|
-
this.lang = 'en';
|
|
14
|
-
/**
|
|
15
|
-
* Inline CSS styling provided by the client
|
|
16
|
-
*/
|
|
17
|
-
this.clientStyling = '';
|
|
18
|
-
/**
|
|
19
|
-
* URL to load additional CSS styling
|
|
20
|
-
*/
|
|
21
|
-
this.clientStylingUrl = '';
|
|
22
|
-
/**
|
|
23
|
-
* URL for fetching translations
|
|
24
|
-
*/
|
|
25
|
-
this.translationUrl = '';
|
|
26
|
-
/**
|
|
27
|
-
* Flag indicating whether the password reset feature is enabled
|
|
28
|
-
*/
|
|
29
|
-
this.passwordReset = 'false';
|
|
30
|
-
/**
|
|
31
|
-
* Regex options for user email validation
|
|
32
|
-
*/
|
|
33
|
-
this.userEmailRegexOptions = 'i';
|
|
34
|
-
/**
|
|
35
|
-
* User phone regex options
|
|
36
|
-
*/
|
|
37
|
-
this.userPhoneRegexOptions = '';
|
|
38
|
-
/**
|
|
39
|
-
* Regex options for password validation
|
|
40
|
-
*/
|
|
41
|
-
this.passwordRegexOptions = '';
|
|
42
|
-
/**
|
|
43
|
-
* Flag to determine if the component uses version 2 of the API
|
|
44
|
-
*/
|
|
45
|
-
this.version = 'gm16';
|
|
46
|
-
/**
|
|
47
|
-
* If set to true, login will be done by phone number, else by username/email
|
|
48
|
-
*/
|
|
49
|
-
this.loginByPhoneNumber = 'false';
|
|
50
|
-
/**
|
|
51
|
-
* User email or username entered in the form
|
|
52
|
-
*/
|
|
53
|
-
this.userNameEmail = '';
|
|
54
|
-
/**
|
|
55
|
-
* Password entered in the form
|
|
56
|
-
*/
|
|
57
|
-
this.userPassword = '';
|
|
58
|
-
/**
|
|
59
|
-
* Flag to indicate whether the entered email is valid
|
|
60
|
-
*/
|
|
61
|
-
this.isValidUserEmail = true;
|
|
62
|
-
/**
|
|
63
|
-
* User phone entered in the form
|
|
64
|
-
*/
|
|
65
|
-
this.userPhone = '';
|
|
66
|
-
/**
|
|
67
|
-
* User prefix entered in the form
|
|
68
|
-
*/
|
|
69
|
-
this.userPrefix = '';
|
|
70
|
-
/**
|
|
71
|
-
* Flag to indicate whether the entered password is valid
|
|
72
|
-
*/
|
|
73
|
-
this.isValidPassword = true;
|
|
74
|
-
/**
|
|
75
|
-
* Flag to indicate whether the entered phone is valid
|
|
76
|
-
*/
|
|
77
|
-
this.isValidUserPhone = true;
|
|
78
|
-
/**
|
|
79
|
-
* Toggles visibility of the password field
|
|
80
|
-
*/
|
|
81
|
-
this.isPasswordVisible = false;
|
|
82
|
-
/**
|
|
83
|
-
* Internal flag to prevent duplicate client styling appends
|
|
84
|
-
*/
|
|
85
|
-
this.limitStylingAppends = false;
|
|
86
|
-
/**
|
|
87
|
-
* Stores error message from the API
|
|
88
|
-
*/
|
|
89
|
-
this.errorMessage = '';
|
|
90
|
-
/**
|
|
91
|
-
* Indicates whether an error has occurred
|
|
92
|
-
*/
|
|
93
|
-
this.hasError = false;
|
|
94
|
-
/**
|
|
95
|
-
* Boolean for preventing user for clicking multiple times the login button
|
|
96
|
-
*/
|
|
97
|
-
this.isLoginLoading = false;
|
|
98
6
|
this.errorCode = '';
|
|
99
7
|
/**
|
|
100
8
|
* Apply inline client styling
|
|
@@ -359,6 +267,33 @@ export class UserLogin {
|
|
|
359
267
|
this.resetPassword = () => {
|
|
360
268
|
window.postMessage({ type: "NavForgotPassword" }, window.location.href);
|
|
361
269
|
};
|
|
270
|
+
this.endpoint = '';
|
|
271
|
+
this.lang = 'en';
|
|
272
|
+
this.clientStyling = '';
|
|
273
|
+
this.clientStylingUrl = '';
|
|
274
|
+
this.translationUrl = '';
|
|
275
|
+
this.passwordReset = 'false';
|
|
276
|
+
this.userEmailRegex = undefined;
|
|
277
|
+
this.userEmailRegexOptions = 'i';
|
|
278
|
+
this.userPhoneRegex = undefined;
|
|
279
|
+
this.userPhoneRegexOptions = '';
|
|
280
|
+
this.passwordRegex = undefined;
|
|
281
|
+
this.passwordRegexOptions = '';
|
|
282
|
+
this.version = 'gm16';
|
|
283
|
+
this.loginByPhoneNumber = 'false';
|
|
284
|
+
this.userNameEmail = '';
|
|
285
|
+
this.userPassword = '';
|
|
286
|
+
this.isValidUserEmail = true;
|
|
287
|
+
this.userPhone = '';
|
|
288
|
+
this.userPrefix = '';
|
|
289
|
+
this.isValidPassword = true;
|
|
290
|
+
this.isValidUserPhone = true;
|
|
291
|
+
this.isPasswordVisible = false;
|
|
292
|
+
this.limitStylingAppends = false;
|
|
293
|
+
this.errorMessage = '';
|
|
294
|
+
this.hasError = false;
|
|
295
|
+
this.userPrefixOptions = undefined;
|
|
296
|
+
this.isLoginLoading = false;
|
|
362
297
|
}
|
|
363
298
|
/**
|
|
364
299
|
* Watch for changes in the translation URL and fetch new translations
|
|
@@ -507,8 +442,6 @@ export class UserLogin {
|
|
|
507
442
|
"tags": [],
|
|
508
443
|
"text": "API endpoint URL for login requests"
|
|
509
444
|
},
|
|
510
|
-
"getter": false,
|
|
511
|
-
"setter": false,
|
|
512
445
|
"attribute": "endpoint",
|
|
513
446
|
"reflect": true,
|
|
514
447
|
"defaultValue": "''"
|
|
@@ -527,8 +460,6 @@ export class UserLogin {
|
|
|
527
460
|
"tags": [],
|
|
528
461
|
"text": "Language code for translations (default is 'en')"
|
|
529
462
|
},
|
|
530
|
-
"getter": false,
|
|
531
|
-
"setter": false,
|
|
532
463
|
"attribute": "lang",
|
|
533
464
|
"reflect": true,
|
|
534
465
|
"defaultValue": "'en'"
|
|
@@ -547,8 +478,6 @@ export class UserLogin {
|
|
|
547
478
|
"tags": [],
|
|
548
479
|
"text": "Inline CSS styling provided by the client"
|
|
549
480
|
},
|
|
550
|
-
"getter": false,
|
|
551
|
-
"setter": false,
|
|
552
481
|
"attribute": "client-styling",
|
|
553
482
|
"reflect": true,
|
|
554
483
|
"defaultValue": "''"
|
|
@@ -567,8 +496,6 @@ export class UserLogin {
|
|
|
567
496
|
"tags": [],
|
|
568
497
|
"text": "URL to load additional CSS styling"
|
|
569
498
|
},
|
|
570
|
-
"getter": false,
|
|
571
|
-
"setter": false,
|
|
572
499
|
"attribute": "client-styling-url",
|
|
573
500
|
"reflect": true,
|
|
574
501
|
"defaultValue": "''"
|
|
@@ -587,8 +514,6 @@ export class UserLogin {
|
|
|
587
514
|
"tags": [],
|
|
588
515
|
"text": "URL for fetching translations"
|
|
589
516
|
},
|
|
590
|
-
"getter": false,
|
|
591
|
-
"setter": false,
|
|
592
517
|
"attribute": "translation-url",
|
|
593
518
|
"reflect": true,
|
|
594
519
|
"defaultValue": "''"
|
|
@@ -607,8 +532,6 @@ export class UserLogin {
|
|
|
607
532
|
"tags": [],
|
|
608
533
|
"text": "Flag indicating whether the password reset feature is enabled"
|
|
609
534
|
},
|
|
610
|
-
"getter": false,
|
|
611
|
-
"setter": false,
|
|
612
535
|
"attribute": "password-reset",
|
|
613
536
|
"reflect": true,
|
|
614
537
|
"defaultValue": "'false'"
|
|
@@ -627,8 +550,6 @@ export class UserLogin {
|
|
|
627
550
|
"tags": [],
|
|
628
551
|
"text": "Regular expression for validating the user email"
|
|
629
552
|
},
|
|
630
|
-
"getter": false,
|
|
631
|
-
"setter": false,
|
|
632
553
|
"attribute": "user-email-regex",
|
|
633
554
|
"reflect": true
|
|
634
555
|
},
|
|
@@ -646,8 +567,6 @@ export class UserLogin {
|
|
|
646
567
|
"tags": [],
|
|
647
568
|
"text": "Regex options for user email validation"
|
|
648
569
|
},
|
|
649
|
-
"getter": false,
|
|
650
|
-
"setter": false,
|
|
651
570
|
"attribute": "user-email-regex-options",
|
|
652
571
|
"reflect": true,
|
|
653
572
|
"defaultValue": "'i'"
|
|
@@ -666,8 +585,6 @@ export class UserLogin {
|
|
|
666
585
|
"tags": [],
|
|
667
586
|
"text": "User phone regex"
|
|
668
587
|
},
|
|
669
|
-
"getter": false,
|
|
670
|
-
"setter": false,
|
|
671
588
|
"attribute": "user-phone-regex",
|
|
672
589
|
"reflect": true
|
|
673
590
|
},
|
|
@@ -685,8 +602,6 @@ export class UserLogin {
|
|
|
685
602
|
"tags": [],
|
|
686
603
|
"text": "User phone regex options"
|
|
687
604
|
},
|
|
688
|
-
"getter": false,
|
|
689
|
-
"setter": false,
|
|
690
605
|
"attribute": "user-phone-regex-options",
|
|
691
606
|
"reflect": true,
|
|
692
607
|
"defaultValue": "''"
|
|
@@ -705,8 +620,6 @@ export class UserLogin {
|
|
|
705
620
|
"tags": [],
|
|
706
621
|
"text": "Regular expression for validating the password"
|
|
707
622
|
},
|
|
708
|
-
"getter": false,
|
|
709
|
-
"setter": false,
|
|
710
623
|
"attribute": "password-regex",
|
|
711
624
|
"reflect": true
|
|
712
625
|
},
|
|
@@ -724,8 +637,6 @@ export class UserLogin {
|
|
|
724
637
|
"tags": [],
|
|
725
638
|
"text": "Regex options for password validation"
|
|
726
639
|
},
|
|
727
|
-
"getter": false,
|
|
728
|
-
"setter": false,
|
|
729
640
|
"attribute": "password-regex-options",
|
|
730
641
|
"reflect": true,
|
|
731
642
|
"defaultValue": "''"
|
|
@@ -744,8 +655,6 @@ export class UserLogin {
|
|
|
744
655
|
"tags": [],
|
|
745
656
|
"text": "Flag to determine if the component uses version 2 of the API"
|
|
746
657
|
},
|
|
747
|
-
"getter": false,
|
|
748
|
-
"setter": false,
|
|
749
658
|
"attribute": "version",
|
|
750
659
|
"reflect": true,
|
|
751
660
|
"defaultValue": "'gm16'"
|
|
@@ -764,8 +673,6 @@ export class UserLogin {
|
|
|
764
673
|
"tags": [],
|
|
765
674
|
"text": "If set to true, login will be done by phone number, else by username/email"
|
|
766
675
|
},
|
|
767
|
-
"getter": false,
|
|
768
|
-
"setter": false,
|
|
769
676
|
"attribute": "login-by-phone-number",
|
|
770
677
|
"reflect": true,
|
|
771
678
|
"defaultValue": "'false'"
|