dolfo-angular 1.212.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
package/types/dolfo-angular.d.ts
CHANGED
|
@@ -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
|
-
[
|
|
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:
|
|
362
|
-
getList: <
|
|
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;
|
|
@@ -676,7 +672,7 @@ declare class ContextMenuComponent extends Subscriptable implements IContextMenu
|
|
|
676
672
|
}
|
|
677
673
|
|
|
678
674
|
declare class IconWrapperComponent {
|
|
679
|
-
name: IconName;
|
|
675
|
+
name: IconName | string;
|
|
680
676
|
iconComponent: i0.Type<any>;
|
|
681
677
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconWrapperComponent, never>;
|
|
682
678
|
static ɵcmp: i0.ɵɵComponentDeclaration<IconWrapperComponent, "dolfo-icon", never, { "name": { "alias": "name"; "required": true; }; }, {}, never, never, false, never>;
|
|
@@ -729,7 +725,7 @@ declare class TooltipComponent extends Subscriptable implements OnInit, AfterVie
|
|
|
729
725
|
}
|
|
730
726
|
|
|
731
727
|
declare class IconComponent {
|
|
732
|
-
name: IconName;
|
|
728
|
+
name: IconName | string;
|
|
733
729
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
734
730
|
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "dolfo-icon-x", never, { "name": { "alias": "name"; "required": true; }; }, {}, never, never, false, never>;
|
|
735
731
|
}
|
|
@@ -805,7 +801,7 @@ declare class DialogHeaderComponent implements OnInit {
|
|
|
805
801
|
constructor(cdr: ChangeDetectorRef, dialogService: DialogService);
|
|
806
802
|
ngOnInit(): void;
|
|
807
803
|
close: () => void;
|
|
808
|
-
getIcon: () =>
|
|
804
|
+
getIcon: () => string;
|
|
809
805
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogHeaderComponent, never>;
|
|
810
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>;
|
|
811
807
|
static ngAcceptInputType_showCloseX: unknown;
|
|
@@ -834,7 +830,7 @@ declare class DialogComponent extends Formable implements Required<IDialogInput>
|
|
|
834
830
|
protected dialogService: DialogService;
|
|
835
831
|
private sanitizer;
|
|
836
832
|
ngOnInit(): void;
|
|
837
|
-
protected submit: () => Observable<unknown>;
|
|
833
|
+
protected submit: (_formValue: any) => Observable<unknown>;
|
|
838
834
|
getIcon: () => DialogIcon;
|
|
839
835
|
protected close: (type: DialogActionType, data?: Record<string, any>) => void;
|
|
840
836
|
showCloseX: () => boolean;
|
|
@@ -855,7 +851,8 @@ declare class GridComponent<T> {
|
|
|
855
851
|
private sanitizer;
|
|
856
852
|
config: GridConfig<T>;
|
|
857
853
|
constructor(translateService: TranslateService, sanitizer: DomSanitizer);
|
|
858
|
-
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;
|
|
859
856
|
static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent<any>, never>;
|
|
860
857
|
static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent<any>, "dolfo-grid", never, { "config": { "alias": "config"; "required": true; }; }, {}, never, never, false, never>;
|
|
861
858
|
}
|
|
@@ -870,5 +867,5 @@ declare const authInterceptor: (req: HttpRequest<unknown>, next: HttpHandlerFn)
|
|
|
870
867
|
|
|
871
868
|
declare const errorInterceptor: (req: HttpRequest<unknown>, next: HttpHandlerFn) => rxjs.Observable<_angular_common_http.HttpEvent<unknown>>;
|
|
872
869
|
|
|
873
|
-
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,
|
|
874
|
-
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,
|
|
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 };
|