@solcre-org/core-ui 2.15.7 → 2.15.9
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/solcre-org-core-ui.mjs +288 -35
- package/fesm2022/solcre-org-core-ui.mjs.map +1 -1
- package/index.d.ts +46 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1909,6 +1909,13 @@ interface SwitchActionConfig {
|
|
|
1909
1909
|
switchAriaLabel?: string;
|
|
1910
1910
|
}
|
|
1911
1911
|
|
|
1912
|
+
interface MobileActionConfig {
|
|
1913
|
+
isExtra?: boolean;
|
|
1914
|
+
showInHeader?: boolean;
|
|
1915
|
+
showOutsideFixedActions?: boolean;
|
|
1916
|
+
showInsideModal?: boolean;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1912
1919
|
interface CustomAction<T> extends SwitchActionConfig {
|
|
1913
1920
|
label?: string;
|
|
1914
1921
|
title: string;
|
|
@@ -1927,6 +1934,7 @@ interface CustomAction<T> extends SwitchActionConfig {
|
|
|
1927
1934
|
shouldDisable?: (row: T) => boolean;
|
|
1928
1935
|
switchValue?: (row: T) => any;
|
|
1929
1936
|
onSwitchChange?: (value: any, row: T) => void;
|
|
1937
|
+
mobileConfig?: MobileActionConfig;
|
|
1930
1938
|
}
|
|
1931
1939
|
|
|
1932
1940
|
interface TableActionConfig<T = any> {
|
|
@@ -1942,6 +1950,7 @@ interface TableActionConfig<T = any> {
|
|
|
1942
1950
|
};
|
|
1943
1951
|
shouldShow?: (row: T) => boolean;
|
|
1944
1952
|
shouldDisable?: (row: T) => boolean;
|
|
1953
|
+
mobileConfig?: MobileActionConfig;
|
|
1945
1954
|
}
|
|
1946
1955
|
|
|
1947
1956
|
declare class DropdownComponent<T> implements OnDestroy {
|
|
@@ -2186,7 +2195,7 @@ interface GlobalAction<T> extends SwitchActionConfig {
|
|
|
2186
2195
|
tooltipPosition?: 'top' | 'bottom' | 'left' | 'right';
|
|
2187
2196
|
switchSelectedValue?: any;
|
|
2188
2197
|
onSwitchChange?: (value: any, selectedRows: T[]) => void;
|
|
2189
|
-
|
|
2198
|
+
mobileConfig?: MobileActionConfig;
|
|
2190
2199
|
}
|
|
2191
2200
|
|
|
2192
2201
|
interface MoreDataConfig<T extends DataBaseModelInterface> {
|
|
@@ -2634,6 +2643,7 @@ declare class GenericTableComponent<T extends DataBaseModelInterface & {
|
|
|
2634
2643
|
private activeFiltersEventService;
|
|
2635
2644
|
private mobileResolutionService;
|
|
2636
2645
|
private fixedActionsMobileModalService;
|
|
2646
|
+
private translationService;
|
|
2637
2647
|
TableAction: typeof TableAction;
|
|
2638
2648
|
ModalMode: typeof ModalMode;
|
|
2639
2649
|
ButtonType: typeof ButtonType;
|
|
@@ -2721,6 +2731,14 @@ declare class GenericTableComponent<T extends DataBaseModelInterface & {
|
|
|
2721
2731
|
extraCustomActions: _angular_core.Signal<CustomAction<T>[]>;
|
|
2722
2732
|
getVisibleCustomActions(row: T, isExtra?: boolean): CustomAction<T>[];
|
|
2723
2733
|
getVisibleDefaultActions(row: T, isExtra?: boolean): TableActionConfig<T>[];
|
|
2734
|
+
getOutsideFixedActionsForRow(row: T): Array<{
|
|
2735
|
+
type: 'table' | 'global';
|
|
2736
|
+
config: TableActionConfig<T> | GlobalAction<T>;
|
|
2737
|
+
}>;
|
|
2738
|
+
private getMobileShowInHeader;
|
|
2739
|
+
private getMobileShowOutsideFixedActions;
|
|
2740
|
+
private getMobileShowInsideModal;
|
|
2741
|
+
private getMobileIsExtra;
|
|
2724
2742
|
hasExtraCustomActions: _angular_core.Signal<boolean>;
|
|
2725
2743
|
regularDefaultActions: _angular_core.Signal<TableActionConfig<T>[]>;
|
|
2726
2744
|
extraDefaultActions: _angular_core.Signal<TableActionConfig<T>[]>;
|
|
@@ -2792,6 +2810,7 @@ declare class GenericTableComponent<T extends DataBaseModelInterface & {
|
|
|
2792
2810
|
onFixedActionClick(action: FixedActionConfig<T>): void;
|
|
2793
2811
|
private openFixedActionsMobileModal;
|
|
2794
2812
|
private openCustomActionsMobileModal;
|
|
2813
|
+
private getDefaultIconForAction;
|
|
2795
2814
|
shouldShowFixedAction(action: FixedActionConfig<T>): boolean;
|
|
2796
2815
|
isFixedActionDisabled(action: FixedActionConfig<T>): boolean;
|
|
2797
2816
|
getFixedActionClass(action: FixedActionConfig<T>): string;
|
|
@@ -2835,6 +2854,9 @@ declare class GenericTableComponent<T extends DataBaseModelInterface & {
|
|
|
2835
2854
|
private handleFilterDependencies;
|
|
2836
2855
|
private handleFiltersCleared;
|
|
2837
2856
|
private updateHeaderService;
|
|
2857
|
+
private buildAndSetHeaderActions;
|
|
2858
|
+
private getGlobalActionButtonConfig;
|
|
2859
|
+
private getHeaderActionButtonConfig;
|
|
2838
2860
|
onColumnHeaderClick(column: ColumnConfig<T>): void;
|
|
2839
2861
|
isColumnSortable(column: ColumnConfig<T>): boolean;
|
|
2840
2862
|
getColumnSortState(column: ColumnConfig<T>): SortDirection | null;
|
|
@@ -2856,6 +2878,14 @@ declare class GenericTableComponent<T extends DataBaseModelInterface & {
|
|
|
2856
2878
|
getCustomActionButtonConfig(customAction: CustomAction<T>): ButtonConfig;
|
|
2857
2879
|
getCustomActionButtonConfigForRow(customAction: CustomAction<T>, row: T): ButtonConfig;
|
|
2858
2880
|
getMoreActionsButtonConfig(rowId: number): ButtonConfig;
|
|
2881
|
+
getOutsideFixedActionButtonConfig(item: {
|
|
2882
|
+
type: 'table' | 'global';
|
|
2883
|
+
config: TableActionConfig<T> | GlobalAction<T>;
|
|
2884
|
+
}, row: T): ButtonConfig;
|
|
2885
|
+
onOutsideFixedActionClick(event: ButtonActionEvent, item: {
|
|
2886
|
+
type: 'table' | 'global';
|
|
2887
|
+
config: TableActionConfig<T> | GlobalAction<T>;
|
|
2888
|
+
}, row: T): void;
|
|
2859
2889
|
onButtonClick(event: ButtonActionEvent, action: any, row?: T): void;
|
|
2860
2890
|
onExpandButtonClick(event: ButtonActionEvent, row: T): void;
|
|
2861
2891
|
onMoreActionsClick(event: ButtonActionEvent, rowId: number): void;
|
|
@@ -3185,6 +3215,12 @@ interface HeaderConfig {
|
|
|
3185
3215
|
refreshCallback?: () => void;
|
|
3186
3216
|
}
|
|
3187
3217
|
|
|
3218
|
+
interface HeaderAction {
|
|
3219
|
+
id: string;
|
|
3220
|
+
buttonConfig: ButtonConfig;
|
|
3221
|
+
callback: () => void;
|
|
3222
|
+
}
|
|
3223
|
+
|
|
3188
3224
|
interface ModalValidationResult {
|
|
3189
3225
|
fieldErrors: string[];
|
|
3190
3226
|
internalErrors: string[];
|
|
@@ -3568,6 +3604,7 @@ declare class HeaderService {
|
|
|
3568
3604
|
private createButtonText;
|
|
3569
3605
|
private globalCustomClass;
|
|
3570
3606
|
private headerOutside;
|
|
3607
|
+
private headerActions;
|
|
3571
3608
|
private refreshCallback;
|
|
3572
3609
|
readonly hasFilters: _angular_core.Signal<boolean>;
|
|
3573
3610
|
getRefreshCallback(): _angular_core.WritableSignal<(() => void) | undefined>;
|
|
@@ -3616,6 +3653,11 @@ declare class HeaderService {
|
|
|
3616
3653
|
getGlobalCustomClass(): _angular_core.WritableSignal<string>;
|
|
3617
3654
|
setGlobalCustomClass(customClass: string): void;
|
|
3618
3655
|
setCreateButtonText(text: string | undefined): void;
|
|
3656
|
+
getHeaderActions(): _angular_core.WritableSignal<HeaderAction[]>;
|
|
3657
|
+
setHeaderActions(actions: HeaderAction[]): void;
|
|
3658
|
+
addHeaderAction(action: HeaderAction): void;
|
|
3659
|
+
removeHeaderAction(actionId: string): void;
|
|
3660
|
+
clearHeaderActions(): void;
|
|
3619
3661
|
getOrderedElements(): HeaderElementConfig[];
|
|
3620
3662
|
isElementVisible(elementType: HeaderElementType): boolean;
|
|
3621
3663
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HeaderService, never>;
|
|
@@ -3687,9 +3729,11 @@ declare class MobileHeaderComponent {
|
|
|
3687
3729
|
shouldShowRefreshButton: _angular_core.Signal<boolean>;
|
|
3688
3730
|
shouldShowFilterButton: _angular_core.Signal<boolean>;
|
|
3689
3731
|
customTemplate: _angular_core.Signal<_angular_core.TemplateRef<any> | null>;
|
|
3732
|
+
headerActions: _angular_core.Signal<HeaderAction[]>;
|
|
3690
3733
|
onMenuClick(): void;
|
|
3691
3734
|
onRefreshClick(): void;
|
|
3692
3735
|
onFilterClick(): void;
|
|
3736
|
+
onHeaderActionClick(action: HeaderAction): void;
|
|
3693
3737
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MobileHeaderComponent, never>;
|
|
3694
3738
|
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>;
|
|
3695
3739
|
}
|
|
@@ -5481,4 +5525,4 @@ declare const AgeValidationHelper: {
|
|
|
5481
5525
|
declare const ageValidator: (minimumAge: number) => ValidatorFn;
|
|
5482
5526
|
|
|
5483
5527
|
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 };
|
|
5484
|
-
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 };
|
|
5528
|
+
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 };
|