dolfo-angular 1.228.0 → 1.230.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,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dolfo-angular",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.230.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^22.
|
|
6
|
-
"@angular/core": "^22.
|
|
7
|
-
"@angular/forms": "^22.
|
|
8
|
-
"@angular/platform-browser": "^22.
|
|
9
|
-
"@angular/router": "^22.
|
|
5
|
+
"@angular/common": "^22.1.1",
|
|
6
|
+
"@angular/core": "^22.1.1",
|
|
7
|
+
"@angular/forms": "^22.1.1",
|
|
8
|
+
"@angular/platform-browser": "^22.1.1",
|
|
9
|
+
"@angular/router": "^22.1.1"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"tslib": "^2.8.1"
|
|
@@ -75,11 +75,23 @@
|
|
|
75
75
|
thead tr{
|
|
76
76
|
background-color: $white;
|
|
77
77
|
|
|
78
|
+
&:not(.dolfo-grid-tolbar) th{
|
|
79
|
+
@include text-center;
|
|
80
|
+
font-weight: 700
|
|
81
|
+
}
|
|
82
|
+
|
|
78
83
|
th{
|
|
79
84
|
@include relative;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
85
|
+
border-top: $border
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&.dolfo-grid-toolbar th{
|
|
89
|
+
@include text-left;
|
|
90
|
+
|
|
91
|
+
button{
|
|
92
|
+
padding: 0.1rem 0.3rem;
|
|
93
|
+
font-weight: normal
|
|
94
|
+
}
|
|
83
95
|
}
|
|
84
96
|
|
|
85
97
|
&:first-child{
|
package/types/dolfo-angular.d.ts
CHANGED
|
@@ -113,6 +113,12 @@ interface GridAction {
|
|
|
113
113
|
readonly color?: ButtonColor;
|
|
114
114
|
readonly onClick: () => void;
|
|
115
115
|
}
|
|
116
|
+
interface GridToolbarButton {
|
|
117
|
+
readonly label: string;
|
|
118
|
+
readonly disabled?: boolean | (() => boolean);
|
|
119
|
+
readonly icon?: string;
|
|
120
|
+
readonly onClick: () => void;
|
|
121
|
+
}
|
|
116
122
|
interface GridColumn {
|
|
117
123
|
readonly label: string;
|
|
118
124
|
readonly field: string;
|
|
@@ -130,6 +136,9 @@ interface IGridConfig<T> {
|
|
|
130
136
|
readonly showSelectAll?: boolean;
|
|
131
137
|
readonly defaultSelected?: (item: T) => boolean;
|
|
132
138
|
};
|
|
139
|
+
readonly toolbar?: {
|
|
140
|
+
readonly buttons?: GridToolbarButton[];
|
|
141
|
+
};
|
|
133
142
|
readonly events?: {
|
|
134
143
|
onRowClick?: (item: T) => void;
|
|
135
144
|
onSelectionChange?: (item: T[]) => void;
|
|
@@ -144,6 +153,8 @@ declare class GridConfig<T> {
|
|
|
144
153
|
private loading$;
|
|
145
154
|
private selectedItems;
|
|
146
155
|
private actions$;
|
|
156
|
+
private toolbar;
|
|
157
|
+
private prevSub;
|
|
147
158
|
constructor(config: IGridConfig<T>);
|
|
148
159
|
refreshGrid: () => void;
|
|
149
160
|
getRowClass: (item: T) => string;
|
|
@@ -159,7 +170,7 @@ declare class GridConfig<T> {
|
|
|
159
170
|
};
|
|
160
171
|
getUniqueId: (item: T) => string | number;
|
|
161
172
|
isLoading$: () => Observable<boolean>;
|
|
162
|
-
|
|
173
|
+
setLoading: (v: boolean) => void;
|
|
163
174
|
getSelectedItems: () => T[];
|
|
164
175
|
toggleSelection: (item: T) => void;
|
|
165
176
|
isItemSelected: (item: T) => boolean;
|
|
@@ -172,6 +183,11 @@ declare class GridConfig<T> {
|
|
|
172
183
|
private emitSelectionChange;
|
|
173
184
|
isAllSelected: () => boolean;
|
|
174
185
|
get hasActions(): boolean;
|
|
186
|
+
get hasToolbar(): boolean;
|
|
187
|
+
getToolbarButtons(): GridToolbarButton[];
|
|
188
|
+
setToolbar: (toolbar: IGridConfig<T>["toolbar"]) => {
|
|
189
|
+
readonly buttons?: GridToolbarButton[];
|
|
190
|
+
};
|
|
175
191
|
}
|
|
176
192
|
|
|
177
193
|
type NotificationType = "success" | "error" | "info" | "warning";
|
|
@@ -796,13 +812,14 @@ declare class DialogHeaderComponent implements OnInit {
|
|
|
796
812
|
title: string;
|
|
797
813
|
icon: DialogIcon;
|
|
798
814
|
showCloseX: boolean;
|
|
815
|
+
onCancel: EventEmitter<any>;
|
|
799
816
|
private cdr;
|
|
800
817
|
private dialogService;
|
|
801
818
|
ngOnInit(): void;
|
|
802
819
|
close: () => void;
|
|
803
820
|
getIcon: () => string;
|
|
804
821
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogHeaderComponent, never>;
|
|
805
|
-
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>;
|
|
822
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogHeaderComponent, "dolfo-dialog-header", never, { "title": { "alias": "title"; "required": true; }; "icon": { "alias": "icon"; "required": false; }; "showCloseX": { "alias": "showCloseX"; "required": false; }; }, { "onCancel": "onCancel"; }, never, never, false, never>;
|
|
806
823
|
static ngAcceptInputType_showCloseX: unknown;
|
|
807
824
|
}
|
|
808
825
|
|
|
@@ -851,6 +868,7 @@ declare class GridComponent<T> {
|
|
|
851
868
|
private sanitizer;
|
|
852
869
|
resolveField: (item: T, { field, formatter, dataType, onLink }: GridColumn) => _angular_platform_browser.SafeHtml;
|
|
853
870
|
checkLink: (e: Event, col: GridColumn, item: T, cell: HTMLTableCellElement) => void;
|
|
871
|
+
isToolbarBtnDisabled: (disabled: boolean | (() => boolean)) => boolean;
|
|
854
872
|
static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent<any>, never>;
|
|
855
873
|
static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent<any>, "dolfo-grid", never, { "config": { "alias": "config"; "required": true; }; }, {}, never, never, false, never>;
|
|
856
874
|
}
|
|
@@ -866,4 +884,4 @@ declare const authInterceptor: (req: HttpRequest<unknown>, next: HttpHandlerFn)
|
|
|
866
884
|
declare const errorInterceptor: (req: HttpRequest<unknown>, next: HttpHandlerFn) => rxjs.Observable<_angular_common_http.HttpEvent<unknown>>;
|
|
867
885
|
|
|
868
886
|
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 };
|
|
869
|
-
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 };
|
|
887
|
+
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 };
|