@solcre-org/core-ui 2.15.30 → 2.15.31

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
@@ -1410,8 +1410,9 @@ interface ButtonConfig {
1410
1410
  };
1411
1411
  fragment?: string;
1412
1412
  requiredPermission?: {
1413
- resource: string;
1413
+ resource?: string;
1414
1414
  action: string;
1415
+ custom_action?: string;
1415
1416
  };
1416
1417
  id?: string;
1417
1418
  showTextOnIcon?: boolean;
@@ -1934,8 +1935,9 @@ interface CustomAction<T> extends SwitchActionConfig {
1934
1935
  isExtra?: boolean;
1935
1936
  callback: (row: T) => void;
1936
1937
  requiredPermission?: {
1937
- resource: string;
1938
+ resource?: string;
1938
1939
  action: string;
1940
+ custom_action?: string;
1939
1941
  };
1940
1942
  buttonConfig?: Partial<ButtonConfig>;
1941
1943
  shouldShow?: (row: T) => boolean;
@@ -1953,8 +1955,9 @@ interface TableActionConfig<T = any> {
1953
1955
  tooltip?: string;
1954
1956
  tooltipPosition?: 'top' | 'bottom' | 'left' | 'right';
1955
1957
  requiredPermission?: {
1956
- resource: string;
1958
+ resource?: string;
1957
1959
  action: string;
1960
+ custom_action?: string;
1958
1961
  };
1959
1962
  shouldShow?: (row: T) => boolean;
1960
1963
  shouldDisable?: (row: T) => boolean;
@@ -2194,8 +2197,9 @@ interface GlobalAction<T> extends SwitchActionConfig {
2194
2197
  minSelection?: number;
2195
2198
  maxSelection?: number;
2196
2199
  requiredPermission?: {
2197
- resource: string;
2200
+ resource?: string;
2198
2201
  action: string;
2202
+ custom_action?: string;
2199
2203
  };
2200
2204
  execute?: (selectedRows: T[]) => void;
2201
2205
  isDisabled?: boolean;
@@ -2256,8 +2260,9 @@ interface FixedActionConfig<T = any> {
2256
2260
  callback?: (row?: T) => void;
2257
2261
  buttonConfig?: Partial<ButtonConfig>;
2258
2262
  requiredPermission?: {
2259
- resource: string;
2263
+ resource?: string;
2260
2264
  action: string;
2265
+ custom_action?: string;
2261
2266
  };
2262
2267
  shouldShow?: (row?: T) => boolean;
2263
2268
  shouldDisable?: (row?: T) => boolean;
@@ -2369,7 +2374,8 @@ declare class PermissionModel implements DataBaseModelInterface {
2369
2374
  resource?: string | undefined;
2370
2375
  action?: string | undefined;
2371
2376
  is_active?: boolean | undefined;
2372
- constructor(id?: string | undefined, name?: string | undefined, description?: string | undefined, resource?: string | undefined, action?: string | undefined, is_active?: boolean | undefined);
2377
+ custom_action?: string | null | undefined;
2378
+ constructor(id?: string | undefined, name?: string | undefined, description?: string | undefined, resource?: string | undefined, action?: string | undefined, is_active?: boolean | undefined, custom_action?: string | null | undefined);
2373
2379
  fromJSON(json: any): PermissionModel;
2374
2380
  fromJSONList(json: any): PermissionModel[];
2375
2381
  toJSON(): {
@@ -2379,6 +2385,7 @@ declare class PermissionModel implements DataBaseModelInterface {
2379
2385
  resource: string | undefined;
2380
2386
  action: string | undefined;
2381
2387
  is_active: boolean | undefined;
2388
+ custom_action: string | null | undefined;
2382
2389
  };
2383
2390
  getId(): string;
2384
2391
  getReference(): string;
@@ -3225,8 +3232,9 @@ interface HeaderActionConfig {
3225
3232
  tooltip?: string;
3226
3233
  tooltipPosition?: 'top' | 'bottom' | 'left' | 'right';
3227
3234
  requiredPermission?: {
3228
- resource: string;
3235
+ resource?: string;
3229
3236
  action: string;
3237
+ custom_action?: string;
3230
3238
  };
3231
3239
  mobileConfig?: MobileActionConfig;
3232
3240
  }
@@ -3262,7 +3270,7 @@ interface ModalValidationResult {
3262
3270
  }
3263
3271
 
3264
3272
  interface PermissionProvider {
3265
- hasPermission(resource: string, action: string): boolean;
3273
+ hasPermission(resource: string | undefined, action: string, custom_action?: string): boolean;
3266
3274
  setUser(user: any): void;
3267
3275
  getUser(): any;
3268
3276
  isAdmin?(): boolean;
@@ -3703,8 +3711,9 @@ declare class HeaderService {
3703
3711
  class: string | undefined;
3704
3712
  callback: () => void;
3705
3713
  requiredPermission: {
3706
- resource: string;
3714
+ resource?: string;
3707
3715
  action: string;
3716
+ custom_action?: string;
3708
3717
  } | undefined;
3709
3718
  visible: boolean | undefined;
3710
3719
  disabled: boolean | undefined;
@@ -3801,7 +3810,8 @@ declare class MobileHeaderComponent {
3801
3810
  declare enum PermissionsActions {
3802
3811
  WRITE = "W",
3803
3812
  READ = "R",
3804
- DELETE = "D"
3813
+ DELETE = "D",
3814
+ CUSTOM = "C"
3805
3815
  }
3806
3816
 
3807
3817
  declare enum PermissionsResources {
@@ -3830,7 +3840,10 @@ declare enum PermissionsResources {
3830
3840
  MY_COMPANY_CONTRACTUAL_INFORMATION = "my_company_contractual_info",
3831
3841
  MY_COMPANY_TELEWORK = "my_company_remote_work",
3832
3842
  FILE_TEMPLATES = "file_templates",
3833
- CONFIGURATION = "configuration",
3843
+ CONFIGURATION = "configuration"
3844
+ }
3845
+
3846
+ declare enum PermissionsCustomActions {
3834
3847
  COMPANIES_CHANGE_STATUS = "companies_change_status",
3835
3848
  EMPLOYEES_BULK_UPLOAD = "employees_bulk_upload",
3836
3849
  EMPLOYEES_EXPORT = "employees_export",
@@ -3862,8 +3875,9 @@ interface NavItem {
3862
3875
  icon?: string;
3863
3876
  children?: NavItem[];
3864
3877
  requiredPermission?: {
3865
- resource: string;
3878
+ resource?: string;
3866
3879
  action: string;
3880
+ custom_action?: string;
3867
3881
  };
3868
3882
  title?: string;
3869
3883
  disabled?: boolean;
@@ -5474,7 +5488,7 @@ declare class PermissionService {
5474
5488
  user$: rxjs.Observable<UsersModel | null>;
5475
5489
  setUser(user: UsersModel | null): void;
5476
5490
  getUser(): UsersModel | null;
5477
- hasPermission(resource: string, action: string): boolean;
5491
+ hasPermission(resource: string | undefined, action: string, custom_action?: string): boolean;
5478
5492
  hasAnyPermission(resources: string[], action: string): boolean;
5479
5493
  getPermissions(): PermissionModel[];
5480
5494
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PermissionService, never>;
@@ -5489,7 +5503,7 @@ declare class PermissionWrapperService implements PermissionProvider {
5489
5503
  private extendPermissionsResources;
5490
5504
  private getAdditionalResources;
5491
5505
  private copyProviderMethods;
5492
- hasPermission(resource: string, action: string): boolean;
5506
+ hasPermission(resource: string | undefined, action: string, custom_action?: string): boolean;
5493
5507
  setUser(user: any): void;
5494
5508
  getUser(): any;
5495
5509
  callMethod(methodName: string, ...args: any[]): any;
@@ -5625,5 +5639,5 @@ declare const AgeValidationHelper: {
5625
5639
 
5626
5640
  declare const ageValidator: (minimumAge: number) => ValidatorFn;
5627
5641
 
5628
- export { ALL_COUNTRY_CODES, ActiveFiltersComponent, AgeValidationHelper, AlertComponent, AlertContainerComponent, AlertService, AlertType, ApiConfigurationProvider, BaseFieldComponent, ButtonContext, ButtonSize, ButtonType, COMMON_COUNTRIES, CacheBustingInterceptor, CardComponent, CarouselComponent, ChatMessagePosition, ChatMessageType, CheckboxFieldComponent, ConfigurationModel, ConfirmationDialogComponent, ConfirmationDialogService, CoreHostDirective, CoreManualRefreshComponent, CoreUiHttpLoaderFactory, CoreUiTranslateLoader, CoreUiTranslateService, CountryCode, CustomClassService, DEFAULT_COUNTRIES, DataListComponent, DataListItemComponent, DataStoreService, DateFieldComponent, DateUtility, DatetimeFieldComponent, 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, GenericChatComponent, GenericChatService, GenericDocumentationComponent, GenericFixedActionsComponent, GenericGalleryComponent, GenericModalComponent, GenericPaginationComponent, GenericRatingComponent, 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, 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, PermissionsInterceptor, PermissionsResources, PhoneFieldComponent, ProgressBarComponent, ProgressBarSize, RatingService, RatingSize, RatingType, 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, ageValidator, calculateAge, equalToValidator, generateRandomUruguayanDocument, getCountryCodeStrings, getLatestBirthDateForAge, getRandomCi, getUruguayanDocumentValidationDigit, getValidationDigit, isSameDate, isValidCountryCode, provideCoreUiTranslateLoader, providePermissionActions, providePermissionEnums, providePermissionResources, providePermissionService, providePermissionServiceFactory, provideTranslateLoader, random, transform, transformUruguayanDocument, uruguayanDocumentValidator, validate, validateAge, validateCi, validateUruguayanDocument, validationDigit };
5642
+ export { ALL_COUNTRY_CODES, ActiveFiltersComponent, AgeValidationHelper, AlertComponent, AlertContainerComponent, AlertService, AlertType, ApiConfigurationProvider, BaseFieldComponent, ButtonContext, ButtonSize, ButtonType, COMMON_COUNTRIES, CacheBustingInterceptor, CardComponent, CarouselComponent, ChatMessagePosition, ChatMessageType, CheckboxFieldComponent, ConfigurationModel, ConfirmationDialogComponent, ConfirmationDialogService, CoreHostDirective, CoreManualRefreshComponent, CoreUiHttpLoaderFactory, CoreUiTranslateLoader, CoreUiTranslateService, CountryCode, CustomClassService, DEFAULT_COUNTRIES, DataListComponent, DataListItemComponent, DataStoreService, DateFieldComponent, DateUtility, DatetimeFieldComponent, 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, GenericChatComponent, GenericChatService, GenericDocumentationComponent, GenericFixedActionsComponent, GenericGalleryComponent, GenericModalComponent, GenericPaginationComponent, GenericRatingComponent, 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, 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, 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, ageValidator, calculateAge, equalToValidator, generateRandomUruguayanDocument, getCountryCodeStrings, getLatestBirthDateForAge, getRandomCi, getUruguayanDocumentValidationDigit, getValidationDigit, isSameDate, isValidCountryCode, provideCoreUiTranslateLoader, providePermissionActions, providePermissionEnums, providePermissionResources, providePermissionService, providePermissionServiceFactory, provideTranslateLoader, random, transform, transformUruguayanDocument, uruguayanDocumentValidator, validate, validateAge, validateCi, validateUruguayanDocument, validationDigit };
5629
5643
  export type { ActiveFilterItem, ActiveFiltersConfig, AdditionalPermissionResources, AddressModel, AgeComparisonMode, AgeValidationInput, AgeValidationOptions, Alert, ApiConfig, ApiResponse, BottomNavItem, ButtonActionEvent, ButtonConfig, CarouselConfig, CarouselImage, ChatConfig, ChatMessage, CheckboxFieldConfig, CheckboxModalFieldConfig, CheckboxOption, ColumnConfig, ColumnDisabledConfig, CompanyInfo, ConfirmUploadRequest, ConfirmationDialogConfig, CountryOption, CustomAction, DataListItem, DateFieldConfig, DateModalFieldConfig, DocumentActionEvent, DocumentConfig, DocumentFieldConfig, DocumentFieldValue, DocumentItem, DocumentOption, DynamicFieldsHelperConfig, DynamicFieldsHelperMethods, DynamicFieldsHelperState, ExpansionConfig, ExtendedModalFieldConfig, ExtendedPermissionProvider, FileFieldConfig, FilePreviewAction, FilePreviewConfig, FilePreviewItem, FileUploadConfig, FilterConfig, FilterParams, FixedActionConfig, FixedActionsConfig, GalleryConfig, GalleryImage, GenericTab, GenericTabClickEvent, GenericTabConfig, GlobalAction, HeaderAction, HeaderActionConfig, HeaderConfig, HeaderElementConfig, HeaderOrderConfig, ImageModalData, InlineEditConfig, LayoutConfig, LayoutDataAttributes, LogoImagesConfig, ManualRefreshConfig, MobileBreakpointConfig, MobileHeaderConfig, MobileModalData, ModalButtonConfig, ModalFieldConfig, ModalStepConfig, ModalTabConfig, ModalValidationResult, MoreDataConfig, MultiEntryFieldConfig, MultiEntryFieldValue, NavConfig, NavItem, NumberFieldConfig, NumberModalFieldConfig, PaginatedResponse, PaginationEvent, PaginationInfo, PermissionActionsProvider, PermissionProvider, PermissionResourcesProvider, PhoneFieldConfig, PhoneModalFieldConfig, PresignedDownloadUrlResponse, PresignedUrlRequest, PresignedUrlResponse, PreviewFileUrl, RatingConfig, RatingStar, RatingSubmitEvent, RowStyleConfig, RowVisibilityConfig, SearchResponse, SelectServerSideConfig, SidebarBackButton, SidebarComponentConfig, SidebarComponentEvents, SidebarConfig, SidebarCustomModalConfig, SidebarItem, SidebarResponsiveConfig, SidebarSubItem, SidebarTemplateContext, SkeletonConfig, SkeletonItemConfig, SortConfig, StepChangeEvent, StepClickEvent, StepItemConfig, StepsConfig, SwitchFieldConfig, SwitchModalFieldConfig, SwitchOption, TableActionConfig, TableFixedActionsConfig, TableSortConfig, TimeFieldConfig, TimeFieldValue, TimeOption, TimelineConfig, TimelineItem, UruguayanDocumentInput };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solcre-org/core-ui",
3
- "version": "2.15.30",
3
+ "version": "2.15.31",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"