@everymatrix/user-login 1.53.0 → 1.53.11

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.
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ce110273.js');
5
+ const index = require('./index-ec5acfb2.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.25.1 | 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));
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
7
+ "version": "4.25.1",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
@@ -3,6 +3,94 @@ 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;
6
94
  this.errorCode = '';
7
95
  /**
8
96
  * Apply inline client styling
@@ -257,32 +345,6 @@ export class UserLogin {
257
345
  this.resetPassword = () => {
258
346
  window.postMessage({ type: "NavForgotPassword" }, window.location.href);
259
347
  };
260
- this.endpoint = '';
261
- this.lang = 'en';
262
- this.clientStyling = '';
263
- this.clientStylingUrl = '';
264
- this.translationUrl = '';
265
- this.passwordReset = 'false';
266
- this.userEmailRegex = undefined;
267
- this.userEmailRegexOptions = 'i';
268
- this.userPhoneRegex = undefined;
269
- this.userPhoneRegexOptions = '';
270
- this.passwordRegex = undefined;
271
- this.passwordRegexOptions = '';
272
- this.version = 'gm16';
273
- this.loginByPhoneNumber = 'false';
274
- this.userNameEmail = '';
275
- this.userPassword = '';
276
- this.isValidUserEmail = true;
277
- this.userPhone = '';
278
- this.userPrefix = '';
279
- this.isValidPassword = true;
280
- this.isValidUserPhone = true;
281
- this.isPasswordVisible = false;
282
- this.limitStylingAppends = false;
283
- this.errorMessage = '';
284
- this.hasError = false;
285
- this.userPrefixOptions = undefined;
286
348
  }
287
349
  /**
288
350
  * Watch for changes in the translation URL and fetch new translations
@@ -431,6 +493,8 @@ export class UserLogin {
431
493
  "tags": [],
432
494
  "text": "API endpoint URL for login requests"
433
495
  },
496
+ "getter": false,
497
+ "setter": false,
434
498
  "attribute": "endpoint",
435
499
  "reflect": true,
436
500
  "defaultValue": "''"
@@ -449,6 +513,8 @@ export class UserLogin {
449
513
  "tags": [],
450
514
  "text": "Language code for translations (default is 'en')"
451
515
  },
516
+ "getter": false,
517
+ "setter": false,
452
518
  "attribute": "lang",
453
519
  "reflect": true,
454
520
  "defaultValue": "'en'"
@@ -467,6 +533,8 @@ export class UserLogin {
467
533
  "tags": [],
468
534
  "text": "Inline CSS styling provided by the client"
469
535
  },
536
+ "getter": false,
537
+ "setter": false,
470
538
  "attribute": "client-styling",
471
539
  "reflect": true,
472
540
  "defaultValue": "''"
@@ -485,6 +553,8 @@ export class UserLogin {
485
553
  "tags": [],
486
554
  "text": "URL to load additional CSS styling"
487
555
  },
556
+ "getter": false,
557
+ "setter": false,
488
558
  "attribute": "client-styling-url",
489
559
  "reflect": true,
490
560
  "defaultValue": "''"
@@ -503,6 +573,8 @@ export class UserLogin {
503
573
  "tags": [],
504
574
  "text": "URL for fetching translations"
505
575
  },
576
+ "getter": false,
577
+ "setter": false,
506
578
  "attribute": "translation-url",
507
579
  "reflect": true,
508
580
  "defaultValue": "''"
@@ -521,6 +593,8 @@ export class UserLogin {
521
593
  "tags": [],
522
594
  "text": "Flag indicating whether the password reset feature is enabled"
523
595
  },
596
+ "getter": false,
597
+ "setter": false,
524
598
  "attribute": "password-reset",
525
599
  "reflect": true,
526
600
  "defaultValue": "'false'"
@@ -539,6 +613,8 @@ export class UserLogin {
539
613
  "tags": [],
540
614
  "text": "Regular expression for validating the user email"
541
615
  },
616
+ "getter": false,
617
+ "setter": false,
542
618
  "attribute": "user-email-regex",
543
619
  "reflect": true
544
620
  },
@@ -556,6 +632,8 @@ export class UserLogin {
556
632
  "tags": [],
557
633
  "text": "Regex options for user email validation"
558
634
  },
635
+ "getter": false,
636
+ "setter": false,
559
637
  "attribute": "user-email-regex-options",
560
638
  "reflect": true,
561
639
  "defaultValue": "'i'"
@@ -574,6 +652,8 @@ export class UserLogin {
574
652
  "tags": [],
575
653
  "text": "User phone regex"
576
654
  },
655
+ "getter": false,
656
+ "setter": false,
577
657
  "attribute": "user-phone-regex",
578
658
  "reflect": true
579
659
  },
@@ -591,6 +671,8 @@ export class UserLogin {
591
671
  "tags": [],
592
672
  "text": "User phone regex options"
593
673
  },
674
+ "getter": false,
675
+ "setter": false,
594
676
  "attribute": "user-phone-regex-options",
595
677
  "reflect": true,
596
678
  "defaultValue": "''"
@@ -609,6 +691,8 @@ export class UserLogin {
609
691
  "tags": [],
610
692
  "text": "Regular expression for validating the password"
611
693
  },
694
+ "getter": false,
695
+ "setter": false,
612
696
  "attribute": "password-regex",
613
697
  "reflect": true
614
698
  },
@@ -626,6 +710,8 @@ export class UserLogin {
626
710
  "tags": [],
627
711
  "text": "Regex options for password validation"
628
712
  },
713
+ "getter": false,
714
+ "setter": false,
629
715
  "attribute": "password-regex-options",
630
716
  "reflect": true,
631
717
  "defaultValue": "''"
@@ -644,6 +730,8 @@ export class UserLogin {
644
730
  "tags": [],
645
731
  "text": "Flag to determine if the component uses version 2 of the API"
646
732
  },
733
+ "getter": false,
734
+ "setter": false,
647
735
  "attribute": "version",
648
736
  "reflect": true,
649
737
  "defaultValue": "'gm16'"
@@ -662,6 +750,8 @@ export class UserLogin {
662
750
  "tags": [],
663
751
  "text": "If set to true, login will be done by phone number, else by username/email"
664
752
  },
753
+ "getter": false,
754
+ "setter": false,
665
755
  "attribute": "login-by-phone-number",
666
756
  "reflect": true,
667
757
  "defaultValue": "'false'"