dolfo-angular 1.211.0 → 1.213.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.211.0",
3
+ "version": "1.213.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.9",
6
6
  "@angular/core": "^21.2.9",
@@ -94,8 +94,6 @@
94
94
  }
95
95
 
96
96
  tbody tr{
97
- @include pointer;
98
-
99
97
  &:hover td{
100
98
  background-color: color.adjust($lightGrey, $lightness: 15%)
101
99
  }
@@ -1,12 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Type, ElementRef, TemplateRef, EventEmitter, ValueProvider, OnDestroy, AfterViewInit, OnInit, OnChanges, ChangeDetectorRef, SimpleChanges, PipeTransform, ViewContainerRef, Injector, AfterViewChecked, QueryList } from '@angular/core';
2
+ import { InjectionToken, Type, ElementRef, TemplateRef, EventEmitter, ValueProvider, OnDestroy, AfterViewInit, OnInit, OnChanges, ChangeDetectorRef, SimpleChanges, PipeTransform, ViewContainerRef, Injector, AfterViewChecked, QueryList, ProviderToken } from '@angular/core';
3
3
  import * as rxjs from 'rxjs';
4
4
  import { Observable, Subscription, BehaviorSubject } from 'rxjs';
5
5
  import * as i10 from '@angular/forms';
6
6
  import { FormControl, ValidatorFn, ValidationErrors, ControlValueAccessor, Validator, AbstractControl, FormGroup, FormGroupDirective } from '@angular/forms';
7
7
  import * as i9 from '@angular/common';
8
8
  import { DecimalPipe } from '@angular/common';
9
- import { CanActivate, ActivatedRouteSnapshot, Router } from '@angular/router';
9
+ import { CanActivate, ActivatedRouteSnapshot, Router, CanActivateFn, Route } from '@angular/router';
10
10
  import * as _angular_platform_browser from '@angular/platform-browser';
11
11
  import { DomSanitizer } from '@angular/platform-browser';
12
12
  import * as _angular_common_http from '@angular/common/http';
@@ -37,7 +37,7 @@ interface ContextMenuItem {
37
37
  readonly label: string;
38
38
  readonly onClick: () => void;
39
39
  readonly disabled?: boolean;
40
- readonly icon?: IconName;
40
+ readonly icon?: IconName | string;
41
41
  readonly className?: string;
42
42
  }
