@solcre-org/core-ui 2.20.35 → 2.22.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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { TemplateRef, AfterViewInit, OnDestroy, ElementRef, OnInit, SimpleChanges, OnChanges, Signal, Type, ViewContainerRef, AfterViewChecked, RendererFactory2, InjectionToken, Provider, EnvironmentProviders } from '@angular/core';
3
3
  import { ValidatorFn, FormControl, FormGroup } from '@angular/forms';
4
- import { DataBaseModelInterface } from '@solcre-org/core';
4
+ import { DataBaseModelInterface, AuthUser } from '@solcre-org/core';
5
5
  import * as rxjs from 'rxjs';
6
6
  import { Observable, Subject, BehaviorSubject } from 'rxjs';
7
7
  import { NgSelectComponent } from '@ng-select/ng-select';
@@ -5708,6 +5708,58 @@ declare class AdLoginButtonComponent {
5708
5708
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AdLoginButtonComponent, "core-ad-login-button", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "authEvent": "authEvent"; }, never, never, true, never>;
5709
5709
  }
5710
5710
 
5711
+ declare const SECURE_AUTH_VALIDATION_EVENT_TYPE: {
5712
+ readonly SUCCESS: "validation-success";
5713
+ readonly ERROR: "validation-error";
5714
+ };
5715
+ type SecureAuthValidationEventType = (typeof SECURE_AUTH_VALIDATION_EVENT_TYPE)[keyof typeof SECURE_AUTH_VALIDATION_EVENT_TYPE];
5716
+
5717
+ interface SecureAuthValidationEvent {
5718
+ type: SecureAuthValidationEventType;
5719
+ code?: string;
5720
+ response?: unknown;
5721
+ user?: AuthUser | null;
5722
+ error?: unknown;
5723
+ }
5724
+
5725
+ declare const SECURE_AUTH_SCREEN_STATUS: {
5726
+ readonly IDLE: "idle";
5727
+ readonly LOADING: "loading";
5728
+ readonly SUCCESS: "success";
5729
+ readonly ERROR: "error";
5730
+ };
5731
+ type SecureAuthScreenStatus = (typeof SECURE_AUTH_SCREEN_STATUS)[keyof typeof SECURE_AUTH_SCREEN_STATUS];
5732
+
5733
+ declare class SecureAuth implements OnInit {
5734
+ private apiService;
5735
+ private authService;
5736
+ private loaderService;
5737
+ readonly screenStatus: {
5738
+ readonly IDLE: "idle";
5739
+ readonly LOADING: "loading";
5740
+ readonly SUCCESS: "success";
5741
+ readonly ERROR: "error";
5742
+ };
5743
+ validationEndpoint: _angular_core.InputSignal<string>;
5744
+ validationEvent: _angular_core.OutputEmitterRef<SecureAuthValidationEvent>;
5745
+ loaderRequestID: string;
5746
+ status: _angular_core.WritableSignal<SecureAuthScreenStatus>;
5747
+ errorMessageKey: _angular_core.WritableSignal<string | null>;
5748
+ ngOnInit(): void;
5749
+ private getCodeFromUrl;
5750
+ private getResponseData;
5751
+ private buildAuthToken;
5752
+ private loadSessionToken;
5753
+ private getTokenValue;
5754
+ private getObjectValue;
5755
+ private buildAuthUser;
5756
+ private getNumberValue;
5757
+ private getStringValue;
5758
+ private notifyAuthenticatedSession;
5759
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SecureAuth, never>;
5760
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SecureAuth, "core-secure-auth", never, { "validationEndpoint": { "alias": "validationEndpoint"; "required": false; "isSignal": true; }; }, { "validationEvent": "validationEvent"; }, never, never, true, never>;
5761
+ }
5762
+
5711
5763
  declare class GenericCalendarComponent {
5712
5764
  currentDate: _angular_core.InputSignal<Date>;
5713
5765
  selectedDate: _angular_core.InputSignal<Date | null>;
@@ -6587,5 +6639,5 @@ declare const AgeValidationHelper: {
6587
6639
 
6588
6640
  declare const ageValidator: (minimumAge: number) => ValidatorFn;
6589
6641
 
6590
- export { AD_AUTH_CONFIG, AD_AUTH_INTERCEPTOR_CONFIG, ALL_COUNTRY_CODES, ActiveFiltersComponent, AdAuthService, AdInteractionType, AdLoginButtonComponent, AgeValidationHelper, AlertComponent, AlertContainerComponent, AlertService, AlertType, ApiConfigurationProvider, BaseFieldComponent, ButtonContext, ButtonSize, ButtonType, COMMON_COUNTRIES, CacheBustingInterceptor, CalendarEventType, CardComponent, CarouselComponent, ChatMessagePosition, ChatMessageType, CheckboxFieldComponent, ColorPickerFieldComponent, ConfigurationModel, ConfirmationDialogComponent, ConfirmationDialogService, CoreHostDirective, CoreManualRefreshComponent, CoreUiHttpLoaderFactory, CoreUiTranslateLoader, CoreUiTranslateService, CountryCode, CustomClassService, DEFAULT_AD_AUTH_INTERCEPTOR_CONFIG, DEFAULT_COUNTRIES, DEFAULT_SCHEDULER_CONFIG, DataListComponent, DataListItemComponent, DataStoreService, DateFieldComponent, DateRangeFieldComponent, DateUtility, DatetimeFieldComponent, DayState, DayType, DialogActions, DocumentAction, DocumentDisplayMode, DocumentFieldComponent, DocumentFieldValidators, DocumentPayloadMode, DropdownComponent, DropdownDirection, DropdownService, DynamicFieldDirective, DynamicFieldsHelper, FieldErrorsComponent, FieldType, FileFieldComponent, FileModel, FilePreviewActionType, FileTemplateModel, FileTemplateType, FileType, FileTypeModel, FileUploadService, FilterModalComponent, FilterService, FilterType, FixedActionPosition, FixedActionsMobileModalComponent, FixedActionsMobileModalService, GalleryAnimationType, GalleryLayoutType, GalleryModalComponent, GalleryModalGlobalService, GenericButtonComponent, GenericCalendarComponent, GenericChatComponent, GenericChatService, GenericDocumentationComponent, GenericFixedActionsComponent, GenericGalleryComponent, GenericModalComponent, GenericPaginationComponent, GenericRatingComponent, GenericSchedulerComponent, GenericSidebarComponent, GenericSkeletonComponent, GenericStepsComponent, GenericSwitchComponent, GenericTableComponent, GenericTabsComponent, GenericTimelineComponent, GenericTreeComponent, GlobalApiConfigService, HeaderComponent, HeaderConfigurationService, HeaderElementType, HeaderService, HttpLoaderFactory, ImageModalComponent, ImageModalService, ImagePreviewComponent, LATIN_AMERICA_COUNTRIES, LayoutAuth, LayoutBreakpoint, LayoutComponent, LayoutService, LayoutStateService, LayoutType, LoaderComponent, LoaderService, MODEL_REFERENCE_SORT_KEY, MainNavComponent, MainNavService, ManualRefreshService, MobileHeaderComponent, MobileResolutionService, ModalMode, ModelApiService, MultiEntryFieldComponent, MultiEntryOutputFormat, NumberFieldComponent, NumberFieldConfigType, NumberFieldType, NumberRange, PERMISSION_ACTIONS_PROVIDER, PERMISSION_PROVIDER, PERMISSION_RESOURCES_PROVIDER, PaginationService, PasswordFieldComponent, PermissionEnumsService, PermissionModel, PermissionService, PermissionWrapperService, PermissionsActions, PermissionsCustomActions, PermissionsInterceptor, PermissionsResources, PhoneFieldComponent, ProgressBarComponent, ProgressBarSize, RatingService, RatingSize, RatingType, RedirectUrlService, ResetPasswordModel, RoleModel, SOUTH_AMERICA_COUNTRIES, SelectFieldComponent, ServerSelectFieldComponent, ServerSelectService, SidebarCustomModalComponent, SidebarCustomModalService, SidebarHeight, SidebarMobileModalService, SidebarMobileType, SidebarPosition, SidebarService, SidebarState, SidebarTemplateRegistryService, SidebarVisibility, SidebarWidth, SkeletonAnimation, SkeletonService, SkeletonSize, SkeletonType, SmartFieldComponent, SortDirection, SortMode, StepSize, StepStatus, StepType, StepsService, SwitchFieldComponent, TableAction, TableActionService, TableDataService, TableFixedActionsService, TableSortService, TextAreaFieldComponent, TextFieldComponent, TimeFieldComponent, TimeInterval, TimelineService, TimelineStatus, TimelineType, TranslationMergeService, TreeNodeComponent, TreeService, UruguayanDocumentValidationHelper, UsersModel, VERSION, WeekDay, adAuthGuard, adAuthInterceptor, adGuestGuard, adRoleGuard, ageValidator, calculateAge, equalToValidator, generateRandomUruguayanDocument, getCountryCodeStrings, getLatestBirthDateForAge, getRandomCi, getUruguayanDocumentValidationDigit, getValidationDigit, isSameDate, isValidCountryCode, provideAdAuth, provideAdAuthInterceptor, provideAdAuthWithInterceptor, provideCoreUiTranslateLoader, providePermissionActions, providePermissionEnums, providePermissionResources, providePermissionService, providePermissionServiceFactory, provideTranslateLoader, random, transform, transformUruguayanDocument, uruguayanDocumentValidator, validate, validateAge, validateCi, validateUruguayanDocument, validationDigit };
6591
- export type { ActiveFilterItem, ActiveFiltersConfig, AdAuthConfig, AdAuthEvent, AdAuthInterceptorConfig, AdAuthState, AdAuthUser, AdAuthorizationCodeResponse, AdLoginButtonConfig, AdditionalPermissionResources, AddressModel, AgeComparisonMode, AgeValidationInput, AgeValidationOptions, Alert, ApiConfig, ApiResponse, BottomNavItem, ButtonActionEvent, ButtonConfig, CalendarConfig, CalendarDay, CalendarEvent, CalendarHoliday, CarouselConfig, CarouselImage, ChatConfig, ChatMessage, CheckboxFieldConfig, CheckboxModalFieldConfig, CheckboxOption, ColumnConfig, ColumnDisabledConfig, CompanyInfo, ConfirmUploadRequest, ConfirmationDialogConfig, CountryOption, CustomAction, DataListItem, DateFieldConfig, DateModalFieldConfig, DateNavigationEvent, DateRangeFieldConfig, DateRangeValue, DateSelectionEvent, DocumentActionEvent, DocumentConfig, DocumentFieldConfig, DocumentFieldValue, DocumentItem, DocumentOption, DynamicFieldsHelperConfig, DynamicFieldsHelperMethods, DynamicFieldsHelperState, EventClickEvent, EventHoverEvent, ExpansionConfig, ExtendedModalFieldConfig, ExtendedPermissionProvider, FileFieldConfig, FilePreviewAction, FilePreviewConfig, FilePreviewItem, FileUploadConfig, FilterConfig, FilterParams, FixedActionConfig, FixedActionsConfig, GalleryConfig, GalleryImage, GenericTab, GenericTabClickEvent, GenericTabConfig, GlobalAction, HeaderAction, HeaderActionConfig, HeaderConfig, HeaderElementConfig, HeaderOrderConfig, HolidaySets, ImageModalData, InlineEditConfig, LayoutConfig, LayoutDataAttributes, LogoImagesConfig, ManualRefreshConfig, MobileBreakpointConfig, MobileHeaderConfig, MobileModalData, ModalButtonConfig, ModalFieldConfig, ModalStepConfig, ModalTabConfig, ModalValidationResult, MoreDataConfig, MultiEntryFieldConfig, MultiEntryFieldValue, NavConfig, NavItem, NavUserConfig, NumberFieldConfig, NumberModalFieldConfig, PaginatedResponse, PaginationEvent, PaginationInfo, PermissionActionsProvider, PermissionProvider, PermissionResourcesProvider, PhoneFieldConfig, PhoneModalFieldConfig, PresignedDownloadUrlResponse, PresignedUrlRequest, PresignedUrlResponse, PreviewFileUrl, RatingConfig, RatingStar, RatingSubmitEvent, RowStyleConfig, RowVisibilityConfig, SchedulerColumn, SchedulerConfig, SchedulerTimeSlot, SchedulerViewMode, SchedulerWeekDay, SearchResponse, SelectServerSideConfig, SidebarBackButton, SidebarComponentConfig, SidebarComponentEvents, SidebarConfig, SidebarCustomModalConfig, SidebarItem, SidebarResponsiveConfig, SidebarSubItem, SidebarTemplateContext, SkeletonConfig, SkeletonItemConfig, SlotClickEvent, SortConfig, StepChangeEvent, StepClickEvent, StepItemConfig, StepsConfig, SwitchFieldConfig, SwitchModalFieldConfig, SwitchOption, TableActionConfig, TableFixedActionsConfig, TableSortConfig, TimeFieldConfig, TimeFieldValue, TimeOption, TimeSlot, TimelineConfig, TimelineItem, TreeConfig, TreeDropEvent, TreeIconResolver, TreeNode, TreeNodeAction, UruguayanDocumentInput };
6642
+ export { AD_AUTH_CONFIG, AD_AUTH_INTERCEPTOR_CONFIG, ALL_COUNTRY_CODES, ActiveFiltersComponent, AdAuthService, AdInteractionType, AdLoginButtonComponent, AgeValidationHelper, AlertComponent, AlertContainerComponent, AlertService, AlertType, ApiConfigurationProvider, BaseFieldComponent, ButtonContext, ButtonSize, ButtonType, COMMON_COUNTRIES, CacheBustingInterceptor, CalendarEventType, CardComponent, CarouselComponent, ChatMessagePosition, ChatMessageType, CheckboxFieldComponent, ColorPickerFieldComponent, ConfigurationModel, ConfirmationDialogComponent, ConfirmationDialogService, CoreHostDirective, CoreManualRefreshComponent, CoreUiHttpLoaderFactory, CoreUiTranslateLoader, CoreUiTranslateService, CountryCode, CustomClassService, DEFAULT_AD_AUTH_INTERCEPTOR_CONFIG, DEFAULT_COUNTRIES, DEFAULT_SCHEDULER_CONFIG, DataListComponent, DataListItemComponent, DataStoreService, DateFieldComponent, DateRangeFieldComponent, DateUtility, DatetimeFieldComponent, DayState, DayType, DialogActions, DocumentAction, DocumentDisplayMode, DocumentFieldComponent, DocumentFieldValidators, DocumentPayloadMode, DropdownComponent, DropdownDirection, DropdownService, DynamicFieldDirective, DynamicFieldsHelper, FieldErrorsComponent, FieldType, FileFieldComponent, FileModel, FilePreviewActionType, FileTemplateModel, FileTemplateType, FileType, FileTypeModel, FileUploadService, FilterModalComponent, FilterService, FilterType, FixedActionPosition, FixedActionsMobileModalComponent, FixedActionsMobileModalService, GalleryAnimationType, GalleryLayoutType, GalleryModalComponent, GalleryModalGlobalService, GenericButtonComponent, GenericCalendarComponent, GenericChatComponent, GenericChatService, GenericDocumentationComponent, GenericFixedActionsComponent, GenericGalleryComponent, GenericModalComponent, GenericPaginationComponent, GenericRatingComponent, GenericSchedulerComponent, GenericSidebarComponent, GenericSkeletonComponent, GenericStepsComponent, GenericSwitchComponent, GenericTableComponent, GenericTabsComponent, GenericTimelineComponent, GenericTreeComponent, GlobalApiConfigService, HeaderComponent, HeaderConfigurationService, HeaderElementType, HeaderService, HttpLoaderFactory, ImageModalComponent, ImageModalService, ImagePreviewComponent, LATIN_AMERICA_COUNTRIES, LayoutAuth, LayoutBreakpoint, LayoutComponent, LayoutService, LayoutStateService, LayoutType, LoaderComponent, LoaderService, MODEL_REFERENCE_SORT_KEY, MainNavComponent, MainNavService, ManualRefreshService, MobileHeaderComponent, MobileResolutionService, ModalMode, ModelApiService, MultiEntryFieldComponent, MultiEntryOutputFormat, NumberFieldComponent, NumberFieldConfigType, NumberFieldType, NumberRange, PERMISSION_ACTIONS_PROVIDER, PERMISSION_PROVIDER, PERMISSION_RESOURCES_PROVIDER, PaginationService, PasswordFieldComponent, PermissionEnumsService, PermissionModel, PermissionService, PermissionWrapperService, PermissionsActions, PermissionsCustomActions, PermissionsInterceptor, PermissionsResources, PhoneFieldComponent, ProgressBarComponent, ProgressBarSize, RatingService, RatingSize, RatingType, RedirectUrlService, ResetPasswordModel, RoleModel, SECURE_AUTH_SCREEN_STATUS, SECURE_AUTH_VALIDATION_EVENT_TYPE, SOUTH_AMERICA_COUNTRIES, SecureAuth, SelectFieldComponent, ServerSelectFieldComponent, ServerSelectService, SidebarCustomModalComponent, SidebarCustomModalService, SidebarHeight, SidebarMobileModalService, SidebarMobileType, SidebarPosition, SidebarService, SidebarState, SidebarTemplateRegistryService, SidebarVisibility, SidebarWidth, SkeletonAnimation, SkeletonService, SkeletonSize, SkeletonType, SmartFieldComponent, SortDirection, SortMode, StepSize, StepStatus, StepType, StepsService, SwitchFieldComponent, TableAction, TableActionService, TableDataService, TableFixedActionsService, TableSortService, TextAreaFieldComponent, TextFieldComponent, TimeFieldComponent, TimeInterval, TimelineService, TimelineStatus, TimelineType, TranslationMergeService, TreeNodeComponent, TreeService, UruguayanDocumentValidationHelper, UsersModel, VERSION, WeekDay, adAuthGuard, adAuthInterceptor, adGuestGuard, adRoleGuard, ageValidator, calculateAge, equalToValidator, generateRandomUruguayanDocument, getCountryCodeStrings, getLatestBirthDateForAge, getRandomCi, getUruguayanDocumentValidationDigit, getValidationDigit, isSameDate, isValidCountryCode, provideAdAuth, provideAdAuthInterceptor, provideAdAuthWithInterceptor, provideCoreUiTranslateLoader, providePermissionActions, providePermissionEnums, providePermissionResources, providePermissionService, providePermissionServiceFactory, provideTranslateLoader, random, transform, transformUruguayanDocument, uruguayanDocumentValidator, validate, validateAge, validateCi, validateUruguayanDocument, validationDigit };
6643
+ export type { ActiveFilterItem, ActiveFiltersConfig, AdAuthConfig, AdAuthEvent, AdAuthInterceptorConfig, AdAuthState, AdAuthUser, AdAuthorizationCodeResponse, AdLoginButtonConfig, AdditionalPermissionResources, AddressModel, AgeComparisonMode, AgeValidationInput, AgeValidationOptions, Alert, ApiConfig, ApiResponse, BottomNavItem, ButtonActionEvent, ButtonConfig, CalendarConfig, CalendarDay, CalendarEvent, CalendarHoliday, CarouselConfig, CarouselImage, ChatConfig, ChatMessage, CheckboxFieldConfig, CheckboxModalFieldConfig, CheckboxOption, ColumnConfig, ColumnDisabledConfig, CompanyInfo, ConfirmUploadRequest, ConfirmationDialogConfig, CountryOption, CustomAction, DataListItem, DateFieldConfig, DateModalFieldConfig, DateNavigationEvent, DateRangeFieldConfig, DateRangeValue, DateSelectionEvent, DocumentActionEvent, DocumentConfig, DocumentFieldConfig, DocumentFieldValue, DocumentItem, DocumentOption, DynamicFieldsHelperConfig, DynamicFieldsHelperMethods, DynamicFieldsHelperState, EventClickEvent, EventHoverEvent, ExpansionConfig, ExtendedModalFieldConfig, ExtendedPermissionProvider, FileFieldConfig, FilePreviewAction, FilePreviewConfig, FilePreviewItem, FileUploadConfig, FilterConfig, FilterParams, FixedActionConfig, FixedActionsConfig, GalleryConfig, GalleryImage, GenericTab, GenericTabClickEvent, GenericTabConfig, GlobalAction, HeaderAction, HeaderActionConfig, HeaderConfig, HeaderElementConfig, HeaderOrderConfig, HolidaySets, ImageModalData, InlineEditConfig, LayoutConfig, LayoutDataAttributes, LogoImagesConfig, ManualRefreshConfig, MobileBreakpointConfig, MobileHeaderConfig, MobileModalData, ModalButtonConfig, ModalFieldConfig, ModalStepConfig, ModalTabConfig, ModalValidationResult, MoreDataConfig, MultiEntryFieldConfig, MultiEntryFieldValue, NavConfig, NavItem, NavUserConfig, NumberFieldConfig, NumberModalFieldConfig, PaginatedResponse, PaginationEvent, PaginationInfo, PermissionActionsProvider, PermissionProvider, PermissionResourcesProvider, PhoneFieldConfig, PhoneModalFieldConfig, PresignedDownloadUrlResponse, PresignedUrlRequest, PresignedUrlResponse, PreviewFileUrl, RatingConfig, RatingStar, RatingSubmitEvent, RowStyleConfig, RowVisibilityConfig, SchedulerColumn, SchedulerConfig, SchedulerTimeSlot, SchedulerViewMode, SchedulerWeekDay, SearchResponse, SecureAuthScreenStatus, SecureAuthValidationEvent, SecureAuthValidationEventType, SelectServerSideConfig, SidebarBackButton, SidebarComponentConfig, SidebarComponentEvents, SidebarConfig, SidebarCustomModalConfig, SidebarItem, SidebarResponsiveConfig, SidebarSubItem, SidebarTemplateContext, SkeletonConfig, SkeletonItemConfig, SlotClickEvent, SortConfig, StepChangeEvent, StepClickEvent, StepItemConfig, StepsConfig, SwitchFieldConfig, SwitchModalFieldConfig, SwitchOption, TableActionConfig, TableFixedActionsConfig, TableSortConfig, TimeFieldConfig, TimeFieldValue, TimeOption, TimeSlot, TimelineConfig, TimelineItem, TreeConfig, TreeDropEvent, TreeIconResolver, TreeNode, TreeNodeAction, UruguayanDocumentInput };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solcre-org/core-ui",
3
- "version": "2.20.35",
3
+ "version": "2.22.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"