@authing/ng-ui-components 4.0.1 → 4.0.2-rc.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/package.json +1 -1
- package/src/lib/Guard/guard.component.ts +22 -17
package/package.json
CHANGED
|
@@ -25,50 +25,55 @@ import {
|
|
|
25
25
|
export class GuardComponent implements OnInit, OnChanges {
|
|
26
26
|
constructor() {}
|
|
27
27
|
|
|
28
|
-
guard
|
|
29
|
-
|
|
28
|
+
@Input() guard!: NativeGuard;
|
|
30
29
|
@Input() appId?: string;
|
|
31
30
|
@Input() visible?: boolean;
|
|
32
31
|
@Input() tenantId?: string;
|
|
33
32
|
@Input() authClient?: AuthenticationClient;
|
|
34
33
|
@Input() config?: Partial<GuardLocalConfig>;
|
|
35
34
|
|
|
36
|
-
@Output() onLoad = new EventEmitter<
|
|
35
|
+
@Output() onLoad = new EventEmitter<
|
|
36
|
+
Parameters<Required<GuardEvents>['onLoad']>
|
|
37
|
+
>();
|
|
37
38
|
@Output() onLoadError = new EventEmitter<
|
|
38
|
-
Parameters<GuardEvents['onLoadError']>
|
|
39
|
+
Parameters<Required<GuardEvents>['onLoadError']>
|
|
40
|
+
>();
|
|
41
|
+
@Output() onLogin = new EventEmitter<
|
|
42
|
+
Parameters<Required<GuardEvents>['onLogin']>
|
|
39
43
|
>();
|
|
40
|
-
@Output() onLogin = new EventEmitter<Parameters<GuardEvents['onLogin']>>();
|
|
41
44
|
@Output() onLoginError = new EventEmitter<
|
|
42
|
-
Parameters<GuardEvents['onLoginError']>
|
|
45
|
+
Parameters<Required<GuardEvents>['onLoginError']>
|
|
43
46
|
>();
|
|
44
47
|
@Output() onRegister = new EventEmitter<
|
|
45
|
-
Parameters<GuardEvents['onRegister']>
|
|
48
|
+
Parameters<Required<GuardEvents>['onRegister']>
|
|
46
49
|
>();
|
|
47
50
|
@Output() onRegisterError = new EventEmitter<
|
|
48
|
-
Parameters<GuardEvents['onRegisterError']>
|
|
51
|
+
Parameters<Required<GuardEvents>['onRegisterError']>
|
|
49
52
|
>();
|
|
50
53
|
@Output() onEmailSend = new EventEmitter<
|
|
51
|
-
Parameters<GuardEvents['onEmailSend']>
|
|
54
|
+
Parameters<Required<GuardEvents>['onEmailSend']>
|
|
52
55
|
>();
|
|
53
56
|
@Output() onEmailSendError = new EventEmitter<
|
|
54
|
-
Parameters<GuardEvents['onEmailSendError']>
|
|
57
|
+
Parameters<Required<GuardEvents>['onEmailSendError']>
|
|
55
58
|
>();
|
|
56
59
|
@Output() onPhoneSend = new EventEmitter<
|
|
57
|
-
Parameters<GuardEvents['onPhoneSend']>
|
|
60
|
+
Parameters<Required<GuardEvents>['onPhoneSend']>
|
|
58
61
|
>();
|
|
59
62
|
@Output() onPhoneSendError = new EventEmitter<
|
|
60
|
-
Parameters<GuardEvents['onPhoneSendError']>
|
|
63
|
+
Parameters<Required<GuardEvents>['onPhoneSendError']>
|
|
61
64
|
>();
|
|
62
65
|
@Output() onPwdReset = new EventEmitter<
|
|
63
|
-
Parameters<GuardEvents['onPwdReset']>
|
|
66
|
+
Parameters<Required<GuardEvents>['onPwdReset']>
|
|
64
67
|
>();
|
|
65
68
|
@Output() onPwdResetError = new EventEmitter<
|
|
66
|
-
Parameters<GuardEvents['onPwdResetError']>
|
|
69
|
+
Parameters<Required<GuardEvents>['onPwdResetError']>
|
|
70
|
+
>();
|
|
71
|
+
@Output() onClose = new EventEmitter<
|
|
72
|
+
Parameters<Required<GuardEvents>['onClose']>
|
|
67
73
|
>();
|
|
68
|
-
@Output() onClose = new EventEmitter<Parameters<GuardEvents['onClose']>>();
|
|
69
74
|
|
|
70
75
|
@Output() onLangChange = new EventEmitter<
|
|
71
|
-
Parameters<GuardEvents['onLangChange']>
|
|
76
|
+
Parameters<Required<GuardEvents>['onLangChange']>
|
|
72
77
|
>();
|
|
73
78
|
ngAfterViewInit() {
|
|
74
79
|
// @ts-ignore
|
|
@@ -98,7 +103,7 @@ export class GuardComponent implements OnInit, OnChanges {
|
|
|
98
103
|
|
|
99
104
|
ngOnInit(): void {}
|
|
100
105
|
|
|
101
|
-
ngOnChanges(
|
|
106
|
+
ngOnChanges() {
|
|
102
107
|
if (this.visible !== undefined && this.guard) {
|
|
103
108
|
if (this.visible) {
|
|
104
109
|
this.guard?.show();
|