@haloduck/ui 2.0.48 → 2.0.49
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 +13 -3
- package/fesm2022/haloduck-ui.mjs.map +1 -1
- package/haloduck-ui-2.0.49.tgz +0 -0
- package/index.d.ts +9 -3
- package/package.json +1 -1
- package/haloduck-ui-2.0.48.tgz +0 -0
package/fesm2022/haloduck-ui.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Input, Component, inject, ChangeDetectorRef, forwardRef, ViewChild, signal, EventEmitter, Output, ViewContainerRef, NgZone, isDevMode, ElementRef, Directive, ChangeDetectionStrategy, HostBinding } from '@angular/core';
|
|
2
|
+
import { Injectable, Input, Component, inject, ChangeDetectorRef, forwardRef, ViewChild, InjectionToken, signal, EventEmitter, Output, ViewContainerRef, NgZone, isDevMode, ElementRef, Directive, ChangeDetectionStrategy, HostBinding } from '@angular/core';
|
|
3
3
|
import { signIn, confirmSignIn, resetPassword, confirmResetPassword, fetchAuthSession } from 'aws-amplify/auth';
|
|
4
4
|
import * as i1$1 from '@angular/forms';
|
|
5
5
|
import { NG_VALUE_ACCESSOR, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
@@ -196,12 +196,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
|
|
|
196
196
|
}] } });
|
|
197
197
|
|
|
198
198
|
// auth.component.ts
|
|
199
|
+
// InjectionToken for Social Login Providers configuration
|
|
200
|
+
const SOCIAL_LOGIN_PROVIDERS = new InjectionToken('SOCIAL_LOGIN_PROVIDERS');
|
|
201
|
+
// Provider function for easier configuration in ApplicationConfig
|
|
202
|
+
function provideSocialLoginProviders(providers) {
|
|
203
|
+
return {
|
|
204
|
+
provide: SOCIAL_LOGIN_PROVIDERS,
|
|
205
|
+
useValue: providers,
|
|
206
|
+
};
|
|
207
|
+
}
|
|
199
208
|
class AuthenticateComponent {
|
|
200
209
|
fb;
|
|
201
210
|
http;
|
|
202
211
|
notificationService = inject(NotificationService);
|
|
212
|
+
injectedSocialProviders = inject(SOCIAL_LOGIN_PROVIDERS, { optional: true });
|
|
203
213
|
metaData;
|
|
204
|
-
socialLoginProviders = [
|
|
214
|
+
socialLoginProviders = this.injectedSocialProviders || [
|
|
205
215
|
{ name: 'google', enabled: true },
|
|
206
216
|
{ name: 'apple', enabled: true },
|
|
207
217
|
{ name: 'kakao', enabled: true },
|
|
@@ -4839,5 +4849,5 @@ const provideHaloduckTransloco = () => provideTranslocoScope({
|
|
|
4839
4849
|
* Generated bundle index. Do not edit.
|
|
4840
4850
|
*/
|
|
4841
4851
|
|
|
4842
|
-
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, provideHaloduckTransloco };
|
|
4852
|
+
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, SOCIAL_LOGIN_PROVIDERS, SelectComponent, SelectDropdownComponent, SideMenuComponent, SideMenuItemComponent, StlViewerComponent, TableComponent, TableSettingComponent, TableSettingService, TabsComponent, TagInputComponent, TagViewerComponent, ToggleComponent, dateToString, provideHaloduckTransloco, provideSocialLoginProviders };
|
|
4843
4853
|
//# sourceMappingURL=haloduck-ui.mjs.map
|