@solcre-org/core-ui 2.16.2 → 2.16.3

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
@@ -1456,7 +1456,9 @@ interface ButtonConfig {
1456
1456
  fragment?: string;
1457
1457
  requiredPermission?: {
1458
1458
  resource?: string;
1459
- action: string;
1459
+ resources?: string[];
1460
+ action?: string;
1461
+ actions?: string[];
1460
1462
  custom_action?: string;
1461
1463
  };
1462
1464
  id?: string;
@@ -1484,6 +1486,7 @@ declare class GenericButtonComponent {
1484
1486
  buttonClick: _angular_core.OutputEmitterRef<ButtonActionEvent>;
1485
1487
  get hostClasses(): string;
1486
1488
  isDisabled: _angular_core.Signal<boolean>;
1489
+ private checkRequiredPermission;
1487
1490
  buttonClasses: _angular_core.Signal<string>;
1488
1491
  isLink: _angular_core.Signal<boolean>;
1489
1492
  isIconOnly: _angular_core.Signal<boolean>;
@@ -1984,7 +1987,9 @@ interface CustomAction<T> extends SwitchActionConfig {
1984
1987
  callback: (row: T) => void;
1985
1988
  requiredPermission?: {
1986
1989
  resource?: string;
1987
- action: string;
1990
+ resources?: string[];
1991
+ action?: string;
1992
+ actions?: string[];
1988
1993
  custom_action?: string;
1989
1994
  };
1990
1995
  buttonConfig?: Partial<ButtonConfig>;
@@ -2004,7 +2009,9 @@ interface TableActionConfig<T = any> {
2004
2009
  tooltipPosition?: 'top' | 'bottom' | 'left' | 'right';
2005
2010
  requiredPermission?: {
2006
2011
  resource?: string;
2007
- action: string;
2012
+ resources?: string[];
2013
+ action?: string;
2014
+ actions?: string[];
2008
2015
  custom_action?: string;
2009
2016
  };
2010
2017
  shouldShow?: (row: T) => boolean;
@@ -2055,6 +2062,7 @@ declare class DropdownComponent<T> implements OnDestroy {
2055
2062
  triggerAction(action: TableAction): void;
2056
2063
  triggerCustomAction(action: CustomAction<T>): void;
2057
2064
  hasPermission(action: TableActionConfig<T> | CustomAction<T>): boolean;
2065
+ private checkRequiredPermission;
2058
2066
  shouldShowAction(actionConfig: TableActionConfig<T>): boolean;
2059
2067
  shouldShowCustomAction(customAction: CustomAction<T>): boolean;
2060
2068
  getActionLabel(action: TableAction): string;
@@ -2247,7 +2255,9 @@ interface GlobalAction<T> extends SwitchActionConfig {
2247
2255
  maxSelection?: number;
2248
2256
  requiredPermission?: {
2249
2257
  resource?: string;
2250
- action: string;
2258
+ resources?: string[];
2259
+ action?: string;
2260
+ actions?: string[];
2251
2261
  custom_action?: string;
2252
2262
  };
2253
2263
  execute?: (selectedRows: T[]) => void;
@@ -2310,7 +2320,9 @@ interface FixedActionConfig<T = any> {
2310
2320
  buttonConfig?: Partial<ButtonConfig>;
2311
2321
  requiredPermission?: {
2312
2322
  resource?: string;
2313
- action: string;
2323
+ resources?: string[];
2324
+ action?: string;
2325
+ actions?: string[];
2314
2326
  custom_action?: string;
2315
2327
  };
2316
2328
  shouldShow?: (row?: T) => boolean;
@@ -2925,6 +2937,7 @@ declare class GenericTableComponent<T extends DataBaseModelInterface & {
2925
2937
  emitDataEvent(data: T, mode: ModalMode): void;
2926
2938
  getRowId(row: T): number;
2927
2939
  hasPermission(action: TableActionConfig<T> | CustomAction<T> | GlobalAction<T>): boolean;
2940
+ private checkRequiredPermission;
2928
2941
  showFiltersPopup(): void;
2929
2942
  closeFiltersPopup(): void;
2930
2943
  handleFilterChange(filterValues: Map<string, any>): void;
@@ -3290,7 +3303,9 @@ interface HeaderActionConfig {
3290
3303
  tooltipPosition?: 'top' | 'bottom' | 'left' | 'right';
3291
3304
  requiredPermission?: {
3292
3305
  resource?: string;
3293
- action: string;
3306
+ resources?: string[];
3307
+ action?: string;
3308
+ actions?: string[];
3294
3309
  custom_action?: string;
3295
3310
  };
3296
3311
  mobileConfig?: MobileActionConfig;
@@ -3864,7 +3879,9 @@ declare class HeaderService {
3864
3879
  callback: () => void;
3865
3880
  requiredPermission: {
3866
3881
  resource?: string;
3867
- action: string;
3882
+ resources?: string[];
3883
+ action?: string;
3884
+ actions?: string[];
3868
3885
  custom_action?: string;
3869
3886
  } | undefined;
3870
3887
  visible: boolean | (() => boolean) | undefined;
@@ -3924,6 +3941,7 @@ declare class HeaderComponent implements OnInit {
3924
3941
  getIndividualAction(element: any): any | null;
3925
3942
  isIndividualActionSwitch(action: any): boolean;
3926
3943
  hasIndividualActionPermission(action: any): boolean;
3944
+ private checkRequiredPermission;
3927
3945
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<HeaderComponent, never>;
3928
3946
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<HeaderComponent, "core-header", never, {}, { "filterRequested": "filterRequested"; "createRequested": "createRequested"; "globalActionTriggered": "globalActionTriggered"; }, never, never, true, [{ directive: typeof CoreHostDirective; inputs: {}; outputs: {}; }]>;
3929
3947
  }
@@ -4038,8 +4056,11 @@ interface NavItem {
4038
4056
  children?: NavItem[];
4039
4057
  requiredPermission?: {
4040
4058
  resource?: string;
4041
- action: string;
4059
+ resources?: string[];
4060
+ action?: string;
4061
+ actions?: string[];
4042
4062
  custom_action?: string;
4063
+ match?: 'any' | 'all';
4043
4064
  };
4044
4065
  title?: string;
4045
4066
  disabled?: boolean;
@@ -5271,6 +5292,7 @@ declare class FixedActionsMobileModalComponent {
5271
5292
  onClose(): void;
5272
5293
  onActionClick(action: FixedActionConfig): void;
5273
5294
  onOverlayClick(event: MouseEvent): void;
5295
+ private checkRequiredPermission;
5274
5296
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FixedActionsMobileModalComponent, never>;
5275
5297
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<FixedActionsMobileModalComponent, "core-fixed-actions-mobile-modal", never, {}, {}, never, never, true, never>;
5276
5298
  }
@@ -5296,6 +5318,7 @@ declare class GenericFixedActionsComponent implements AfterViewInit {
5296
5318
  isActionDisabled(action: FixedActionConfig): boolean;
5297
5319
  onActionClick(action: FixedActionConfig): void;
5298
5320
  openModalActions(): void;
5321
+ private checkRequiredPermission;
5299
5322
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<GenericFixedActionsComponent, never>;
5300
5323
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<GenericFixedActionsComponent, "core-generic-fixed-actions", never, { "externalActions": { "alias": "externalActions"; "required": false; "isSignal": true; }; "tableId": { "alias": "tableId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
5301
5324
  }
@@ -5315,6 +5338,8 @@ interface AdAuthConfig {
5315
5338
  cacheLocation?: 'sessionStorage' | 'localStorage';
5316
5339
  enableLogging?: boolean;
5317
5340
  logLevel?: 0 | 1 | 2 | 3;
5341
+ authorizationCodeOnly?: boolean;
5342
+ state?: string;
5318
5343
  }
5319
5344
  interface AdLoginButtonConfig {
5320
5345
  loginText?: string;
@@ -5336,9 +5361,11 @@ interface AdAuthUser {
5336
5361
  claims?: Record<string, any>;
5337
5362
  }
5338
5363
  interface AdAuthEvent {
5339
- type: 'login-success' | 'login-error' | 'logout-success' | 'logout-error' | 'token-acquired';
5364
+ type: 'login-success' | 'login-error' | 'logout-success' | 'logout-error' | 'token-acquired' | 'code-received';
5340
5365
  user?: AdAuthUser;
5341
5366
  accessToken?: string;
5367
+ authorizationCode?: string;
5368
+ codeVerifier?: string;
5342
5369
  error?: any;
5343
5370
  message?: string;
5344
5371
  }
@@ -5348,6 +5375,11 @@ interface AdAuthState {
5348
5375
  isLoading: boolean;
5349
5376
  error: any | null;
5350
5377
  }
5378
+ interface AdAuthorizationCodeResponse {
5379
+ code: string;
5380
+ state?: string;
5381
+ codeVerifier?: string;
5382
+ }
5351
5383
 
5352
5384
  type AccountInfo = any;
5353
5385
  declare const AD_AUTH_CONFIG: InjectionToken<AdAuthConfig>;
@@ -5356,15 +5388,24 @@ declare class AdAuthService {
5356
5388
  private msalInstance;
5357
5389
  private msalModule;
5358
5390
  private initializationPromise;
5391
+ private codeVerifier;
5359
5392
  private authState;
5393
+ private _authorizationCode;
5394
+ readonly authorizationCode: _angular_core.Signal<AdAuthorizationCodeResponse | null>;
5360
5395
  readonly isAuthenticated: _angular_core.Signal<boolean>;
5361
5396
  readonly currentUser: _angular_core.Signal<AdAuthUser | null>;
5362
5397
  readonly isLoading: _angular_core.Signal<boolean>;
5363
5398
  readonly error: _angular_core.Signal<any>;
5364
5399
  constructor();
5365
- /**
5366
- * Dynamically loads MSAL library only when needed
5367
- */
5400
+ private checkForAuthorizationCode;
5401
+ private cleanUrlParams;
5402
+ private generatePKCE;
5403
+ private base64UrlEncode;
5404
+ private generateState;
5405
+ redirectToAzureLogin(): Promise<void>;
5406
+ getAuthorizationCode(): AdAuthorizationCodeResponse | null;
5407
+ clearAuthorizationCode(): void;
5408
+ isAuthorizationCodeOnlyMode(): boolean;
5368
5409
  private loadMsalModule;
5369
5410
  private initializeMsal;
5370
5411
  /**
@@ -5382,6 +5423,7 @@ declare class AdAuthService {
5382
5423
  login(): Promise<AdAuthUser | null>;
5383
5424
  logoutWithPopup(): Promise<void>;
5384
5425
  logoutWithRedirect(): Promise<void>;
5426
+ logoutFromAzure(): Promise<void>;
5385
5427
  logout(): Promise<void>;
5386
5428
  acquireToken(scopes?: string[]): Promise<string | null>;
5387
5429
  getAllAccounts(): Promise<AccountInfo[]>;
@@ -6074,4 +6116,4 @@ declare const AgeValidationHelper: {
6074
6116
  declare const ageValidator: (minimumAge: number) => ValidatorFn;
6075
6117
 
6076
6118
  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, ConfigurationModel, ConfirmationDialogComponent, ConfirmationDialogService, CoreHostDirective, CoreManualRefreshComponent, CoreUiHttpLoaderFactory, CoreUiTranslateLoader, CoreUiTranslateService, CountryCode, CustomClassService, DEFAULT_AD_AUTH_INTERCEPTOR_CONFIG, DEFAULT_COUNTRIES, DEFAULT_SCHEDULER_CONFIG, DataListComponent, DataListItemComponent, DataStoreService, DateFieldComponent, 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, 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, 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 };
6077
- export type { ActiveFilterItem, ActiveFiltersConfig, AdAuthConfig, AdAuthEvent, AdAuthInterceptorConfig, AdAuthState, AdAuthUser, 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, 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, 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, UruguayanDocumentInput };
6119
+ 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, 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, 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, UruguayanDocumentInput };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solcre-org/core-ui",
3
- "version": "2.16.2",
3
+ "version": "2.16.3",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"