43
43
  interface IContextMenu {
@@ -105,7 +105,8 @@ declare enum ColumnAlign {
105
105
  declare enum ColumnDataType {
106
106
  TEXT = 0,
107
107
  DATE = 1,
108
- DATETIME = 2
108
+ DATETIME = 2,
109
+ LINK = 3
109
110
  }
110
111
  interface GridAction {
111
112
  readonly icon: string;
@@ -121,6 +122,7 @@ interface GridColumn {
121
122
  readonly width?: number;
122
123
  readonly align?: ColumnAlign;
123
124
  readonly formatter?: (value: any) => string;
125
+ readonly onLink?: (value: any) => void;
124
126
  }
125
127
  interface IGridConfig<T> {
126
128
  readonly items: T[] | Observable<T[]>;
@@ -214,12 +216,6 @@ interface CheckRoute<T> {
214
216
  checkRoute: (path: string) => Promise<boolean> | Observable<boolean>;
215
217
  }
216
218
 
217
- declare enum StoreLists {
218
- EMPTY = 0
219
- }
220
- type StorageListType = {
221
- [StoreLists.EMPTY]: null;
222
- };
223
219
  declare enum StorageValues {
224
220
  TOKEN = "token",
225
221
  LANG = "lang"
@@ -227,7 +223,7 @@ declare enum StorageValues {
227
223
  interface IStore {
228
224
  readonly pressingCtrl: boolean;
229
225
  readonly lists: {
230
- [k in StoreLists]?: StorageListType[k][];
226
+ [x: string]: Array<any>;
231
227
  };
232
228
  readonly entities: {
233
229
  [x: string]: any;
@@ -358,8 +354,8 @@ declare class StoreService extends Subscriptable {
358
354
  private appInitialized;
359
355
  constructor();
360
356
  private store$;
361
- addList: <K extends StoreLists>(key: K, list: StorageListType[K][]) => void;
362
- getList: <K extends StoreLists>(key: K) => StorageListType[K][];
357
+ addList: (key: string, list: Array<any>) => void;
358
+ getList: <T>(key: string) => T;
363
359
  addEntity: (key: string, entity: any) => void;
364
360
  getEntity: <T>(key: string) => T;
365
361
  setCtrlKey: (pressingCtrl: boolean) => void;
@@ -559,6 +555,24 @@ declare class OverlayManager {
559
555
  init: () => rxjs.Subscription[];
560
556
  }
561
557
 
558
+ interface Module {
559
+ [x: string]: Type<unknown>;
560
+ }
561
+ declare class RouteConfig {
562
+ private path;
563
+ private loadComponent;
564
+ private redirectTo;
565
+ private pathMatch;
566
+ private title;
567
+ private canActivate;
568
+ constructor(path: string, withRouteCheck?: boolean);
569
+ withTitle: (title: typeof this.title) => this;
570
+ loadUrl: (imp: Promise<Module>) => this;
571
+ withRedirect: (url: string) => this;
572
+ addGuard: (guard: CanActivateFn | ProviderToken<any> | string | Array<CanActivateFn | ProviderToken<any> | string>) => this;
573
+ toRoute: () => Route;
574
+ }
575
+
562
576
  declare class ContextMenuDirective extends Subscriptable implements OnInit {
563
577
  private contextMenuService;
564
578
  private elRef;
@@ -658,7 +672,7 @@ declare class ContextMenuComponent extends Subscriptable implements IContextMenu
658
672
  }
659
673
 
660
674
  declare class IconWrapperComponent {
661
- name: IconName;
675
+ name: IconName | string;
662
676
  iconComponent: i0.Type<any>;
663
677
  static ɵfac: i0.ɵɵFactoryDeclaration<IconWrapperComponent, never>;
664
678
  static ɵcmp: i0.ɵɵComponentDeclaration<IconWrapperComponent, "dolfo-icon", never, { "name": { "alias": "name"; "required": true; }; }, {}, never, never, false, never>;
@@ -711,7 +725,7 @@ declare class TooltipComponent extends Subscriptable implements OnInit, AfterVie
711
725
  }
712
726
 
713
727
  declare class IconComponent {
714
- name: IconName;
728
+ name: IconName | string;
715
729
  static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
716
730
  static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "dolfo-icon-x", never, { "name": { "alias": "name"; "required": true; }; }, {}, never, never, false, never>;
717
731
  }
@@ -787,7 +801,7 @@ declare class DialogHeaderComponent implements OnInit {
787
801
  constructor(cdr: ChangeDetectorRef, dialogService: DialogService);
788
802
  ngOnInit(): void;
789
803
  close: () => void;
790
- getIcon: () => IconName;
804
+ getIcon: () => string;
791
805
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogHeaderComponent, never>;
792
806
  static ɵcmp: i0.ɵɵComponentDeclaration<DialogHeaderComponent, "dolfo-dialog-header", never, { "title": { "alias": "title"; "required": true; }; "icon": { "alias": "icon"; "required": false; }; "showCloseX": { "alias": "showCloseX"; "required": false; }; }, {}, never, never, false, never>;
793
807
  static ngAcceptInputType_showCloseX: unknown;
@@ -816,7 +830,7 @@ declare class DialogComponent extends Formable implements Required<IDialogInput>
816
830
  protected dialogService: DialogService;
817
831
  private sanitizer;
818
832
  ngOnInit(): void;
819
- protected submit: () => Observable<unknown>;
833
+ protected submit: (_formValue: any) => Observable<unknown>;
820
834
  getIcon: () => DialogIcon;
821
835
  protected close: (type: DialogActionType, data?: Record<string, any>) => void;
822
836
  showCloseX: () => boolean;
@@ -837,7 +851,8 @@ declare class GridComponent<T> {
837
851
  private sanitizer;
838
852
  config: GridConfig<T>;
839
853
  constructor(translateService: TranslateService, sanitizer: DomSanitizer);
840
- resolveField: (item: T, { field, formatter, dataType }: GridColumn) => _angular_platform_browser.SafeHtml;
854
+ resolveField: (item: T, { field, formatter, dataType, onLink }: GridColumn) => _angular_platform_browser.SafeHtml;
855
+ checkLink: (e: Event, col: GridColumn, item: T, cell: HTMLTableCellElement) => void;
841
856
  static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent<any>, never>;
842
857
  static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent<any>, "dolfo-grid", never, { "config": { "alias": "config"; "required": true; }; }, {}, never, never, false, never>;
843
858
  }
@@ -852,5 +867,5 @@ declare const authInterceptor: (req: HttpRequest<unknown>, next: HttpHandlerFn)
852
867
 
853
868
  declare const errorInterceptor: (req: HttpRequest<unknown>, next: HttpHandlerFn) => rxjs.Observable<_angular_common_http.HttpEvent<unknown>>;
854
869
 
855
- 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, ScrollDragDirective, StorageValues, StoreLists, StoreService, Subscriptable, TOOLTIP_DESTROY_TOKEN, TRANSLATE_STORAGE_KEY, TooltipComponent, TooltipDirective, TooltipService, TranslatePipe, TranslateService, authInterceptor, errorInterceptor, isDeepEqual, passwordValidator, provideDolfoLanguages };
856
- export type { AutocompleteConfig, ButtonColor, ButtonSize, CheckRoute, ComboInput, ComboOption, ContextMenuItem, DialogComponentInput, DialogFooterButton, DialogForm, DialogIcon, DialogOutput, DialogType, GridAction, GridColumn, IContextMenu, IDialogInput, IGridConfig, ILanguage, ILanguageToken, INotificationInput, IPopover, IStore, ITooltip, IconName, InputType, NotificationAction, NotificationType, OnBlur, OnClick, OnFocus, StorageListType, TooltipDirection };
870
+ 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 };
871
+ export type { AutocompleteConfig, ButtonColor, ButtonSize, CheckRoute, ComboInput, ComboOption, ContextMenuItem, DialogComponentInput, DialogFooterButton, DialogForm, DialogIcon, DialogOutput, DialogType, GridAction, GridColumn, IContextMenu, IDialogInput, IGridConfig, ILanguage, ILanguageToken, INotificationInput, IPopover, IStore, ITooltip, IconName, InputType, NotificationAction, NotificationType, OnBlur, OnClick, OnFocus, TooltipDirection };