@haloduck/ui 2.0.46 → 2.0.48
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/fesm2022/haloduck-ui.mjs +446 -10
- package/fesm2022/haloduck-ui.mjs.map +1 -1
- package/haloduck-ui-2.0.48.tgz +0 -0
- package/index.d.ts +52 -4
- package/package.json +1 -1
- package/public/i18n/haloduck/en.json +12 -1
- package/public/i18n/haloduck/ko.json +12 -1
- package/src/tailwind.css +288 -9
- package/haloduck-ui-2.0.46.tgz +0 -0
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { FormGroup, FormBuilder, ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { EventEmitter, AfterViewInit, OnChanges, ElementRef, SimpleChanges,
|
|
4
|
+
import { OnInit, EventEmitter, AfterViewInit, OnChanges, ElementRef, SimpleChanges, OnDestroy, Type, Renderer2, Injector, TemplateRef } from '@angular/core';
|
|
5
5
|
import * as rxjs from 'rxjs';
|
|
6
6
|
import { Observable, Subject } from 'rxjs';
|
|
7
7
|
import { LngLat, MenuItemEx, SearchParams, TableRowProperty } from '@haloduck/core';
|
|
@@ -12,10 +12,23 @@ import * as _haloduck_ui from '@haloduck/ui';
|
|
|
12
12
|
import { OverlayRef, Overlay } from '@angular/cdk/overlay';
|
|
13
13
|
import * as _jsverse_transloco from '@jsverse/transloco';
|
|
14
14
|
|
|
15
|
+
interface SocialLoginProvider {
|
|
16
|
+
name: 'google' | 'apple' | 'kakao';
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
clientId?: string;
|
|
19
|
+
redirectUrl?: string;
|
|
20
|
+
state?: {
|
|
21
|
+
[key: string]: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
15
24
|
declare class AuthenticateComponent {
|
|
16
25
|
private fb;
|
|
17
26
|
private http;
|
|
18
27
|
private notificationService;
|
|
28
|
+
metaData?: any;
|
|
29
|
+
socialLoginProviders: SocialLoginProvider[];
|
|
30
|
+
showSocialLogin: boolean;
|
|
31
|
+
showDivider: boolean;
|
|
19
32
|
loginForm: FormGroup;
|
|
20
33
|
signupForm: FormGroup;
|
|
21
34
|
resetForm: FormGroup;
|
|
@@ -41,8 +54,43 @@ declare class AuthenticateComponent {
|
|
|
41
54
|
label: string;
|
|
42
55
|
valid: boolean;
|
|
43
56
|
}[];
|
|
57
|
+
get enabledSocialProviders(): SocialLoginProvider[];
|
|
58
|
+
isProviderEnabled(providerName: 'google' | 'apple' | 'kakao'): boolean;
|
|
59
|
+
loginWithGoogle(): void;
|
|
60
|
+
loginWithApple(): void;
|
|
61
|
+
loginWithKakao(): void;
|
|
62
|
+
getSocialLoginIcon(provider: string): string;
|
|
63
|
+
getSocialLoginLabel(provider: string): string;
|
|
44
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticateComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticateComponent, "haloduck-authenticate", never, {}, {}, never, never, true, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticateComponent, "haloduck-authenticate", never, { "metaData": { "alias": "metaData"; "required": false; }; "socialLoginProviders": { "alias": "socialLoginProviders"; "required": false; }; "showSocialLogin": { "alias": "showSocialLogin"; "required": false; }; "showDivider": { "alias": "showDivider"; "required": false; }; }, {}, never, never, true, never>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
interface ProcessCognitoUserResponse {
|
|
69
|
+
email: string;
|
|
70
|
+
authResult: {
|
|
71
|
+
AccessToken: string;
|
|
72
|
+
ExpiresIn: number;
|
|
73
|
+
IdToken: string;
|
|
74
|
+
RefreshToken: string;
|
|
75
|
+
TokenType: string;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
declare class AuthenticateCallbackComponent implements OnInit {
|
|
79
|
+
private route;
|
|
80
|
+
private router;
|
|
81
|
+
private notificationService;
|
|
82
|
+
isProcessing: boolean;
|
|
83
|
+
error: string | null;
|
|
84
|
+
success: boolean;
|
|
85
|
+
ngOnInit(): void;
|
|
86
|
+
private handleSocialCallback;
|
|
87
|
+
private decodeBase64;
|
|
88
|
+
private processAmplifyLogin;
|
|
89
|
+
private getClientId;
|
|
90
|
+
redirectToLogin(): void;
|
|
91
|
+
private redirectAfterLogin;
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticateCallbackComponent, never>;
|
|
93
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticateCallbackComponent, "haloduck-authenticate-callback", never, {}, {}, never, never, true, never>;
|
|
46
94
|
}
|
|
47
95
|
|
|
48
96
|
type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'none';
|
|
@@ -872,5 +920,5 @@ declare const provideHaloduckTransloco: () => {
|
|
|
872
920
|
multi: boolean;
|
|
873
921
|
}[];
|
|
874
922
|
|
|
875
|
-
export { AuthenticateComponent, AutoLoadDirective, BreadcrumbComponent, ButtonComponent, CalendarComponent, ConfirmDialogService, CopyButtonComponent, DatePickerComponent, DateRangeComponent, DialogService, DrawCanvasComponent, ERROR_NOT_ACCEPTABLE_FILE_TYPE, ERROR_OVER_COUNT, ERROR_OVER_SIZE, ERROR_UPLOAD, FileUploaderComponent, FlipComponent, GroupedDirective, ImageUploaderComponent, ImageViewerComponent, InputComponent, LanguageSelectorComponent, MapToAddressComponent, NotificationComponent, NotificationService, PictureNameComponent, SelectComponent, SelectDropdownComponent, SideMenuComponent, SideMenuItemComponent, StlViewerComponent, TableComponent, TableSettingComponent, TableSettingService, TabsComponent, TagInputComponent, TagViewerComponent, ToggleComponent, dateToString, google, provideHaloduckTransloco };
|
|
876
|
-
export type { ButtonVariant, CalendarDate, DateRange, DateRangeDropdown, FileEx, GroupedConfig, Location, Notification, NotificationType, Option, TabItem, TableColumn, TableRow, TableSettings };
|
|
923
|
+
export { AuthenticateCallbackComponent, AuthenticateComponent, AutoLoadDirective, BreadcrumbComponent, ButtonComponent, CalendarComponent, ConfirmDialogService, CopyButtonComponent, DatePickerComponent, DateRangeComponent, DialogService, DrawCanvasComponent, ERROR_NOT_ACCEPTABLE_FILE_TYPE, ERROR_OVER_COUNT, ERROR_OVER_SIZE, ERROR_UPLOAD, FileUploaderComponent, FlipComponent, GroupedDirective, ImageUploaderComponent, ImageViewerComponent, InputComponent, LanguageSelectorComponent, MapToAddressComponent, NotificationComponent, NotificationService, PictureNameComponent, SelectComponent, SelectDropdownComponent, SideMenuComponent, SideMenuItemComponent, StlViewerComponent, TableComponent, TableSettingComponent, TableSettingService, TabsComponent, TagInputComponent, TagViewerComponent, ToggleComponent, dateToString, google, provideHaloduckTransloco };
|
|
924
|
+
export type { ButtonVariant, CalendarDate, DateRange, DateRangeDropdown, FileEx, GroupedConfig, Location, Notification, NotificationType, Option, ProcessCognitoUserResponse, SocialLoginProvider, TabItem, TableColumn, TableRow, TableSettings };
|
package/package.json
CHANGED
|
@@ -52,5 +52,16 @@
|
|
|
52
52
|
"ui.table.No data available.": "No data available.",
|
|
53
53
|
"ui.table.Show headers": "Show headers",
|
|
54
54
|
"ui.table.settings": "Table settings",
|
|
55
|
-
"ui.tag.Please input tags.": "Please input tags."
|
|
55
|
+
"ui.tag.Please input tags.": "Please input tags.",
|
|
56
|
+
"ui.authenticate.Processing authentication": "Processing authentication",
|
|
57
|
+
"ui.authenticate.Processing social login...": "Processing social login...",
|
|
58
|
+
"ui.authenticate.Authentication failed": "Authentication failed",
|
|
59
|
+
"ui.authenticate.Back to login page": "Back to login page",
|
|
60
|
+
"ui.authenticate.Authentication successful": "Authentication successful",
|
|
61
|
+
"ui.authenticate.Social login completed.": "Social login completed.",
|
|
62
|
+
"ui.authenticate.Redirecting automatically...": "Redirecting automatically...",
|
|
63
|
+
"ui.authenticate.Social login data not found.": "Social login data not found.",
|
|
64
|
+
"ui.authenticate.Social login completed successfully.": "Social login completed successfully.",
|
|
65
|
+
"ui.authenticate.Authentication processing failed.": "Authentication processing failed.",
|
|
66
|
+
"ui.authenticate.Invalid data format.": "Invalid data format."
|
|
56
67
|
}
|
|
@@ -52,5 +52,16 @@
|
|
|
52
52
|
"ui.table.No data available.": "데이터가 없습니다.",
|
|
53
53
|
"ui.table.Show headers": "헤더 표시",
|
|
54
54
|
"ui.table.settings": "테이블 설정",
|
|
55
|
-
"ui.tag.Please input tags.": "태그를 입력하세요."
|
|
55
|
+
"ui.tag.Please input tags.": "태그를 입력하세요.",
|
|
56
|
+
"ui.authenticate.Processing authentication": "인증 처리 중",
|
|
57
|
+
"ui.authenticate.Processing social login...": "소셜 로그인을 처리하고 있습니다...",
|
|
58
|
+
"ui.authenticate.Authentication failed": "로그인 실패",
|
|
59
|
+
"ui.authenticate.Back to login page": "로그인 페이지로 돌아가기",
|
|
60
|
+
"ui.authenticate.Authentication successful": "로그인 성공",
|
|
61
|
+
"ui.authenticate.Social login completed.": "소셜 로그인이 완료되었습니다.",
|
|
62
|
+
"ui.authenticate.Redirecting automatically...": "잠시 후 자동으로 이동합니다...",
|
|
63
|
+
"ui.authenticate.Social login data not found.": "소셜 로그인 데이터를 찾을 수 없습니다.",
|
|
64
|
+
"ui.authenticate.Social login completed successfully.": "소셜 로그인이 완료되었습니다.",
|
|
65
|
+
"ui.authenticate.Authentication processing failed.": "인증 처리 중 오류가 발생했습니다.",
|
|
66
|
+
"ui.authenticate.Invalid data format.": "유효하지 않은 데이터 형식입니다."
|
|
56
67
|
}
|