dolfo-angular 1.214.0 → 1.216.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/fesm2022/dolfo-angular.mjs +233 -240
- package/fesm2022/dolfo-angular.mjs.map +1 -1
- package/package.json +6 -6
- package/styles/components/button.scss +21 -16
- package/styles/misc/mixins.scss +12 -3
- package/types/dolfo-angular.d.ts +39 -38
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dolfo-angular",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.216.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
7
|
-
"@angular/forms": "^
|
|
8
|
-
"@angular/platform-browser": "^
|
|
9
|
-
"@angular/router": "^
|
|
5
|
+
"@angular/common": "^22.0.5",
|
|
6
|
+
"@angular/core": "^22.0.5",
|
|
7
|
+
"@angular/forms": "^22.0.5",
|
|
8
|
+
"@angular/platform-browser": "^22.0.5",
|
|
9
|
+
"@angular/router": "^22.0.5"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"tslib": "^2.8.1"
|
|
@@ -8,18 +8,20 @@ button{
|
|
|
8
8
|
border-radius: 3px;
|
|
9
9
|
border: 0;
|
|
10
10
|
|
|
11
|
-
&:not(.
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
&:not(.text){
|
|
12
|
+
&:not(.size-sm):not(.size-lg){
|
|
13
|
+
padding: 0.3rem 0.7rem
|
|
14
|
+
}
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
&.size-sm{
|
|
17
|
+
font-size: small;
|
|
18
|
+
padding: 0.3rem 0.5rem
|
|
19
|
+
}
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
&.size-lg{
|
|
22
|
+
font-size: large;
|
|
23
|
+
padding: 0.3rem 1rem
|
|
24
|
+
}
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
&[disabled]{
|
|
@@ -27,12 +29,15 @@ button{
|
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
@each $key, $color in $colors{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
$newColor: color.adjust($color, $lightness: -10%);
|
|
33
|
+
|
|
34
|
+
&.color-#{$key}:not(.text):not([disabled]):focus{
|
|
35
|
+
background-color: $newColor;
|
|
36
|
+
color: getButtonTextColor($newColor)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.color-#{$key}.text:not([disabled]):focus{
|
|
40
|
+
color: $newColor
|
|
36
41
|
}
|
|
37
42
|
}
|
|
38
43
|
}
|
package/styles/misc/mixins.scss
CHANGED
|
@@ -107,14 +107,23 @@
|
|
|
107
107
|
|
|
108
108
|
@mixin pseudo-btn($prefix: ""){
|
|
109
109
|
@each $key, $color in $colors{
|
|
110
|
-
|
|
110
|
+
$newColor: color.adjust($color, $lightness: -5%);
|
|
111
|
+
|
|
112
|
+
&.#{$prefix + $key}:not(.text){
|
|
111
113
|
background-color: $color;
|
|
112
114
|
color: getButtonTextColor($color);
|
|
113
115
|
|
|
114
116
|
&:not([disabled]):hover{
|
|
115
|
-
$newColor: color.adjust($color, $lightness: -5%);
|
|
116
117
|
background-color: $newColor;
|
|
117
|
-
color: getButtonTextColor($newColor)
|
|
118
|
+
color: getButtonTextColor($newColor)
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&.#{$prefix + $key}.text{
|
|
123
|
+
color: getButtonTextColor($color);
|
|
124
|
+
|
|
125
|
+
&:not([disabled]):hover{
|
|
126
|
+
color: $newColor
|
|
118
127
|
}
|
|
119
128
|
}
|
|
120
129
|
}
|
package/types/dolfo-angular.d.ts
CHANGED
|
@@ -264,30 +264,24 @@ declare class ContextMenuService {
|
|
|
264
264
|
static ɵprov: i0.ɵɵInjectableDeclaration<ContextMenuService>;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
declare class
|
|
268
|
-
private
|
|
269
|
-
private
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
private getLocale;
|
|
280
|
-
formatDate: (d: string) => string;
|
|
281
|
-
formatDateTime: (d: string) => string;
|
|
282
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TranslateService, never>;
|
|
283
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TranslateService>;
|
|
267
|
+
declare class DialogUtilsService {
|
|
268
|
+
private dialogService;
|
|
269
|
+
private translateService;
|
|
270
|
+
showLoading$: <T, T2>(obs: (res: T2) => Observable<T>) => rxjs.OperatorFunction<T2, T>;
|
|
271
|
+
hideLoading: () => void;
|
|
272
|
+
closeLatestDialog: () => void;
|
|
273
|
+
closeWithAction: <T>(data: T) => void;
|
|
274
|
+
openDialogComponent: (component: DialogComponentInput) => Observable<dolfo_angular.DialogOutput>;
|
|
275
|
+
openDialog: (input: IDialogInput) => Observable<dolfo_angular.DialogOutput>;
|
|
276
|
+
askConfirmAndLoad: <T>(input: Pick<IDialogInput, "title" | "message" | "hideCloseX" | "width">, obs: (resp: DialogActionType) => Observable<T>, getDialogResp?: boolean) => Observable<T>;
|
|
277
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogUtilsService, never>;
|
|
278
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DialogUtilsService>;
|
|
284
279
|
}
|
|
285
280
|
|
|
286
281
|
declare class DialogService {
|
|
287
|
-
private ts;
|
|
288
282
|
private dialog$;
|
|
289
283
|
private waiters;
|
|
290
|
-
|
|
284
|
+
private ts;
|
|
291
285
|
private getLastWaiter;
|
|
292
286
|
getDialog: () => (IDialogInput & {
|
|
293
287
|
_dialogId: number;
|
|
@@ -304,21 +298,6 @@ declare class DialogService {
|
|
|
304
298
|
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
305
299
|
}
|
|
306
300
|
|
|
307
|
-
declare class DialogUtilsService {
|
|
308
|
-
private dialogService;
|
|
309
|
-
private translateService;
|
|
310
|
-
constructor(dialogService: DialogService, translateService: TranslateService);
|
|
311
|
-
showLoading$: <T, T2>(obs: (res: T2) => Observable<T>) => rxjs.OperatorFunction<T2, T>;
|
|
312
|
-
hideLoading: () => void;
|
|
313
|
-
closeLatestDialog: () => void;
|
|
314
|
-
closeWithAction: <T>(data: T) => void;
|
|
315
|
-
openDialogComponent: (component: DialogComponentInput) => Observable<dolfo_angular.DialogOutput>;
|
|
316
|
-
openDialog: (input: IDialogInput) => Observable<dolfo_angular.DialogOutput>;
|
|
317
|
-
askConfirmAndLoad: <T>(input: Pick<IDialogInput, "title" | "message" | "hideCloseX" | "width">, obs: (resp: DialogActionType) => Observable<T>, getDialogResp?: boolean) => Observable<T>;
|
|
318
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DialogUtilsService, never>;
|
|
319
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DialogUtilsService>;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
301
|
declare class NotificationService {
|
|
323
302
|
private notification$;
|
|
324
303
|
private history$;
|
|
@@ -376,6 +355,26 @@ declare class TooltipService {
|
|
|
376
355
|
static ɵprov: i0.ɵɵInjectableDeclaration<TooltipService>;
|
|
377
356
|
}
|
|
378
357
|
|
|
358
|
+
declare class TranslateService {
|
|
359
|
+
private lang$;
|
|
360
|
+
private langContent;
|
|
361
|
+
private langs;
|
|
362
|
+
private httpClient;
|
|
363
|
+
private langConfig;
|
|
364
|
+
constructor();
|
|
365
|
+
changeLanguage$: (langName: string) => rxjs.Observable<Record<string, string>>;
|
|
366
|
+
loadFromStorage$: () => rxjs.Observable<Record<string, string>>;
|
|
367
|
+
private load$;
|
|
368
|
+
translate: (key: string, params?: Record<string, string>) => string;
|
|
369
|
+
getLang: () => ILanguage;
|
|
370
|
+
getLang$: () => rxjs.Observable<ILanguage>;
|
|
371
|
+
private getLocale;
|
|
372
|
+
formatDate: (d: string) => string;
|
|
373
|
+
formatDateTime: (d: string) => string;
|
|
374
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslateService, never>;
|
|
375
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TranslateService>;
|
|
376
|
+
}
|
|
377
|
+
|
|
379
378
|
declare class InputContainerComponent {
|
|
380
379
|
input: BaseFormInput<unknown>;
|
|
381
380
|
private elRef;
|
|
@@ -538,6 +537,7 @@ declare abstract class Formable<T = object> extends Subscriptable implements OnD
|
|
|
538
537
|
protected abstract submit: (_formValue: T) => Observable<unknown>;
|
|
539
538
|
ngAfterViewInit(): void;
|
|
540
539
|
ngAfterViewChecked(): void;
|
|
540
|
+
private findInForm;
|
|
541
541
|
protected manualSubmit: () => void;
|
|
542
542
|
static ɵfac: i0.ɵɵFactoryDeclaration<Formable<any>, never>;
|
|
543
543
|
static ɵdir: i0.ɵɵDirectiveDeclaration<Formable<any>, never, never, {}, {}, never, never, true, never>;
|
|
@@ -647,13 +647,14 @@ declare class ButtonComponent implements OnClick, OnBlur, OnFocus {
|
|
|
647
647
|
color: ButtonColor;
|
|
648
648
|
loading: boolean;
|
|
649
649
|
size: ButtonSize;
|
|
650
|
+
textButton: boolean;
|
|
650
651
|
onClick: EventEmitter<MouseEvent>;
|
|
651
652
|
onBlur: EventEmitter<FocusEvent>;
|
|
652
653
|
onFocus: EventEmitter<FocusEvent>;
|
|
653
654
|
doClick: (e: MouseEvent) => void;
|
|
654
655
|
focus: () => void;
|
|
655
656
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
656
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "dolfo-button", never, { "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "onClick": "onClick"; "onBlur": "onBlur"; "onFocus": "onFocus"; }, never, ["*"], false, never>;
|
|
657
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "dolfo-button", never, { "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "size": { "alias": "size"; "required": false; }; "textButton": { "alias": "textButton"; "required": false; }; }, { "onClick": "onClick"; "onBlur": "onBlur"; "onFocus": "onFocus"; }, never, ["*"], false, never>;
|
|
657
658
|
static ngAcceptInputType_disabled: unknown;
|
|
658
659
|
}
|
|
659
660
|
|
|
@@ -779,13 +780,13 @@ declare class DialogContentComponent implements OnInit {
|
|
|
779
780
|
}
|
|
780
781
|
|
|
781
782
|
declare class DialogFooterComponent implements OnInit, AfterViewChecked {
|
|
782
|
-
private cdr;
|
|
783
783
|
template: TemplateRef<unknown>;
|
|
784
784
|
childrenButtons: QueryList<ButtonComponent>;
|
|
785
785
|
buttons: DialogFooterButton[];
|
|
786
786
|
private focused;
|
|
787
|
-
|
|
788
|
-
|
|
787
|
+
private cdr;
|
|
788
|
+
private injector;
|
|
789
|
+
ngOnInit(): Promise<void>;
|
|
789
790
|
ngAfterViewChecked(): void;
|
|
790
791
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogFooterComponent, never>;
|
|
791
792
|
static ɵcmp: i0.ɵɵComponentDeclaration<DialogFooterComponent, "dolfo-dialog-footer", never, { "buttons": { "alias": "buttons"; "required": true; }; }, {}, never, never, false, never>;
|