@solcre-org/core-ui 2.15.6 → 2.15.8

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
@@ -1942,6 +1942,8 @@ interface TableActionConfig<T = any> {
1942
1942
  };
1943
1943
  shouldShow?: (row: T) => boolean;
1944
1944
  shouldDisable?: (row: T) => boolean;
1945
+ showInHeader?: boolean;
1946
+ showOutsideFixedActions?: boolean;
1945
1947
  }
1946
1948
 
1947
1949
  declare class DropdownComponent<T> implements OnDestroy {
@@ -2187,6 +2189,8 @@ interface GlobalAction<T> extends SwitchActionConfig {
2187
2189
  switchSelectedValue?: any;
2188
2190
  onSwitchChange?: (value: any, selectedRows: T[]) => void;
2189
2191
  showInsideModal?: boolean;
2192
+ showInHeader?: boolean;
2193
+ showOutsideFixedActions?: boolean;
2190
2194
  }
2191
2195
 
2192
2196
  interface MoreDataConfig<T extends DataBaseModelInterface> {
@@ -2260,6 +2264,8 @@ interface TableFixedActionsConfig<T = any> {
2260
2264
  customFixedActions?: FixedActionConfig<T>[];
2261
2265
  mobileModalTitle?: string;
2262
2266
  mobileModalSubtitle?: string;
2267
+ customActionsMobileModalTitle?: string | ((row: T) => string);
2268
+ customActionsMobileModalSubtitle?: string | ((row: T) => string);
2263
2269
  showOnlyInMobile?: boolean;
2264
2270
  position?: FixedActionPosition;
2265
2271
  }
@@ -2632,6 +2638,7 @@ declare class GenericTableComponent<T extends DataBaseModelInterface & {
2632
2638
  private activeFiltersEventService;
2633
2639
  private mobileResolutionService;
2634
2640
  private fixedActionsMobileModalService;
2641
+ private translationService;
2635
2642
  TableAction: typeof TableAction;
2636
2643
  ModalMode: typeof ModalMode;
2637
2644
  ButtonType: typeof ButtonType;
@@ -2719,6 +2726,10 @@ declare class GenericTableComponent<T extends DataBaseModelInterface & {
2719
2726
  extraCustomActions: _angular_core.Signal<CustomAction<T>[]>;
2720
2727
  getVisibleCustomActions(row: T, isExtra?: boolean): CustomAction<T>[];
2721
2728
  getVisibleDefaultActions(row: T, isExtra?: boolean): TableActionConfig<T>[];
2729
+ getOutsideFixedActionsForRow(row: T): Array<{
2730
+ type: 'table' | 'global';
2731
+ config: TableActionConfig<T> | GlobalAction<T>;
2732
+ }>;
2722
2733
  hasExtraCustomActions: _angular_core.Signal<boolean>;
2723
2734
  regularDefaultActions: _angular_core.Signal<TableActionConfig<T>[]>;
2724
2735
  extraDefaultActions: _angular_core.Signal<TableActionConfig<T>[]>;
@@ -2790,6 +2801,7 @@ declare class GenericTableComponent<T extends DataBaseModelInterface & {
2790
2801
  onFixedActionClick(action: FixedActionConfig<T>): void;
2791
2802
  private openFixedActionsMobileModal;
2792
2803
  private openCustomActionsMobileModal;
2804
+ private getDefaultIconForAction;
2793
2805
  shouldShowFixedAction(action: FixedActionConfig<T>): boolean;
2794
2806
  isFixedActionDisabled(action: FixedActionConfig<T>): boolean;
2795
2807
  getFixedActionClass(action: FixedActionConfig<T>): string;
@@ -2833,6 +2845,9 @@ declare class GenericTableComponent<T extends DataBaseModelInterface & {
2833
2845
  private handleFilterDependencies;
2834
2846
  private handleFiltersCleared;
2835
2847
  private updateHeaderService;
2848
+ private buildAndSetHeaderActions;
2849
+ private getGlobalActionButtonConfig;
2850
+ private getHeaderActionButtonConfig;
2836
2851
  onColumnHeaderClick(column: ColumnConfig<T>): void;
2837
2852
  isColumnSortable(column: ColumnConfig<T>): boolean;
2838
2853
  getColumnSortState(column: ColumnConfig<T>): SortDirection | null;
@@ -2854,6 +2869,14 @@ declare class GenericTableComponent<T extends DataBaseModelInterface & {
2854
2869
  getCustomActionButtonConfig(customAction: CustomAction<T>): ButtonConfig;
2855
2870
  getCustomActionButtonConfigForRow(customAction: CustomAction<T>, row: T): ButtonConfig;
2856
2871
  getMoreActionsButtonConfig(rowId: number): ButtonConfig;
2872
+ getOutsideFixedActionButtonConfig(item: {
2873
+ type: 'table' | 'global';
2874
+ config: TableActionConfig<T> | GlobalAction<T>;
2875
+ }, row: T): ButtonConfig;
2876
+ onOutsideFixedActionClick(event: ButtonActionEvent, item: {
2877
+ type: 'table' | 'global';
2878
+ config: TableActionConfig<T> | GlobalAction<T>;
2879
+ }, row: T): void;
2857
2880
  onButtonClick(event: ButtonActionEvent, action: any, row?: T): void;
2858
2881
  onExpandButtonClick(event: ButtonActionEvent, row: T): void;
2859
2882
  onMoreActionsClick(event: ButtonActionEvent, rowId: number): void;
@@ -3183,6 +3206,12 @@ interface HeaderConfig {
3183
3206
  refreshCallback?: () => void;
3184
3207
  }
3185
3208
 
3209
+ interface HeaderAction {
3210
+ id: string;
3211
+ buttonConfig: ButtonConfig;
3212
+ callback: () => void;
3213
+ }
3214
+
3186
3215
  interface ModalValidationResult {
3187
3216
  fieldErrors: string[];
3188
3217
  internalErrors: string[];
@@ -3566,6 +3595,7 @@ declare class HeaderService {
3566
3595
  private createButtonText;
3567
3596
  private globalCustomClass;
3568
3597
  private headerOutside;
3598
+ private headerActions;
3569
3599
  private refreshCallback;
3570
3600
  readonly hasFilters: _angular_core.Signal<boolean>;
3571
3601
  getRefreshCallback(): _angular_core.WritableSignal<(() => void) | undefined>;
@@ -3614,6 +3644,11 @@ declare class HeaderService {
3614
3644
  getGlobalCustomClass(): _angular_core.WritableSignal<string>;
3615
3645
  setGlobalCustomClass(customClass: string): void;
3616
3646
  setCreateButtonText(text: string | undefined): void;
3647
+ getHeaderActions(): _angular_core.WritableSignal<HeaderAction[]>;
3648
+ setHeaderActions(actions: HeaderAction[]): void;
3649
+ addHeaderAction(action: HeaderAction): void;
3650
+ removeHeaderAction(actionId: string): void;
3651
+ clearHeaderActions(): void;
3617
3652
  getOrderedElements(): HeaderElementConfig[];
3618
3653
  isElementVisible(elementType: HeaderElementType): boolean;
3619
3654
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<HeaderService, never>;
@@ -3685,9 +3720,11 @@ declare class MobileHeaderComponent {
3685
3720
  shouldShowRefreshButton: _angular_core.Signal<boolean>;
3686
3721
  shouldShowFilterButton: _angular_core.Signal<boolean>;
3687
3722
  customTemplate: _angular_core.Signal<_angular_core.TemplateRef<any> | null>;
3723
+ headerActions: _angular_core.Signal<HeaderAction[]>;
3688
3724
  onMenuClick(): void;
3689
3725
  onRefreshClick(): void;
3690
3726
  onFilterClick(): void;
3727
+ onHeaderActionClick(action: HeaderAction): void;
3691
3728
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<MobileHeaderComponent, never>;
3692
3729
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<MobileHeaderComponent, "core-mobile-header", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "menuClick": "menuClick"; "refreshClick": "refreshClick"; "filterClick": "filterClick"; }, never, never, true, never>;
3693
3730
  }
@@ -5479,4 +5516,4 @@ declare const AgeValidationHelper: {
5479
5516
  declare const ageValidator: (minimumAge: number) => ValidatorFn;
5480
5517
 
5481
5518
  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, 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, 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 };
5482
- 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, 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 };
5519
+ 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.6",
3
+ "version": "2.15.8",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"