dolfo-angular 1.232.0 → 1.234.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dolfo-angular",
3
- "version": "1.232.0",
3
+ "version": "1.234.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.1.1",
6
6
  "@angular/core": "^22.1.1",
@@ -113,9 +113,10 @@ interface GridAction {
113
113
  readonly color?: ButtonColor;
114
114
  readonly onClick: () => void;
115
115
  }
116
+ type BooleanFn = () => boolean;
116
117
  interface GridToolbarButton {
117
118
  readonly label: string;
118
- readonly disabled?: boolean | (() => boolean);
119
+ readonly disabled?: boolean | BooleanFn;
119
120
  readonly icon?: string;
120
121
  readonly onClick: () => void;
121
122
  }
@@ -170,6 +171,7 @@ declare class GridConfig<T> {
170
171
  };
171
172
  getUniqueId: (item: T) => string | number;
172
173
  isLoading$: () => Observable<boolean>;
174
+ isLoading: () => boolean;
173
175
  setLoading: (v: boolean) => void;
174
176
  getSelectedItems: () => T[];
175
177
  toggleSelection: (item: T) => void;
@@ -869,7 +871,7 @@ declare class GridComponent<T> {
869
871
  private sanitizer;
870
872
  resolveField: (item: T, { field, formatter, dataType, onLink }: GridColumn) => _angular_platform_browser.SafeHtml;
871
873
  checkLink: (e: Event, col: GridColumn, item: T, cell: HTMLTableCellElement) => void;
872
- isToolbarBtnDisabled: (disabled: boolean | (() => boolean)) => boolean;
874
+ isToolbarBtnDisabled: (disabled: boolean | BooleanFn) => boolean;
873
875
  static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent<any>, never>;
874
876
  static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent<any>, "dolfo-grid", never, { "config": { "alias": "config"; "required": true; }; }, {}, never, never, false, never>;
875
877
  }
@@ -885,4 +887,4 @@ declare const authInterceptor: (req: HttpRequest<unknown>, next: HttpHandlerFn)
885
887
  declare const errorInterceptor: (req: HttpRequest<unknown>, next: HttpHandlerFn) => rxjs.Observable<_angular_common_http.HttpEvent<unknown>>;
886
888
 
887
889
  export { AutocompleteComponent, BaseAppComponent, BaseFormInput, ButtonComponent, CONTEXT_MENU_DESTROY_TOKEN, ColumnAlign, ColumnDataType, ComboboxComponent, ContextMenuComponent, ContextMenuDirective, ContextMenuService, DatepickerComponent, DialogActionType, DialogComponent, DialogContentComponent, DialogFooterComponent, DialogHeaderComponent, DialogLayoutComponent, DialogLayoutModule, DialogService, DialogUtilsService, DirectivesModule, FormComponent, FormModule, Formable, GridComponent, GridConfig, GridModule, ICON_COMPONENT, IconComponent, IconWrapperComponent, InputCheckboxComponent, InputContainerComponent, InputRadioComponent, InputTextComponent, LANGUAGE_TOKEN, LayoutModule, LoaderComponent, MAX_DEVICE_SIZE, MAX_SMALL_DEVICE, NavigateDirective, NotificationComponent, NotificationService, OverlayManager, POPOVER_DESTROY_TOKEN, PopoverComponent, PopoverDirective, PopoverService, ROUTE_CHECK_SERVICE, RouteCheckService, RouteConfig, ScrollDragDirective, StorageValues, StoreService, Subscriptable, TOOLTIP_DESTROY_TOKEN, TRANSLATE_STORAGE_KEY, TooltipComponent, TooltipDirective, TooltipService, TranslatePipe, TranslateService, authInterceptor, errorInterceptor, isDeepEqual, passwordValidator, provideDolfoLanguages, samePasswordValidator };
888
- export type { AutocompleteConfig, ButtonColor, ButtonSize, CheckRoute, ComboInput, ComboOption, ContextMenuItem, DialogComponentInput, DialogFooterButton, DialogForm, DialogIcon, DialogOutput, DialogType, GridAction, GridColumn, GridToolbarButton, IContextMenu, IDialogInput, IGridConfig, ILanguage, ILanguageToken, INotificationInput, IPopover, IStore, ITooltip, IconName, InputType, NotificationAction, NotificationType, OnBlur, OnClick, OnFocus, TooltipDirection };
890
+ export type { AutocompleteConfig, BooleanFn, ButtonColor, ButtonSize, CheckRoute, ComboInput, ComboOption, ContextMenuItem, DialogComponentInput, DialogFooterButton, DialogForm, DialogIcon, DialogOutput, DialogType, GridAction, GridColumn, GridToolbarButton, IContextMenu, IDialogInput, IGridConfig, ILanguage, ILanguageToken, INotificationInput, IPopover, IStore, ITooltip, IconName, InputType, NotificationAction, NotificationType, OnBlur, OnClick, OnFocus, TooltipDirection };